4 Replies Latest reply on Oct 13, 2015 3:44 PM by ben dudley

    NoClassDefFoundError: /com/sun/net/ssl/internal/ssl/Provider **AFTER** .ear file is undeployed and then redeployed

    ben dudley Newbie

      both wildfly 8.0.0.Final and wildfly.8.2.1.Final

      jdk 1.7.0_51

       

      If I deploy my ear file X.ear on a fresh restart of wildfly (with nothing deployed) everything works just fine.  However, after undeploying X.ear and redeploying the same X.ear I get a NoClassDefFoundError when trying to execute the same task that succeeded after X.ear was deployed in wildfly the first time.  If I restart wildfly (with X.ear still deployed) the error goes away.

       

      I do not use a jboss-deployment-structure.xml because it works the first time and after restart without it.

       

      Thanks!

        • 2. Re: NoClassDefFoundError: /com/sun/net/ssl/internal/ssl/Provider **AFTER** .ear file is undeployed and then redeployed
          ben dudley Newbie

          2015-09-01 13:33:33,223 ERROR [org.jboss.as.ejb3.invocation] (Thread-40 (HornetQ-client-global-threads-1848615244)) JBAS014134: EJB Invocation failed on component TrackingDataQueueProcessor for method public void com.cs.freight.tracking.processor.TrackingDataQueueProcessor.onMessage(javax.jms.Message): javax.ejb.EJBException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider

              at org.jboss.as.ejb3.tx.BMTInterceptor.handleException(BMTInterceptor.java:80) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.as.ejb3.tx.EjbBMTInterceptor.checkStatelessDone(EjbBMTInterceptor.java:92) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:107) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.as.ejb3.tx.BMTInterceptor.processInvocation(BMTInterceptor.java:56) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

              at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) [weld-core-impl-2.2.6.Final.jar:2014-10-03 10:05]

              at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83) [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocation(MessageDrivenComponentDescription.java:211) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

              at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)

              at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

              at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)

              at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

              at com.cs.freight.tracking.processor.TrackingDataQueueProcessor$$$view31.onMessage(Unknown Source) [FreightDataProcessors.jar:]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]

              at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]

              at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:139) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at com.cs.freight.tracking.processor.TrackingDataQueueProcessor$$$endpoint30.onMessage(Unknown Source) [FreightDataProcessors.jar:]

              at org.hornetq.ra.inflow.HornetQMessageHandler.onMessage(HornetQMessageHandler.java:321)

              at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:1116)

              at org.hornetq.core.client.impl.ClientConsumerImpl.access$500(ClientConsumerImpl.java:56)

              at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1251)

              at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:104)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]

              at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]

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

              ... 65 more

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

              at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.7.0_51]

              at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493) [rt.jar:1.7.0_51]

              at java.lang.Class.getConstructor0(Class.java:2803) [rt.jar:1.7.0_51]

              at java.lang.Class.getConstructor(Class.java:1718) [rt.jar:1.7.0_51]

              at org.apache.commons.discovery.tools.ClassUtils.newInstance(ClassUtils.java:159) [commons-discovery-0.2.jar:0.2]

              at org.apache.axis.AxisProperties$1.run(AxisProperties.java:183) [patched_axis.jar:]

              at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_51]

              at org.apache.axis.AxisProperties.newInstance(AxisProperties.java:166) [patched_axis.jar:]

              at org.apache.axis.components.net.SocketFactoryFactory.getFactory(SocketFactoryFactory.java:75) [patched_axis.jar:]

              at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:187) [patched_axis.jar:]

              at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) [patched_axis.jar:]

              at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) [patched_axis.jar:]

              at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) [patched_axis.jar:]

              at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) [patched_axis.jar:]

              at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) [patched_axis.jar:]

              at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) [patched_axis.jar:]

              at org.apache.axis.client.Call.invokeEngine(Call.java:2784) [patched_axis.jar:]

              at org.apache.axis.client.Call.invoke(Call.java:2767) [patched_axis.jar:]

              at org.apache.axis.client.Call.invoke(Call.java:2443) [patched_axis.jar:]

              at org.apache.axis.client.Call.invoke(Call.java:2366) [patched_axis.jar:]

              at org.apache.axis.client.Call.invoke(Call.java:1812) [patched_axis.jar:]

              at com.xxx.webservices.platform_2014_2.BindingStub.getDataCenterUrls(BindingStub.java:14466) [NS2014_2.jar:]

              at com.xxx.util.DataCenterAwareServiceLocator.getPort(DataCenterAwareServiceLocator.java:34) [CS_Common.jar:]

              at com.xxx.webservices.ProxyImpl.login(ProxyImpl.java:1960) [CS_Common.jar:]

              at com.cs.freight.tracking.processor.TrackingDataQueueProcessor.onMessage(TrackingDataQueueProcessor.java:215) [FreightDataProcessors.jar:]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]

              at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]

              at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

              at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82) [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93) [wildfly-weld-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:104) [wildfly-ejb3-8.2.1.Final.jar:8.2.1.Final]

              ... 62 more

          Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.internal.ssl.Provider from [Module "deployment.01Sep2015_CS_FreightApp_v1.ear:main" from Service Module Loader]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

              ... 107 more

          • 3. Re: NoClassDefFoundError: /com/sun/net/ssl/internal/ssl/Provider **AFTER** .ear file is undeployed and then redeployed
            ben dudley Newbie

            I have also discovered this issue rears its head in another scenario: if I deploy an app that is dependent upon SSL, X1.ear, and exercise the app such that an SSL connection is used, and then deploy another app, X2.ear, and attempt to exercise this second app such that an SSL connection is used, I get the same error.  Either app works fine in isolation.  Also, if I do not exercise the SSL connection in the first app the second app works just fine.

            • 4. Re: NoClassDefFoundError: /com/sun/net/ssl/internal/ssl/Provider **AFTER** .ear file is undeployed and then redeployed
              ben dudley Newbie

              I was able to resolve this issue by adding both of the following lines to my jboss-deployment-structure.xml file to the X2.ear app:

               

              <jboss-deployment-structure>

                  <deployment>

                      <dependencies>

                          <system export="true">

                              <paths>

                                  <path name="com/sun/net/ssl/internal/ssl" />

                                  <path name="com/sun/net/ssl" />

                              </paths>

                          </system>

                      </dependencies>

                  </deployment>

              </jboss-deployment-structure>