掲示板

Servlet in Ext Plugin

13年前 に Mª Luz Mateo によって更新されました。

Servlet in Ext Plugin

Junior Member 投稿: 36 参加年月日: 10/09/22 最新の投稿
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
12年前 に Eduard Saldaña によって更新されました。

RE: Servlet in Ext Plugin

New Member 投稿: 19 参加年月日: 11/03/09 最新の投稿
Dear Mª Luz,

Did you find the solution?

Thank you
thumbnail
11年前 に Thiago Leão Moreira によって更新されました。

RE: Servlet in Ext Plugin

Liferay Legend 投稿: 1449 参加年月日: 07/10/10 最新の投稿
Hey all, I'm facing the same issue