Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can´t initialize struts on WebLogic 5.1

Status
Not open for further replies.

forrozeiro

Programmer
Sep 1, 2001
38
0
0
BR
Hi,
When I start the WebLogic 5.1 SP12 server, on which I´ve deployed an application that uses Struts 1.1, I get the exception below. On Tomcat 5 it works fine. I´ve tried either deploing an war file or an expanded directory.
Any Help ?
Thnx.

Ter Mai 25 14:29:34 GMT 2004:<E> <HTTP> Error creating servlet context for Web application 'c:/weblogic/myserver/webapps/globoEnvTest.war'
java.lang.NullPointerException
at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577)
at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:499)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:453)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:442)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:361)
at weblogic.servlet.internal.ServletContextImpl.preloadServlet(ServletCo
ntextImpl.java:752)
at weblogic.servlet.internal.ServletContextImpl.preloadServlets(ServletC
ontextImpl.java:726)
at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:683)
at weblogic.t3.srvr.HttpServer.start(HttpServer.java:479)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1393)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:140)
at weblogic.Server.main(Server.java:97)
at weblogic.Server.main(Server.java:58)
 
Did you figure this out? I am having the exact same problem and have not found a solution.
 
domind,

Yes, I did figure this out but forgot to write the solution here... sorry.
Well, I step into the struts source and realized that the exception was due to a class loader problem. The version 5.1 of WebLogic doesn´t automaticaly find the classes deployed in your application as one could expect. So I put my application classes and jars used (struts jars included) in the server classpath and now it works.

Good luck :)
forrozeiro.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top