我正在开发一个应用程序,它是一个独立的应用程序并将它打包为一个jar文件(它是lika一个OSGi Plugin
)并将部署那jar into JBoss
。
当我在eclipse中运行我的应用程序时,应用程序工作正常。在Jboss中抛出错误。
java.lang.ClassNotFoundException: org.w3c.dom.Node
。
如果我将rt.jar
添加到WEB-INF/lib
文件夹并部署到Jboss中。这个错误不再被抛出。但我得到了一个新的例外,即使我加jsse.jar
到lib
但无法解决错误。
com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a
secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption.
Error: "class configured for SSLContext: sun.security.ssl.SSLContextImpl$TLS10Context
not a SSLContext".
......
Caused by: java.security.NoSuchAlgorithmException: class configured for
SSLContext: sun.security.ssl.SSLContextImpl$TLS10Context not a SSLContext
06:10:53,484 ERROR [stderr] (default-short-running-threads-threads - 26) at
sun.security.jca.GetInstance.checkSuperClass(GetInstance.java:258)
06:10:53,484 ERROR [stderr] (default-short-running-threads-threads - 26) at
sun.security.jca.GetInstance.getInstance(GetInstance.java:237)
06:10:53,484 ERROR [stderr] (default-short-running-threads-threads - 26) at
sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
06:10:53,484 ERROR [stderr] (default-short-running-threads-threads - 26) at
javax.net.ssl.SSLContext.getInstance(SSLContext.java:156)
06:10:53,500 ERROR [stderr] (default-short-running-threads-threads - 26) at
com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1353)
我的开发环境是Jdk1.7
,Windows XP
和Eclipse Juno
服务器环境也是一样的我的本地环境。
我没有清单文件在我的.jar – MaheshVarma
你可以发布清单文件的内容作为问题的一部分吗? – radai
MyApplication没有Manifest文件,因为它作为一个插件部署到在JBoss上运行的BPM工具中。 @radai – MaheshVarma