[JBossWS] - Converting EJB2.1 to Webservice
by altes-kind
Hi,
I'm pretty new to web services and currently working on an app which has to be migrated from Bea Weblogic 8.1 to JBoss AS 4.2.1.
Currently the app is using the Bea Weblogic specific Ant task servicegen to create the webservice producer out of an EJB2.1 project (see http://edocs.beasys.com/wls/docs81/webserv/anttasks.html#1063540):
<servicegen
| destEar="${build.dir}/${ejb.jar.name}-ws"
| warName="${ejb.jar.name}-ws.war">
| <service
| ejbJar="${build.dir}/${ejb.jar.name}.jar"
| includeEJBs="ArchiveAccessRemote"
| targetNamespace="de.proactiv"
| serviceName="ArchiveAccess"
| serviceURI="/ArchiveAccess"
| style="document"
| generateTypes="True"
| expandMethods="True">
| <!--client
| packageName="de.proactiv.postbox.services.archiveaccess.webservice"
| clientJarName="${ejb.jar.name}_client.jar"
| /-->
| </service>
| </servicegen>
Is there a similar Ant taks in JBoss WS to convert EJB2.1 projects to webservices?
I read about wsprovide but it doesn't seem to work with EJB2.1. Is this correct?
I also read about wstool. Is it still supported in JBoss WS? If yes, where can I find the documentation?
Thank you very much! :-)
altes-kind
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192231#4192231
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192231
17 years, 5 months
[JBoss AOP] - Re: Transaction Demarcation and JBoss AOP 2.0
by mwringe
Stack trace of the error (note test.Test is the mbean that has the aop transaction applied to it)
Caused by: java.lang.RuntimeException: Unable to locate the transaction manager
| at org.jboss.tm.TransactionManagerLocator.locate(TransactionManagerLocator.java:134)
| at org.jboss.tm.TransactionManagerLocator.locate(TransactionManagerLocator.java:113)
| at org.jboss.aspects.tx.TxInterceptorFactory.initialize(TxInterceptorFactory.java:57)
| at org.jboss.aspects.tx.TxInterceptorFactory.createPerJoinpoint(TxInterceptorFactory.java:123)
| at org.jboss.aop.advice.AspectFactoryDelegator.createPerJoinpoint(AspectFactoryDelegator.java:119)
| at org.jboss.aop.GeneratedClassAdvisor.addPerClassJoinpointAspect(GeneratedClassAdvisor.java:912)
| at org.jboss.aop.advice.GeneratedAdvisorInterceptor.<init>(GeneratedAdvisorInterceptor.java:126)
| at org.jboss.aop.GeneratedClassAdvisor.pointcutResolved(GeneratedClassAdvisor.java:837)
| at org.jboss.aop.MethodMatchInfo.applyBinding(MethodMatchInfo.java:152)
| at org.jboss.aop.MethodMatchInfo.overridePopulateBindings(MethodMatchInfo.java:143)
| at org.jboss.aop.MethodMatchInfo.populateBindings(MethodMatchInfo.java:92)
| at org.jboss.aop.GeneratedClassAdvisor.fullWorkFinalizeMethodChain(GeneratedClassAdvisor.java:627)
| at org.jboss.aop.GeneratedClassAdvisor.finalizeMethodChain(GeneratedClassAdvisor.java:596)
| at org.jboss.aop.GeneratedClassAdvisor.finalizeChains(GeneratedClassAdvisor.java:577)
| at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:607)
| at org.jboss.aop.GeneratedClassAdvisor.access$201(GeneratedClassAdvisor.java:65)
| at org.jboss.aop.GeneratedClassAdvisor$ClassAdvisorStrategy.createInterceptorChains(GeneratedClassAdvisor.java:1303)
| at org.jboss.aop.GeneratedClassAdvisor.createInterceptorChains(GeneratedClassAdvisor.java:407)
| at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:304)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:274)
| at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java:731)
| at org.jboss.aop.GeneratedClassAdvisor$ClassAdvisorStrategy.initialise(GeneratedClassAdvisor.java:1291)
| at org.jboss.aop.GeneratedClassAdvisor.initialise(GeneratedClassAdvisor.java:143)
| at test.Test$TestAdvisor.initialise(Test$TestAdvisor.java)
| at test.Test$TestAdvisor.<init>(Test$TestAdvisor.java)
| at test.Test.<clinit>(Test.java)
| 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:494)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1242)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
| at org.jboss.system.ServiceCreator.installPlainMBean(ServiceCreator.java:197)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:115)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192209#4192209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192209
17 years, 5 months