Re: i am getting exception org.apache.cxf.interceptor.Fault: org/apache/camel/CamelContext

2014-07-16 Thread ishwar
actually i am using the apache-tomee-jaxrs as server. and i included this two
library camel-core-2.12.1
camel-mail-2.12.1. so its work.try it.



--
View this message in context: 
http://camel.465427.n5.nabble.com/i-am-getting-exception-org-apache-cxf-interceptor-Fault-org-apache-camel-CamelContext-tp5742012p5753895.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: i am getting exception org.apache.cxf.interceptor.Fault: org/apache/camel/CamelContext

2014-07-15 Thread Rajagopal
Hey Ishwar,

Even i am using the eclipse. 
Which lib did you put into apache lib..??



--
View this message in context: 
http://camel.465427.n5.nabble.com/i-am-getting-exception-org-apache-cxf-interceptor-Fault-org-apache-camel-CamelContext-tp5742012p5753875.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: i am getting exception org.apache.cxf.interceptor.Fault: org/apache/camel/CamelContext

2013-10-22 Thread Claus Ibsen
You have some sort of class loading issue, this is from the exception

Caused by: java.lang.ClassNotFoundException: org.apache.camel.CamelContext
at

On Tue, Oct 22, 2013 at 9:16 AM, ishwar panjariish...@gmail.com wrote:
 hi,
  i am new in camel. i want to send the email using camel so i implemented
 and its working fine when i call method for sending email . after i want to
 call that method using rest services and then when i calling rest services
 then i am getting the  following response.

 Oct 22, 2013 12:43:05 PM org.apache.cxf.phase.PhaseInterceptorChain
 doDefaultLogging
 WARNING: Application
 {http://resource.snefotics.com/}NotificationServiceResource has thrown
 exception, unwinding now
 org.apache.cxf.interceptor.Fault: org/apache/camel/CamelContext
 at
 org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:167)
 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:94)
 at
 org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
 at
 org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
 at
 org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
 at
 org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
 at
 org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:236)
 at
 org.apache.openejb.server.cxf.rs.CxfRsHttpListener.onMessage(CxfRsHttpListener.java:79)
 at org.apache.openejb.server.rest.RsServlet.service(RsServlet.java:53)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 Caused by: java.lang.NoClassDefFoundError: org/apache/camel/CamelContext
 at
 com.snefotics.notificatioin.MessageDispatcher.sendEmail(MessageDispatcher.java:21)
 at
 com.snefotics.resource.NotificationServiceResource.sendEmail(NotificationServiceResource.java:31)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
 at
 org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
 ... 27 more
 Caused by: java.lang.ClassNotFoundException: org.apache.camel.CamelContext
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1713)
 at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
 at
 org.apache.tomee.catalina.LazyStopWebappClassLoader._loadClass(LazyStopWebappClassLoader.java:103)
 at
 org.apache.tomee.catalina.LazyStopWebappClassLoader.loadClass(LazyStopWebappClassLoader.java:98)
 ... 35 more

 Oct 22, 2013 12:43:05 PM org.apache.cxf.phase.PhaseInterceptorChain unwind
 WARNING: Exception in handleFault on interceptor
 org.apache.cxf.binding.xml.interceptor.XMLFaultOutInterceptor@4f60c43f
 org.apache.cxf.interceptor.Fault: 

Re: i am getting exception org.apache.cxf.interceptor.Fault: org/apache/camel/CamelContext

2013-10-22 Thread ishwar
but this exception only i am getting when i invoking using rest uri
eg.
http://localhost:8080/Notification/notificationservice/sendemail

but when i am calling from main class i am not getting any exception



--
View this message in context: 
http://camel.465427.n5.nabble.com/i-am-getting-exception-org-apache-cxf-interceptor-Fault-org-apache-camel-CamelContext-tp5742012p5742016.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: i am getting exception org.apache.cxf.interceptor.Fault: org/apache/camel/CamelContext

2013-10-22 Thread Willem jiang
Can I have a look at your camel route?


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
  http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Tuesday, October 22, 2013 at 3:38 PM, ishwar wrote:

 but this exception only i am getting when i invoking using rest uri
 eg.
 http://localhost:8080/Notification/notificationservice/sendemail
  
 but when i am calling from main class i am not getting any exception
  
  
  
 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/i-am-getting-exception-org-apache-cxf-interceptor-Fault-org-apache-camel-CamelContext-tp5742012p5742016.html
 Sent from the Camel - Users mailing list archive at Nabble.com 
 (http://Nabble.com).





Re: i am getting exception org.apache.cxf.interceptor.Fault: org/apache/camel/CamelContext

2013-10-22 Thread ishwar
i got the solution .actually i am using eclipse and i included the lib into
class path so its working when i call from main method but when i call from
rest services then i am got the exception so i put the lib file into the
apache lib folder so its working fine.
Thanks for helping me.




--
View this message in context: 
http://camel.465427.n5.nabble.com/i-am-getting-exception-org-apache-cxf-interceptor-Fault-org-apache-camel-CamelContext-tp5742012p5742017.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: i am getting exception org.apache.cxf.interceptor.Fault: org/apache/camel/CamelContext

2013-10-22 Thread ishwar
now i got the solution.i am using  eclipse without maven pluggin so i
included two lib file into class file but i forgot to put in apache lib for
that i got the exception after put the file into the apache lib the every
thing is working fine




--
View this message in context: 
http://camel.465427.n5.nabble.com/i-am-getting-exception-org-apache-cxf-interceptor-Fault-org-apache-camel-CamelContext-tp5742012p5742019.html
Sent from the Camel - Users mailing list archive at Nabble.com.