You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by anas bakhou <an...@gmail.com> on 2015/04/03 17:15:09 UTC

Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

I am new in Apache Camel and SOAP Jira Client, so I generated some Classes
using axis wsdl2java and I deployed the bundle in servicemix. For
ServiceMix, Axis doesn't mean anything that why I add a Third part
dependency and I generated a plugin that contains All the Jars that I need.
Here is the list of Jars:
-Axis 1.4
-Axis saaj 1.4
-Axis wsdl4j 1.5.1
-commons-discovery
-commons-logging
-javax.xml.parsers 1.1
-javaxp api 1.4.2
-javaxrpc 1.1
-jndi 1.2.1
-w3c dom
-wmlParserApi 2.0.2
When the Bundle Started I got this Error.

Caused by: java.lang.NoClassDefFoundError:
org.apache.axis.deployment.wsdd.WSDDConstants
        at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
        at
org.apache.axis.AxisEngine.init(AxisEngine.java:172)[674:TestTest3:1.0.0]
        at
org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)[674:TestTest3:1.0.0]
        at
org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)[674:TestTest3:1.0.0]
        at
org.apache.axis.client.Service.getAxisClient(Service.java:104)[674:TestTest3:1.0.0]
        at
org.apache.axis.client.Service.<init>(Service.java:113)[674:TestTest3:1.0.0]
        at
com.atlassian.jira.rpc.soap.client.test.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:16)[669:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]

When I checked The axis Jar I found this Class.

Can any one help me please !! 



--
View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by anas bakhou <an...@gmail.com>.
It works Thank you for your help.
The problem comes from the conflicts between the jars that I exports in the
axis bundle and the packages that already exists in ServiceMix. The command
"packages:exports" was the key that helps me to trace these conflicts.
I hope this was helpful. 



--
View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456p5722485.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by anas bakhou <an...@gmail.com>.
Hi, 
I deleted the xmlparser api that contains the javax.xml.parsers package but
I get that errors:
ClassNotFoundException:javax.xml.parsers.ParseException 
So the second attempt : adding the package javax.xml.parsers to the import
package in the pom.xml but i got the same error. This means that the
serviceMix doesn't contain a specification of javax.xml.parsers !! 
When I chevked the etc/jre.properties I found some exported packages from
the jre !! 
The third atemp: I added the org.apache.servicemix.bundle.specs.jaxp jar to
the service mix (this jar contains the package below) but always the same
error !! 




--
View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456p5722482.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
packages:exports, not package:export

