This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts web component in an EAR file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts web component in an EAR file?" Watch "Struts web component in an EAR file?" New topic
Author

Struts web component in an EAR file?

A Harry
Ranch Hand

Joined: Jan 23, 2002
Posts: 124
Can you have a struts web component in an EAR file along with EJB's?

Using WL 8.1 (sp3) on win 2000 (sp4)

I have a web app ear file that contains 1 struts web module & 7 ejb modules. It deploys to the web server fine but when I start the web server up, the EJB's are loaded correctly but the web component throws this exception (PRDWeb being the name of the web component) -

<Servlet: "action" failed to preload on startup in Web application: "PRDWeb".
javax.servlet.ServletException
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:909)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:873)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:812)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3281)
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3226)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3207)
at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5737)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:874)
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2106)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2147)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2434)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2352)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2136)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2235)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2130)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2315)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>

The top part of my web.xml file looks like this -

<web-app>

<display-name>Project Report Database</display-name>

<servlet>

<servlet-name>action</servlet-name>

<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
.......

I think it's the ActionServlet it's having problem with? even though the struts.jar file is in the WEB-INF/lib!

Any ideas? this has me completely stumped!!!

thanks

harry
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts web component in an EAR file?
 
Similar Threads
Struts application. Environment variables Problem it seems!
run the structs program
Web service on weblogic
Deploying MDB in web application
Problem in accessing the Action class