Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.NoClassDefFoundError: javax.activation.DataSource

843833Aug 15 2008
Hi all,

I am having problem trying to run <wsgen> ant task, it's giving me the javax.activation.DataSource error, but I am pretty sure it's in the j2ee.jar file that i have included in the classpath, any ideas?
   [wsgen] command line: wsgen -classpath "C:\Documents and Settings\lamked\Desktop\activation-1.1.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\lib\bootstrap.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\lib\j2ee.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\lib\lmproxy.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\lib\startup.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\lib\urlprotocols.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\java\lib\tools.jar;C:\Documents and Settings\lamked\IBM\rationalsdp7.0\ICE\ExcessManagementWebService\webapp\ExcessManagementWebService\WEB-INF\lib\ExcessManagementWebService-web.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\plugins\com.ibm.jaxb.tools_6.1.0.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\plugins\com.ibm.jaxws.tools_6.1.0.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\plugins\com.ibm.wsfp.main_6.1.0.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\plugins\org.apache.axis2_6.1.0.jar;C:\Program Files\IBM\WebSphereV6.1\AppServer\runtimes\com.ibm.jaxws.thinclient_6.1.0.jar" -d "C:\Documents and Settings\lamked\IBM\rationalsdp7.0\ICE\ExcessManagementWebService\webapp\ExcessManagementWebService\WEB-INF\classes" -wsdl -r "C:\Documents and Settings\lamked\IBM\rationalsdp7.0\ICE\ExcessManagementWebService\webapp\ExcessManagementWebService\WEB-INF\wsdl" -verbose com.ubs.risk.service.excessmanagement.EmployeeService
    [wsgen] Note: 	ap round: 1
    [wsgen] [ProcessedMethods Class: com.ubs.risk.service.excessmanagement.EmployeeService]
    [wsgen] [should process method: getCreditAnalystsForCO hasWebMethods: false ]
    [wsgen] [endpointReferencesInterface: false]
    [wsgen] [declaring class has WebSevice: true]
    [wsgen] [returning: true]
    [wsgen] [WrapperGen - method: getCreditAnalystsForCO(com.ubs.risk.entity.excessmanagement.CreditOfficer)]
    [wsgen] [method.getDeclaringType(): com.ubs.risk.service.excessmanagement.EmployeeService]
    [wsgen] [requestWrapper: com.ubs.risk.service.excessmanagement.jaxws.GetCreditAnalystsForCO]
    [wsgen] [should process method: getCreditAnalysts hasWebMethods: false ]
    [wsgen] [endpointReferencesInterface: false]
    [wsgen] [declaring class has WebSevice: true]
    [wsgen] [returning: true]
    [wsgen] [WrapperGen - method: getCreditAnalysts()]
    [wsgen] [method.getDeclaringType(): com.ubs.risk.service.excessmanagement.EmployeeService]
    [wsgen] [requestWrapper: com.ubs.risk.service.excessmanagement.jaxws.GetCreditAnalysts]
    [wsgen] [should process method: getRiskControlOfficers hasWebMethods: false ]
    [wsgen] [endpointReferencesInterface: false]
    [wsgen] [declaring class has WebSevice: true]
    [wsgen] [returning: true]
    [wsgen] [WrapperGen - method: getRiskControlOfficers()]
    [wsgen] [method.getDeclaringType(): com.ubs.risk.service.excessmanagement.EmployeeService]
    [wsgen] [requestWrapper: com.ubs.risk.service.excessmanagement.jaxws.GetRiskControlOfficers]
    [wsgen] [should process method: getCreditOfficers hasWebMethods: false ]
    [wsgen] [endpointReferencesInterface: false]
    [wsgen] [declaring class has WebSevice: true]
    [wsgen] [returning: true]
    [wsgen] [WrapperGen - method: getCreditOfficers()]
    [wsgen] [method.getDeclaringType(): com.ubs.risk.service.excessmanagement.EmployeeService]
    [wsgen] [requestWrapper: com.ubs.risk.service.excessmanagement.jaxws.GetCreditOfficers]
    [wsgen] [ProcessedMethods Class: java.lang.Object]
    [wsgen] com\ubs\risk\service\excessmanagement\jaxws\GetCreditAnalysts.java
    [wsgen] com\ubs\risk\service\excessmanagement\jaxws\GetCreditAnalystsForCO.java
    [wsgen] com\ubs\risk\service\excessmanagement\jaxws\GetCreditAnalystsForCOResponse.java
    [wsgen] com\ubs\risk\service\excessmanagement\jaxws\GetCreditAnalystsResponse.java
    [wsgen] com\ubs\risk\service\excessmanagement\jaxws\GetCreditOfficers.java
    [wsgen] com\ubs\risk\service\excessmanagement\jaxws\GetCreditOfficersResponse.java
    [wsgen] com\ubs\risk\service\excessmanagement\jaxws\GetRiskControlOfficers.java
    [wsgen] com\ubs\risk\service\excessmanagement\jaxws\GetRiskControlOfficersResponse.java
    [wsgen] Note: 	ap round: 2
    [wsgen] [completing model for endpoint: com.ubs.risk.service.excessmanagement.EmployeeService]
    [wsgen] [ProcessedMethods Class: com.ubs.risk.service.excessmanagement.EmployeeService]
    [wsgen] [should process method: getCreditAnalystsForCO hasWebMethods: false ]
    [wsgen] [endpointReferencesInterface: false]
    [wsgen] [declaring class has WebSevice: true]
    [wsgen] [returning: true]
    [wsgen] [WebServiceReferenceCollector - method: getCreditAnalystsForCO(com.ubs.risk.entity.excessmanagement.CreditOfficer)]
    [wsgen] [should process method: getCreditAnalysts hasWebMethods: false ]
    [wsgen] [endpointReferencesInterface: false]
    [wsgen] [declaring class has WebSevice: true]
    [wsgen] [returning: true]
    [wsgen] [WebServiceReferenceCollector - method: getCreditAnalysts()]
    [wsgen] [should process method: getRiskControlOfficers hasWebMethods: false ]
    [wsgen] [endpointReferencesInterface: false]
    [wsgen] [declaring class has WebSevice: true]
    [wsgen] [returning: true]
    [wsgen] [WebServiceReferenceCollector - method: getRiskControlOfficers()]
    [wsgen] [should process method: getCreditOfficers hasWebMethods: false ]
    [wsgen] [endpointReferencesInterface: false]
    [wsgen] [declaring class has WebSevice: true]
    [wsgen] [returning: true]
    [wsgen] [WebServiceReferenceCollector - method: getCreditOfficers()]
    [wsgen] [ProcessedMethods Class: java.lang.Object]
    [wsgen] Problem encountered during annotation processing;
    [wsgen] see stacktrace below for more information.
    [wsgen] java.lang.NoClassDefFoundError: javax.activation.DataSource
    [wsgen] at java.lang.J9VMInternals.verifyImpl(Native Method)
    [wsgen] at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
    [wsgen] at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
    [wsgen] at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:186)
    [wsgen] at java.lang.J9VMInternals.initializeImpl(Native Method)
    [wsgen] at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
    [wsgen] at com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl.createLeaves(BuiltinLeafInfoImpl.java:68)
    [wsgen] at com.sun.xml.bind.v2.model.impl.ModelBuilder.createTypeInfoSet(ModelBuilder.java:108)
    [wsgen] at com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:104)
    [wsgen] at com.sun.tools.xjc.api.impl.j2s.JavaCompilerImpl.bind(JavaCompilerImpl.java:39)
    [wsgen] at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.completeModel(WebServiceAP.java:397)
    [wsgen] at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:238)
    [wsgen] at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:78)
    [wsgen] at com.sun.tools.apt.comp.Apt.main(Apt.java:472)
    [wsgen] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:486)
    [wsgen] at com.sun.tools.apt.main.Main.compile(Main.java:1103)
    [wsgen] at com.sun.tools.apt.main.Main.compile(Main.java:966)
    [wsgen] at com.sun.tools.apt.Main.processing(Main.java:113)
    [wsgen] at com.sun.tools.apt.Main.process(Main.java:103)
    [wsgen] at com.sun.tools.apt.Main.process(Main.java:85)
    [wsgen] at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:605)
    [wsgen] at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:538)
    [wsgen] at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:56)
    [wsgen] at com.sun.tools.ws.ant.WsGen.execute(WsGen.java:459)
    [wsgen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [wsgen] at org.apache.tools.ant.Task.perform(Task.java:364)
    [wsgen] at org.apache.tools.ant.Target.execute(Target.java:341)
    [wsgen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [wsgen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [wsgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [wsgen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [wsgen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [wsgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [wsgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
    [wsgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

BUILD FAILED
java.lang.NoClassDefFoundError: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl (initialization failure)
Any help would be much appreciated :)

Kevin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2008
Added on Aug 15 2008
0 comments
1,956 views