On 06.04.2015 20:54, Krzysztof Sobkowiak wrote:
> Hi,
>
> This ClassCastException in OSGi container usually means Calss A and B  are loaded by different classloaders,  that means
> you have multiple copy of  org.apache.xerces.jaxp.SAXParserFactoryImpl or javax.xml.parsers.SAXParserFactory in your
> container, as in ServiceMix we already endorse the xercesImpl and xml-apis you shouldn't install those  bundle yourself
> or you shouldn't include the classes in your axis bundle.  Could you please post the result of
>
> package:export |grep javax.xml.parsers
>
> and
>
> package:export |grep org.apache.xerces.jaxp
>
> from the console?
>
> Regards
> Krzysztof
>
>
> On 06.04.2015 17:45, anas bakhou wrote:
>> I made a <import-Package>*</import-Package> and the plugin that Contains the
>> jars has just exported package !! When i make update to my bundle , I got
>> another error:
>> Caused by: java.lang.ExceptionInInitializerError
>>         at
>> org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
>>         at
>> org.apache.axis.AxisEngine.init(AxisEngine.java:172)[700:Test5:1.0.0]
>>         at
>> org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)[700:Test5:1.0.0]
>>         at
>> org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)[700:Test5:1.0.0]
>>         at
>> org.apache.axis.client.Service.getAxisClient(Service.java:104)[700:Test5:1.0.0]
>>         at
>> org.apache.axis.client.Service.<init>(Service.java:113)[700:Test5:1.0.0]
>>         at
>> com.atlassian.jira.rpc.soap.client.test.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:16)[692:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
>>         at
>> com.atlassian.jira.soap.SOAPSession.<init>(SOAPSession.java:27)[692:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
>>         at
>> com.atlassian.jira.soap.CreateSimpleProject.process(CreateSimpleProject.java:33)[692:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
>>         at
>> org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
>>         ... 8 more
>> Caused by: java.lang.ClassCastException:
>> org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to
>> javax.xml.parsers.SAXParserFactory
>>         at
>> javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:135)[700:Test5:1.0.0]
>>         at
>> org.apache.axis.utils.XMLUtils.initSAXFactory(XMLUtils.java:209)[700:Test5:1.0.0]
>>         at
>> org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.java:110)[700:Test5:1.0.0]
>>         ... 18 more
>> I think that the error comes from that point !! Are there any solutions to
>> this problem :(
>>
>>
>>
>> --
>> View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456p5722474.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-- 
Krzysztof Sobkowiak

JEE & OSS Architect
Apache Software Foundation Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC chair
Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/>

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
Hi,

This ClassCastException in OSGi container usually means Calss A and B  are loaded by different classloaders,  that means
you have multiple copy of  org.apache.xerces.jaxp.SAXParserFactoryImpl or javax.xml.parsers.SAXParserFactory in your
container, as in ServiceMix we already endorse the xercesImpl and xml-apis you shouldn't install those  bundle yourself
or you shouldn't include the classes in your axis bundle.  Could you please post the result of

package:export |grep javax.xml.parsers

and

package:export |grep org.apache.xerces.jaxp

from the console?

Regards
Krzysztof


On 06.04.2015 17:45, anas bakhou wrote:
> I made a <import-Package>*</import-Package> and the plugin that Contains the
> jars has just exported package !! When i make update to my bundle , I got
> another error:
> Caused by: java.lang.ExceptionInInitializerError
>         at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
>         at
> org.apache.axis.AxisEngine.init(AxisEngine.java:172)[700:Test5:1.0.0]
>         at
> org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)[700:Test5:1.0.0]
>         at
> org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)[700:Test5:1.0.0]
>         at
> org.apache.axis.client.Service.getAxisClient(Service.java:104)[700:Test5:1.0.0]
>         at
> org.apache.axis.client.Service.<init>(Service.java:113)[700:Test5:1.0.0]
>         at
> com.atlassian.jira.rpc.soap.client.test.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:16)[692:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
>         at
> com.atlassian.jira.soap.SOAPSession.<init>(SOAPSession.java:27)[692:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
>         at
> com.atlassian.jira.soap.CreateSimpleProject.process(CreateSimpleProject.java:33)[692:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
>         at
> org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
>         ... 8 more
> Caused by: java.lang.ClassCastException:
> org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to
> javax.xml.parsers.SAXParserFactory
>         at
> javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:135)[700:Test5:1.0.0]
>         at
> org.apache.axis.utils.XMLUtils.initSAXFactory(XMLUtils.java:209)[700:Test5:1.0.0]
>         at
> org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.java:110)[700:Test5:1.0.0]
>         ... 18 more
> I think that the error comes from that point !! Are there any solutions to
> this problem :(
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456p5722474.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-- 
Krzysztof Sobkowiak

JEE & OSS Architect
Apache Software Foundation Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC chair
Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/>

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by anas bakhou <an...@gmail.com>.
I made a <import-Package>*</import-Package> and the plugin that Contains the
jars has just exported package !! When i make update to my bundle , I got
another error:
Caused by: java.lang.ExceptionInInitializerError
        at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
        at
org.apache.axis.AxisEngine.init(AxisEngine.java:172)[700:Test5:1.0.0]
        at
org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)[700:Test5:1.0.0]
        at
org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)[700:Test5:1.0.0]
        at
org.apache.axis.client.Service.getAxisClient(Service.java:104)[700:Test5:1.0.0]
        at
org.apache.axis.client.Service.<init>(Service.java:113)[700:Test5:1.0.0]
        at
com.atlassian.jira.rpc.soap.client.test.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:16)[692:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
        at
com.atlassian.jira.soap.SOAPSession.<init>(SOAPSession.java:27)[692:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
        at
com.atlassian.jira.soap.CreateSimpleProject.process(CreateSimpleProject.java:33)[692:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
        at
org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
        ... 8 more
Caused by: java.lang.ClassCastException:
org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to
javax.xml.parsers.SAXParserFactory
        at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:135)[700:Test5:1.0.0]
        at
org.apache.axis.utils.XMLUtils.initSAXFactory(XMLUtils.java:209)[700:Test5:1.0.0]
        at
org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.java:110)[700:Test5:1.0.0]
        ... 18 more
I think that the error comes from that point !! Are there any solutions to
this problem :(



--
View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456p5722474.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
Is your bundle containing the Axis stuff stared? Could you check the state of the bundle using list -t 0 command? Could
you also enable dynamic import for the both bundles using dynamic-import command? If it helps, it means one of the
bundles is missing some imports

Regards
Krzysztof

On 06.04.2015 00:58, anas bakhou wrote:
> Hi,
> That is the only principal Error that I get, the Others are related to
> Exchange Null and Camel issues.
> This is the method that I need into XMLUtils : 
>     public static Document More ...newDocument(InputStream inp)
>         throws ParserConfigurationException, SAXException, IOException
>     {
>         return XMLUtils.newDocument(new InputSource(inp));
>     }
> When I Google to try Any solutions o this problem, I found that
> NoClassDefFoundError is thrown if the Java Virtual Machine or a ClassLoader
> instance tries to load in the definition of a class (as part of a normal
> method call or as part of creating a new instance using the new expression)
> and no definition of the class could be found. This Means that the
> ClassLoader of ServiceMix is not able to find the definition of the class !! 
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456p5722468.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-- 
Krzysztof Sobkowiak

JEE & OSS Architect
Apache Software Foundation Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC chair
Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/>

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by anas bakhou <an...@gmail.com>.
Hi,
This is the Log:

2015-04-06 10:15:10,227 | ERROR | r://NotFoundTest | DefaultErrorHandler             
| ?                                   ? | 116 - org.apache.camel.camel-core
- 2.14.1 | Failed delivery for (MessageId:
ID-FRWLMCRDX7-65096-1428311348559-2-1 on ExchangeId:
ID-FRWLMCRDX7-65096-1428311348559-2-2). Exhausted after delivery attempt: 1
caught: org.apache.camel.CamelExecutionException: Exception occurred during
execution on the exchange: Exchange[Message: [Body is null]]

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                       
Elapsed (ms)
[JiraSoapRoute     ] [JiraSoapRoute     ]
[timer://NotFoundTest?repeatCount=1                                           
] [        16]
[JiraSoapRoute     ] [process2          ] [ref:jiraSoapHandler                                                          
] [        10]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
        Id                  ID-FRWLMCRDX7-65096-1428311348559-2-2
        ExchangePattern     InOnly
        Headers            
{breadcrumbId=ID-FRWLMCRDX7-65096-1428311348559-2-1, CamelRedelivered=false,
CamelRedeliveryCounter=0, firedTime=Mon Apr 06 10:15:10 WEST 2015}
        BodyType            null
        Body                [Body is null]
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.CamelExecutionException: Exception occurred during
execution on the exchange: Exchange[Message: [Body is null]]
        at
org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1380)[116:org.apache.camel.camel-core:2.14.1]
        at
org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:283)[116:org.apache.camel.camel-core:2.14.1]
        at
org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:66)[116:org.apache.camel.camel-core:2.14.1]
        at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)[116:org.apache.camel.camel-core:2.14.1]
        at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:416)[116:org.apache.camel.camel-core:2.14.1]
        at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[116:org.apache.camel.camel-core:2.14.1]
        at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[116:org.apache.camel.camel-core:2.14.1]
        at
org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:166)[116:org.apache.camel.camel-core:2.14.1]
        at
org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:74)[116:org.apache.camel.camel-core:2.14.1]
        at java.util.TimerThread.mainLoop(Timer.java:555)[:1.7.0_75]
        at java.util.TimerThread.run(Timer.java:505)[:1.7.0_75]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
org.apache.axis.utils.XMLUtils
        at
org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
        at
org.apache.axis.AxisEngine.init(AxisEngine.java:172)[688:TestTest14:1.0.0]
        at
org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)[688:TestTest14:1.0.0]
        at
org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)[688:TestTest14:1.0.0]
        at
org.apache.axis.client.Service.getAxisClient(Service.java:104)[688:TestTest14:1.0.0]
        at
org.apache.axis.client.Service.<init>(Service.java:113)[688:TestTest14:1.0.0]
        at
com.atlassian.jira.rpc.soap.client.test.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:16)[676:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
        at
com.atlassian.jira.soap.SOAPSession.<init>(SOAPSession.java:27)[676:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
        at
com.atlassian.jira.soap.CreateSimpleProject.process(CreateSimpleProject.java:33)[676:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
        at
org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
        ... 8 more
Regards.



--
View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456p5722470.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by anas bakhou <an...@gmail.com>.
Hi,
That is the only principal Error that I get, the Others are related to
Exchange Null and Camel issues.
This is the method that I need into XMLUtils : 
    public static Document More ...newDocument(InputStream inp)
        throws ParserConfigurationException, SAXException, IOException
    {
        return XMLUtils.newDocument(new InputSource(inp));
    }
When I Google to try Any solutions o this problem, I found that
NoClassDefFoundError is thrown if the Java Virtual Machine or a ClassLoader
instance tries to load in the definition of a class (as part of a normal
method call or as part of creating a new instance using the new expression)
and no definition of the class could be found. This Means that the
ClassLoader of ServiceMix is not able to find the definition of the class !! 




--
View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456p5722468.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
Hi

You have ClassDefNotFoundException, not ClassNotFoundException. It means the classes can be found but cannot be
initialized. Can you find any other errors in your logs? Could you send the log file?

Regards
Krzysztof

On 04.04.2015 11:54, anas bakhou wrote:
> Hi
> Thank you for your response, I got this error when I start my bundle , not
> the bundle that contains axis and the other jars. But  when  I add the
> package  org.apache.axis.deployement.wsdd to the import package in the
> pom.xml , I got another error :
> NoClassDefFoundError: could not initialise org.apache.xml.utils.XMLUtils
> But in this case the package org.apache.xml.utils already exists in the
> import package !!
> Are there any suggestions pleaze !! 
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456p5722462.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-- 
Krzysztof Sobkowiak

JEE & OSS Architect
Apache Software Foundation Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC chair
Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/>

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by anas bakhou <an...@gmail.com>.
Hi
Thank you for your response, I got this error when I start my bundle , not
the bundle that contains axis and the other jars. But  when  I add the
package  org.apache.axis.deployement.wsdd to the import package in the
pom.xml , I got another error :
NoClassDefFoundError: could not initialise org.apache.xml.utils.XMLUtils
But in this case the package org.apache.xml.utils already exists in the
import package !!
Are there any suggestions pleaze !! 




--
View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456p5722462.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Caused by: java.lang.NoClassDefFoundError: org.apache.axis.deployment.wsdd.WSDDConstants

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
Hi

This error doesn't say the class cannot be found. It says the class cannot be initialized. Do you have another
exceptions during start of your bundle? Does the error occurwhen you start the bundle containing Axis with dependencies
or when you start the bundle with classes generated using wsdl2java?

Regards
Krzysztof

On 03.04.2015 17:15, anas bakhou wrote:
> I am new in Apache Camel and SOAP Jira Client, so I generated some Classes
> using axis wsdl2java and I deployed the bundle in servicemix. For
> ServiceMix, Axis doesn't mean anything that why I add a Third part
> dependency and I generated a plugin that contains All the Jars that I need.
> Here is the list of Jars:
> -Axis 1.4
> -Axis saaj 1.4
> -Axis wsdl4j 1.5.1
> -commons-discovery
> -commons-logging
> -javax.xml.parsers 1.1
> -javaxp api 1.4.2
> -javaxrpc 1.1
> -jndi 1.2.1
> -w3c dom
> -wmlParserApi 2.0.2
> When the Bundle Started I got this Error.
>
> Caused by: java.lang.NoClassDefFoundError:
> org.apache.axis.deployment.wsdd.WSDDConstants
>         at
> org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
>         at
> org.apache.axis.AxisEngine.init(AxisEngine.java:172)[674:TestTest3:1.0.0]
>         at
> org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)[674:TestTest3:1.0.0]
>         at
> org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)[674:TestTest3:1.0.0]
>         at
> org.apache.axis.client.Service.getAxisClient(Service.java:104)[674:TestTest3:1.0.0]
>         at
> org.apache.axis.client.Service.<init>(Service.java:113)[674:TestTest3:1.0.0]
>         at
> com.atlassian.jira.rpc.soap.client.test.JiraSoapServiceServiceLocator.<init>(JiraSoapServiceServiceLocator.java:16)[669:JiraSoapClientCamelBlueprint.JiraSoapClientCamelBlueprint:0.0.1.SNAPSHOT]
>
> When I checked The axis Jar I found this Class.
>
> Can any one help me please !! 
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Caused-by-java-lang-NoClassDefFoundError-org-apache-axis-deployment-wsdd-WSDDConstants-tp5722456.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

-- 
Krzysztof Sobkowiak

JEE & OSS Architect
Apache Software Foundation Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC chair
Senior Solution Architect @ Capgemini SSC <http://www.pl.capgemini-sdm.com/en/>