Fórumok

Servlet in Ext Plugin

Mª Luz Mateo, módosítva 13 év-val korábban

Servlet in Ext Plugin

Junior Member Bejegyzések: 36 Csatlakozás dátuma: 2010.09.22. Legújabb bejegyzések
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, módosítva 12 év-val korábban

RE: Servlet in Ext Plugin

New Member Bejegyzések: 19 Csatlakozás dátuma: 2011.03.09. Legújabb bejegyzések
Dear Mª Luz,

Did you find the solution?

Thank you
thumbnail
Thiago Leão Moreira, módosítva 11 év-val korábban

RE: Servlet in Ext Plugin

Liferay Legend Bejegyzések: 1449 Csatlakozás dátuma: 2007.10.10. Legújabb bejegyzések
Hey all, I'm facing the same issue