Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #15408

Liferay and PortletDelegateServlet

From Fender <tryto@guessmyemail.com>
Newsgroups comp.lang.java.programmer
Subject Liferay and PortletDelegateServlet
Date 2012-06-19 12:07 +0200
Organization Netfront http://www.netfront.net/
Message-ID <jrpj1u$1e08$1@adenine.netfront.net> (permalink)

Show all headers | View raw


Hi!
I have to deploy a servlet in Liferay bundled Tomcat, I'm trying to use 
Liferay's PortalDelegateServlet.

I have a normal servlet like this:

public class WFService extends HttpServlet implements 
javax.servlet.Servlet {
   // doGet e doPost
}

in web.xml i specified this mapping:

<servlet>
         <servlet-name>WFD</servlet-name>
         <servlet-class>
             com.liferay.portal.kernel.servlet.PortalDelegateServlet
         </servlet-class>
         <init-param>
             <param-name>servlet-class</param-name>
             <param-value>sei.wfd.wfdserver.WFService</param-value>
         </init-param>
         <init-param>
             <param-name>sub-context</param-name>
             <param-value>WFService</param-value>
         </init-param>
         <load-on-startup>1</load-on-startup>
</servlet>

Copying generated war in /deploy it is successfully deployed, and it is 
also visibile from UI and administration.

I expect to call my servlet with the following url:
http://localhost:8080/delegate/WFService

but it throws the following exception:
javax.servlet.ServletException: No servlet registred for context WFService
 
com.liferay.portal.kernel.servlet.PortalDelegatorServlet.service(PortalDelegatorServlet.java:79)
[...]

I searched on the web but it seems I made it right... any suggestion? 
I'm doing something wrong? Thank you!

--- Posted via news://freenews.netfront.net/ - Complaints to news@netfront.net ---

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Liferay and PortletDelegateServlet Fender <tryto@guessmyemail.com> - 2012-06-19 12:07 +0200
  Re: Liferay and PortletDelegateServlet Fender <tryto@guessmyemail.com> - 2012-06-19 13:48 +0200

csiph-web