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


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

Liferay and PortletDelegateServlet

Started byFender <tryto@guessmyemail.com>
First post2012-06-19 12:07 +0200
Last post2012-06-19 13:48 +0200
Articles 2 — 1 participant

Back to article view | Back to comp.lang.java.programmer


Contents

  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

#15408 — Liferay and PortletDelegateServlet

FromFender <tryto@guessmyemail.com>
Date2012-06-19 12:07 +0200
SubjectLiferay and PortletDelegateServlet
Message-ID<jrpj1u$1e08$1@adenine.netfront.net>
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 ---

[toc] | [next] | [standalone]


#15410

FromFender <tryto@guessmyemail.com>
Date2012-06-19 13:48 +0200
Message-ID<jrpovi$1huk$2@adenine.netfront.net>
In reply to#15408
UPDATE: I used a maven project for the previous servlet, I made a new 
web project without maven and all works fine...
But still I don't understand why it doesn't work with a maven project...

Il 19/06/2012 12:07, Fender ha scritto:
> 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 ---


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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web