[JBossWS] - @WebServiceRef jbossws 1.2.0.GA
by seventy8
I'm running jboss 4.0.5.GA with EJB3.0 Configuration and jbossws 1.2.0.GA installed with the installer.
I'm using an stateless session bean as a webservice-client. I generated the artifacts with ws-import.
If I use @WebServiceRef I run into the following Exception:
| Non matching type for inject of field: de.uniSiegen.crm.server.ejb3.session.webservice.generated.bpeluserinteractiondialog.CrmPLService de.uniSiegen.crm.server.ejb3.session.webservice.BPELUserInteractionDialogCallbackClient.service for type: org.jnp.interfaces.NamingContext of jndiName env/de.uniSiegen.crm.server.ejb3.session.webservice.BPELUserInteractionDialogCallbackClient/service
| intfs: , javax.naming.Context, java.io.Serializable
If I don't use this annotation and instanciate the Service like this:
CrmPLService service = new CrmPLService();
everything works fine.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024826#4024826
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024826
17 years, 9 months
[JBossWS] - Re: JBossWS 1.2 on JBoss AS 4.0.5
by loopingrage
I ran ant deploy-jboss40 using he new install script. I received all success messages. Now I see two suspicious items in the log. It appears as if I cant use the JDK1.5 install without EJB3. Is this correct?
Thanks in advance for all you help.
I see the following message towards the end of the server startup process:
--- MBeans waiting for other MBeans ---
| ObjectName: jboss.ws:service=DeployerInterceptorEJB3
| State: CONFIGURED
| I Depend On:
| jboss.ejb3:service=EJB3Deployer
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.ejb3:service=EJB3Deployer
| State: NOTYETINSTALLED
| Depends On Me:
| jboss.ws:service=DeployerInterceptorEJB3
I also get the following exception at the beginning:
[ ServiceEndpointManager] jbossws-1.2.0.GA (build=200703021344)
| [ JUDDIService ] JNDI Bind Failed:JAXR
| [ LoggerStream ] javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
| [ LoggerStream ] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1317)
| [ LoggerStream ] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1446)
| [ LoggerStream ] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:484)
| [ LoggerStream ] at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:477)
| [ LoggerStream ] at javax.naming.InitialContext.rebind(InitialContext.java:367)
| [ LoggerStream ] at org.jboss.jaxr.juddi.JUDDIService.bindJAXRConnectionFactory(JUDDIService.java:383)
| [ LoggerStream ] at org.jboss.jaxr.juddi.JUDDIService.setBindJaxr(JUDDIService.java:320)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585)
| [ LoggerStream ] at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:136)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| [ LoggerStream ] at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:103)
| [ LoggerStream ] at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461)
| [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
| [ LoggerStream ] at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:694)
| [ LoggerStream ] at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
| [ LoggerStream ] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
| [ LoggerStream ] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| [ LoggerStream ] at org.jboss.system.ServiceController.install(ServiceController.java:226)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585)
| [ LoggerStream ] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [ LoggerStream ] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| [ LoggerStream ] at $Proxy4.install(Unknown Source)
| [ LoggerStream ] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| [ LoggerStream ] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| [ LoggerStream ] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| [ LoggerStream ] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585)
| [ LoggerStream ] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [ LoggerStream ] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [ LoggerStream ] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [ LoggerStream ] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| [ LoggerStream ] at $Proxy7.deploy(Unknown Source)
| [ LoggerStream ] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| [ LoggerStream ] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| [ LoggerStream ] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| [ LoggerStream ] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| [ LoggerStream ] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| [ LoggerStream ] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585)
| [ LoggerStream ] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [ LoggerStream ] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| [ LoggerStream ] at $Proxy0.start(Unknown Source)
| [ LoggerStream ] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585)
| [ LoggerStream ] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [ LoggerStream ] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| [ LoggerStream ] at $Proxy4.start(Unknown Source)
| [ LoggerStream ] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| [ LoggerStream ] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| [ LoggerStream ] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| [ LoggerStream ] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| [ LoggerStream ] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [ LoggerStream ] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [ LoggerStream ] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [ LoggerStream ] at java.lang.reflect.Method.invoke(Method.java:585)
| [ LoggerStream ] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| [ LoggerStream ] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [ LoggerStream ] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| [ LoggerStream ] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| [ LoggerStream ] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| [ LoggerStream ] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| [ LoggerStream ] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| [ LoggerStream ] at $Proxy5.deploy(Unknown Source)
| [ LoggerStream ] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| [ LoggerStream ] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| [ LoggerStream ] at org.jboss.Main.boot(Main.java:200)
| [ LoggerStream ] at org.jboss.Main$1.run(Main.java:490)
| [ LoggerStream ] at java.lang.Thread.run(Thread.java:595)
| [ LoggerStream ] Caused by: java.net.SocketTimeoutException: Receive timed out
| [ LoggerStream ] at java.net.PlainDatagramSocketImpl.receive0(Native Method)
| [ LoggerStream ] at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
| [ LoggerStream ] at java.net.DatagramSocket.receive(DatagramSocket.java:712)
| [ LoggerStream ] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1287)
| [ LoggerStream ] ... 105 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024747#4024747
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024747
17 years, 9 months
[JBossWS] - Re: JbossWS 1.2.0
by matienzar
I've solve it with this code:
public class HibernateWS extends GenericSOAPHandler {
@Override
public boolean handleFault(MessageContext msgContext) {
UserTransaction _tx = null;
try {
if (msgContext.containsKey("hibernateTrx")){
_tx = (UserTransaction)msgContext.get("hibernateTrx");
_tx.rollback();
}
} catch (Exception e) {
Log.error("No se ha podido hacer el rollback", e);
throw new RuntimeException(e);
}
return super.handleFault(msgContext);
}
@Override
protected boolean handleInbound(MessageContext msgContext) {
try {
HibernateUtil.openSession();
UserTransaction _tx = (UserTransaction) new InitialContext()
.lookup("java:comp/UserTransaction");
_tx.begin();
msgContext.put("hibernateTrx", _tx);
} catch (Exception e) {
Log.error("Cogiendo la transacción.", e);
}
return true;
}
@Override
protected boolean handleOutbound(MessageContext msgContext) {
UserTransaction _tx = null;
try {
if (msgContext.containsKey("hibernateTrx")){
_tx = (UserTransaction)msgContext.get("hibernateTrx");
_tx.commit();
}
} catch (Exception e) {
Log.error("Haciendo el commit", e);
try {
if(_tx != null)
_tx.rollback();
} catch (Exception e2) {
Log.error("Haciendo el rollback", e2);
}
throw new RuntimeException(e);
}
return true;
}
}
I use Jboss 4.0.5
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024642#4024642
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024642
17 years, 10 months