cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauro Daniel Ardolino <ma...@altersoft.com.ar>
Subject Problems running servlets under cocoon
Date Wed, 16 Oct 2002 16:30:38 GMT
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message