Forums de discussion

Liferay 6 - How to deploy a servlet in an Ext-Plugin

Dave D, modifié il y a 13 années.

Liferay 6 - How to deploy a servlet in an Ext-Plugin

New Member Envoyer: 1 Date d'inscription: 09/12/10 Publications récentes
I am using Liferay 6.0.5 and i'm migrating my ext-environment from 5.2.3 to the new Ext-Plugin structure. I followed the tutorial using the ant script "upgrade-ext" and it worked very well!

But now there comes the problem.

I had servlets defined in my web.xml and i cant access them now in my ext plugin.

So can someone show me an example of how to deploy a servlet via an ext plugin?

My web.xml in ext-plugin/WEB-INF/

<display-name>plugin-ext</display-name>
	<listener>
		<listener-class>com.liferay.portal.kernel.servlet.SerializableSessionAttributeListener</listener-class>
	</listener>
	<listener>
		<listener-class>com.liferay.portal.kernel.servlet.ExtContextListener</listener-class>
	</listener>


My web.xml in ext-plugin/WEB-INF/ext-web/docroot/WEB-INF/


<servlet>
    	<servlet-name>doc_download</servlet-name>
    	<servlet-class>com.DocServlet</servlet-class>
  	</servlet>

  	<servlet-mapping>
    	<servlet-name>doc_download</servlet-name>
    	<url-pattern>/down/doc/*</url-pattern>
  	</servlet-mapping>


In the old ext-environment i could go to the browser and call the servlet via http://localhost/down/doc

That won't work anymore.

I have also tried it by inserting the Ext-Plugin context, but without effect.


Thanks in advance!
Mª Luz Mateo, modifié il y a 13 années.

RE: Liferay 6 - How to deploy a servlet in an Ext-Plugin

Junior Member Publications: 36 Date d'inscription: 22/09/10 Publications récentes
Hi Dave!

Did you find a solution?

I have the same problem, but no idea about how to get the servlet working.

Regards
thumbnail
Thiago Leão Moreira, modifié il y a 11 années.

RE: Liferay 6 - How to deploy a servlet in an Ext-Plugin

Liferay Legend Publications: 1449 Date d'inscription: 10/10/07 Publications récentes
Hey all, any tips on this?

I'm facing the same issue