You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mauro Daniel Ardolino <ma...@altersoft.com.ar> on 2002/10/16 18:30:38 UTC

Problems running servlets under cocoon

Hello!
I'm having problems trying to run servlets under cocoon.

Error message on browser:
------------------------
Cocoon 2 - Internal server error
java.lang.RuntimeException: servlet/maeff could not be found. (possible
context problem)
        at
org.apache.cocoon.components.url.ContextURLFactory.getURL(ContextURLFactory.java:98)
        at
org.apache.cocoon.components.url.URLFactoryImpl.getURL(URLFactoryImpl.java:116)
        at
org.apache.cocoon.components.source.SourceHandlerImpl.getSource(SourceHandlerImpl.java:181)
......

In the web.xml configuration file, I added the following lines:
---------------------------------------------------------------
...
<servlet>
	<servlet-name>maeFilterForm</servlet-name>
	<description>un servlet sencillo</description>

	<servlet-class>useOfTrax.MaeFilterFormServlet</servlet-class>
	<load-on-startup>5</load-on-startup>
</servlet>
<servlet-mapping>
      <servlet-name>maeFilterForm</servlet-name>
      <url-pattern>/servlet/maeff</url-pattern>
</servlet-mapping>
...

In the sitemap, inside pipeline:
-------------------------------
...
<map:match pattern="maeff">
	<map:read mime-type="text/html" src="context://servlet/maeff" /> 
</map:match>
...

The URL:
-------
http://<host>:<port>/MaeQueryPrototype/maeff
(MaeQueryPrototype is the project)

What Am I doing wrong?

Thanks in advance.

-- Mauro


-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: mauro@altersoft.com.ar
website: http://www.altersoft.com.ar


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>