This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching Games and have Dana Pylayeva on-line!
See this thread for details.
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Struts with weblogic7.0

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I copied rr-lesson-1.war file in weblogic folder like C:\bea\user_projects\mydomain\applications
and i start weblogic server ...
When i run this struts files in my webbrowser
http://localhost:7001/rr-lesson-1/index.jsp
i got the ERROR like this

java.lang.NoClassDefFoundError: org/apache/commons/validator/ValidatorResources
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getDeclaredMethods(Class.java:1039)
at java.beans.Introspector$1.run(Introspector.java:852)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
at java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
at java.beans.Introspector.getBeanInfo(Introspector.java:294)
at java.beans.Introspector.<init>(Introspector.java:276)
at java.beans.Introspector.getBeanInfo(Introspector.java:128)
at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1140)
at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:1078)
at weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:212)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:154)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:5002)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4840)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4686)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2192)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1978)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1851)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:212)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:348)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:206)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:160)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:447)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:287)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
So how can i rectify this solve ...looks very simple but dont know how to handle this ERROR..
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Assuming that you are using Struts 1.1 RC2 then you should have the following jars in your war's lib directory:
  • commons-beanutils.jar
  • commons-collections.jar
  • commons-digester.jar
  • commons-fileupload.jar
  • commons-lang.jar
  • commons-logging.jar
  • commons-validator.jar
  • jakarta-oro.jar
  • struts.jar
  • struts-legacy.jar


  • Your error is being caused by a missing commons-validator.jar file, however you should check to make sure all of the other jars exist as well.
     
    Graham Thorpe
    Ranch Hand
    Posts: 265
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi mathew....

    When i run this war file using weblogic7.0 its not created default directory.so how can i add that jar file in my weblogic7.0.

    But when i run tomcat server its running fine and getting goodresults also but where as in WEBLOGIC7.0 i getting that problem .....
     
    Chris Mathews
    Ranch Hand
    Posts: 2713
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    You need to add the jars to your war's lib directory... you can use any zip utility such as WinZip to open and view your war's contents.
     
    Greenhorn
    Posts: 21
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Just continuing with the topic....
    Having been able to call a demo EJB from a JSP( with help from this forum), I now need to use the Struts framework with Weblogic 6.0 , 7.0. I guess Struts 1.0.3 is a stable version which i should use(->comments?).
    Could anyone guide me with the steps to setup struts with WL 6.0, 7.0 and test the setup.
     
    There is no greater crime than stealing somebody's best friend. I miss you 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