logo       

problem with web.xml in Tomcat: msg#00010

java.enhydra.general

Subject: problem with web.xml in Tomcat

Greetings,

i'm trying to deploy my enhydra powered web application in Tomcat. Following the examples found in the ML archive, i've coded my web.xml in this way:

<web-app>
<servlet>
<servlet-name>
start
</servlet-name>
<servlet-class>
org.enhydra.Servlet
</servlet-class>
<init-param>
<param-name>ConfFile</param-name>
<param-value>path to conf</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>
start
</servlet-name>
<url-pattern>
/*
</url-pattern>
</servlet-mapping>
</web-app>


this works just fine with presentation objects, but for all non-enhydra calls (like images, css and js) are apparently incorrect and cannot be found by Tomcat.

i've tried to use "/*.po" in the url-pattern without any success.

Is there any solution that doesn't involve writing a servlet for images and stuff and mapping them to it or linking tomcat to apache?

thanks for your time and help!

Enrico

--
Enrico Drusiani

DATACODE s.r.l. - IT Know-how
Via S. Morse, 30 - 41100 Modena - Italy
Tel. +39 059 212831 Fax +39 059 4390212
E-mail: enrico@xxxxxxxxxxx
Web: www.datacode.it


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise