我有一个had服务的代码,它连接到运行在MySQL上的数据库。我清理并构建了它,并成功地进行了部署,但当我测试时,出现了以下错误:
Invoking wsimport with http://localhost:8080/getExamInfo/getInfo?WSDL
Info: parsing WSDL...
Info: [ERROR] A class/interface with the same name "com.getexaminfo.SQLException" is already in use. Use a class customization to resolve this conflict.
Info: line 22 of http://localhost:8080/getExamInfo/getInfo?xsd=1
Info: [ERROR] (Relevant to above error) another "SqlException" is generated from here.
Info: line 31 of http://localhost:8080/getExamInfo/getInfo?xsd=1
Info: [ERROR] This error is caused because on Windows you cannot have both "SqlException.java" and "SQLException.java" in the same directory.根据我的理解,问题在于NetBeans试图在一个文件夹中创建多个具有不同案例敏感性的sqlexception.java。我尝试了几个解决方案,但似乎没有什么效果。我怎么解决这个问题?如果需要的话我可以给你看代码。
编辑:这是我到目前为止所取得的进展。我为服务生成的模式创建了一个新的XML绑定,这次它没有显示任何错误,但不能正确部署。我从玻璃鱼身上得到了这个堆栈的痕迹:
Warning: AS-DEPLOYMENT-00012
java.lang.ClassNotFoundException: com.getExamInfo.getInfo
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1783)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1633)
at com.sun.enterprise.deployment.annotation.impl.ModuleScanner.getElements(ModuleScanner.java:297)
at com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:586)
at com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:463)
...发布于 2015-12-12 18:38:37
试图在一个具有不同案例敏感性的文件夹中创建多个sqlexception.java。
根据错误消息,您使用Windows并在Windows操作系统中不可能在同一个目录中创建两个具有不同大小写敏感性的文件
我怎么解决这个问题?
它可能会被解决:
如果您不能这样做,请给我们wsdl文件和代码。
https://stackoverflow.com/questions/34243372
复制相似问题