[JNDI/Naming/Network] - JNDI lookup for object in remote server returns local object
by DeLaBu
I have a setup consisting of multiple machines, each running JBoss in a non-clustered setup. Clients all connect to one JBoss Master and that decides which of the other JBoss Nodes to use (Nodes):
| Client - JBoss Master -- JBoss Node1
| -- JBoss Node2
| -- JBoss Node3
|
(The above may not format nicely, but the concept is one client connects to one JBoss Master connects to many JBoss Nodes)
The Master JBoss may also act as a Node.
I use the following code to get to a Stateless Session bean in one of the nodes
| String ipAddress = getNodeIPAddress();
|
| Properties properties = new Properties();
| properties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
| properties.put("java.naming.factory.url.pkgs","=org.jboss.naming:org.jnp.interfaces");
| properties.put("java.naming.provider.url",String.format("%s:1099", ipAddress));
|
| Context context;
| context = new InitialContext(properties);
| NodeRemote remote = (NodeRemote) context.lookup("node_ear/Node/remote");
|
|
|
1) If I don't deploy node_ear into JBoss Master, it works fine. The remote object is bound to whichever remote JBoss Node's IP address was given.
2) If I do deploy node_ear into JBoss Master (in my case, the Master can also be a Node) then I get a locally bound NodeRemote object. It seems once an initial context object is created for the local context, I cannot get a remote context.
I am admittedly very new to JEE programming and JNDI concepts and am probably making a very fundamental mistake. I have searched around for an answer, but I may be searching for the wrong things.
Any help or pointers to help would be most appreciated!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095200#4095200
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095200
18Â years, 9Â months
[Installation, Configuration & DEPLOYMENT] - org.jboss.ws.WSException: Property '' not found in fault bea
by steff aka sid
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
18Â years, 9Â months
[JBoss Seam] - Redeployment problems with WebRemote
by Frippe
I have a WebRemote function which works well - part from one thing.
Every time I do some change to the application and redeploy it, the remote function doesn't work. I get the JS error anonymous wrote : Seam.Component.getInstance("cabinView").getRemoteCabin is not a function
If I check the generated script (seam/resource/remoting/interface.js?cabinView) it's almost empty.
The only way I know how to break this error, is to shut down JBoss completely, and reload it. . .
There must be another way, perhaps I need to reload some other files the the ones I reload now at deployment.
I use exploded archives while developing and I redeploy by copying the changed resources and do the following:
| <touch file="${ear.deploy.dir}/META-INF/application.xml"/>
| <touch file="${war.deploy.dir}/WEB-INF/web.xml"/>
| <touch file="${jar.deploy.dir}/META-INF/ejb-jar.xml"/>
|
Perhaps I'm missing something here, I guess I don't know JBoss as good as I should :-P
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095192#4095192
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095192
18Â years, 9Â months
[Installation, Configuration & DEPLOYMENT] - Help déploying Axis2.war in Jboss 4.2.1
by bmohcine
Hello Everyone
i rellay have issues when déployin axis2.war in JbossAS
the probleme is when uploading a webservice it shows several errors
Error: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of The following error occurred during schema generation: ServiceClass or ServiceObjectSupplier implmentation Object could not be found at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:147) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:79) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:582) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:201) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:271) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:189) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:265) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:61) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68) at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) Caused by: org.apache.axis2.deployment.DeploymentException: Processing Operations Modules with an error of The following error occurred during schema generation: ServiceClass or ServiceObjectSupplier implmentation Object could not be found at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:381) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:98) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:140) ... 11 more Caused by: org.apache.axis2.deployment.DeploymentException: The following error occurred during schema generation: ServiceClass or ServiceObjectSupplier implmentation Object could not be found at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:346) ... 13 more Caused by: org.apache.axis2.deployment.DeploymentException: ServiceClass or ServiceObjectSupplier implmentation Object could not be found at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:291) at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:342)
another issue is when i restart the server the config files i add to axis are deleted each time
any idea
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095186#4095186
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095186
18Â years, 9Â months