Brijesh, The XPathExpressionException seems to indicate that something is wrong with the XPath expression, but it looks ok at first glance. The only thing I can think of is maybe the odd namespace (com.ekaplus.commons.document) that's being used. Could you try using a urn of some kind instead (e.g. urn:com.ekaplus.commons.document)?
Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ 2009/10/20 brijesh <[email protected]>: > > when I am compiling with maven, I am getting following warning, > > > [WARNING] Failed to generate jbi.xml: > org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to > generate service unit descriptor! > org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to > generate service unit descriptor! > at > org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:206) > at > org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.execute(GenerateServiceUnitDescriptorMojo.java:143) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name > 'org.apache.servicemix.eip.patterns.ContentBasedRouter' defined in URL > [file:/E:/project/awb/PE > branch/Code/EkaIntegrationArtifacts/smx/ServiceAssemblies/eip-notifyevent/src/main/res > ources/xbean.xml]: Cannot create inner bean 'eip:routing-rule#8497f6' of > type [org.apache.servicemix.eip.support.RoutingRule] while setting bean > property 'rules' with key [0]; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with na > me 'eip:routing-rule#8497f6' defined in URL [file:/E:/project/awb/PE > branch/Code/EkaIntegrationArtifacts/smx/ServiceAssemblies/eip-notifyevent/src/main/resources/xbean.xml]: > Cannot create inner bean '(inner bean)' of type > [org.apache.servicemix.eip.support.XPathPredicate] while s > etting constructor argument with index 0; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name '(inner bean)#1' defined in URL [file:/E:/project/awb/PE > branch/Code/EkaIntegrationArtifacts/smx/ServiceAssemblies/eip-notifyevent/ > src/main/resources/xbean.xml]: Invocation of init method failed; nested > exception is javax.xml.xpath.XPathExpressionException > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:222) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:281) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:131) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421) > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) > at > org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.init(AbstractXBeanServiceUnitAnalyzer.java:90) > at > org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:185) > ... 19 more > Caused by: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'eip:routing-rule#8497f6' defined in URL > [file:/E:/project/awb/PE > branch/Code/EkaIntegrationArtifacts/smx/ServiceAssemblies/eip-notifyevent/src/main/resources/xbean.xml]: > Cannot crea > te inner bean '(inner bean)' of type > [org.apache.servicemix.eip.support.XPathPredicate] while setting constructor > argument with index 0; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name '(inner bean)#1' defined in URL [fil > e:/E:/project/awb/PE > branch/Code/EkaIntegrationArtifacts/smx/ServiceAssemblies/eip-notifyevent/src/main/resources/xbean.xml]: > Invocation of init method failed; nested exception is > javax.xml.xpath.XPathExpressionException > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:222) > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:127) > at > org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:373) > at > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:120) > > > > Following is xbean configuration > > > <beans xmlns:eip="http://servicemix.apache.org/eip/1.0" > xmlns:imp="http://xmlns.oracle.com/EkaPoImportProcess" > xmlns:impSo="http://xmlns.oracle.com/EkaSoImportProcess" > xmlns:com="com.ekaplus.commons.document" > xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance" > xmlns:nte="http://www.ekaplus.com/NotifyEvent/" > xmlns:lstn="http://www.ekaplus.com/ListenerEvent/" > xmlns:bupa="http://SOAP_to_File_BUPA_Create" > xmlns:modad="http:\\SOAP_to_RFC_BUPA_Address_Change" > xmlns:invmod="http://SOAP_to_RFC_Customer_Invoice_Change" > xmlns:inc="htttp:\\SOAPtoZBAPI_Vendor_Invoice_Create_New" > xsi:schemaLocation="http://servicemix.apache.org/eip/1.0 > http://servicemix.apache.org/schema/servicemix-eip-3.2.2.xsd > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> > > <eip:content-based-router service="nte:gatewayRouter" > endpoint="gatewayRouterEP"> > <eip:rules> > <eip:routing-rule> > <eip:predicate> > <eip:xpath-predicate > > xpath="/com:GenericDocument/@document_Id = 'BUPA_CREATE'" > namespaceContext="#nsContext" > /> > </eip:predicate> > <eip:target> > <eip:exchange-target > > service="nte:bupaCreateEIPService" /> > </eip:target> > </eip:routing-rule> > </eip:rules> > </eip:content-based-router> > <!-- namespace configuration for generic document --> > <eip:namespace-context id="nsContext"> > <eip:namespaces> > <eip:namespace prefix="com"> > com.ekaplus.commons.document > </eip:namespace> > <eip:namespace prefix="nte"> > http://www.ekaplus.com/NotifyEvent/ > </eip:namespace> > </eip:namespaces> > </eip:namespace-context> > </beans> > > > Please guide me > > Regards > Brijesh N K > -- > View this message in context: > http://www.nabble.com/EIP-compilation-warning%2C-tp25970012p25970012.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
