You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Freeman Fang <fr...@gmail.com> on 2011/07/01 04:34:25 UTC
Re: Axis bundle?
Hi,
You need install axis related jars into OSGi container, if those jars
are not OSGi friendly, you need OSGi-filed them first.
Freeman
On 2011-6-30, at 下午10:00, bjacobs wrote:
> When I try to install my component in ServiceMix I get an Error:
> java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
>
> The code that built the component does rely on axis.jar. How can I
> get that
> jar into ServiceMix?
>
> Thank you.
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Axis-bundle-tp4538960p4538960.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: Axis bundle?
Posted by se...@gmail.com.
To actually get axis working in OSGi you need to do a bit more due to class loading.
Imports
!com.sun*,
!org.apache.bsf*,
!org.exolab.castor*,
!sun*,
!org.apache.commons.net.pop3,
!org.apache.commons.net.smtp,
!org.apache.log,*
Then I ended up embedding this -
axis,commons-beanutils,commons-discovery-0.2,jaxrpc,log4j-1.2.6,saaj,wsdl4j-1.5.1,chConsumer,commons-logging
Dependencies -
<dependency>
<groupId>myproject.old.stuff</groupId>
<artifactId>axis</artifactId>
<version>1.0</version>
<systemPath>${project.basedir}/lib/axis.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>myproject.old.stuff</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.0</version>
<systemPath>${project.basedir}/lib/commons-beanutils.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>myproject.old.stuff</groupId>
<artifactId>commons-discovery-0.2</artifactId>
<version>1.0</version>
<systemPath>${project.basedir}/lib/commons-discovery-0.2.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>myproject.old.stuff</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0</version>
<systemPath>${project.basedir}/lib/commons-logging.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>myproject.old.stuff</groupId>
<artifactId>jaxrpc</artifactId>
<version>1.0</version>
<systemPath>${project.basedir}/lib/jaxrpc.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>myproject.old.stuff</groupId>
<artifactId>log4j-1.2.6</artifactId>
<version>1.0</version>
<systemPath>${project.basedir}/lib/log4j-1.2.6.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>myproject.old.stuff</groupId>
<artifactId>saaj</artifactId>
<version>1.0</version>
<systemPath>${project.basedir}/lib/saaj.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>myproject.old.stuff</groupId>
<artifactId>wsdl4j-1.5.1</artifactId>
<version>1.0</version>
<systemPath>${project.basedir}/lib/wsdl4j-1.5.1.jar</systemPath>
<scope>system</scope>
</dependency>
And finally some overridden axis classes…..
On Sat, Apr 4, 2015 at 12:43 AM, anas bakhou <an...@gmail.com>
wrote:
> Hi,
> What do you mean by OSGI metadata header ? Do you Mean the manifest.Mf File
> !! Please can any one help me I have the same problem.
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Axis-bundle-tp4538960p5722458.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Axis bundle?
Posted by anas bakhou <an...@gmail.com>.
Hi,
What do you mean by OSGI metadata header ? Do you Mean the manifest.Mf File
!! Please can any one help me I have the same problem.
--
View this message in context: http://servicemix.396122.n5.nabble.com/Axis-bundle-tp4538960p5722458.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Axis bundle?
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
It means add OSGi metadata header for the normal jar, to make them
working properly in OSGi container, generally you can use some bnd/mvn-
bundle-plugin tool to do so.
Freeman
On 2011-7-1, at 下午8:44, bjacobs wrote:
> Thank you for your reply. What does " OSGi-filed them first" mean?
>
>
>
>
> Freeman-2 wrote:
>>
>> Hi,
>>
>> You need install axis related jars into OSGi container, if those jars
>> are not OSGi friendly, you need OSGi-filed them first.
>>
>> Freeman
>> On 2011-6-30, at 下午10:00, bjacobs wrote:
>>
>>> When I try to install my component in ServiceMix I get an Error:
>>> java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
>>>
>>> The code that built the component does rely on axis.jar. How can I
>>> get that
>>> jar into ServiceMix?
>>>
>>> Thank you.
>>>
>>> --
>>> View this message in context:
>>> http://servicemix.396122.n5.nabble.com/Axis-bundle-tp4538960p4538960.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------
>> Freeman Fang
>>
>> FuseSource
>> Email:ffang@fusesource.com
>> Web: fusesource.com
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.com
>>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Axis-bundle-tp4538960p4542029.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Re: Axis bundle?
Posted by bjacobs <bj...@gojbm.com>.
Thank you for your reply. What does " OSGi-filed them first" mean?
Freeman-2 wrote:
>
> Hi,
>
> You need install axis related jars into OSGi container, if those jars
> are not OSGi friendly, you need OSGi-filed them first.
>
> Freeman
> On 2011-6-30, at 下午10:00, bjacobs wrote:
>
>> When I try to install my component in ServiceMix I get an Error:
>> java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
>>
>> The code that built the component does rely on axis.jar. How can I
>> get that
>> jar into ServiceMix?
>>
>> Thank you.
>>
>> --
>> View this message in context:
>> http://servicemix.396122.n5.nabble.com/Axis-bundle-tp4538960p4538960.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
> ---------------------------------------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
>
--
View this message in context: http://servicemix.396122.n5.nabble.com/Axis-bundle-tp4538960p4542029.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.