|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
TR: Exception when we used a war in JonasHi
I have an exception when
I try to get a ProcessDefinition, the exception is caused by
java.lang.ClassNotFoundException: org.objectweb.asm.CodeVisitor.
This exception arrived only when I use a war of my code in Jonas. When I used my code in Eclipse environement there is no error. the code is the exception is org.jbpm.pvm.internal.wire.WireException: couldn't create object 'queryList': couldn't create argument 0: couldn't create object 'history': null at
org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:155) at com.francetelecom.orangelabs.cil.saasfcty.provisioningservice.ActiveSaas4CustomerEndpointImpl.startProvisioningProcess(ActiveSaas4CustomerEndpointImpl.java:60) at com.francetelecom.orangelabs.cil.saasfcty.provisioningservice.ActiveSaas4CustomerEndpointImpl.activeSaas4Customer(ActiveSaas4CustomerEndpointImpl.java:34) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
com.thoughtworks.xstream.core.DefaultConverterLookup.registerConverter(DefaultConverterLookup.java:58) I think it's an import problem, but I don't know
witch import -- You receive this message as a subscriber of the bonita@... mailing list. To unsubscribe: mailto:bonita-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: TR: Exception when we used a war in JonasHi Pascal,
could you verify that you have the right version of the asm.jar in your class path? You can find all needed jar for your server in lib/server folder of the bonita distribution. FYI, the asm versions needed are: asm-1.5.3.jar and asm-3.1.jar HTH -- Rodrigue 2009/4/9 <pascal.limeux@...>
-- You receive this message as a subscriber of the bonita@... mailing list. To unsubscribe: mailto:bonita-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: TR: Exception when we used a war in JonasHello,
This looks like a jar conflict with asm (it is always because of asm...). There are several versions of asm that are used by several projects: asm-1.5.3, used by Hibernate (and then by Bonita) asm-2.2, used by CXF asm-3.1 @org.objectweb, probably required by Fractal or something like that in Jonas asm-3.1 @org.ow2.util, used by Bonita The big problem is that there are 2 asm-3.1.jar, that does not contain the same classes. To get it working on a similar stack, here are some clues: * remove from you classpath cglib-2.*.jar and asm-1.5.* and replace them by cglib-nodep_2.*.jar => This removes the dependency from Hibernate/Bonita to the old asm * remove asm-2.* => CXF works well with asm-3.1 * Ensure that you have both asm-3.1.jar (the one with packages org.objectweb.asm and the one with packages org.ow2.util.asm). You'll have to rename one of them if you want both in the same folder. If you are developping with Maven, then you'll have * to exclude dependency from Bonita to cglib * add explicit dependency to cglib-nodep * add explicit dependency to asm:asm:3.1 We get it successfully working with a Bonita/eXo/Frascati (includes CXF)/Groovy stack. I hope it will work for you too. Regards, Mickael pascal.limeux@... a écrit : > Hi > I have an exception when I try to get a ProcessDefinition, the > exception is caused by_ __java.lang.ClassNotFoundException_: > org.objectweb.asm.CodeVisitor. > > This exception arrived only when I use a war of my code in Jonas. When > I used my code in Eclipse environement there is no error. > > the code is > processDef = (ProcessDefinition)/ > queryDefinitionAPI/.getProcess(_process.getProcessPackageName(), > _process.getProcessId(), _process.getVersion()); > > the exception is > 2009-04-09 11:07:15 ERROR [DefaultCommandService] exception while > executing command > org.ow2.bonita.facade.APIInterceptor$APIInterceptorCommand@14ff50a > > _org.jbpm.pvm.internal.wire.WireException_: couldn't create object > 'queryList': couldn't create argument 0: couldn't create object > 'history': null > > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_ObjectDescriptor.java:155_) > > at > org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:440_) > at > org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:420_) > at > org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:331_) > at > org.jbpm.pvm.internal.env.BasicEnvironment.get(_BasicEnvironment.java:133_) > > at > org.jbpm.pvm.internal.env.BasicEnvironment.get(_BasicEnvironment.java:123_) > > at > org.ow2.bonita.services.util.ServiceEnvTool.getEnvObject(_ServiceEnvTool.java:52_) > > at > org.ow2.bonita.services.util.ServiceEnvTool.getQuerierListAccessor(_ServiceEnvTool.java:82_) > > at > org.ow2.bonita.services.util.ServiceEnvTool.getAllQueriers(_ServiceEnvTool.java:85_) > > at > org.ow2.bonita.facade.impl.QueryDefinitionAPIImpl.getProcess(_QueryDefinitionAPIImpl.java:186_) > > 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:597_) > at > org.ow2.bonita.facade.APIInterceptor$APIInterceptorCommand.execute(_APIInterceptor.java:83_) > > at > org.jbpm.pvm.internal.svc.DefaultCommandService.execute(_DefaultCommandService.java:42_) > > at > org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(_StandardTransactionInterceptor.java:54_) > > at > org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(_EnvironmentInterceptor.java:40_) > > at > org.jbpm.pvm.internal.svc.RetryInterceptor.execute(_RetryInterceptor.java:52_) > > at > org.ow2.bonita.facade.APIInterceptor.invoke(_APIInterceptor.java:107_) > at $Proxy42.getProcess(Unknown Source) > 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:597_) > at > org.ow2.bonita.facade.interceptor.ClientAPIInterceptor.invoke(_ClientAPIInterceptor.java:68_) > > at $Proxy43.getProcess(Unknown Source) > at > com.francetelecom.orangelabs.cil.saasfcty.provisioning.common.process.bo.process.ProcessManager.instanciate(_ProcessManager.java:105_) > > at > com.francetelecom.orangelabs.cil.saasfcty.provisioningservice.ActiveSaas4CustomerEndpointImpl.startProvisioningProcess(_ActiveSaas4CustomerEndpointImpl.java:60_) > > at > com.francetelecom.orangelabs.cil.saasfcty.provisioningservice.ActiveSaas4CustomerEndpointImpl.activeSaas4Customer(_ActiveSaas4CustomerEndpointImpl.java:34_) > > 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:597_) > at > org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(_AbstractInvoker.java:165_) > > at > org.apache.cxf.service.invoker.AbstractInvoker.invoke(_AbstractInvoker.java:82_) > > at > org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(_JAXWSMethodInvoker.java:54_) > > at > org.apache.cxf.service.invoker.AbstractInvoker.invoke(_AbstractInvoker.java:68_) > > at > org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(_ServiceInvokerInterceptor.java:56_) > > at > org.apache.cxf.workqueue.SynchronousExecutor.execute(_SynchronousExecutor.java:37_) > > at > org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(_ServiceInvokerInterceptor.java:92_) > > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(_PhaseInterceptorChain.java:226_) > > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(_ChainInitiationObserver.java:89_) > > at > org.apache.cxf.transport.servlet.ServletDestination.invoke(_ServletDestination.java:99_) > > at > org.apache.cxf.transport.servlet.ServletController.invokeDestination(_ServletController.java:305_) > > at > org.apache.cxf.transport.servlet.ServletController.invoke(_ServletController.java:175_) > > at > org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(_AbstractCXFServlet.java:163_) > > at > org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(_AbstractCXFServlet.java:141_) > > at javax.servlet.http.HttpServlet.service(_HttpServlet.java:637_) > at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_ApplicationFilterChain.java:290_) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationFilterChain.java:206_) > > at > org.apache.catalina.core.StandardWrapperValve.invoke(_StandardWrapperValve.java:233_) > > at > org.apache.catalina.core.StandardContextValve.invoke(_StandardContextValve.java:191_) > > at > org.apache.catalina.core.StandardHostValve.invoke(_StandardHostValve.java:128_) > > at > org.apache.catalina.valves.ErrorReportValve.invoke(_ErrorReportValve.java:102_) > > at > org.apache.catalina.core.StandardEngineValve.invoke(_StandardEngineValve.java:109_) > > at > org.apache.catalina.connector.CoyoteAdapter.service(_CoyoteAdapter.java:286_) > > at > org.apache.coyote.http11.Http11Processor.process(_Http11Processor.java:845_) > > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(_Http11Protocol.java:583_) > > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(_JIoEndpoint.java:447_) > at java.lang.Thread.run(_Thread.java:619_) > Caused by:_ java.lang.Exception_: couldn't create argument 0: couldn't > create object 'history': null > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(_ObjectDescriptor.java:338_) > > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_ObjectDescriptor.java:146_) > > ... 63 more > Caused by:_ org.jbpm.pvm.internal.wire.WireException_: couldn't create > object 'history': null > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_ObjectDescriptor.java:155_) > > at > org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:440_) > at > org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:420_) > at > org.jbpm.pvm.internal.wire.descriptor.ReferenceDescriptor.construct(_ReferenceDescriptor.java:34_) > > at > org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) > at > org.jbpm.pvm.internal.wire.descriptor.CollectionDescriptor.initialize(_CollectionDescriptor.java:72_) > > at > org.jbpm.pvm.internal.wire.WireContext.performInitialization(_WireContext.java:536_) > > at > org.jbpm.pvm.internal.wire.WireContext.processPendingInitializations(_WireContext.java:567_) > > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:453_) > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(_ObjectDescriptor.java:333_) > > ... 64 more > Caused by:_ java.lang.reflect.InvocationTargetException_ > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(_Native Method_) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(_NativeConstructorAccessorImpl.java:39_) > > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(_DelegatingConstructorAccessorImpl.java:27_) > > at > java.lang.reflect.Constructor.newInstance(_Constructor.java:513_) > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_ObjectDescriptor.java:151_) > > ... 76 more > Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor > at > net.sf.cglib.core.KeyFactory$Generator.generateClass(_KeyFactory.java:165_) > > at > net.sf.cglib.core.DefaultGeneratorStrategy.generate(_DefaultGeneratorStrategy.java:25_) > > at > net.sf.cglib.core.AbstractClassGenerator.create(_AbstractClassGenerator.java:216_) > > at > net.sf.cglib.core.KeyFactory$Generator.create(_KeyFactory.java:145_) > at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:117_) > at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:108_) > at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:104_) > at net.sf.cglib.proxy.Enhancer.<clinit>(_Enhancer.java:69_) > at > com.thoughtworks.xstream.converters.reflection.CGLIBEnhancedConverter.canConvert(_CGLIBEnhancedConverter.java:59_) > > at > com.thoughtworks.xstream.core.DefaultConverterLookup.registerConverter(_DefaultConverterLookup.java:58_) > > at > com.thoughtworks.xstream.XStream.registerConverter(_XStream.java:1033_) > at > com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(_XStream.java:663_) > > at > com.thoughtworks.xstream.XStream.setupConverters(_XStream.java:646_) > at com.thoughtworks.xstream.XStream.<init>(_XStream.java:375_) > at com.thoughtworks.xstream.XStream.<init>(_XStream.java:301_) > at > org.ow2.bonita.persistence.xml.XMLHistory.<init>(_XMLHistory.java:132_) > at > org.ow2.bonita.persistence.xml.XMLHistory.<init>(_XMLHistory.java:113_) > ... 81 more > Caused by:_ java.lang.ClassNotFoundException_: > org.objectweb.asm.CodeVisitor > at > org.apache.catalina.loader.WebappClassLoader.loadClass(_WebappClassLoader.java:1387_) > > at > org.apache.catalina.loader.WebappClassLoader.loadClass(_WebappClassLoader.java:1233_) > > at > java.lang.ClassLoader.loadClassInternal(_ClassLoader.java:319_) > ... 98 more > > I think it's an import problem, but I don't know witch import > > Regards > Pascal > -- You receive this message as a subscriber of the bonita@... mailing list. To unsubscribe: mailto:bonita-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
RE: Re: TR: Exception when we used a war in JonasHi Mickael,
I tryed your solution Here is an extract of my pom.xml, but the error is always throw, may be the syntax is not correct <dependency> <groupId>org.ow2.bonita</groupId> <artifactId>bonita-server</artifactId> <exclusions> <exclusion> <groupId>cglib</groupId> <artifactId>cglib</artifactId> </exclusion> </exclusions> <version>4.0.1</version> </dependency> <dependency> <groupId>cglib</groupId> <artifactId>cglib-nodep</artifactId> <version>2.2</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>3.1</version> </dependency> Regards, Pascal -----Message d'origine----- De : Mickael Istria [mailto:mickael.istria@...] Envoyé : jeudi 9 avril 2009 11:51 À : LIMEUX Pascal RD-BIZZ-GRE Cc : bonita@... Objet : [bonita] Re: TR: Exception when we used a war in Jonas Hello, This looks like a jar conflict with asm (it is always because of asm...). There are several versions of asm that are used by several projects: asm-1.5.3, used by Hibernate (and then by Bonita) asm-2.2, used by CXF asm-3.1 @org.objectweb, probably required by Fractal or something like that in Jonas asm-3.1 @org.ow2.util, used by Bonita The big problem is that there are 2 asm-3.1.jar, that does not contain the same classes. To get it working on a similar stack, here are some clues: * remove from you classpath cglib-2.*.jar and asm-1.5.* and replace them by cglib-nodep_2.*.jar => This removes the dependency from Hibernate/Bonita to the old asm * remove asm-2.* => CXF works well with asm-3.1 * Ensure that you have both asm-3.1.jar (the one with packages org.objectweb.asm and the one with packages org.ow2.util.asm). You'll have to rename one of them if you want both in the same folder. If you are developping with Maven, then you'll have * to exclude dependency from Bonita to cglib * add explicit dependency to cglib-nodep * add explicit dependency to asm:asm:3.1 We get it successfully working with a Bonita/eXo/Frascati (includes CXF)/Groovy stack. I hope it will work for you too. Regards, Mickael pascal.limeux@... a écrit : > Hi > I have an exception when I try to get a ProcessDefinition, the > exception is caused by_ __java.lang.ClassNotFoundException_: > org.objectweb.asm.CodeVisitor. > > This exception arrived only when I use a war of my code in Jonas. When > I used my code in Eclipse environement there is no error. > > the code is > processDef = (ProcessDefinition)/ > queryDefinitionAPI/.getProcess(_process.getProcessPackageName(), > _process.getProcessId(), _process.getVersion()); > > the exception is > 2009-04-09 11:07:15 ERROR [DefaultCommandService] exception while > executing command > org.ow2.bonita.facade.APIInterceptor$APIInterceptorCommand@14ff50a > > _org.jbpm.pvm.internal.wire.WireException_: couldn't create object > 'queryList': couldn't create argument 0: couldn't create object > 'history': null > > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obje > ctDescriptor.java:155_) > > at > org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:440_) > at > org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:420_) > at > org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:331_) > at > org.jbpm.pvm.internal.env.BasicEnvironment.get(_BasicEnvironment.java: > 133_) > > at > org.jbpm.pvm.internal.env.BasicEnvironment.get(_BasicEnvironment.java: > 123_) > > at > org.ow2.bonita.services.util.ServiceEnvTool.getEnvObject(_ServiceEnvTo > ol.java:52_) > > at > org.ow2.bonita.services.util.ServiceEnvTool.getQuerierListAccessor(_Se > rviceEnvTool.java:82_) > > at > org.ow2.bonita.services.util.ServiceEnvTool.getAllQueriers(_ServiceEnv > Tool.java:85_) > > at > org.ow2.bonita.facade.impl.QueryDefinitionAPIImpl.getProcess(_QueryDef > initionAPIImpl.java:186_) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) > at > sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. > java:39_) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcces > sorImpl.java:25_) > > at java.lang.reflect.Method.invoke(_Method.java:597_) > at > org.ow2.bonita.facade.APIInterceptor$APIInterceptorCommand.execute(_AP > IInterceptor.java:83_) > > at > org.jbpm.pvm.internal.svc.DefaultCommandService.execute(_DefaultComman > dService.java:42_) > > at > org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(_Stand > ardTransactionInterceptor.java:54_) > > at > org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(_EnvironmentI > nterceptor.java:40_) > > at > org.jbpm.pvm.internal.svc.RetryInterceptor.execute(_RetryInterceptor.j > ava:52_) > > at > org.ow2.bonita.facade.APIInterceptor.invoke(_APIInterceptor.java:107_) > at $Proxy42.getProcess(Unknown Source) > at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) > at > sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. > java:39_) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcces > sorImpl.java:25_) > > at java.lang.reflect.Method.invoke(_Method.java:597_) > at > org.ow2.bonita.facade.interceptor.ClientAPIInterceptor.invoke(_ClientA > PIInterceptor.java:68_) > > at $Proxy43.getProcess(Unknown Source) > at > com.francetelecom.orangelabs.cil.saasfcty.provisioning.common.process. > bo.process.ProcessManager.instanciate(_ProcessManager.java:105_) > > at > com.francetelecom.orangelabs.cil.saasfcty.provisioningservice.ActiveSa > as4CustomerEndpointImpl.startProvisioningProcess(_ActiveSaas4CustomerE > ndpointImpl.java:60_) > > at > com.francetelecom.orangelabs.cil.saasfcty.provisioningservice.ActiveSa > as4CustomerEndpointImpl.activeSaas4Customer(_ActiveSaas4CustomerEndpoi > ntImpl.java:34_) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) > at > sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. > java:39_) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcces > sorImpl.java:25_) > > at java.lang.reflect.Method.invoke(_Method.java:597_) > at > org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(_Abst > ractInvoker.java:165_) > > at > org.apache.cxf.service.invoker.AbstractInvoker.invoke(_AbstractInvoker > .java:82_) > > at > org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(_JAXWSMethodInvoker.jav > a:54_) > > at > org.apache.cxf.service.invoker.AbstractInvoker.invoke(_AbstractInvoker > .java:68_) > > at > org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(_ServiceInv > okerInterceptor.java:56_) > > at > org.apache.cxf.workqueue.SynchronousExecutor.execute(_SynchronousExecu > tor.java:37_) > > at > org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(_Se > rviceInvokerInterceptor.java:92_) > > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(_PhaseIntercept > orChain.java:226_) > > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(_ChainIniti > ationObserver.java:89_) > > at > org.apache.cxf.transport.servlet.ServletDestination.invoke(_ServletDes > tination.java:99_) > > at > org.apache.cxf.transport.servlet.ServletController.invokeDestination(_ > ServletController.java:305_) > > at > org.apache.cxf.transport.servlet.ServletController.invoke(_ServletCont > roller.java:175_) > > at > org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(_AbstractCX > FServlet.java:163_) > > at > org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(_AbstractCX > FServlet.java:141_) > > at javax.servlet.http.HttpServlet.service(_HttpServlet.java:637_) > at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_Appl > icationFilterChain.java:290_) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationF > ilterChain.java:206_) > > at > org.apache.catalina.core.StandardWrapperValve.invoke(_StandardWrapperV > alve.java:233_) > > at > org.apache.catalina.core.StandardContextValve.invoke(_StandardContextV > alve.java:191_) > > at > org.apache.catalina.core.StandardHostValve.invoke(_StandardHostValve.j > ava:128_) > > at > org.apache.catalina.valves.ErrorReportValve.invoke(_ErrorReportValve.j > ava:102_) > > at > org.apache.catalina.core.StandardEngineValve.invoke(_StandardEngineVal > ve.java:109_) > > at > org.apache.catalina.connector.CoyoteAdapter.service(_CoyoteAdapter.jav > a:286_) > > at > org.apache.coyote.http11.Http11Processor.process(_Http11Processor.java > :845_) > > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces > s(_Http11Protocol.java:583_) > > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(_JIoEndpoint.java:447_) > at java.lang.Thread.run(_Thread.java:619_) > Caused by:_ java.lang.Exception_: couldn't create argument 0: couldn't > create object 'history': null > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(_Object > Descriptor.java:338_) > > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obje > ctDescriptor.java:146_) > > ... 63 more > Caused by:_ org.jbpm.pvm.internal.wire.WireException_: couldn't create > object 'history': null > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obje > ctDescriptor.java:155_) > > at > org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:440_) > at > org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:420_) > at > org.jbpm.pvm.internal.wire.descriptor.ReferenceDescriptor.construct(_R > eferenceDescriptor.java:34_) > > at > org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) > at > org.jbpm.pvm.internal.wire.descriptor.CollectionDescriptor.initialize( > _CollectionDescriptor.java:72_) > > at > org.jbpm.pvm.internal.wire.WireContext.performInitialization(_WireCont > ext.java:536_) > > at > org.jbpm.pvm.internal.wire.WireContext.processPendingInitializations(_ > WireContext.java:567_) > > at > org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:453_) > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(_Object > Descriptor.java:333_) > > ... 64 more > Caused by:_ java.lang.reflect.InvocationTargetException_ > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(_Native Method_) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(_NativeConstruct > orAccessorImpl.java:39_) > > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(_DelegatingC > onstructorAccessorImpl.java:27_) > > at > java.lang.reflect.Constructor.newInstance(_Constructor.java:513_) > at > org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obje > ctDescriptor.java:151_) > > ... 76 more > Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor > at > net.sf.cglib.core.KeyFactory$Generator.generateClass(_KeyFactory.java: > 165_) > > at > net.sf.cglib.core.DefaultGeneratorStrategy.generate(_DefaultGeneratorS > trategy.java:25_) > > at > net.sf.cglib.core.AbstractClassGenerator.create(_AbstractClassGenerato > r.java:216_) > > at > net.sf.cglib.core.KeyFactory$Generator.create(_KeyFactory.java:145_) > at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:117_) > at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:108_) > at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:104_) > at net.sf.cglib.proxy.Enhancer.<clinit>(_Enhancer.java:69_) > at > com.thoughtworks.xstream.converters.reflection.CGLIBEnhancedConverter. > canConvert(_CGLIBEnhancedConverter.java:59_) > > at > com.thoughtworks.xstream.core.DefaultConverterLookup.registerConverter > (_DefaultConverterLookup.java:58_) > > at > com.thoughtworks.xstream.XStream.registerConverter(_XStream.java:1033_) > at > com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(_XStream > .java:663_) > > at > com.thoughtworks.xstream.XStream.setupConverters(_XStream.java:646_) > at com.thoughtworks.xstream.XStream.<init>(_XStream.java:375_) > at com.thoughtworks.xstream.XStream.<init>(_XStream.java:301_) > at > org.ow2.bonita.persistence.xml.XMLHistory.<init>(_XMLHistory.java:132_) > at > org.ow2.bonita.persistence.xml.XMLHistory.<init>(_XMLHistory.java:113_) > ... 81 more > Caused by:_ java.lang.ClassNotFoundException_: > org.objectweb.asm.CodeVisitor > at > org.apache.catalina.loader.WebappClassLoader.loadClass(_WebappClassLoa > der.java:1387_) > > at > org.apache.catalina.loader.WebappClassLoader.loadClass(_WebappClassLoa > der.java:1233_) > > at > java.lang.ClassLoader.loadClassInternal(_ClassLoader.java:319_) > ... 98 more > > I think it's an import problem, but I don't know witch import > > Regards > Pascal > -- You receive this message as a subscriber of the bonita@... mailing list. To unsubscribe: mailto:bonita-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
Re: RE: Re: TR: Exception when we used a war in JonasHello Pascal,
Take a look at the output of "mvn dependency:resolve", and ensure that cglib is actually replaced by cglib_nodep. By the way, you could try to use version 4.1 of Bonita, since the replacement of cglib by cglib_nodep has been directly set into Bonita dependencies (you won't need any more to exclude it by yourself). HTH. Mickael pascal.limeux@... a écrit : > Hi Mickael, > I tryed your solution > Here is an extract of my pom.xml, but the error is always throw, may be the syntax is not correct > <dependency> > <groupId>org.ow2.bonita</groupId> > <artifactId>bonita-server</artifactId> > <exclusions> > <exclusion> > <groupId>cglib</groupId> > <artifactId>cglib</artifactId> > </exclusion> > </exclusions> > <version>4.0.1</version> > </dependency> > <dependency> > <groupId>cglib</groupId> > <artifactId>cglib-nodep</artifactId> > <version>2.2</version> > </dependency> > <dependency> > <groupId>asm</groupId> > <artifactId>asm</artifactId> > <version>3.1</version> > </dependency> > Regards, > Pascal > -----Message d'origine----- > De : Mickael Istria [mailto:mickael.istria@...] > Envoyé : jeudi 9 avril 2009 11:51 > À : LIMEUX Pascal RD-BIZZ-GRE > Cc : bonita@... > Objet : [bonita] Re: TR: Exception when we used a war in Jonas > > Hello, > > This looks like a jar conflict with asm (it is always because of asm...). > There are several versions of asm that are used by several projects: > asm-1.5.3, used by Hibernate (and then by Bonita) > asm-2.2, used by CXF > asm-3.1 @org.objectweb, probably required by Fractal or something like that in Jonas > asm-3.1 @org.ow2.util, used by Bonita > The big problem is that there are 2 asm-3.1.jar, that does not contain the same classes. > > To get it working on a similar stack, here are some clues: > * remove from you classpath cglib-2.*.jar and asm-1.5.* and replace > them by cglib-nodep_2.*.jar => This removes the dependency from > Hibernate/Bonita to the old asm > * remove asm-2.* => CXF works well with asm-3.1 > * Ensure that you have both asm-3.1.jar (the one with packages org.objectweb.asm and the one with packages org.ow2.util.asm). You'll have to rename one of them if you want both in the same folder. > > If you are developping with Maven, then you'll have > * to exclude dependency from Bonita to cglib > * add explicit dependency to cglib-nodep > * add explicit dependency to asm:asm:3.1 > > We get it successfully working with a Bonita/eXo/Frascati (includes CXF)/Groovy stack. I hope it will work for you too. > > Regards, > Mickael > > > pascal.limeux@... a écrit : > >> Hi >> I have an exception when I try to get a ProcessDefinition, the >> exception is caused by_ __java.lang.ClassNotFoundException_: >> org.objectweb.asm.CodeVisitor. >> >> This exception arrived only when I use a war of my code in Jonas. When >> I used my code in Eclipse environement there is no error. >> >> the code is >> processDef = (ProcessDefinition)/ >> queryDefinitionAPI/.getProcess(_process.getProcessPackageName(), >> _process.getProcessId(), _process.getVersion()); >> >> the exception is >> 2009-04-09 11:07:15 ERROR [DefaultCommandService] exception while >> executing command >> org.ow2.bonita.facade.APIInterceptor$APIInterceptorCommand@14ff50a >> >> _org.jbpm.pvm.internal.wire.WireException_: couldn't create object >> 'queryList': couldn't create argument 0: couldn't create object >> 'history': null >> >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obje >> ctDescriptor.java:155_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:440_) >> at >> org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:420_) >> at >> org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:331_) >> at >> org.jbpm.pvm.internal.env.BasicEnvironment.get(_BasicEnvironment.java: >> 133_) >> >> at >> org.jbpm.pvm.internal.env.BasicEnvironment.get(_BasicEnvironment.java: >> 123_) >> >> at >> org.ow2.bonita.services.util.ServiceEnvTool.getEnvObject(_ServiceEnvTo >> ol.java:52_) >> >> at >> org.ow2.bonita.services.util.ServiceEnvTool.getQuerierListAccessor(_Se >> rviceEnvTool.java:82_) >> >> at >> org.ow2.bonita.services.util.ServiceEnvTool.getAllQueriers(_ServiceEnv >> Tool.java:85_) >> >> at >> org.ow2.bonita.facade.impl.QueryDefinitionAPIImpl.getProcess(_QueryDef >> initionAPIImpl.java:186_) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. >> java:39_) >> >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcces >> sorImpl.java:25_) >> >> at java.lang.reflect.Method.invoke(_Method.java:597_) >> at >> org.ow2.bonita.facade.APIInterceptor$APIInterceptorCommand.execute(_AP >> IInterceptor.java:83_) >> >> at >> org.jbpm.pvm.internal.svc.DefaultCommandService.execute(_DefaultComman >> dService.java:42_) >> >> at >> org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(_Stand >> ardTransactionInterceptor.java:54_) >> >> at >> org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(_EnvironmentI >> nterceptor.java:40_) >> >> at >> org.jbpm.pvm.internal.svc.RetryInterceptor.execute(_RetryInterceptor.j >> ava:52_) >> >> at >> org.ow2.bonita.facade.APIInterceptor.invoke(_APIInterceptor.java:107_) >> at $Proxy42.getProcess(Unknown Source) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. >> java:39_) >> >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcces >> sorImpl.java:25_) >> >> at java.lang.reflect.Method.invoke(_Method.java:597_) >> at >> org.ow2.bonita.facade.interceptor.ClientAPIInterceptor.invoke(_ClientA >> PIInterceptor.java:68_) >> >> at $Proxy43.getProcess(Unknown Source) >> at >> com.francetelecom.orangelabs.cil.saasfcty.provisioning.common.process. >> bo.process.ProcessManager.instanciate(_ProcessManager.java:105_) >> >> at >> com.francetelecom.orangelabs.cil.saasfcty.provisioningservice.ActiveSa >> as4CustomerEndpointImpl.startProvisioningProcess(_ActiveSaas4CustomerE >> ndpointImpl.java:60_) >> >> at >> com.francetelecom.orangelabs.cil.saasfcty.provisioningservice.ActiveSa >> as4CustomerEndpointImpl.activeSaas4Customer(_ActiveSaas4CustomerEndpoi >> ntImpl.java:34_) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. >> java:39_) >> >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcces >> sorImpl.java:25_) >> >> at java.lang.reflect.Method.invoke(_Method.java:597_) >> at >> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(_Abst >> ractInvoker.java:165_) >> >> at >> org.apache.cxf.service.invoker.AbstractInvoker.invoke(_AbstractInvoker >> .java:82_) >> >> at >> org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(_JAXWSMethodInvoker.jav >> a:54_) >> >> at >> org.apache.cxf.service.invoker.AbstractInvoker.invoke(_AbstractInvoker >> .java:68_) >> >> at >> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(_ServiceInv >> okerInterceptor.java:56_) >> >> at >> org.apache.cxf.workqueue.SynchronousExecutor.execute(_SynchronousExecu >> tor.java:37_) >> >> at >> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(_Se >> rviceInvokerInterceptor.java:92_) >> >> at >> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(_PhaseIntercept >> orChain.java:226_) >> >> at >> org.apache.cxf.transport.ChainInitiationObserver.onMessage(_ChainIniti >> ationObserver.java:89_) >> >> at >> org.apache.cxf.transport.servlet.ServletDestination.invoke(_ServletDes >> tination.java:99_) >> >> at >> org.apache.cxf.transport.servlet.ServletController.invokeDestination(_ >> ServletController.java:305_) >> >> at >> org.apache.cxf.transport.servlet.ServletController.invoke(_ServletCont >> roller.java:175_) >> >> at >> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(_AbstractCX >> FServlet.java:163_) >> >> at >> org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(_AbstractCX >> FServlet.java:141_) >> >> at javax.servlet.http.HttpServlet.service(_HttpServlet.java:637_) >> at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_Appl >> icationFilterChain.java:290_) >> >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationF >> ilterChain.java:206_) >> >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(_StandardWrapperV >> alve.java:233_) >> >> at >> org.apache.catalina.core.StandardContextValve.invoke(_StandardContextV >> alve.java:191_) >> >> at >> org.apache.catalina.core.StandardHostValve.invoke(_StandardHostValve.j >> ava:128_) >> >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(_ErrorReportValve.j >> ava:102_) >> >> at >> org.apache.catalina.core.StandardEngineValve.invoke(_StandardEngineVal >> ve.java:109_) >> >> at >> org.apache.catalina.connector.CoyoteAdapter.service(_CoyoteAdapter.jav >> a:286_) >> >> at >> org.apache.coyote.http11.Http11Processor.process(_Http11Processor.java >> :845_) >> >> at >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces >> s(_Http11Protocol.java:583_) >> >> at >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(_JIoEndpoint.java:447_) >> at java.lang.Thread.run(_Thread.java:619_) >> Caused by:_ java.lang.Exception_: couldn't create argument 0: couldn't >> create object 'history': null >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(_Object >> Descriptor.java:338_) >> >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obje >> ctDescriptor.java:146_) >> >> ... 63 more >> Caused by:_ org.jbpm.pvm.internal.wire.WireException_: couldn't create >> object 'history': null >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obje >> ctDescriptor.java:155_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:440_) >> at >> org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:420_) >> at >> org.jbpm.pvm.internal.wire.descriptor.ReferenceDescriptor.construct(_R >> eferenceDescriptor.java:34_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) >> at >> org.jbpm.pvm.internal.wire.descriptor.CollectionDescriptor.initialize( >> _CollectionDescriptor.java:72_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.performInitialization(_WireCont >> ext.java:536_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.processPendingInitializations(_ >> WireContext.java:567_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:453_) >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(_Object >> Descriptor.java:333_) >> >> ... 64 more >> Caused by:_ java.lang.reflect.InvocationTargetException_ >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(_Native Method_) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(_NativeConstruct >> orAccessorImpl.java:39_) >> >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(_DelegatingC >> onstructorAccessorImpl.java:27_) >> >> at >> java.lang.reflect.Constructor.newInstance(_Constructor.java:513_) >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obje >> ctDescriptor.java:151_) >> >> ... 76 more >> Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor >> at >> net.sf.cglib.core.KeyFactory$Generator.generateClass(_KeyFactory.java: >> 165_) >> >> at >> net.sf.cglib.core.DefaultGeneratorStrategy.generate(_DefaultGeneratorS >> trategy.java:25_) >> >> at >> net.sf.cglib.core.AbstractClassGenerator.create(_AbstractClassGenerato >> r.java:216_) >> >> at >> net.sf.cglib.core.KeyFactory$Generator.create(_KeyFactory.java:145_) >> at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:117_) >> at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:108_) >> at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:104_) >> at net.sf.cglib.proxy.Enhancer.<clinit>(_Enhancer.java:69_) >> at >> com.thoughtworks.xstream.converters.reflection.CGLIBEnhancedConverter. >> canConvert(_CGLIBEnhancedConverter.java:59_) >> >> at >> com.thoughtworks.xstream.core.DefaultConverterLookup.registerConverter >> (_DefaultConverterLookup.java:58_) >> >> at >> com.thoughtworks.xstream.XStream.registerConverter(_XStream.java:1033_) >> at >> com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(_XStream >> .java:663_) >> >> at >> com.thoughtworks.xstream.XStream.setupConverters(_XStream.java:646_) >> at com.thoughtworks.xstream.XStream.<init>(_XStream.java:375_) >> at com.thoughtworks.xstream.XStream.<init>(_XStream.java:301_) >> at >> org.ow2.bonita.persistence.xml.XMLHistory.<init>(_XMLHistory.java:132_) >> at >> org.ow2.bonita.persistence.xml.XMLHistory.<init>(_XMLHistory.java:113_) >> ... 81 more >> Caused by:_ java.lang.ClassNotFoundException_: >> org.objectweb.asm.CodeVisitor >> at >> org.apache.catalina.loader.WebappClassLoader.loadClass(_WebappClassLoa >> der.java:1387_) >> >> at >> org.apache.catalina.loader.WebappClassLoader.loadClass(_WebappClassLoa >> der.java:1233_) >> >> at >> java.lang.ClassLoader.loadClassInternal(_ClassLoader.java:319_) >> ... 98 more >> >> I think it's an import problem, but I don't know witch import >> >> Regards >> Pascal >> >> > > -- You receive this message as a subscriber of the bonita@... mailing list. To unsubscribe: mailto:bonita-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
|
|
RE: RE: Re: TR: Exception when we used a war in JonasThanks for your response,
I changed my sever in first I used Tomcat and now I use Jonas the exception have disappear. Regards, Pascal -----Message d'origine----- De : Mickael Istria [mailto:mickael.istria@...] Envoyé : jeudi 9 avril 2009 13:48 À : LIMEUX Pascal RD-BIZZ-GRE Cc : bonita@... Objet : Re: [bonita] RE: Re: TR: Exception when we used a war in Jonas Hello Pascal, Take a look at the output of "mvn dependency:resolve", and ensure that cglib is actually replaced by cglib_nodep. By the way, you could try to use version 4.1 of Bonita, since the replacement of cglib by cglib_nodep has been directly set into Bonita dependencies (you won't need any more to exclude it by yourself). HTH. Mickael pascal.limeux@... a écrit : > Hi Mickael, > I tryed your solution > Here is an extract of my pom.xml, but the error is always throw, may be the syntax is not correct > <dependency> > <groupId>org.ow2.bonita</groupId> > <artifactId>bonita-server</artifactId> > <exclusions> > <exclusion> > <groupId>cglib</groupId> > <artifactId>cglib</artifactId> > </exclusion> > </exclusions> > <version>4.0.1</version> > </dependency> > <dependency> > <groupId>cglib</groupId> > <artifactId>cglib-nodep</artifactId> > <version>2.2</version> > </dependency> > <dependency> > <groupId>asm</groupId> > <artifactId>asm</artifactId> > <version>3.1</version> > </dependency> > Regards, > Pascal > -----Message d'origine----- > De : Mickael Istria [mailto:mickael.istria@...] > Envoyé : jeudi 9 avril 2009 11:51 > À : LIMEUX Pascal RD-BIZZ-GRE > Cc : bonita@... > Objet : [bonita] Re: TR: Exception when we used a war in Jonas > > Hello, > > This looks like a jar conflict with asm (it is always because of asm...). > There are several versions of asm that are used by several projects: > asm-1.5.3, used by Hibernate (and then by Bonita) > asm-2.2, used by CXF > asm-3.1 @org.objectweb, probably required by Fractal or something like > that in Jonas > asm-3.1 @org.ow2.util, used by Bonita > The big problem is that there are 2 asm-3.1.jar, that does not contain the same classes. > > To get it working on a similar stack, here are some clues: > * remove from you classpath cglib-2.*.jar and asm-1.5.* and replace > them by cglib-nodep_2.*.jar => This removes the dependency from > Hibernate/Bonita to the old asm > * remove asm-2.* => CXF works well with asm-3.1 > * Ensure that you have both asm-3.1.jar (the one with packages org.objectweb.asm and the one with packages org.ow2.util.asm). You'll have to rename one of them if you want both in the same folder. > > If you are developping with Maven, then you'll have > * to exclude dependency from Bonita to cglib > * add explicit dependency to cglib-nodep > * add explicit dependency to asm:asm:3.1 > > We get it successfully working with a Bonita/eXo/Frascati (includes CXF)/Groovy stack. I hope it will work for you too. > > Regards, > Mickael > > > pascal.limeux@... a écrit : > >> Hi >> I have an exception when I try to get a ProcessDefinition, the >> exception is caused by_ __java.lang.ClassNotFoundException_: >> org.objectweb.asm.CodeVisitor. >> >> This exception arrived only when I use a war of my code in Jonas. >> When I used my code in Eclipse environement there is no error. >> >> the code is >> processDef = (ProcessDefinition)/ >> queryDefinitionAPI/.getProcess(_process.getProcessPackageName(), >> _process.getProcessId(), _process.getVersion()); >> >> the exception is >> 2009-04-09 11:07:15 ERROR [DefaultCommandService] exception while >> executing command >> org.ow2.bonita.facade.APIInterceptor$APIInterceptorCommand@14ff50a >> >> _org.jbpm.pvm.internal.wire.WireException_: couldn't create object >> 'queryList': couldn't create argument 0: couldn't create object >> 'history': null >> >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obj >> e >> ctDescriptor.java:155_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:440_) >> at >> org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:420_) >> at >> org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:331_) >> at >> org.jbpm.pvm.internal.env.BasicEnvironment.get(_BasicEnvironment.java: >> 133_) >> >> at >> org.jbpm.pvm.internal.env.BasicEnvironment.get(_BasicEnvironment.java: >> 123_) >> >> at >> org.ow2.bonita.services.util.ServiceEnvTool.getEnvObject(_ServiceEnvT >> o >> ol.java:52_) >> >> at >> org.ow2.bonita.services.util.ServiceEnvTool.getQuerierListAccessor(_S >> e >> rviceEnvTool.java:82_) >> >> at >> org.ow2.bonita.services.util.ServiceEnvTool.getAllQueriers(_ServiceEn >> v >> Tool.java:85_) >> >> at >> org.ow2.bonita.facade.impl.QueryDefinitionAPIImpl.getProcess(_QueryDe >> f >> initionAPIImpl.java:186_) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. >> java:39_) >> >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcce >> s >> sorImpl.java:25_) >> >> at java.lang.reflect.Method.invoke(_Method.java:597_) >> at >> org.ow2.bonita.facade.APIInterceptor$APIInterceptorCommand.execute(_A >> P >> IInterceptor.java:83_) >> >> at >> org.jbpm.pvm.internal.svc.DefaultCommandService.execute(_DefaultComma >> n >> dService.java:42_) >> >> at >> org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(_Stan >> d >> ardTransactionInterceptor.java:54_) >> >> at >> org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(_Environment >> I >> nterceptor.java:40_) >> >> at >> org.jbpm.pvm.internal.svc.RetryInterceptor.execute(_RetryInterceptor. >> j >> ava:52_) >> >> at >> org.ow2.bonita.facade.APIInterceptor.invoke(_APIInterceptor.java:107_) >> at $Proxy42.getProcess(Unknown Source) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. >> java:39_) >> >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcce >> s >> sorImpl.java:25_) >> >> at java.lang.reflect.Method.invoke(_Method.java:597_) >> at >> org.ow2.bonita.facade.interceptor.ClientAPIInterceptor.invoke(_Client >> A >> PIInterceptor.java:68_) >> >> at $Proxy43.getProcess(Unknown Source) >> at >> com.francetelecom.orangelabs.cil.saasfcty.provisioning.common.process. >> bo.process.ProcessManager.instanciate(_ProcessManager.java:105_) >> >> at >> com.francetelecom.orangelabs.cil.saasfcty.provisioningservice.ActiveS >> a >> as4CustomerEndpointImpl.startProvisioningProcess(_ActiveSaas4Customer >> E >> ndpointImpl.java:60_) >> >> at >> com.francetelecom.orangelabs.cil.saasfcty.provisioningservice.ActiveS >> a >> as4CustomerEndpointImpl.activeSaas4Customer(_ActiveSaas4CustomerEndpo >> i >> ntImpl.java:34_) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(_Native Method_) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(_NativeMethodAccessorImpl. >> java:39_) >> >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(_DelegatingMethodAcce >> s >> sorImpl.java:25_) >> >> at java.lang.reflect.Method.invoke(_Method.java:597_) >> at >> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(_Abs >> t >> ractInvoker.java:165_) >> >> at >> org.apache.cxf.service.invoker.AbstractInvoker.invoke(_AbstractInvoke >> r >> .java:82_) >> >> at >> org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(_JAXWSMethodInvoker.ja >> v >> a:54_) >> >> at >> org.apache.cxf.service.invoker.AbstractInvoker.invoke(_AbstractInvoke >> r >> .java:68_) >> >> at >> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(_ServiceIn >> v >> okerInterceptor.java:56_) >> >> at >> org.apache.cxf.workqueue.SynchronousExecutor.execute(_SynchronousExec >> u >> tor.java:37_) >> >> at >> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(_S >> e >> rviceInvokerInterceptor.java:92_) >> >> at >> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(_PhaseIntercep >> t >> orChain.java:226_) >> >> at >> org.apache.cxf.transport.ChainInitiationObserver.onMessage(_ChainInit >> i >> ationObserver.java:89_) >> >> at >> org.apache.cxf.transport.servlet.ServletDestination.invoke(_ServletDe >> s >> tination.java:99_) >> >> at >> org.apache.cxf.transport.servlet.ServletController.invokeDestination( >> _ >> ServletController.java:305_) >> >> at >> org.apache.cxf.transport.servlet.ServletController.invoke(_ServletCon >> t >> roller.java:175_) >> >> at >> org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(_AbstractC >> X >> FServlet.java:163_) >> >> at >> org.apache.cxf.transport.servlet.AbstractCXFServlet.doPost(_AbstractC >> X >> FServlet.java:141_) >> >> at javax.servlet.http.HttpServlet.service(_HttpServlet.java:637_) >> at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_App >> l >> icationFilterChain.java:290_) >> >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(_Application >> F >> ilterChain.java:206_) >> >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(_StandardWrapper >> V >> alve.java:233_) >> >> at >> org.apache.catalina.core.StandardContextValve.invoke(_StandardContext >> V >> alve.java:191_) >> >> at >> org.apache.catalina.core.StandardHostValve.invoke(_StandardHostValve. >> j >> ava:128_) >> >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(_ErrorReportValve. >> j >> ava:102_) >> >> at >> org.apache.catalina.core.StandardEngineValve.invoke(_StandardEngineVa >> l >> ve.java:109_) >> >> at >> org.apache.catalina.connector.CoyoteAdapter.service(_CoyoteAdapter.ja >> v >> a:286_) >> >> at >> org.apache.coyote.http11.Http11Processor.process(_Http11Processor.jav >> a >> :845_) >> >> at >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce >> s >> s(_Http11Protocol.java:583_) >> >> at >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(_JIoEndpoint.java:447_) >> at java.lang.Thread.run(_Thread.java:619_) >> Caused by:_ java.lang.Exception_: couldn't create argument 0: >> couldn't create object 'history': null >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(_Objec >> t >> Descriptor.java:338_) >> >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obj >> e >> ctDescriptor.java:146_) >> >> ... 63 more >> Caused by:_ org.jbpm.pvm.internal.wire.WireException_: couldn't >> create object 'history': null >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obj >> e >> ctDescriptor.java:155_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:440_) >> at >> org.jbpm.pvm.internal.wire.WireContext.get(_WireContext.java:420_) >> at >> org.jbpm.pvm.internal.wire.descriptor.ReferenceDescriptor.construct(_ >> R >> eferenceDescriptor.java:34_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.construct(_WireContext.java:472_) >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:451_) >> at >> org.jbpm.pvm.internal.wire.descriptor.CollectionDescriptor.initialize >> ( >> _CollectionDescriptor.java:72_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.performInitialization(_WireCon >> t >> ext.java:536_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.processPendingInitializations( >> _ >> WireContext.java:567_) >> >> at >> org.jbpm.pvm.internal.wire.WireContext.create(_WireContext.java:453_) >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.getArgs(_Objec >> t >> Descriptor.java:333_) >> >> ... 64 more >> Caused by:_ java.lang.reflect.InvocationTargetException_ >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(_Native Method_) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(_NativeConstruc >> t >> orAccessorImpl.java:39_) >> >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(_Delegating >> C >> onstructorAccessorImpl.java:27_) >> >> at >> java.lang.reflect.Constructor.newInstance(_Constructor.java:513_) >> at >> org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(_Obj >> e >> ctDescriptor.java:151_) >> >> ... 76 more >> Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor >> at >> net.sf.cglib.core.KeyFactory$Generator.generateClass(_KeyFactory.java: >> 165_) >> >> at >> net.sf.cglib.core.DefaultGeneratorStrategy.generate(_DefaultGenerator >> S >> trategy.java:25_) >> >> at >> net.sf.cglib.core.AbstractClassGenerator.create(_AbstractClassGenerat >> o >> r.java:216_) >> >> at >> net.sf.cglib.core.KeyFactory$Generator.create(_KeyFactory.java:145_) >> at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:117_) >> at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:108_) >> at net.sf.cglib.core.KeyFactory.create(_KeyFactory.java:104_) >> at net.sf.cglib.proxy.Enhancer.<clinit>(_Enhancer.java:69_) >> at >> com.thoughtworks.xstream.converters.reflection.CGLIBEnhancedConverter. >> canConvert(_CGLIBEnhancedConverter.java:59_) >> >> at >> com.thoughtworks.xstream.core.DefaultConverterLookup.registerConverte >> r >> (_DefaultConverterLookup.java:58_) >> >> at >> com.thoughtworks.xstream.XStream.registerConverter(_XStream.java:1033_) >> at >> com.thoughtworks.xstream.XStream.dynamicallyRegisterConverter(_XStrea >> m >> .java:663_) >> >> at >> com.thoughtworks.xstream.XStream.setupConverters(_XStream.java:646_) >> at com.thoughtworks.xstream.XStream.<init>(_XStream.java:375_) >> at com.thoughtworks.xstream.XStream.<init>(_XStream.java:301_) >> at >> org.ow2.bonita.persistence.xml.XMLHistory.<init>(_XMLHistory.java:132_) >> at >> org.ow2.bonita.persistence.xml.XMLHistory.<init>(_XMLHistory.java:113_) >> ... 81 more >> Caused by:_ java.lang.ClassNotFoundException_: >> org.objectweb.asm.CodeVisitor >> at >> org.apache.catalina.loader.WebappClassLoader.loadClass(_WebappClassLo >> a >> der.java:1387_) >> >> at >> org.apache.catalina.loader.WebappClassLoader.loadClass(_WebappClassLo >> a >> der.java:1233_) >> >> at >> java.lang.ClassLoader.loadClassInternal(_ClassLoader.java:319_) >> ... 98 more >> >> I think it's an import problem, but I don't know witch import >> >> Regards >> Pascal >> >> > > -- You receive this message as a subscriber of the bonita@... mailing list. To unsubscribe: mailto:bonita-unsubscribe@... For general help: mailto:sympa@...?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
| Free embeddable forum powered by Nabble | Forum Help |