p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning JavaServer Pages (http://p2p.wrox.com/forumdisplay.php?f=162)
-   -   chapter 18 webwork example not working (http://p2p.wrox.com/showthread.php?t=29520)

resolutions May 19th, 2005 12:45 PM

chapter 18 webwork example not working
 
ok - I'm just trying to follow the example this time. I found and downloaded webwork 1.4 so I could follow the example, Im running Tomcat 5.5 - I added the webwork-skeleton through tomcat admin, and got to the index when it was added. When I clicked the Form Test link, I get...


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

javax.servlet.ServletException: Servlet execution threw an exception


root cause

java.lang.ThreadDeath
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1221)
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1181)
    java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
    webwork.dispatcher.ServletDispatcher.wrapRequest(S ervletDispatcher.java:268)
    webwork.dispatcher.ServletDispatcher.service(Servl etDispatcher.java:160)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)


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


--------------------------------------------------------------------------------

Apache Tomcat/5.5.9

someone please help - I'm trying this because I can't get a custom java class working (say's its undefined even though it's packaged and "warred" properly)


diegoborgh May 26th, 2005 11:33 PM

Hi resolutions,

I had the same problem as you do with chapter 18 examples in Tomcat.
I did open the application in netBeans, and it works great. You have to import the application to make it work, if you go to help, tutorials, project import guide, it will guide you how to do it, it's pretty easy.

Good luck!

hunghung November 1st, 2005 11:25 PM

Hi Resolutions .
I've met this problem too . After I deploy webwork_skeleton application following steps in the book , i restart tomcat server . It run no problem .



All times are GMT -4. The time now is 06:56 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.