This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts web component in an EAR file?" Watch "Struts web component in an EAR file?" New topic

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".
at weblogic.servlet.internal.ServletStubImpl.createServlet(
at weblogic.servlet.internal.ServletStubImpl.createInstances(
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(
at weblogic.servlet.internal.WebAppServletContext.preloadServlets(
at weblogic.servlet.internal.WebAppServletContext.preloadResources(
at weblogic.servlet.internal.WebAppServletContext.setStarted(
at weblogic.servlet.internal.WebAppModule.start(
at weblogic.j2ee.J2EEApplicationContainer.start(
at weblogic.j2ee.J2EEApplicationContainer.activate(
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(
at weblogic.kernel.ExecuteThread.execute(

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


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




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!!!


I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Struts web component in an EAR file?
It's not a secret anymore!