Re: NoClassDefFoundError and I have all the right jar files
"Thomas Wheeler" <[email protected]> Wed, 21 Apr 2010 16:24:30 -0500
| Newsgroups | gmane.comp.web.maverick.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============5437003847119023854== Content-Class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CAE199.08490AB0" This is a multi-part message in MIME format. ------_=_NextPart_001_01CAE199.08490AB0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Angela, =20 As I recall, Tomcat gives you several places to dump jar files: there's the webapp's WEB-INF/lib/ directory, Tomcat's common/lib/ directory, and shared/lib. My general rule was to put everything related to the application into the webapp's lib/ whenever possible. =20 Also, Tomcat ignores your CLASSPATH, so don't rely on that for loading classes. And make sure your JAVA_HOME is set correctly (best to point it to a JDK instead of just a JRE). =20 Disclaimer: It's been a while since I've done anything with Tomcat. So take this advice with a shaker or so of salt. :) =20 Regards, Thomas ________________________________ From: Angela Day [mailto:[email protected]]=20 Sent: Wednesday, April 21, 2010 3:41 PM To: [email protected] Subject: [Mav-user] NoClassDefFoundError and I have all the right jar files =09 =09 I am getting the following error when I try to run my application javax.servlet.ServletException: Servlet.init() for servlet dispatcher threw exception =09 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) =09 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 74) =09 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 3) =09 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) =09 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) =09 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) =09 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:689) java.lang.Thread.run(Thread.java:595) root cause=20 java.lang.NoClassDefFoundError =09 org.infohazard.maverick.flow.Loader.loadDocument(Loader.java:140) org.infohazard.maverick.flow.Loader.<init>(Loader.java:88) =09 org.infohazard.maverick.Dispatcher.reloadConfig(Dispatcher.java:239) tdhca.maverick.Dispatcher.reloadConfig(Dispatcher.java:287) org.infohazard.maverick.Dispatcher.init(Dispatcher.java:159) tdhca.maverick.Dispatcher.init(Dispatcher.java:309) javax.servlet.GenericServlet.init(GenericServlet.java:212) =09 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) =09 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 74) =09 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 3) =09 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) =09 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) =09 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) =09 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:689) java.lang.Thread.run(Thread.java:595) I am running: Torque 3.3 Java 1.5 Maverick 2.2.4 Ant 1.8.0 Velocity 1.3 Tomcat 5.5.28 Eclipse 3.5.1 JSP 1.2 JDOM 1.1.1 commonts_logging 1.1 jdom 1.1.1 commons-beanutils 1.7.0 commons-collections 3.2 Any help you can give would be greatly appreciated! Thanks, =20 Angela Day National Autism Association of Central Texas http://www.naacentraltexas.org =09 =09 =09 ------_=_NextPart_001_01CAE199.08490AB0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Dus-ascii" = http-equiv=3DContent-Type> <STYLE type=3Dtext/css>DIV { MARGIN: 0px } </STYLE> <META name=3DGENERATOR content=3D"MSHTML 8.00.6001.18904"></HEAD> <BODY> <DIV dir=3Dltr align=3Dleft><SPAN class=3D159581321-21042010><FONT = color=3D#0000ff=20 size=3D2 face=3DGeorgia>Angela,</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D159581321-21042010><FONT = color=3D#0000ff=20 size=3D2 face=3DGeorgia></FONT></SPAN> </DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D159581321-21042010><FONT = color=3D#0000ff=20 size=3D2 face=3DGeorgia>As I recall, Tomcat gives you several places to = dump jar=20 files: there's the webapp's WEB-INF/lib/ directory, = Tomcat's common/lib/=20 directory, and shared/lib. My general rule was to put everything related = to the=20 application into the webapp's lib/ whenever = possible.</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D159581321-21042010><FONT = color=3D#0000ff=20 size=3D2 face=3DGeorgia></FONT></SPAN> </DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D159581321-21042010><FONT = color=3D#0000ff=20 size=3D2 face=3DGeorgia>Also, Tomcat ignores your CLASSPATH, so don't = rely on that=20 for loading classes. And make sure your JAVA_HOME is set correctly (best = to=20 point it to a JDK instead of just a JRE).</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D159581321-21042010><FONT = color=3D#0000ff=20 size=3D2 face=3DGeorgia></FONT></SPAN> </DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D159581321-21042010><FONT = color=3D#0000ff=20 size=3D2 face=3DGeorgia>Disclaimer: It's been a while since I've done = anything with=20 Tomcat. So take this advice with a shaker or so of salt.=20 :)</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D159581321-21042010><FONT = color=3D#0000ff=20 size=3D2 face=3DGeorgia></FONT></SPAN> </DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D159581321-21042010><FONT = color=3D#0000ff=20 size=3D2 face=3DGeorgia>Regards,</FONT></SPAN></DIV> <DIV dir=3Dltr align=3Dleft><SPAN class=3D159581321-21042010><FONT = color=3D#0000ff=20 size=3D2 face=3DGeorgia>Thomas</FONT></SPAN></DIV><BR> <DIV dir=3Dltr lang=3Den-us class=3DOutlookMessageHeader align=3Dleft> <HR tabIndex=3D-1> <FONT size=3D2 face=3DTahoma><B>From:</B> Angela Day = [mailto:[email protected]]=20 <BR><B>Sent:</B> Wednesday, April 21, 2010 3:41 PM<BR><B>To:</B>=20 [email protected]<BR><B>Subject:</B> [Mav-user]=20 NoClassDefFoundError and I have all the right jar = files<BR></FONT><BR></DIV> <DIV></DIV> <DIV=20 style=3D"FONT-FAMILY: bookman old style,new york,times,serif; COLOR: = #1c4b7a; FONT-SIZE: 12pt"> <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" align=3Dcenter> <TBODY> <TR> <TD bgColor=3D#d8f2ff height=3D59=20 background=3Dcid:[email protected] = align=3Dstart></TD></TR> <TR> <TD bgColor=3D#d8f2ff height=3D"100%" vAlign=3Dtop width=3D"100%"> <TABLE style=3D"TABLE-LAYOUT: fixed" cellSpacing=3D0 = cellPadding=3D0=20 width=3D"100%" align=3Dcenter height=3D"100%"> <TBODY> <TR> <TD width=3D60></TD> <TD=20 style=3D"TEXT-OVERFLOW: ellipsis; WHITE-SPACE: nowrap; = OVERFLOW: hidden"=20 vAlign=3Dtop> <TABLE style=3D"WHITE-SPACE: normal" cellSpacing=3D0 = cellPadding=3D0=20 width=3D"100%"> <TBODY> <TR> <TD height=3D20></TD></TR> <TR> <TD><FONT=20 style=3D"FONT-FAMILY: arial, helvetica, sans-serif; = COLOR: #1c4b7a; FONT-SIZE: 12px"=20 color=3D#1c4b7a size=3D2 face=3D"arial, helvetica, = sans-serif"> <DIV>I am getting the following error when I try to = run my=20 application<BR><PRE>javax.servlet.ServletException: = Servlet.init() for servlet dispatcher threw exception<BR> = org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:= 117)<BR> = org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:17= 4)<BR> = org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873= )<BR> = org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proce= ssConnection(Http11BaseProtocol.java:665)<BR> = org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.= java:528)<BR> = org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowe= rWorkerThread.java:81)<BR> = org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.= java:689)<BR> java.lang.Thread.run(Thread.java:595)<BR></PRE> <P><B>root cause</B> = </P><PRE>java.lang.NoClassDefFoundError<BR> org.infohazard.maverick.flow.Loader.loadDocument(Loader.java:140)<BR> = org.infohazard.maverick.flow.Loader.<init>(Loader.java:88)<BR> = org.infohazard.maverick.Dispatcher.reloadConfig(Dispatcher.java:239)<BR> = tdhca.maverick.Dispatcher.reloadConfig(Dispatcher.java:287)<BR> = org.infohazard.maverick.Dispatcher.init(Dispatcher.java:159)<BR> = tdhca.maverick.Dispatcher.init(Dispatcher.java:309)<BR> = javax.servlet.GenericServlet.init(GenericServlet.java:212)<BR> = org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:= 117)<BR> = org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:17= 4)<BR> = org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873= )<BR> = org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proce= ssConnection(Http11BaseProtocol.java:665)<BR> = org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.= java:528)<BR> = org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowe= rWorkerThread.java:81)<BR> = org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.= java:689)<BR> java.lang.Thread.run(Thread.java:595)<BR></PRE><BR>I=20 am running:<BR><BR>Torque 3.3<BR>Java 1.5<BR>Maverick=20 2.2.4<BR>Ant 1.8.0<BR>Velocity 1.3<BR>Tomcat = 5.5.28<BR>Eclipse=20 3.5.1<BR>JSP 1.2<BR>JDOM 1.1.1<BR>commonts_logging = 1.1<BR>jdom=20 1.1.1<BR>commons-beanutils = 1.7.0<BR>commons-collections=20 3.2<BR><BR>Any help you can give would be greatly=20 appreciated!<BR><BR>Thanks,<BR> <DIV> </DIV> <P><FONT color=3D#007f40 size=3D3=20 face=3D"arial, helvetica, sans-serif">Angela = Day</FONT></P> <P><FONT color=3D#007f40 size=3D3=20 face=3D"arial, helvetica, sans-serif">National Autism=20 Association of Central Texas<BR></FONT></P> <P><FONT color=3D#007f40 size=3D3=20 face=3D"arial, helvetica, sans-serif"><SPAN><A=20 href=3D"http://www.naacentraltexas.org"=20 = target=3D_blank>http://www.naacentraltexas.org</A></SPAN></FONT></P> <P><FONT size=3D3><BR></FONT></P> <P></P> <DIV><BR></DIV></DIV></FONT></TD></TR> <TR> <TD height=3D15></TD></TR></TBODY></TABLE></TD> <TD width=3D60></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD bgColor=3D#d8f2ff height=3D141=20 background=3Dcid:[email protected]=20 align=3Dstart></TD></TR></TBODY></TABLE></DIV></BODY></HTML> ------_=_NextPart_001_01CAE199.08490AB0-- --===============5437003847119023854== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ --===============5437003847119023854== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ %(real_name)s mailing list %(real_name)s@%(host_name)s %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s Archives are available at http://www.mail-archive.com/mav-user%40lists.sourceforge.net/ --===============5437003847119023854==--