简体   繁体   English

Java SOAP WSDL服务NoClassDefFoundError

[英]Java SOAP WSDL service NoClassDefFoundError

I have been struggling with the creation of a SOAP web service and I simply can't get it working. 我一直在努力创建SOAP Web服务,但我根本无法使它正常工作。

I have written my service, and then, from Eclipse, I created a Web service. 我已经编写了服务,然后从Eclipse创建了一个Web服务。 And although the saving in the db worked just fine when I tested the service locally (created a simple main method), when I try testing it from the generated Web service I get NoClassDefFoundError. 而且,尽管当我在本地测试该服务(创建一个简单的main方法)时,数据库中的保存工作正常,但是当我尝试从生成的Web服务中对其进行测试时,却得到了NoClassDefFoundError。

If anyone has the time to take a look I would be gratefull. 如果有人有时间看看,我将不胜感激。 https://dane289@bitbucket.org/dane289/soapservice_problems.git https://dane289@bitbucket.org/dane289/soapservice_problems.git

Thank you in advance! 先感谢您!

The problem was that eclipse was not adding the jars to the WAR file. 问题是eclipse没有将jar添加到WAR文件中。 After adding them to the war via the eclipse menu Assembly something everything worked fine. 通过eclipse菜单Assembly将它们添加到战争中后,一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM