Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 1st, 2004, 10:21 PM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot figure out how to fix error in Tomcat 5

My program works fine at school and everything runs properly, but whenever I try and run it at home on my laptop i get an error message. Would anyone be able to help me?
This is the error message i get:

type Exception report

message

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

exception

javax.servlet.ServletException: Error allocating a servlet instance
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:118)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:683)
    java.lang.Thread.run(Unknown Source)


root cause

java.lang.NoClassDefFoundError: Illegal name: a3classes/BooksServlet
    java.lang.ClassLoader.defineClass(Unknown Source)
    java.security.SecureClassLoader.defineClass(Unknow n Source)
    org.apache.catalina.loader.WebappClassLoader.findC lassInternal(WebappClassLoader.java:1634)
    org.apache.catalina.loader.WebappClassLoader.findC lass(WebappClassLoader.java:860)
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1307)
    org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1189)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:118)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(Co yoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.processConnection(Http11Protocol.jav a:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(P oolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlR unnable.run(ThreadPool.java:683)
    java.lang.Thread.run(Unknown Source)


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


Everything in my system is the same as the one at school. Except at school I use Tomcat 4.

 
Old December 4th, 2004, 03:14 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It may be your servlet mapping, the default is /servlet/yourPage (I think), i see you are using a different folder for this servlet. There is another thread in here somewhere that goes into servlet mapping, alternatively look at the tomcat documentation.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in Figure 7-9? davx92 BOOK: Professional Assembly Language 1 January 10th, 2010 07:41 AM
Fix Error sgafar ASP.NET 1.0 and 1.1 Basics 0 May 30th, 2007 10:22 AM
SQL Syntax Error I can't figure out Syster Tara Classic ASP Basics 24 December 2nd, 2006 05:09 PM
how to fix this Parser Error Message? method ASP.NET 1.0 and 1.1 Basics 0 May 25th, 2005 11:09 AM





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