Yeah, same here. I noticed that when I use tomcat I get this message:
Resolving to alternate DTD
'jar:file:/usr/local/jakarta-tomcat/webapps/struts-upload/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
But when I use orion it says this:
Resolving to alternate DTD
'jndi:/usr/local/orion/lib/struts.jar/org/apache/struts/resources/struts-config_1_0.dtd'
End event threw exception
The difference is it says 'jar:file:/' in tomcat and 'jndi"/' in orion. Anyone
know why this is?
Alan Yackel
Christian Billen wrote:
> I had the same problem with Orion 1.4.7 and Struts 1.0beta (today's build),
> here's how I got it to work:
>
> You have to remove all the tlds from WEB-INF/lib/struts.jar that are under
> org.apache.struts.resources and put them under
> WEB-INF/classes/org/apache/struts/resources. Don't just copy them, they
> have to disapear from your struts.jar
>
> Took care of my issue, a bit annoying we have to do this but looks more like
> a bug in Orion than in Struts. Any comments on this?
>
> Christian
>
> > -----Original Message-----
> > From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 07, 2001 2:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: can't get struts working w/ orion ...
> >
> >
> > After reading this, could it be that I don't have my ActionServlet
> > installed.
> > I thought I'd be able to just test the taglibs in a very simple
> > configuration.
> > Just started learning struts. I'm using orion server 1.4.5. I've got
> > the struts.jar in my ~/WEB-INF/lib dir and have listed the taglibs
> > in the ~/WEB-INF/web.xml file as well as included all the *.tld files
> > in this same dir.
> >
> > <taglib>
> > <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> > <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> > </taglib>
> > <taglib>
> > <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> > <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> > </taglib>
> > ...
> >
> > When running the following page (or even just browsing to
> > http://localhost:80 to see if the orion server is running), I get
> > the error listed at the bottom of this page. I've also got a file
> > called 'myProps.properties' packaged under the
> > ~/WEB-INF/classes/com.neuroquest.cais.resources dir. (i think i've
> > got this right as resources is a dir name and i've got a file called
> > myProps.properties in it, though I don't see how orion knows about
> > this file just cause it's in this dir).
> >
> > -------- index.jsp -----------------------------------
> >
> > <%@ page language="java" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <html:html>
> > <head>
> > <title>
> > <bean:message key="main.title" />
> > </title>
> > </head>
> > <body>
> > <html:errors />
> > This is a atest.
> > </body>
> > </html:html>
> >
> > -------- web.xml -----------------------------------
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> >
> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> > 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> >
> > <web-app>
> >
> > <servlet>
> > <servlet-name>action</servlet-name>
> > <servlet-class>
> > org.apache.struts.action.ActionServlet
> > </servlet-class>
> > <init-param>
> > <param-name>application</param-name>
> > <param-value>com.neuroquest.cais.resources</param-value>
> > </init-param>
> > </servlet>
> >
> > <welcome-file-list>
> > <welcome-file>index.jsp</welcome-file>
> > </welcome-file-list>
> >
> > <taglib>
> > <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> > <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> > </taglib>
> >
> > <taglib>
> > <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> > <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> > </taglib>
> >
> > <taglib>
> > <taglib-uri>/WEB-INF/struts-form.tld</taglib-uri>
> > <taglib-location>/WEB-INF/struts-form.tld</taglib-location>
> > </taglib>
> >
> > <taglib>
> > <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> > <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> > </taglib>
> >
> > <taglib>
> > <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
> > <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
> > </taglib>
> >
> > <taglib>
> > <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
> > <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
> > </taglib>
> >
> > </web-app>
> >
> > ----------- error output -------------------------
> >
> > 500 Internal Server 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, Compiled
> > Code) at
> > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
> > Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code)
> > at com.orionserver.http.OrionHttpJspPage.service(JAX, Compiled Code)
> > at com.evermind.server.http.HttpApplication.xj(JAX, Compiled Code)
> > at com.evermind.server.http.JSPServlet.service(JAX, Compiled Code)
> > at com.evermind.server.http.d3.sw(JAX, Compiled Code)
> > at com.evermind.server.http.d3.su(JAX, Compiled Code)
> > at com.evermind.server.http.ef.s1(JAX, Compiled Code)
> > at com.evermind.server.http.ef.do(JAX, Compiled Code)
> > at com.evermind.util.f.run(JAX, Compiled Code)
> >
> >
> >