2

我正在使用 ADF JEE Web 应用程序创建 Web 服务。当我试图访问网络服务时,它会抛出异常。我将mysql-connector-java-5.1.26-bin jar 放在我的项目类路径和C:\Users\PC2\AppData\Roaming\JDeveloper\system11.1.2.4.39.64.36.1\DefaultDomain\lib中,但它也会抛出如下所示的异常。

例外

EJB Exception: : java.lang.NoClassDefFoundError: com/mysql/jdbc/MySQLConnection
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)

谢谢

我克服了这个异常现在引发了另一个异常

例外

 javax.xml.soap.SOAPException: Unable to receive message. caused by: 
 java.io.IOException: null caused by: javax.xml.stream.XMLStreamException:  
 javax.xml.stream.XMLStreamException: Premature end of file encountered caused by:  
 javax.xml.stream.XMLStreamException: Premature end of file encountered 
4

0 回答 0