3 Replies Latest reply on Oct 5, 2007 9:43 AM by Kevin Conner

    JbossESB & Smack

    Jarek Pekala Newbie

      Hi

      I'm moving JBoss 4.0.5 to JBossESB 4.2 and I have problem with one of my axis webservices. It has method which sends XMPP message. There wasn't any problem with 4.0.5 version but after copying to 4.2 this method crashed with errors:

      13:14:57,151 ERROR [STDERR] Exception in thread "Smack Packet Reader (0)"
      13:14:57,151 ERROR [STDERR] java.lang.NoClassDefFoundError: org/jivesoftware/smack/provider/IQProvider
      13:14:57,151 ERROR [STDERR] at java.lang.ClassLoader.defineClass1(Native Method)
      13:14:57,151 ERROR [STDERR] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      13:14:57,151 ERROR [STDERR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      13:14:57,151 ERROR [STDERR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      13:14:57,151 ERROR [STDERR] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      13:14:57,151 ERROR [STDERR] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      13:14:57,151 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
      13:14:57,151 ERROR [STDERR] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      13:14:57,151 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:675)
      13:14:57,151 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:655)
      13:14:57,151 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      13:14:57,151 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:193)
      13:14:57,151 ERROR [STDERR] at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
      13:14:57,151 ERROR [STDERR] at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
      13:14:57,151 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:520)
      13:14:57,151 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
      13:14:57,151 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      13:14:57,151 ERROR [STDERR] at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:579)
      13:14:57,151 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      13:14:57,151 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1345)
      13:14:57,151 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
      13:14:57,151 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      13:14:57,151 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
      13:14:57,151 ERROR [STDERR] at java.lang.Class.forName(Class.java:164)
      13:14:57,151 ERROR [STDERR] at org.jivesoftware.smack.provider.ProviderManager.initialize(ProviderManager.java:193)
      13:14:57,151 ERROR [STDERR] at org.jivesoftware.smack.provider.ProviderManager.<init>(ProviderManager.java:436)
      13:14:57,151 ERROR [STDERR] at org.jivesoftware.smack.provider.ProviderManager.getInstance(ProviderManager.java:134)
      13:14:57,151 ERROR [STDERR] at org.jivesoftware.smack.PacketReader.parseIQ(PacketReader.java:594)
      13:14:57,151 ERROR [STDERR] at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:275)
      13:14:57,151 ERROR [STDERR] at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
      13:14:57,151 ERROR [STDERR] at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
      13:15:02,041 ERROR [STDERR] No response from the server.:
      13:15:02,041 ERROR [STDERR] at org.jivesoftware.smack.SASLAuthentication.bindResourceAndEstablishSession(SASLAuthentication.java:324)
      13:15:02,041 ERROR [STDERR] at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:214)
      13:15:02,041 ERROR [STDERR] at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:341)
      13:15:02,041 ERROR [STDERR] at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:301)
      13:15:02,041 ERROR [STDERR] at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:283)
      13:15:02,041 ERROR [STDERR] at pl.com.winuel.test.TestSOAPImpl.test(TestSOAPImpl.java:19)
      13:15:02,041 ERROR [STDERR] at pl.com.winuel.test.TestSOAPSkeleton.test(TestSOAPSkeleton.java:56)
      13:15:02,041 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      13:15:02,041 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      13:15:02,041 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      13:15:02,041 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.transport.http.QSMethodHandler.invokeEndpointFromGet(QSMethodHandler.java:129)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.transport.http.QSMethodHandler.invoke(QSMethodHandler.java:94)
      13:15:02,041 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      13:15:02,041 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      13:15:02,041 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      13:15:02,041 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1226)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249)
      13:15:02,041 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      13:15:02,041 ERROR [STDERR] at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
      13:15:02,041 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      13:15:02,041 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      13:15:02,041 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      13:15:02,041 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      13:15:02,041 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      13:15:02,041 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      13:15:02,041 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      13:15:02,041 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      13:15:02,041 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      13:15:02,041 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      13:15:02,041 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      13:15:02,041 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      13:15:02,041 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      13:15:02,041 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      13:15:02,041 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      13:15:02,041 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      13:15:02,041 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      13:15:02,041 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      13:15:02,041 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)



      Of course I checked org/jivesoftware/smack/provider/IQProvider - class is available.

      Code causing exceptions
      XMPPConnection conn1 = new XMPPConnection(server); //default port 5222
      conn1.connect(); //is ok. conn1 is connected
      conn1.login(user,pass); //finishes with mentioned exceptions


      what could be the reason?

      regards
      jarek