|
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) |
- RE: still can't get struts working w/ orion 1.4.5 G.L. Grobe
- RE: still can't get struts working w/ orion 1.4.5 Christian Billen
- Problem starting up Orion, Please help! Roland Dong
- RE: Problem starting up Orion, Please help! elephantwalker
- Re: Problem starting up Orion, Please help! Gabriel Ciuloaica
- RE: Problem starting up Orion, Please h... Roland Dong
- RE: Problem starting up Orion, Ple... John D'Ausilio
