Announcement Announcement Module
Collapse
No announcement yet.
Problem with <packaging>war</packaging>: javax/activation/DataSource not found! Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with <packaging>war</packaging>: javax/activation/DataSource not found!

    Hi everybody,

    I wrote a WS using spring-ws which work perfectly using SOAPUI or a java client when deployed on my local TOMCAT server but I have a problem, it works perfectly only if my pom.xml doesn't contains
    Code:
    <packaging>war</packaging>
    , if I try to add it, I got this:

    Code:
    java.lang.NoClassDefFoundError: javax/activation/DataSource
    Does anybody knows why I got this exception?

    It is a real problem because at end I must deploy the WS war on a server...

    Thanks for reading

  • #2
    Got it fixed, in my pom.xml (this is a maven project), I have to specify the scope of the javax.activation dépendency:

    Code:
    <dependency>
    	<groupId>javax.activation</groupId>
    	<artifactId>activation</artifactId>
    	<scope>runtime</scope>
    </dependency>
    without the scope Runtime, you got a java.lang.NoClassDefFoundError: javax/activation/DataSource with Tomcat Server...

    Comment

    Working...
    X