I've tryed to migrate a JBoss 4.0.5 App to JBoss 4.1.2. But during deployment I get following Exception:
| 12:47:53,375 ERROR [ServiceEndpointDeployer] Cannot start service endpoint | org.jboss.ws.WSException: Property '' not found in fault bean 'de.test.j2ee.myapp.ejb3.implementation.jaxws.RemoveExceptionBean' | at org.jboss.ws.metadata.umdm.FaultMetaData.initializeFaultBean(FaultMetaData.java:283) | at org.jboss.ws.metadata.umdm.FaultMetaData.eagerInitialize(FaultMetaData.java:226) | at org.jboss.ws.metadata.umdm.OperationMetaData.eagerInitialize(OperationMetaData.java:472) | at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations(EndpointMetaData.java:516) | at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(EndpointMetaData.java:502) | at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointMetaData.java:490) | at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMetaData.java:429) | at org.jboss.ws.metadata.umdm.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:192) | at org.jboss.ws.core.server.ServiceEndpoint.start(ServiceEndpoint.java:112) | at org.jboss.ws.core.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:646) | at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpointDeployer.java:140) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndpoint(DeployerInterceptor.java:144) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:96) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy34.start(Unknown Source) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy9.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225) | Caused by: java.beans.IntrospectionException: bad property name | at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:79) | at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:53) | at org.jboss.ws.metadata.umdm.FaultMetaData.initializeFaultBean(FaultMetaData.java:272) | ... 41 more | 12:47:53,375 INFO [TomcatDeployer] undeploy, ctxPath=/myApp, warUrl=.../tmp/deploy/MYAPPWS.ear-MYAPPWS.ejb3-ws36559.war/ | 12:47:53,375 ERROR [MainDeployer] Could not start deployment: file:/C:/Programme/jboss-4.2.1.GA_ws/server/MYAPP/tmp/deploy/tmp36558MYAPPWS.ear-contents/MYAPPWS.ejb3 | org.jboss.deployment.DeploymentException: Cannot start service endpoint; - nested throwable: (org.jboss.ws.WSException: Property '' not found in fault bean 'de.test.j2ee.myapp.ejb3.implementation.jaxws.RemoveExceptionBean') | at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:101) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy34.start(Unknown Source) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy9.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225) | Caused by: org.jboss.ws.WSException: Property '' not found in fault bean 'de.test.j2ee.myapp.ejb3.implementation.jaxws.RemoveExceptionBean' | at org.jboss.ws.metadata.umdm.FaultMetaData.initializeFaultBean(FaultMetaData.java:283) | at org.jboss.ws.metadata.umdm.FaultMetaData.eagerInitialize(FaultMetaData.java:226) | at org.jboss.ws.metadata.umdm.OperationMetaData.eagerInitialize(OperationMetaData.java:472) | at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeOperations(EndpointMetaData.java:516) | at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(EndpointMetaData.java:502) | at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointMetaData.java:490) | at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMetaData.java:429) | at org.jboss.ws.metadata.umdm.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:192) | at org.jboss.ws.core.server.ServiceEndpoint.start(ServiceEndpoint.java:112) | at org.jboss.ws.core.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:646) | at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpointDeployer.java:140) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndpoint(DeployerInterceptor.java:144) | at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:96) | ... 29 more | Caused by: java.beans.IntrospectionException: bad property name | at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:79) | at java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:53) | at org.jboss.ws.metadata.umdm.FaultMetaData.initializeFaultBean(FaultMetaData.java:272) | ... 41 more | I've found out, that this failure comes from a wsgen generated class with following code: | | package de.test.j2ee.myapp.ejb3.implementation.jaxws; | | import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlRootElement; | import javax.xml.bind.annotation.XmlType; | | | /** | * This class was generated by the JAX-WS RI. | * JAX-WS RI 2.1.2-b05-RC1 | * Generated source version: 2.1.2 | * | */ | @XmlRootElement(name = "RemoveException", namespace = "http://my-namespace.de") | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "RemoveException", namespace = "http://my-namespace.de") | public class RemoveExceptionBean { | | private String message; | | /** | * | * @return | * returns String | */ | public String getMessage() { | return this.message; | } | | /** | * | * @param message | * the value for the message property | */ | public void setMessage(String message) { | this.message = message; | } | | } | Does anyone know how to fix this? When I use a catch-clause instead the throws directive in the function where this exception was thrown, the class is not generated and deploy finishs without error. But I think that there must be another way to get this working. Best Regards Steffen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095195#4095195 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095195 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user