-
15. Re: Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
cavi Jan 9, 2013 3:11 AM (in response to quanlin)As I put this line in dependency of module.xml of jboss 7. The error is getting solve.
<path name="com/sun/net/ssl/internal/ssl"/>
But I dont want to put it in module.xml. I want to put it in Manifest.mf of my application. How to write that in Manifestr.mf .
Thanks Quanlin, Plz suggest....
Regards
cavi
-
16. Re: Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
quanlin Jan 9, 2013 12:33 PM (in response to cavi)Hi Cavi,
I haven't done that kind of job for a fairly long time, but I'll try my best to help here. If I remember correctly, you should put "Dependencies: XXX,XXX,XXX...." into your manifest.mf file inside your app, don't forget to press "enter" after the line, it might cause you some trouble if you don't do it in the first place, also you need to have those libraries ready under the module directory so that the class-loader can find them. If you don't know how to construct a module, please refer to the AS7 documentation to do so or just look at how the current module are structured.
Let me know if anything I mentioned is wrong here after you make it work, thanks.
-
17. Re: Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
cavi Jan 9, 2013 11:53 PM (in response to rumiat)Hi Qualin may be Taimur can help us. He has done it already.
Hi Taimur,
what you have put in MINIFEST.MF file.How you have written the the dependency in it?
Is there any other file, should we put in the folder META-INF except MINIFEST.MF ?
Thanks
Regards
cavi
-
18. Re: Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
rumiat Jan 10, 2013 2:49 AM (in response to cavi)Hi Cavi,
You can try this:
In \myapp\my-app\src\main\resources\META-INF\jboss-deployment-structure.xml
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="system">
<imports>
<include-set>
<path name="javax/net/ssl"/>
</include-set>
</imports>
</module>
</dependencies>
</deployment>
</jboss-deployment-structure>
Let me know if it doesn't solve this problem. I am now using JBoss 7.1.1.Final
-
19. Re: Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
richyclarke Jan 10, 2013 4:06 AM (in response to rumiat)All,
I was having this issue because I needed to perform a secure http post in my application using javax.net.ssl.SSLSocketFactory and javax.net.ssl.HttpsURLConnection.
I did it exactly the same way as Taimur and it worked perfectly on JBOSS AS 7.1.1 Final.
Rich
-
20. Re: Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
quanlin Jan 10, 2013 12:36 PM (in response to rumiat)Hi Cavi,
Taimur just showed you the way to put the dependencies into a deployment structure xml file, maybe that's the new way to declair dependencies for an app, since I had only worked on AS7.0.x, I think there must be something new from then on, so it's good to know the new way, kind of a more structured way to declair a deployment structure. Thanks Taimur.
--
Tran
-
21. Re: Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
rumiat Jan 10, 2013 8:20 PM (in response to quanlin)Quanlin and Richard,
You are very welcome! I was so upset when I ported my app to JBoss 7 and encountered this error and this forum has actually helped me a lot whenever I faced something wiered. Hopefully Cavi would be able to proceed ahead.
-
22. Re: Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
quanlin Jan 10, 2013 8:31 PM (in response to rumiat)Yeah, I would agree, we would be glad to help if anyone has some difficulties, also it'll benefit outselves as well
-
23. Re: Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
mederafael Feb 19, 2013 11:37 AM (in response to rumiat)Hi, other !
Edit file module.xml "jboss-as-7.1.1.Final\modules\sun\jdk\main\" e add <path name="com/sun/net/ssl/internal/ssl"/>!
It is not necessary to change the application!
-
24. Re: Caused by: java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider
piwaf Jun 27, 2014 6:30 PM (in response to rumiat)For what it's worth the format of the jboss-deployment-structure.xml file seems to have changed slightly in JBoss 7.2. Below is what I used to get it to work. Also note I included slightly different packages based on my needs.
<?xml version="1.0"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<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>