• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

wsimport dependency

  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic