• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

struts along with 0racle 10g Application Server - deploying ear file....

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i am using struts along with Oracle Application Server 10g.
When i deployed my application it throws the followingexceptions......


500 Internal Server Error
oracle.classloader.util.AnnotatedNoClassDefFoundError:

Missing class: org.apache.struts.action.Action

Dependent class: com.ats.swdms.metadata.frontaction.CreateBinAction
Loader: test4.root:0.0.0
Code-Source: /D:/product/10.1.3/OracleAS_1/j2ee/home/applications/test4/swdmsUtilrel1_0.jar
Configuration: manifest of /D:/product/10.1.3/OracleAS_1/j2ee/home/applications/test4/swdmsEJBrel1_0.jar

The missing class is available from the following locations:

1. Code-Source: /D:/product/10.1.3/OracleAS_1/j2ee/home/applications/test4/swdmsWARrel1_0/WEB-INF/lib/struts.jar (from WEB-INF/lib/ directory in D:\product\10.1.3\OracleAS_1\j2ee\home\applications\test4\swdmsWARrel1_0\WEB-INF\lib)
This code-source is available in loader test4.web.swdmsWARrel1_0:0.0.0. This is a child of the dependent loader test4.root:0.0.0.


2. Code-Source: /D:/product/10.1.3/OracleAS_1/j2ee/home/applications/tes12/struts.jar (from manifest of /D:/product/10.1.3/OracleAS_1/j2ee/home/applications/tes12/swdmsWARrel1_0/)
This code-source is available in loader tes12.web.swdmsWARrel1_0:0.0.0.

at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2247)
at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1457)
at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:642)
at oracle.classloader.PolicyClassLoader.askParentForClass(PolicyClassLoader.java:1284)
at oracle.classloader.SearchPolicy$AskParent.getClass(SearchPolicy.java:69)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1660)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:119)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:145)
at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:282)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:220)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Clearly the App server is not finding the Struts classes in its classpath. Check to make sure that the struts.jar fle as well as all other other jar files that came with the Struts download is in your WEB-INF/lib directory.
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic