wood burning stoves
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

wsimport dependency

Jhonnathan Emilio Cardona Saineda
Ranch Hand

Joined: Jan 24, 2012
Posts: 38

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)

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



Sorry for my English, I'll improve
Peter Johnson

Joined: May 14, 2008
Posts: 5852

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
It's not a secret anymore!