Results 1 to 2 of 2

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

  1. #1
    Join Date
    Jul 2009
    Posts
    16

    Default 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. #2
    Join Date
    Jul 2009
    Posts
    16

    Default

    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •