File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes wsimport dependency Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "wsimport dependency " Watch "wsimport dependency " New topic
Author

wsimport dependency

Jhonnathan Emilio Cardona Saineda
Ranch Hand

Joined: Jan 24, 2012
Posts: 37

hi everyone,
i have generaded a stub webservices client with wsimport since windows cmd. In maven i used -> mvn install:install-file -Dfile=stubWS.jar -DgroupId.. etc for add the jar to repository. When I deploy the EAR, weblogic throw a exception relationship with dependency

<MessageDrivenBean threw an Exception in onMessage(). The exception was:
java.lang.NoClassDefFoundError: com/company/ws/ SendSMSWS_Service.
java.lang.NoClassDefFoundError: com/company/ws/ SendSMSWS_Service
at com.latinia.limsp.collectors.innovattia.CollectorOutBean.sendMessage(CollectorOutBean.java:50)
at

What should I add dependency in the pom??? i tried with the dependency of below but donĀ“t work.

<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.2.5</version>
<scope>compile</scope>
</dependency>

thanks


Sorry for my English, I'll improve
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

That dependency looks correct for getting the JAR included in your app. The first thing you should do is verify that the JAR was packaged in the EAR somewhere.

Also, the error message says that the class com/company/ws/SendSMSWS_Service is missing, that's not a class in jaxws-rt but looks like one of your classes. So you should determine where your classes are located within the EAR.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wsimport dependency