3 Replies Latest reply on Aug 19, 2013 5:21 AM by Tomaz Cerar

    Jboss EAP 6.1.0 Alpha not recognising Jre Libraries

    ANAND KUMAR GEORGE PREM KUMAR Newbie

      I am currently migrating the J2EE applications from Jboss 4.3.GA to Jboss EAP 6.1.0 Alpha. I am facing the issue with regards to the Jre libraries. 

       

      Below is a sample exception due to jsse.jar is not recognized by the Jboss server. Attached is the jboss startup script and configuration.  Kindly advise any solution for this problem.

       

       

      Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.internal.ssl.Provider from [Module "deployment.TSM.ear.WS_NotificationService-1.0.0-SNAPSHOT.war:main" from Service Module Loader]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.2.0.CR1]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1]

          ... 43 more

        • 1. Re: Jboss EAP 6.1.0 Alpha not recognising Jre Libraries
          jaikiran pai Master

          That's a vendor specific JRE class. What does the entire exception stacktrace look like? I think all you might need is to add a dependency on sun.jdk module in your deployment's jboss-deployment-structure.xml.

          • 2. Re: Jboss EAP 6.1.0 Alpha not recognising Jre Libraries
            ANAND KUMAR GEORGE PREM KUMAR Newbie

            The entire stack trace below. Also attached the server log for your reference. I thought as a part of automatic dependency, the system dependencies "sun.jdk" should get loaded and no need to specify it explicitly in the jboss-deployment-structure.xml ?

             

             

            13:03:21,004 ERROR [com.cassis.ws.ns.wsdl.NotificationManagerPortTypeImpl] (http-/0.0.0.0:8080-3) eventNotification() Exception in postProcess: class com.cassis.ws.ns.client.data.ChannelException: null: com.cassis.ws.ns.client.data.ChannelException

                at com.cassis.ws.ns.wsdl.NotificationManagerPortTypeImpl.postProcess(NotificationManagerPortTypeImpl.java:80) [classes:]

                at com.cassis.ws.ns.wsdl.NotificationManagerPortTypeImpl.eventNotification(NotificationManagerPortTypeImpl.java:103) [classes:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_29]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_29]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_29]

                at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_29]

                at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:61) [cxf-rt-frontend-jaxws-2.3.9.jar:2.3.9]

                at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_29]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_29]

                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_29]

                at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:102) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:464) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:188) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:148) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final.jar:1.0.2.Final]

                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

            Caused by: java.lang.NullPointerException

                at com.cassis.ws.ns.process.ChannelProcessLog.toHeaders(ChannelProcessLog.java:115) [classes:]

                at com.cassis.ws.ns.wsdl.NotificationManagerPortTypeImpl.postProcess(NotificationManagerPortTypeImpl.java:76) [classes:]

                ... 38 more

             

            13:03:21,012 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (http-/0.0.0.0:8080-3) Application {http://reqmgr.ws.cassis.com/wsdl}NotificationManagerService#{http://reqmgr.ws.cassis.com/wsdl}eventNotification has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: com/sun/net/ssl/internal/ssl/Provider

                at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:86) [cxf-rt-frontend-jaxws-2.3.9.jar:2.3.9]

                at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:121) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:61) [cxf-rt-frontend-jaxws-2.3.9.jar:2.3.9]

                at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_29]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_29]

                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_29]

                at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:255) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:113) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:102) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:464) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:188) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:148) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final.jar:1.0.2.Final]

                at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]

            Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider

                at com.cassis.ws.ns.channel.GenericChannel.sendMessage(GenericChannel.java:74) [classes:]

                at com.cassis.ws.ns.channel.MessageProtocolBase_Notification.process(MessageProtocolBase_Notification.java:77) [classes:]

                at com.cassis.ws.ns.process.WS_NotificationChannel.executeChannel(WS_NotificationChannel.java:62) [classes:]

                at com.cassis.ws.ns.process.WS_NotificationChannel.process(WS_NotificationChannel.java:141) [classes:]

                at com.cassis.ws.ns.process.WS_NotificationMainProcess.process(WS_NotificationMainProcess.java:34) [classes:]

                at com.cassis.ws.ns.wsdl.NotificationManagerPortTypeImpl.eventNotification(NotificationManagerPortTypeImpl.java:94) [classes:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_29]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_29]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_29]

                at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_29]

                at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89) [cxf-bundle-jaxrs-2.3.9.jar:2.3.9]

                ... 31 more

            Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.internal.ssl.Provider from [Module "deployment.TSM.ear.WS_NotificationService-1.0.0-SNAPSHOT.war:main" from Service Module Loader]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.2.0.CR1]

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.2.0.CR1]

                ... 43 more