I've just started using orion and ran into a prob using the struts MVC. I
mailed the struts user group about this error and they reported back the
following.

The problem is that the Orion classloader does not implement
getResourceAsStream().  It's been logged in Orion's bugzilla.

Does anyone know about the status of this or know a workaround. I wasn't
able to find it in the database.

-----------------------------------------------------

> I'm using orion server 1.4.5. I've got
> 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 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, I get the error list down below:
> I've also got a file called 'myProps.properties' packaged under the
> ~/WEB-INF/classes/com.mydir1/mydir2/resources 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>
>
> ----------- 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)
>
> Any help much appreciated



Reply via email to