You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steven Williams <sw...@bigpond.net.au> on 2001/03/22 02:13:19 UTC

Newbie question

Hi,

I am trying to get struts-example running on Orion Server 1.4.5 on Win2K. I moved the struts-config.xml file and changed web.xml as specified in the installation instructions but I still get an error when I try to access the application (see error log below). It seems that when the Action servlet calls register on the Digester in initDigester for each element of the registrations array it passes urls like jndi://C_/jakarta-struts-1.0-b1/webapps/struts-example/WEB-INF/lib/struts.jar/org/apache/struts/resources/struts-config_1_0.dtd as the alternative url. Does anybody know how I can fix this?

Thanks in advance
Steve Williams

22/03/01 10:00 strutsExample: org.apache.struts.example.DatabaseServlet: init
22/03/01 10:00 strutsExample: org.apache.struts.example.DatabaseServlet: Initializing database servlet
22/03/01 10:00 strutsExample: org.apache.struts.example.DatabaseServlet: Loading database from '/WEB-INF/database.xml'
22/03/01 10:00 strutsExample: org.apache.struts.action.ActionServlet: init
22/03/01 10:00 strutsExample: org.apache.struts.action.ActionServlet: Loading application resources from resource org.apache.struts.example.ApplicationResources
22/03/01 10:00 strutsExample: org.apache.struts.action.ActionServlet: Initializing configuration from resource path /struts-config.xml
22/03/01 10:00 strutsExample: Error preloading servlet
javax.servlet.ServletException: Parsing error processing resource path /struts-config.xml
 at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1306)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
 at javax.servlet.GenericServlet.init(GenericServlet.java:232)
 at com.evermind.server.http.HttpApplication.w1(JAX)
 at com.evermind.server.http.HttpApplication.wj(JAX)
 at com.evermind.server.http.HttpApplication.wu(JAX)
 at com.evermind.server.http.HttpApplication.v4(JAX)
 at com.evermind.server.http.HttpApplication.<init>(JAX)
 at com.evermind.server.Application.ur(JAX)
 at com.evermind.server.http.el.ur(JAX)
 at com.evermind.server.http.ek.nm(JAX)
 at com.evermind.server.http.ef.s1(JAX)
 at com.evermind.server.http.ef.do(JAX)
 at com.evermind.util.f.run(JAX)
Root cause is; java.net.MalformedURLException: unknown protocol: jndi
 at org.apache.struts.digester.Digester.resolveEntity(Digester.java:581)
 at com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:46)
 at com.sun.xml.parser.Parser.pushReader(Parser.java:2768)
 at com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2504)
 at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
 at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
 at com.sun.xml.parser.Parser.parse(Parser.java:284)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
 at org.apache.struts.digester.Digester.parse(Digester.java:716)
 at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1301)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
 at javax.servlet.GenericServlet.init(GenericServlet.java:232)
 at com.evermind.server.http.HttpApplication.w1(JAX)
 at com.evermind.server.http.HttpApplication.wj(JAX)
 at com.evermind.server.http.HttpApplication.wu(JAX)
 at com.evermind.server.http.HttpApplication.v4(JAX)
 at com.evermind.server.http.HttpApplication.<init>(JAX)
 at com.evermind.server.Application.ur(JAX)
 at com.evermind.server.http.el.ur(JAX)
 at com.evermind.server.http.ek.nm(JAX)
 at com.evermind.server.http.ef.s1(JAX)
 at com.evermind.server.http.ef.do(JAX)
 at com.evermind.util.f.run(JAX)
22/03/01 10:00 strutsExample: 1.4.5 Started
22/03/01 10:00 strutsExample: org.apache.struts.action.ActionServlet: Finalizing this controller servlet
22/03/01 10:00 strutsExample: Servlet error
javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE
 at org.apache.struts.util.RequestUtils.message(RequestUtils.java:285)
 at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)
 at /index.jsp._jspService(/index.jsp.java:53) (JSP page line 8)
 at com.orionserver.http.OrionHttpJspPage.service(JAX)
 at com.evermind.server.http.HttpApplication.xj(JAX)
 at com.evermind.server.http.JSPServlet.service(JAX)
 at com.evermind.server.http.d3.sw(JAX)
 at com.evermind.server.http.d3.su(JAX)
 at com.evermind.server.http.ef.s1(JAX)
 at com.evermind.server.http.ef.do(JAX)
 at com.evermind.util.f.run(JAX)