« Return to Thread: Help, Exception after deploying in Tomcat

Re: Help, Exception after deploying in Tomcat

by James Beamish-White :: Rate this Message:

Reply to Author | View in Thread

I had the same error, and found that the application must be compiled with the same version of Java as the container running it, if you've got the ACEGI plugin involved.

James

2009/4/28 Volz Raphael <rv@...>
Hi -

we are puzzled about the following exception that occurs when trying to deploy our app
(successfully run in Jetty with run-app) on Tomcat 6

Context: Grails 1.1, Acegi Plugin 0.5.1

Webpage is one of our domain classes...

Thanks for your insight

Raphael


2009-04-27 19:57:07,934 [http-8180-1] ERROR context.ContextLoader  - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: LWebpage;
       at java.security.AccessController.doPrivileged(Native Method)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
       at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
       at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
       at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
       at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
       at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
       at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1471)
       at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:243)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: LWebpage;
       at java.lang.Class.getDeclaredFields0(Native Method)
       at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
       at java.lang.Class.getDeclaredField(Class.java:1880)
       ... 27 more
Caused by: java.lang.ClassNotFoundException: Webpage
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
       at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       ... 30 more
27.04.2009 19:57:07 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
27.04.2009 19:57:07 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [/monitor-0.1] startup failed due to previous errors


Volz Innovation GmbH
               Kirchhaldenweg 10, 76597 Loffenau, Germany

               Tel: +49 18 03 55 18 51 075
               Mail: rv@...
               Web: www.raphaelvolz.de
               Fax: +49 18 03 55 18 51 075

               Company Seat / Sitz der Gesellschaft: Loffenau
               Company Register / Handelsregisternummer: HRB 704418, Amtsgericht Mannheim
               Managing Director / Geschäftsführer: Dr. Raphael Volz, CEO


Volz Innovation GmbH
               Kirchhaldenweg 10, 76597 Loffenau, Germany

               Tel: +49 18 03 55 18 51 075
               Mail: rv@...
               Web: www.raphaelvolz.de
               Fax: +49 18 03 55 18 51 075

               Company Seat / Sitz der Gesellschaft: Loffenau
               Company Register / Handelsregisternummer: HRB 704418, Amtsgericht Mannheim
               Managing Director / Geschäftsführer: Dr. Raphael Volz, CEO


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email





--
James Beamish-White
Managing Director
TEIQ Limited
Bespoke development - web, mobile, integration

p: +64 9 527 0260
f: +64 9 929 3030
m: +64 21 434 201
w: http://www.teiq.com
a: PO Box 911213, Victoria St West, Auckland 1142  / The Icehouse, Level 2, The Textile Centre, 117-125 St Georges Bay Road, Parnell, Auckland 1052

Follow us on Twitter - http://twitter.com/teiq

---------------------------------------------------------------
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.

 « Return to Thread: Help, Exception after deploying in Tomcat