Page 1 of 2 12 LastLast
Results 1 to 20 of 39
  1. #1
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default hello.jsp error 500 urgent help

    I am trying to do the Helloworld webwork program. The code can be found at
    I am new to jsp and webwork..
    WebWork - WebWork - Lesson 1 - Setting up webwork in a web application

    I am getting error as HTTP 500 error as
    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/opensymphony/xwork/util/OgnlValueStack
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:268)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    org.apache.struts2.dispatcher.FilterDispatcher.doF ilter(FilterDispatcher.java:389)

    root cause

    java.lang.NoClassDefFoundError: com/opensymphony/xwork/util/OgnlValueStack
    java.lang.Class.getDeclaredMethods0(Native Method)
    java.lang.Class.privateGetDeclaredMethods(Class.ja va:2427)
    java.lang.Class.getDeclaredMethods(Class.java:1791 )
    java.beans.Introspector$1.run(Introspector.java:12 87)
    java.security.AccessController.doPrivileged(Native Method)
    java.beans.Introspector.getPublicDeclaredMethods(I ntrospector.java:1285)
    java.beans.Introspector.getTargetMethodInfo(Intros pector.java:1151)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:402)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:168)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:229)
    java.beans.Introspector.<init>(Introspector.java:3 83)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:168)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:229)
    java.beans.Introspector.<init>(Introspector.java:3 83)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:168)
    org.apache.jasper.compiler.Generator$TagHandlerInf o.<init>(Generator.java:3890)
    org.apache.jasper.compiler.Generator$GenerateVisit or.getTagHandlerInfo(Generator.java:2157)
    org.apache.jasper.compiler.Generator$GenerateVisit or.visit(Generator.java:1630)
    org.apache.jasper.compiler.Node$CustomTag.accept(N ode.java:1530)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2361)
    org.apache.jasper.compiler.Node$Visitor.visitBody( Node.java:2411)
    org.apache.jasper.compiler.Node$Visitor.visit(Node .java:2417)
    org.apache.jasper.compiler.Node$Root.accept(Node.j ava:495)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2361)
    org.apache.jasper.compiler.Generator.generate(Gene rator.java:3442)
    org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:231)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:347)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:327)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:314)
    org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:592)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:326)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    org.apache.struts2.dispatcher.FilterDispatcher.doF ilter(FilterDispatcher.java:389)

    root cause

    java.lang.ClassNotFoundException: com.opensymphony.xwork.util.OgnlValueStack
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1680)
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1526)
    java.lang.Class.getDeclaredMethods0(Native Method)
    java.lang.Class.privateGetDeclaredMethods(Class.ja va:2427)
    java.lang.Class.getDeclaredMethods(Class.java:1791 )
    java.beans.Introspector$1.run(Introspector.java:12 87)
    java.security.AccessController.doPrivileged(Native Method)
    java.beans.Introspector.getPublicDeclaredMethods(I ntrospector.java:1285)
    java.beans.Introspector.getTargetMethodInfo(Intros pector.java:1151)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:402)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:168)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:229)
    java.beans.Introspector.<init>(Introspector.java:3 83)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:168)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:229)
    java.beans.Introspector.<init>(Introspector.java:3 83)
    java.beans.Introspector.getBeanInfo(Introspector.j ava:168)
    org.apache.jasper.compiler.Generator$TagHandlerInf o.<init>(Generator.java:3890)
    org.apache.jasper.compiler.Generator$GenerateVisit or.getTagHandlerInfo(Generator.java:2157)
    org.apache.jasper.compiler.Generator$GenerateVisit or.visit(Generator.java:1630)
    org.apache.jasper.compiler.Node$CustomTag.accept(N ode.java:1530)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2361)
    org.apache.jasper.compiler.Node$Visitor.visitBody( Node.java:2411)
    org.apache.jasper.compiler.Node$Visitor.visit(Node .java:2417)
    org.apache.jasper.compiler.Node$Root.accept(Node.j ava:495)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2361)
    org.apache.jasper.compiler.Generator.generate(Gene rator.java:3442)
    org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:231)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:347)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:327)
    org.apache.jasper.compiler.Compiler.compile(Compil er.java:314)
    org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:592)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:326)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    org.apache.struts2.dispatcher.FilterDispatcher.doF ilter(FilterDispatcher.java:389)

    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.


    Please Help, m trying since 2 days to resolve it..... :confused::confused:

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    One of the steps in your tutorial says you should

    "copy lib/core/*.jar to [webapp]/WEB-INF/lib". Did you do that?

  3. #3
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default Did included.

    i copied all jars files from it... but still same error.... :(

    plz help

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    The error message you are getting means that you are missing a jar file (one that has something to do with xwork) from your classpath which in this case is your [webapp]/WEB-INF/lib. Are you sure you have a jar file that has something to do with xwork in your [webapp]/WEB-INF/lib?

  5. #5
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default my environment variable desc

    My environment variables are set as:::

    User variable

    name: JAVA_HOME
    value:C:\Program Files\Java\jdk1.6.0_20

    name:path
    value:C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\Program Files\Java\jdk1.6.0_20\bin;.;

    System variables:

    name: CATALINA_HOME
    value:C:\Program Files\Apache Software Foundation\Tomcat 6.0

    name:classpath
    value:C:\Program Files\Java\jre1.6.0_07;C:\Program Files\Java\jre1.6.0_07;C:\Documents and Settings\MBurnwal\IdeaProjects;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\bootstrap.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\tomcat-juli.jar;C:\Program Files\Apache Software Foundation\Tomcat 6.0\common\lib\servlet-api.jar;C:\Program Files\Java\jdk1.6.0_20\lib\tools.jar;.;

    name:JAVA_HOME
    value:C:\Program Files\Java\jdk1.6.0_20

    name:path
    value:%SystemRoot%\system32;%SystemRoot%;%SystemRo ot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_20\bin;%path%;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\tomcat-juli.jar;.;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;

    plz help

  6. #6
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    No, this has nothing to do with your environment variables.
    Read my reply above again.

  7. #7
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default error changed

    now m getting this error::

    HTTP Status 500 -

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: java.lang.NullPointerException
    org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:536)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:368)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    org.apache.struts2.dispatcher.FilterDispatcher.doF ilter(FilterDispatcher.java:389)

    root cause

    java.lang.NullPointerException
    org.apache.jsp.hello_jsp._jspInit(hello_jsp.java:2 5)
    org.apache.jasper.runtime.HttpJspBase.init(HttpJsp Base.java:52)
    org.apache.jasper.servlet.JspServletWrapper.getSer vlet(JspServletWrapper.java:164)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:338)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    org.apache.struts2.dispatcher.FilterDispatcher.doF ilter(FilterDispatcher.java:389)

    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.32 logs.

  8. #8
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default

    I read your reply.. but can you please mention which jar files... its small application.. plz help me in it.

  9. #9
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Do you have a jar file called xwork.jar (or similar) in your application's WEB-INF/lib?

  10. #10
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default

    i have

    xwork-1.0.5.jar
    xwork-2.0.4-sources.jar
    inside WEB-INF/lib

  11. #11
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Quote Originally Posted by mburnwal View Post
    now m getting this error::

    HTTP Status 500 -

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: java.lang.NullPointerException
    org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:536)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:368)
    ....
    When does this happen? Do you have a JSP that you are trying to access? What is the code for the JSP.

    Also make sure that you don't have different versions of the same jar file in your WEB-Inf/lib

  12. #12
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default

    i have 2 xwork jar files


    xwork-2.0.4-sources
    xwork-1.0.1

    webwork-config-browser
    webwork-2.2.7
    webwork-src-2.2.7


    which one should i delete, plz tell me..

    my hello.jsp files and all other files are located in site::

    WebWork - WebWork - Lesson 1 - Setting up webwork in a web application

  13. #13
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default

    i have this jar file also

    xwork-2.0.4-sources
    xwork-2.0.4-sources
    xwork-1.0.1

    webwork-config-browser
    webwork-2.2.7
    webwork-src-2.2.7

  14. #14
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default

    this happens when i am running hello.jsp to browser its showing this error.

  15. #15
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default

    i am using Intellij IDEA IDE for this... and my directory layout is

    CoreJava
    .idea
    lib
    META-INF
    out
    src
    META-INF
    sample
    webwork
    HelloWorld.mxml
    struts.xml
    src
    web
    WEB-INF
    classes
    validators.xml
    webwork.properties
    xwork.xml
    lib
    ant-junit-1.6.1.jar
    aopalliance.jar
    c3p0-0.8.4.5.jar
    cglib-full-2.0.1.jar
    commons-collections-2.1.1.jar
    commons-fileupload-1.0.jar
    commons-lang-1.0.1.jar
    commons-logging-1.0.4.jar
    dom4j-1.4.jar
    ehcache-0.9.jar
    ejb-api.jar
    hibernate-2.1.6.jar
    hsqldb.jar
    jsdk23.jar
    jta-api.jar
    junit-3.8.1.jar
    log4j-1.2.8.jar
    mail.jar
    mockobjects-alt-jdk1.3.jar
    mockobjects-core.jar
    mockobjects-jdk1.3.jar
    odmg-3.0.jar
    ognl-2.6.5.jar
    oscore-2.2.4.jar
    servlet-2.3.jar
    sitemesh-2.2.1.jar
    velocity-dep-1.3.1.jar
    webwork-2.2.7.jar
    webwork-config-browser.jar
    webwork-src-2.2.7.jar
    xwork-1.0.1.jar
    xwork-2.0.4-sources.jar
    appengine-web.xml
    applicationContext.xml
    dispatcher-servlet.xml
    struts-config.xml
    web.xml
    webwork-2.2.7.jar
    webwork-src-2.2.7.jar
    webwork.tld
    hello.jsp
    index.jsp
    test.jsp
    CoreJava.iml
    flex-compiler-config.xml
    pom.xml

  16. #16
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Post the code for the JSP

  17. #17
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default

    hello.jsp

    <html>
    <body>
    Hello html world
    <hr/>
    <%
    out.println("Hello jsp world.");
    %>
    </body>
    </html>

  18. #18
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    Go through the steps mentioned in your lesson again. Most likely you missed a step (the same way you initially missed the step about copying jar files)

  19. #19
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

    Default thank u

    actually i m thinking to rebuilt the whole application again... may starting wid installaton parts.. ;-)

    I will surely put the success of it soon. thnxx a lot :)

  20. #20
    mburnwal is offline Member
    Join Date
    Mar 2011
    Posts
    27
    Rep Power
    0

Page 1 of 2 12 LastLast

Similar Threads

  1. I need help is very urgent
    By ramroum in forum Java Applets
    Replies: 15
    Last Post: 06-27-2010, 03:08 AM
  2. [URGENT]SHA Encryption System...need urgent helps
    By java_idiot in forum New To Java
    Replies: 6
    Last Post: 05-02-2010, 10:04 AM
  3. ERROR DEPLOYING WEB APPLET......help needed urgent
    By bonjovi4u in forum Java Applets
    Replies: 1
    Last Post: 03-16-2010, 03:16 PM
  4. Help Urgent
    By jammyjamsticy in forum Java 2D
    Replies: 2
    Last Post: 04-06-2009, 07:31 AM
  5. Help me ...urgent!
    By googgoo in forum New To Java
    Replies: 7
    Last Post: 04-05-2008, 08:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •