You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Olli Pöyry <ol...@iki.fi> on 2000/11/21 09:51:08 UTC

Strugs & Orion & JNDI

The following error that occurs in ActionServlet's startup with the newest
Struts nightly build and Orion:

register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jndi:/home/jblum/web/struts/WEB-INF/lib/struts.jar/org/apache/struts/resour
ces/struts-config_1_0.dtd'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
 Resolving to alternate DTD
'jndi:/home/jblum/web/struts/WEB-INF/lib/struts.jar/org/apache/struts/resour
ces/struts-config_1_0.dtd'

seems be caused from the following line in ActionServlet.java (about line
881):

            URL url = this.getClass().getResource(registrations[i+1]);

when this is replaced with:

		URL url = getServletContext().getResource(registrations[i+1]);

the dtd is found and everything works.
However you have to rebuild struts.jar - but that is easy ant.

Hope this helps!

Olli Pöyry, Essaim Oy, Helsinki, Finland