Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #15408
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.netfront.net!not-for-mail |
|---|---|
| From | Fender <tryto@guessmyemail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Liferay and PortletDelegateServlet |
| Date | Tue, 19 Jun 2012 12:07:50 +0200 |
| Organization | Netfront http://www.netfront.net/ |
| Lines | 45 |
| Message-ID | <jrpj1u$1e08$1@adenine.netfront.net> (permalink) |
| NNTP-Posting-Host | 109.69.6.83 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-15; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | adenine.netfront.net 1340100480 47112 109.69.6.83 (19 Jun 2012 10:08:00 GMT) |
| X-Complaints-To | news@netfront.net |
| NNTP-Posting-Date | Tue, 19 Jun 2012 10:08:00 +0000 (UTC) |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
| Xref | csiph.com comp.lang.java.programmer:15408 |
Show key headers only | 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 | Next — Next in thread | Find similar | Unroll 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