aspose 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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "wsimport dependency " Watch "wsimport dependency " New topic

wsimport dependency

Jhonnathan Emilio Cardona Saineda
Ranch Hand

Joined: Jan 24, 2012
Posts: 30

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(

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


Peter Johnson

Joined: May 14, 2008
Posts: 5772

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:
subject: wsimport dependency
Similar Threads
JSF2 + SeamFaces
Problem in generating client code from wsdl using maven + axis2
[Newbie Issue] hibernate.cfg.xml and hbm.xmls are not packaged by Maven?
java.util.MissingResourceException: Can't find bundle for base name in JSF Spring Maven project
Filtering problem using maven-read-properties plugin in pom.xml file