1 Reply Latest reply on Feb 15, 2013 5:06 AM by Rahul Razdan

    jboss 7 + seam 3 + java.lang.NoClassDefFoundError: com/sun/net/ssl/X509TrustManager

    Rahul Razdan Newbie

      hi,

       

      I'm Trying to run my project on jboss-7 . I migrated this project from seam 2 to seam 3 .

       

      seam 2 - jdk 6 - 5.0.1GA

      seam 3 - jdk 7 - 7.1.1.Final

       

      in one of my classes I'm creating a static class implementing com.sun.net.ssl.X509TrustManager

       

      in seam 2 i didn't get any error but here I'm getting

       

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0]
      at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]

       

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


      at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0]
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0]
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0]
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)
      ... 20 more

       

      Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.X509TrustManager from [Module "deployment.xxx-ee.ear.xxx-core-0.0.1-SNAPSHOT.jar:main" from Service Module Loader]


      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
      ... 25 more

       

      check this link :

       

      http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html

       

      can't i access this package . if not ,  then how its working in jboss 5 .

      is any thing need to be done in jboss-7

       

      i can find this class in java library . so how it can not find ??????

       

      please give any suggestions .

       

      Thanks