You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by MacGill <fm...@dingoblue.net.au> on 2000/11/28 06:39:54 UTC

Orion 1.4.x and struts

G'Day

I am new to struts and am having trouble setting up on Orion which I
have used for a while
After going over the archives I have been unable to work out how to get
any of the nightly build going.

Any help or suggestions on my current problem would be great.

I have tried multiple builds (11/08, 11/10, 11/20, 11/27), just in case
it was a one off problem but to no avail.

Thanks MacGill

The Web Page error is

javax.servlet.jsp.JspException: Missing resources attribute
org.apache.struts.action.MESSAGE
 at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:232)

 at /index.jsp._jspService(/index.jsp.java:37) (JSP page line 8)
 at com.orionserver.http.OrionHttpJspPage.service(JAX)
 at com.evermind.server.http.HttpApplication.xi(JAX)
 at com.evermind.server.http.JSPServlet.service(JAX)
 at com.evermind.server.http.d5.sv(JAX)
 at com.evermind.server.http.d5.st(JAX)
 at com.evermind.server.http.eh.s0(JAX)
 at com.evermind.server.http.eh.do(JAX)
 at com.evermind.util.f.run(JAX)

The server output is

Orion/1.4.4 initialized
New org.apache.struts.example.User
Set org.apache.struts.example.User properties
New org.apache.struts.example.Subscription
Set org.apache.struts.example.Subscription properties
Call org.apache.struts.example.Subscription.setUser(User[username=user,
fullName=John Q. User])
Pop org.apache.struts.example.Subscription
New org.apache.struts.example.Subscription
Set org.apache.struts.example.Subscription properties
Call org.apache.struts.example.Subscription.setUser(User[username=user,
fullName=John Q. User])
Pop org.apache.struts.example.Subscription
Call
org.apache.struts.example.DatabaseServlet.addUser(User[username=user,
fullName=John Q. User])
Pop org.apache.struts.example.User
register('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN',
'jndi://C_/jakarta-struts/webapps/struts-example/WEB-INF/lib/struts.jar/org/apache/struts/resources/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://C_/jakarta-struts/webapps/struts-example/WEB-INF/lib/struts.jar/org/apache/struts/resources/struts-config_1_0.dtd'



The global application log file


28/11/00 16:32 Started
28/11/00 16:32 defaultWebApp: 1.4.4 Started
28/11/00 16:32 strutsExample: org.apache.struts.example.DatabaseServlet:
init
28/11/00 16:32 strutsExample: org.apache.struts.example.DatabaseServlet:
Initializing database servlet
28/11/00 16:32 strutsExample: org.apache.struts.example.DatabaseServlet:
Loading database from
'C:\jakarta-struts\webapps\struts-example\/WEB-INF/database.xml'
28/11/00 16:32 strutsExample: org.apache.struts.action.ActionServlet:
init
28/11/00 16:32 strutsExample: org.apache.struts.action.ActionServlet:
Loading application resources from resource
org.apache.struts.example.ApplicationResources
28/11/00 16:32 strutsExample: org.apache.struts.action.ActionServlet:
Initializing configuration from resource path /WEB-INF/struts-config.xml

28/11/00 16:32 strutsExample: Error preloading servlet
javax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xml
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:951)

 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:364)
 at javax.servlet.GenericServlet.init(GenericServlet.java)
 at com.evermind.server.http.HttpApplication.w0(JAX)
 at com.evermind.server.http.HttpApplication.wi(JAX)
 at com.evermind.server.http.HttpApplication.wt(JAX)
 at com.evermind.server.http.HttpApplication.v3(JAX)
 at com.evermind.server.http.HttpApplication.<init>(JAX)
 at com.evermind.server.Application.uq(JAX)
 at com.evermind.server.http.en.uq(JAX)
 at com.evermind.server.http.em.nl(JAX)
 at com.evermind.server.http.eh.s0(JAX)
 at com.evermind.server.http.eh.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:619)

 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:754)
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:948)

 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:364)
 at javax.servlet.GenericServlet.init(GenericServlet.java)
 at com.evermind.server.http.HttpApplication.w0(JAX)
 at com.evermind.server.http.HttpApplication.wi(JAX)
 at com.evermind.server.http.HttpApplication.wt(JAX)
 at com.evermind.server.http.HttpApplication.v3(JAX)
 at com.evermind.server.http.HttpApplication.<init>(JAX)
 at com.evermind.server.Application.uq(JAX)
 at com.evermind.server.http.en.uq(JAX)
 at com.evermind.server.http.em.nl(JAX)
 at com.evermind.server.http.eh.s0(JAX)
 at com.evermind.server.http.eh.do(JAX)
 at com.evermind.util.f.run(JAX)
28/11/00 16:32 strutsExample: 1.4.4 Started
28/11/00 16:32 strutsExample: org.apache.struts.action.ActionServlet:
Finalizing this controller servlet
28/11/00 16:32 strutsExample: Servlet error
javax.servlet.jsp.JspException: Missing resources attribute
org.apache.struts.action.MESSAGE
 at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:232)

 at /index.jsp._jspService(/index.jsp.java:37) (JSP page line 8)
 at com.orionserver.http.OrionHttpJspPage.service(JAX)
 at com.evermind.server.http.HttpApplication.xi(JAX)
 at com.evermind.server.http.JSPServlet.service(JAX)
 at com.evermind.server.http.d5.sv(JAX)
 at com.evermind.server.http.d5.st(JAX)
 at com.evermind.server.http.eh.s0(JAX)
 at com.evermind.server.http.eh.do(JAX)
 at com.evermind.util.f.run(JAX)