cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <scher...@gmail.com>
Subject Re: running a cocoon-sample block in a tomcat container by cargo-maven2-plugin
Date Wed, 14 Aug 2013 18:57:01 GMT
On 08/11/2013 07:16 PM, Piratenvisier wrote:
> Hello Thorsten,
>
> I put your cocoon-rest-optional und cocoon-sample in one block and
> made it runnable in the cocoon-sample-webapp block to produce a war file.
> With maven3 and Jetty  it works. Even the problem with your cocoon
> distribution I had doesn't
> exist any more with maven 3.
> I tried to deploy cocoon-sample-webapp by cargo-maven2-plugin and get
> the following errors
> with maven2 and maven3:
> [INFO] [talledLocalContainer] INFO:
> validateJarFile(/homeerweitert/java/cocoon3/2272013/cocoon-sample-webapp/target/tomcat7x/container/webapps/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT/WEB-INF/lib/servlet-api-2.5.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
> class: javax/servlet/Servlet.class

This info is that in your pom somewhere you have not set the servlet dep
as provided since tomcat brings its own.

> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:43 PM
> org.apache.catalina.startup.TaglibUriRule body
> [INFO] [talledLocalContainer] INFO: TLD skipped. URI:
> urn:com:sun:jersey:api:view is already defined
> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:43 PM
> org.apache.catalina.core.ApplicationContext log
> [INFO] [talledLocalContainer] INFO: No Spring
> WebApplicationInitializer types detected on classpath
> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:44 PM
> org.apache.catalina.core.ApplicationContext log
> [INFO] [talledLocalContainer] INFO: Initializing Spring root
> WebApplicationContext
> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:47 PM
> org.apache.catalina.core.ApplicationContext log
> [INFO] [talledLocalContainer] INFO: Apache Cocoon Spring Configurator
> v2.2.1 is running in mode 'prod'.
> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
> org.apache.catalina.core.StandardContext listenerStart
> [INFO] [talledLocalContainer] SEVERE: Exception sending context
> initialized event to listener instance of class
> org.springframework.web.context.ContextLoaderListener
> [INFO] [talledLocalContainer] java.lang.NoClassDefFoundError:
> javax/mail/MessagingException

It seems that the javax.mail is not present but not sure why. Did you
use something besides the mentioned blocks?

salu2

> [INFO] [talledLocalContainer]     at
> java.lang.Class.getDeclaredConstructors0(Native Method)
> [INFO] [talledLocalContainer]     at
> java.lang.Class.privateGetDeclaredConstructors(Class.java:2483)
> [INFO] [talledLocalContainer]     at
> java.lang.Class.getDeclaredConstructors(Class.java:1891)
> [INFO] [talledLocalContainer]     at
> org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:230)
> [INFO] [talledLocalContainer]     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:978)
> [INFO] [talledLocalContainer]     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:951)
> [INFO] [talledLocalContainer]     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490)
> [INFO] [talledLocalContainer]     at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
> [INFO] [talledLocalContainer]     at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
> [INFO] [talledLocalContainer]     at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
> [INFO] [talledLocalContainer]     at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
> [INFO] [talledLocalContainer]     at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
> [INFO] [talledLocalContainer]     at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:626)
> [INFO] [talledLocalContainer]     at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
> [INFO] [talledLocalContainer]     at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
> [INFO] [talledLocalContainer]     at
> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
> [INFO] [talledLocalContainer]     at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
> [INFO] [talledLocalContainer]     at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
> [INFO] [talledLocalContainer]     at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
> [INFO] [talledLocalContainer]     at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
> [INFO] [talledLocalContainer]     at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> [INFO] [talledLocalContainer]     at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> [INFO] [talledLocalContainer]     at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> [INFO] [talledLocalContainer]     at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
> [INFO] [talledLocalContainer]     at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
> [INFO] [talledLocalContainer]     at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
> [INFO] [talledLocalContainer]     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> [INFO] [talledLocalContainer]     at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> [INFO] [talledLocalContainer]     at
> java.util.concurrent.FutureTask.run(FutureTask.java:166)
> [INFO] [talledLocalContainer]     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> [INFO] [talledLocalContainer]     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> [INFO] [talledLocalContainer]     at
> java.lang.Thread.run(Thread.java:724)
> [INFO] [talledLocalContainer] Caused by:
> java.lang.ClassNotFoundException: javax.mail.MessagingException
> [INFO] [talledLocalContainer]     at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
> [INFO] [talledLocalContainer]     at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
> [INFO] [talledLocalContainer]     ... 32 more
> [INFO] [talledLocalContainer]
> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
> org.apache.catalina.core.StandardContext startInternal
> [INFO] [talledLocalContainer] SEVERE: Error listenerStart
> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
> org.apache.catalina.core.StandardContext startInternal
> [INFO] [talledLocalContainer] SEVERE: Context
> [/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] startup failed due to
> previous errors
> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
> org.apache.catalina.core.ApplicationContext log
> [INFO] [talledLocalContainer] INFO: Closing Spring root
> WebApplicationContext
> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
> org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
> [INFO] [talledLocalContainer] SEVERE: The web application
> [/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started
> a thread named [RequestCounterCleaningTask] but has failed to stop it.
> This is very likely to create a memory leak.
> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
> org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
> [INFO] [talledLocalContainer] SEVERE: The web application
> [/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started
> a thread named [RequestCounterCleaningTask] but has failed to stop it.
> This is very likely to create a memory leak.
> [INFO] [talledLocalContainer] Aug 11, 2013 3:57:51 PM
> org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
> [INFO] [talledLocalContainer] SEVERE: The web application
> [/cocoon-sample-webapp-3.0.0-beta-1-SNAPSHOT] appears to have started
> a thread named [RequestCounterCleaningTask] but has failed to stop it.
> This is very likely to create a memory leak.
> you have an idea what in the configuration is wrong ?
>
>
>
>
>


-- 
Thorsten Scherler <scherler.at.gmail.com>
codeBusters S.L. - web based systems
<consulting, training and solutions>

http://www.codebusters.es/


Mime
View raw message