Good to know you could solve it by your own! Best, Christian -----------------
Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/members.html https://www.linkedin.com/pub/christian-mueller/11/551/642 On Sun, Aug 25, 2013 at 1:52 PM, contactreji <contactr...@gmail.com> wrote: > Hey Christian!! > > We manages to fix it!! I just added the soap schema locations in the > beans and its xsd path! > Miracleously the exception vanished! > > Reji > > "Christian Mueller [via Camel]" <ml-node+s465427n5737884...@n5.nabble.com> > wrote: > > > > > > >Is it only a jar file or an OSGI bundle? > >I think your Manifest.mf file is not correct. Can you share it? > > > >Best, > >Christian > >Am 25.08.2013 09:12 schrieb "contactreji" <contactr...@gmail.com>: > > > >> I am trying to follow Contract-first-approach > >> . > >> The FUSE IDE built all the java stub classes. I have used the generated > >> classes to create a jaxws:client as follows > >> > >> <jaxws:client id="sapPiProxy" > >> > >> address=" > >> > http://server:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=TM_Q_MES_Miheevsky&receiverParty=&receiverService=&interface=SI_ID59_Powerconsumption_async_out&interfaceNamespace=urn:company:pi:mes:id59:PowerConsumption > >> " > >> > >> > >> > serviceClass="company.pi.mes.id59.PowerConsumption.SIID59PowerconsumptionAsyncOut" > >> username="om_sys_user" > >> password="om_sys_user" > >> /> > >> > >> > >> But it ends up in class not found for the class > >> SIID59PowerconsumptionAsyncOut though it is generated and is part of the > >> set > >> of classes which are autogenerated. > >> > >> The project builds well and creates a deployment jar. But when deployed > it > >> fails and gives the following error log.. > >> > >> The error log is as follows > >> > >> JBossFuse:karaf@root> Exception in thread "SpringOsgiExtenderThread-2" > >> org.sprin > >> gframework.beans.factory.BeanCreationException: Error creating bean with > >> name 's > >> apPiProxy': Initialization of bean failed; nested exception is > >> org.springframewo > >> rk.beans.TypeMismatchException: Failed to convert property value of type > >> 'java.l > >> ang.String' to required type 'java.lang.Class' for property > 'serviceClass'; > >> nest > >> ed exception is java.lang.IllegalArgumentException: Cannot find class > >> [outotec.p > >> i.mes.id59.PowerConsumption.SIID59PowerconsumptionAsyncOut] > >> at > >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >> Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527) > >> at > >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >> Factory.createBean(AbstractAutowireCapableBeanFactory.java:456) > >> at > >> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb > >> ject(AbstractBeanFactory.java:294) > >> at > >> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr > >> y.getSingleton(DefaultSingletonBeanRegistry.java:225) > >> at > >> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe > >> an(AbstractBeanFactory.java:291) > >> at > >> org.springframework.beans.factory.support.AbstractBeanFactory.getBean > >> (AbstractBeanFactory.java:193) > >> at > >> org.springframework.beans.factory.support.DefaultListableBeanFactory. > >> preInstantiateSingletons(DefaultListableBeanFactory.java:587) > >> at > >> org.springframework.context.support.AbstractApplicationContext.finish > >> BeanFactoryInitialization(AbstractApplicationContext.java:925) > >> at > >> org.springframework.osgi.context.support.AbstractDelegatedExecutionAp > >> > >> > plicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:6 > >> 9) > >> at > >> org.springframework.osgi.context.support.AbstractDelegatedExecutionAp > >> > >> > plicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355) > >> at > >> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCus > >> tomTCCL(PrivilegedUtils.java:85) > >> at > >> org.springframework.osgi.context.support.AbstractDelegatedExecutionAp > >> > >> > plicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.ja > >> va:320) > >> at > >> org.springframework.osgi.extender.internal.dependencies.startup.Depen > >> > >> > dencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterAp > >> plicationContextExecutor.java:132) > >> at java.lang.Thread.run(Thread.java:722) > >> Caused by: org.springframework.beans.TypeMismatchException: Failed to > >> convert pr > >> operty value of type 'java.lang.String' to required type > 'java.lang.Class' > >> for p > >> roperty 'serviceClass'; nested exception is > >> java.lang.IllegalArgumentException: > >> Cannot find class > >> [outotec.pi.mes.id59.PowerConsumption.SIID59PowerconsumptionAs > >> yncOut] > >> at > >> org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrap > >> perImpl.java:490) > >> at > >> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrap > >> perImpl.java:516) > >> at > >> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrap > >> perImpl.java:510) > >> at > >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >> Factory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406) > >> at > >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >> > Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365) > >> at > >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >> Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1118) > >> at > >> org.springframework.beans.factory.support.AbstractAutowireCapableBean > >> Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) > >> ... 13 more > >> Caused by: java.lang.IllegalArgumentException: Cannot find class > >> [outotec.pi.mes > >> .id59.PowerConsumption.SIID59PowerconsumptionAsyncOut] > >> at > >> org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java: > >> 294) > >> at > >> org.springframework.beans.propertyeditors.ClassEditor.setAsText(Class > >> Editor.java:63) > >> at > >> org.springframework.beans.TypeConverterDelegate.doConvertTextValue(Ty > >> peConverterDelegate.java:435) > >> at > >> org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeCo > >> nverterDelegate.java:407) > >> at > >> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(Ty > >> peConverterDelegate.java:164) > >> at > >> org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrap > >> perImpl.java:470) > >> ... 19 more > >> Caused by: java.lang.ClassNotFoundException: > >> outotec.pi.mes.id59.PowerConsumptio > >> n.SIID59PowerconsumptionAsyncOut not found from bundle > >> [com.mycompany.energy-con > >> sumption] > >> at > >> org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(B > >> undleDelegatingClassLoader.java:103) > >> at > >> org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(B > >> undleDelegatingClassLoader.java:156) > >> at java.lang.ClassLoader.loadClass(ClassLoader.java:356) > >> at > org.springframework.util.ClassUtils.forName(ClassUtils.java:258) > >> at > >> org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java: > >> 291) > >> ... 24 more > >> Caused by: java.lang.ClassNotFoundException: > >> outotec.pi.mes.id59.PowerConsumptio > >> n.SIID59PowerconsumptionAsyncOut not found by > >> com.mycompany.energy-consumption [ > >> 249] > >> at > >> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDele > >> gation(BundleWiringImpl.java:1532) > >> at > >> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringIm > >> pl.java:75) > >> at > >> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadCla > >> ss(BundleWiringImpl.java:1955) > >> at java.lang.ClassLoader.loadClass(ClassLoader.java:356) > >> at > >> org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1862) > >> at > >> org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:937) > >> at > >> org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(B > >> undleDelegatingClassLoader.java:99) > >> ... 28 more > >> > >> > >> > >> > >> -- > >> View this message in context: > >> > http://camel.465427.n5.nabble.com/WSDL-first-approach-ClassNotFound-Exception-tp5737861.html > >> Sent from the Camel - Users mailing list archive at Nabble.com. > >> > > > > > > > > > >_______________________________________________ > >If you reply to this email, your message will be added to the discussion > below: > > > http://camel.465427.n5.nabble.com/WSDL-first-approach-ClassNotFound-Exception-tp5737861p5737884.html > > > >To unsubscribe from WSDL first approach - ClassNotFound Exception, visit > http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5737861&code=Y29udGFjdHJlamlAZ21haWwuY29tfDU3Mzc4NjF8MTAwNDkxODIzMw== > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/WSDL-first-approach-ClassNotFound-Exception-tp5737861p5737885.html > Sent from the Camel - Users mailing list archive at Nabble.com. >