Fórum

Servlet in Ext Plugin

Mª Luz Mateo, modificado 13 Anos atrás.

Servlet in Ext Plugin

Junior Member Postagens: 36 Data de Entrada: 22/09/10 Postagens Recentes
Hi all!

I need to get a servlet working inside ext plugin. I'm working with LR 6.0.5, I created a portlet with the servlet and all works fine. But now, they don't want a portlet any more. They asked me to put the servlet into an ext-plugin and I can't get it working.

I created the servlet class in
my-ext-plugin/docroot/WEB-INF/ext-impl/src/mypkg/myServlet


The content of my-ext-plugin/docroot/WEB-INF/ext-web/docroot/WEB-INF/web.xml is:
<servlet>
		<description></description>
		<display-name> myServlet </display-name>
		<servlet-name> myServlet </servlet-name>
		<servlet-class> mypkg.myServlet </servlet-class>
	</servlet>
	
	<servlet-mapping>
		<servlet-name> myServlet </servlet-name>
		<url-pattern> /myServlet </url-pattern>
	</servlet-mapping>


It is deployed without any problem, but when I try to make a request at http://localhost:8080/myServlet all that I get is:
[PortalImpl] Current URL /myServlet generates exception: null


Any ideas??

Thanks in advance!
thumbnail
Eduard Saldaña, modificado 12 Anos atrás.

RE: Servlet in Ext Plugin

New Member Postagens: 19 Data de Entrada: 09/03/11 Postagens Recentes
Dear Mª Luz,

Did you find the solution?

Thank you
thumbnail
Thiago Leão Moreira, modificado 11 Anos atrás.

RE: Servlet in Ext Plugin

Liferay Legend Postagens: 1449 Data de Entrada: 10/10/07 Postagens Recentes
Hey all, I'm facing the same issue