Hi
I am trying to configure struts 1.0.2 with weblogic 5.1 service pack 9. I 
have an webapp called presentation which contains many jsp files. The 
weblogic.properties file has a weblogic.httpd.documentRoot=./presentation/
setting which allows pages to be loaded without putting presentation in the 
path e.g I can type http://localhost/login.jsp to load the page.

In order to make the current setup work with struts, i created a WEB-INF 
directory and put all the required files in it. I created a helloworld.jsp 
which uses the bean:message tag of struts.
I added
weblogic.httpd.webApp.presentation=./presentation/
to the weblogic properties file.

The problem is if I load helloworld.jsp using the url 
http://localhost/helloworld.jsp, I get the following exception

Wed May 29 11:52:32 MDT 2002:<E> <ServletContext-General> Root cause of 
ServletException javax.servlet.jsp.JspException: Cannot find message 
resources under key org.apache.struts.action.MESSAGE
        at 
org.apache.struts.util.RequestUtils.message(RequestUtils.java:568)
        at 
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)
        at com.ereinsure.jsp._helloworld._jspService(_helloworld.java:83)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
        at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
        at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
        at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
        at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
        at 
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
        at 
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
        at 
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

however if i load it using the url 
http://localhost/presentation/helloworld.jsp then it works fine.

I am trying to use the struts framework for an existing application and 
would prefer to make it work without having to put presentation in the url 
because this is the only web application and its the default.
Is there a property in struts that i can set or in weblogic that would 
enable http://localhost/helloworld.jsp to work.

I am new to struts and would really appreciate any comment or help on this.

thanks,

Deepa.

_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to