camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zaphodX <zaph...@gmail.com>
Subject New to camel - errors when deploying camel/examples
Date Mon, 24 Jun 2013 13:18:00 GMT
Just started with Camel yesterday and am trying out various examples given in
the camel download. It has been frustrating so far that I can't get to first
step of being able to deploy basic examples. Any help would be greatly
appreciated.


I started with camel-example-cxf-tomcat. 
Here are my versions:
camel-2.11.0
jdk1.7.0_21
maven-3.0.5
mycode
tomcat-6.0.37

I copied the camel-example-cxf-tomcat into mycode directory and built it
with 2 ways (different times) 
-mvn clean install
-mvn package
and, copied over the war file to the tomcat directory. No build problems so
far.

when I try to startup tomcat, I see errors in the log that says:

Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesStaticFinal
FINE: Could not set field LOG to null in class
org.apache.camel.component.file.GenericFileConverter


java.lang.ExceptionInInitializerError
	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
Caused by: java.lang.NullPointerException
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)


I can post the build log, but there were no errors during the build.





=====================================
Log excerpt:
FINE: Set field logger to null in class org.slf4j.impl.Log4jLoggerAdapter
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class org.slf4j.impl.Log4jLoggerAdapter
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class
org.apache.commons.logging.impl.Log4JLogger
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Not setting field name to null in object of class
org.apache.commons.logging.impl.Log4JLogger because the referenced object
was of type java.lang.String which was not loaded by this WebappClassLoader.
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Not setting field REQUESTED_API_VERSION to null in object of class
org.slf4j.impl.StaticLoggerBinder because the referenced object was of type
java.lang.String which was not loaded by this WebappClassLoader.
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field loggerFactory to null in class
org.slf4j.impl.StaticLoggerBinder
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesStaticFinal
FINE: Set field REQUESTED_API_VERSION to null in class
org.slf4j.impl.StaticLoggerBinder
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class org.slf4j.impl.Log4jLoggerAdapter
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class
org.apache.commons.logging.impl.Log4JLogger
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Not setting field name to null in object of class
org.apache.commons.logging.impl.Log4JLogger because the referenced object
was of type java.lang.String which was not loaded by this WebappClassLoader.
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class org.slf4j.impl.Log4jLoggerAdapter
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesStaticFinal
FINE: Set field defaultTempDir to null in class
org.apache.camel.util.FileUtil
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesStaticFinal
FINE: Could not set field LOG to null in class
org.apache.camel.component.file.GenericFileConverter
java.lang.ExceptionInInitializerError
	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
	at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
	at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:140)
	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:949)
	at java.lang.reflect.Field.getFieldAccessor(Field.java:930)
	at java.lang.reflect.Field.get(Field.java:372)
	at
org.apache.catalina.loader.WebappClassLoader.clearReferencesStaticFinal(WebappClassLoader.java:2066)
	at
org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1929)
	at
org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1833)
	at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:740)
	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4920)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
	at
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
	at
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
	at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	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:563)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
	at
org.apache.camel.component.file.GenericFileConverter.<clinit>(GenericFileConverter.java:42)
	... 33 more

Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class org.slf4j.impl.Log4jLoggerAdapter
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class org.slf4j.impl.Log4jLoggerAdapter
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Not setting field dom to null in object of class
com.sun.xml.bind.v2.runtime.unmarshaller.DomLoader because the referenced
object was of type javax.xml.bind.annotation.W3CDomHandler which was not
loaded by this WebappClassLoader.
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class org.slf4j.impl.Log4jLoggerAdapter
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesStaticFinal
FINE: Could not set field LOG to null in class
org.apache.camel.impl.ConsumerCache
java.lang.ExceptionInInitializerError
	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
	at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
	at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:140)
	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:949)
	at java.lang.reflect.Field.getFieldAccessor(Field.java:930)
	at java.lang.reflect.Field.get(Field.java:372)
	at
org.apache.catalina.loader.WebappClassLoader.clearReferencesStaticFinal(WebappClassLoader.java:2066)
	at
org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1929)
	at
org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1833)
	at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:740)
	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4920)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
	at
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
	at
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
	at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	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:563)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
	at org.apache.camel.impl.ConsumerCache.<clinit>(ConsumerCache.java:40)
	... 33 more

Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class org.slf4j.impl.Log4jLoggerAdapter
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesStaticFinal
FINE: Could not set field LOG to null in class
org.apache.camel.processor.validation.PredicateValidatingProcessor
java.lang.ExceptionInInitializerError
	at sun.misc.Unsafe.ensureClassInitialized(Native Method)
	at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
	at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:140)
	at java.lang.reflect.Field.acquireFieldAccessor(Field.java:949)
	at java.lang.reflect.Field.getFieldAccessor(Field.java:930)
	at java.lang.reflect.Field.get(Field.java:372)
	at
org.apache.catalina.loader.WebappClassLoader.clearReferencesStaticFinal(WebappClassLoader.java:2066)
	at
org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1929)
	at
org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1833)
	at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:740)
	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4920)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
	at
org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
	at
org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
	at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:194)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	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:563)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
	at
org.apache.camel.processor.validation.PredicateValidatingProcessor.<clinit>(PredicateValidatingProcessor.java:35)
	... 33 more

Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class org.slf4j.impl.Log4jLoggerAdapter
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Set field logger to null in class
org.apache.commons.logging.impl.Log4JLogger
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
nullInstance
FINE: Not setting field name to null in object of class
org.apache.commons.logging.impl.Log4JLogger because the referenced object
was of type java.lang.String which was not loaded by this WebappClassLoader.
Jun 24, 2013 7:56:48 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesStaticFinal
FINE: Set field javaxInjectProviderClass to null in class
org.springframework.beans.factory.support.DefaultListableBeanFactory




--
View this message in context: http://camel.465427.n5.nabble.com/New-to-camel-errors-when-deploying-camel-examples-tp5734665.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message