I solved classpath issues by putting all the classpath stuff in it's
own file named classpath.xml in the same directory as the xbean.xml
file in my SU.
I guess can be explained by the way the servicemix JBI container works.
Benoît
Le 7 août 08 à 15:54, pratibhaG <[EMAIL PROTECTED]> a écrit :
I got one thing,
Even if it does not allow i have just put it and it built
successfully.
The code I have put in camelContext.xml is like this
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
">
<classpath><library>errorhandling</library></classpath>
<camelContext id="Routing"
xmlns="http://activemq.apache.org/camel/schema/spring">
<package>com.in2m.servicemix.operations.updateprofile.aa</
package>
</camelContext>
</beans>
Now when I deploy the operation to smx/hotdeploy I get following
error:
<loc-
message>org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'Routing:beanPostProcessor': Cannot resolve
reference to bean 'Routing' while setting bean property
'camelContext';
nested exception is
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'Routing': Invocation of init method
failed;
nested exception is
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'com.in2m.servicemix.operations.updateprofile.aa.MessageRouting':
Instantiation of bean failed; nested exception is
java.lang.VerifyError:
(class: com/in2m/servicemix/operations/updateprofile/aa/
MessageRouting,
method: configure signature: ()V) Incompatible argument to
function</loc-message>
<stack-trace><!
[CDATA[org.apache.xbean.kernel.ServiceRegistrationException:
org.springframework.beans.factory.BeanCreationException: Error
creating bean
with name 'Routing:beanPostProcessor': Cannot resolve reference to
bean
'Routing' while setting bean property 'camelContext'; nested
exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean
with name 'Routing': Invocation of init method failed; nested
exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean
with name
'com.in2m.servicemix.operations.updateprofile.aa.MessageRouting':
Instantiation of bean failed; nested exception is
java.lang.VerifyError:
(class: com/in2m/servicemix/operations/updateprofile/aa/
MessageRouting,
method: configure signature: ()V) Incompatible argument to function
at
org.
apache.
xbean.
kernel.
standard.
ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:
424)
at
org.
apache.
xbean.
kernel.standard.StandardKernel.registerService(StandardKernel.java:
220)
at
org.
apache.
xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
at
org.
apache.
servicemix.
common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:
83)
at
org.
apache.
servicemix.camel.CamelSpringDeployer.deploy(CamelSpringDeployer.java:
83)
at
org.
apache.
servicemix.
common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
at
org.
apache.
servicemix.
common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
at
org.
apache.
servicemix.
jbi.
framework.
DeploymentService.deployServiceAssembly(DeploymentService.java:508)
at
org.
apache.
servicemix.
jbi.
framework.
AutoDeploymentService.
updateServiceAssembly(AutoDeploymentService.java:353)
at
org.
apache.
servicemix.
jbi.
framework.
AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)
at
org.
apache.
servicemix.
jbi.
framework.
AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access
$800(AutoDeploymentService.java:62)
at
org.apache.servicemix.jbi.framework.AutoDeploymentService
$1.run(AutoDeploymentService.java:628)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
--
View this message in context:
http://www.nabble.com/Shared-library-problem-tp18849955p18871062.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.