Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wsimport dependency

 
Jhonnathan Emilio Cardona Saineda
Ranch Hand
Posts: 38
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic