camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark <javam...@gmail.com>
Subject Re: camel-ibatis and NoClassDefFound
Date Fri, 17 Sep 2010 21:37:15 GMT
Darren  - Great you sorted it.

Burn it to CD. Then do some code-archeology at your leisure!!!

On 17 September 2010 21:13, Darren Davison <darren@davisononline.org> wrote:
> Hi Willem,
>
> I started with a clean install of Fuse and re-deployed everything from
> our features files.. the error disappeared.  It's odd because this was
> happening on 2 development machines at the same time and clearing the data
> directory alone didn't fix it on either.
>
> I still have a backup of the offending installation, so I may try to
> reproduce this next week.  It's not the first time I've been burned by
> issues like this and would like to know the reason!
>
> Cheers,
> Darren.
>
> On Fri, Sep 17, 2010 at 03:11:29PM +0800, Willem Jiang wrote:
>> For the packages:imports, everything looks good.
>> Not sure if the it relates to your route config.
>>
>> Can I have a look at your route configure ?
>> Maybe I can write a simple OSGi test for it.
>>
>> Willem
>>
>> On 9/17/10 12:19 AM, Darren Davison wrote:
>> >hi,
>> >
>> >we are trying to deploy a bundle in smx 4.2 that uses the camel-ibatis
>> >feature and are runing into a runtime exception as follows:
>> >
>> >Caused by: java.lang.NoClassDefFoundError:
>> >com/ibatis/common/xml/NodeletException
>> >     at java.lang.Class.getDeclaredConstructors0(Native Method)
>> >     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>> >     at java.lang.Class.getConstructor0(Class.java:2699)
>> >     at java.lang.Class.getDeclaredConstructor(Class.java:1985)
>> >     at
>> >org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:54)
>> >     at
>> >org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
>> >     ... 28 more
>> >Caused by: java.lang.ClassNotFoundException:
>> >com.ibatis.common.xml.NodeletException
>> >     at
>> >org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
>> >     at
>> >org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
>> >     at
>> >org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
>> >     at
>> >org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
>> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>> >     ... 34 more
>> >
>> >
>> >Note that the bundle resolves, this happens at startup and causes the bundle
>> >to remain in a failed state.  Further info below (our bundle is id 149):
>> >
>> >
>> >
>> >karaf@root>  packages:imports 149
>> >OSGi System Bundle (0): com.sun.org.apache.xerces.internal.jaxp;
>> >version="0.0.0"
>> >OSGi System Bundle (0): javax.sql; version="0.0.0"
>> >camel-core (44): org.apache.camel; version="2.2.0.fuse-01-00"
>> >camel-core (44): org.apache.camel.model; version="2.2.0.fuse-01-00"
>> >camel-core (44): org.apache.camel.spi; version="2.2.0.fuse-01-00"
>> >spring-osgi-core (71): org.springframework.osgi.service.importer;
>> >version="1.2.0"
>> >spring-osgi-core (71): org.springframework.osgi.service.importer.support;
>> >version="1.2.0"
>> >camel-spring-osgi (100): org.apache.camel.osgi; version="2.2.0.fuse-01-00"
>> >camel-spring-osgi (100): org.apache.camel.spring; version="2.2.0.fuse-01-00"
>> >ServiceMix :: Common (103): org.apache.servicemix.common.osgi;
>> >version="2010.1.0.fuse-01-00"
>> >camel-jms (126): org.apache.camel.component.jms; version="2.2.0.fuse-01-00"
>> >activemq-camel (135): META-INF.services.org.apache.camel; version="0.0.0"
>> >Spring ORM (144): org.springframework.orm.ibatis; version="2.5.6.SEC01"
>> >Spring JDBC (145): org.springframework.jdbc.support.lob;
>> >version="2.5.6.SEC01"
>> >PaaS Routing Support (146): com.answerconsulting.paas.routing;
>> >version="0.0.0"
>> >Apache ServiceMix Bundles: ibatis-sqlmap-2.3.4.726 (161):
>> >com.ibatis.common.xml; version="2.3.4.726"
>> >camel-ibatis (162): org.apache.camel.component.ibatis;
>> >version="2.2.0.fuse-01-00"
>> >
>> >
>> >I've tried specifying dev:dynamic-import on 149 and all related bundles to
>> >no avail too.  Can anyone offer any ideas as to how to proceed?
>> >
>> >Cheers,
>> >
>> >
>>
>
> --
> Darren Davison
> Public Key: 0xE855B3EA
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAkyTy/UACgkQVgOfSOhVs+oc5ACfaWRtjTK4n9aDiWly8cuFBRBs
> T50An2OjswyCXbN+/PczqK/zqYLc1/2Y
> =aQmA
> -----END PGP SIGNATURE-----
>
>

Mime
View raw message