[JBossWS] - InvalidClassException running a webservice client
by jaap.taal
I'm trying to run a webservice client as described by the jbossws-userguide.pdf that goes with jbossws-1.0.4GA. I'm using jboss-4.0.5GA
The client should connect to a JSR181 webservice. I use a J2EE application jar that should allow me to use JNDI to access the webapplication from my simple client.
I get the following exception:
| [java] 02:46:33,062 ERROR [ServiceObjectFactory] Cannot create service
| [java] javax.naming.NamingException: Cannot unmarshall service ref meta data, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
| [java] at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:126)
| [java] at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
| [java] at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
| [java] at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
| [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
| [java] at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:135)
| [java] at $Proxy0.lookup(Unknown Source)
| [java] at javax.naming.InitialContext.lookup(Unknown Source)
| [java] at Main.main(Unknown Source)
|
The source code of the client:
| InitialContext iniCtx0 = new InitialContext();
| Hashtable env = iniCtx0.getEnvironment();
| env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
| env.put("j2ee.clientName", "jbossws-client");
| System.out.println(env);
| InitialContext iniCtx = new InitialContext(env);
|
| MyFirstService service = (MyFirstService) iniCtx
| .lookup("java:comp/env/service/MyFirstService");
| HelloIF port = service.getHelloIFPort();
| System.out.println(port.sayHello());
|
I don't know what I'm doing wrong.
Everything runs from ant scripts which are executed by Eclipse.
Any help would be much apreciated
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040800#4040800
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040800
18 years, 12 months
[JBoss jBPM] - Executing Hello World BPEL Example
by lilyprincess
I am trying to run the Hello World BPEL Example. When I ran the client I am getting error.
I am using jboss-4.0.4.GA, JDK 1.5_06, jbpm-bpel-1.1.Beta3
I did the followings:
jbpm-bpel-1.1.Beta3\deploy> ant deploy-definition
jbpm-bpel-1.1.Beta3\examples\hello > ant generate-service
jbmp-bpel-1.1.Beta3\examples\hello > ant generate-artifacts
jbmp-bpel-1.1.Beta3\examples\hello > ant deploy
jbmp-bpel-1.1.Beta3\examples\hello > ant deploy-client
jbmp-bpel-1.1.Beta3\examples\hello > ant run-test
When I execute the Hello World Test, I get the
following error in JBoss console.
16:47:56,488 INFO [TomcatDeployer] deploy, ctxPath=/hello, warUrl=.../tmp/deplo
y/tmp9730hello-exp.war/
16:47:57,256 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.bpel.graph.d
ef.CompositeActivity - this operation breaks ==
16:47:57,444 INFO [IntegrationConfigurator] Message reception enabled for proce
ss: HelloWorld
16:47:57,506 INFO [WSDLFilePublisher] WSDL published to: file:/C:/dev/jboss-4.0
.4.GA/server/default/data/wsdl/hello.war/hello-service.wsdl
16:47:57,694 INFO [ServiceEndpointManager] WebService started: http://WDLLL3BNR
V8:8080/hello/greeter
16:48:07,893 INFO [ClientDeployer] Client ENC bound under: jbpmbpel-client
16:48:16,808 WARN [NestedThrowable] Duplicate throwable nesting of same base ty
pe: class org.jboss.deployment.DeploymentException is assignable from: class org
.jboss.deployment.DeploymentException
16:48:16,808 ERROR [MainDeployer] Could not start deployment: file:/C:/dev/jbpm-
bpel-1.1.Beta3/examples/hello/target/hello-client.jar
org.jboss.deployment.DeploymentException: Failed to setup client ENC; - nested t
hrowable: (org.jboss.deployment.DeploymentException: Cannot bind webservice to c
lient environment; - nested throwable: (javax.naming.NameAlreadyBoundException))
at org.jboss.deployment.ClientDeployer.start(ClientDeployer.java:171)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.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 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:585)
at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerA
daptorService.java:266)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.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.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFac
tory.java:179)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke
(JRMPInvoker.java:819)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:
420)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.deployment.DeploymentException: Cannot bind webservice to c
lient environment; - nested throwable: (javax.naming.NameAlreadyBoundException)
at org.jboss.ws.server.WebServiceClientDeployer.setupServiceRefEnvironme
nt(WebServiceClientDeployer.java:72)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
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 $Proxy51.setupServiceRefEnvironment(Unknown Source)
at org.jboss.webservice.WebServiceClientHandler.setupServiceRefEnvironme
nt(WebServiceClientHandler.java:94)
at org.jboss.deployment.ClientDeployer.setupEnvironment(ClientDeployer.j
ava:272)
at org.jboss.deployment.ClientDeployer.start(ClientDeployer.java:167)
... 54 more
Caused by: javax.naming.NameAlreadyBoundException
at org.jnp.server.NamingServer.bind(NamingServer.java:144)
at org.jnp.server.NamingServer.bind(NamingServer.java:109)
at org.jnp.server.NamingServer.bind(NamingServer.java:109)
at org.jnp.interfaces.NamingContext.bind(NamingContext.java:566)
at org.jnp.interfaces.NamingContext.bind(NamingContext.java:531)
at org.jboss.util.naming.Util.bind(Util.java:102)
at org.jboss.util.naming.Util.bind(Util.java:89)
at org.jboss.ws.server.WebServiceClientDeployer.setupServiceRefEnvironme
nt(WebServiceClientDeployer.java:65)
... 68 more
16:48:17,043 INFO [ClientDeployer] Removing client ENC from: jbpmbpel-client
16:48:17,105 WARN [MainDeployer] undeploy 'file:/C:/dev/jbpm-bpel-1.1.Beta3/exa
mples/hello/target/hello-client.jar' : package not deployed
Any suggestion? Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040791#4040791
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040791
18 years, 12 months
[JCA/JBoss] - deploying quartz-ra.rar
by edx
I have diffculties setting up the quartz-ds.xml for the Quartz Resource Adapter (org.jboss.resource.adapter.quartz.inflow.QuartzResourceAdapter) quartz-ra.rar on JBoss4x.
The .rar is deployed sucesfully
...[org.jboss.resource.adapter.quartz.inflow.QuartzResourceAdapter] (main:) start quartz!!!
...[org.quartz.simpl.SimpleThreadPool] (main:) Job execution threads will use class loader of thread: main
...[org.quartz.core.QuartzScheduler] (main:) Quartz Scheduler v.1.5.2 created.
...[org.quartz.simpl.RAMJobStore] (main:) RAMJobStore initialized.
but I have difficulties in setting up -ds.xml deployment for the quartz service.
Are there any eaxample how to do it on on JBoss 4.0.5GA?
Thanks,
Edward
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040790#4040790
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040790
18 years, 12 months
[JBoss AOP] - ClassNotFound for ClassMetaData.class
by geoharp
package org.jboss.cache.aop.references;
import java.lang.ref.Reference;
import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;
import org.apache.log4j.Logger;
import org.jboss.serial.classmetamodel.ClassMetaData;
/**
* Base class for persistent references.
* Persistent reference is a Weak/Soft reference to a reflection object.
* If the reflection object is garbage collected, the reference is then rebuilt using reflection operations.
* @author csuconic
*
*/
public abstract class PersistentReference
{
public static final int REFERENCE_WEAK=1;
public static final int REFERENCE_SOFT=2;
private static final Logger log = Logger.getLogger(ClassMetaData.class);
private static final boolean isDebug = log.isDebugEnabled();
}
Should Log be:
private final static Logger log = Logger.getLogger( PersistentReference.class );
java.lang.NoClassDefFoundError
at org.jboss.cache.aop.references.PersistentReference.class$(PersistentReference.java:44)
at org.jboss.cache.aop.references.PersistentReference.(PersistentReference.java:44)
at org.jboss.cache.aop.CachedType.analyzeFields(CachedType.java:239)
at org.jboss.cache.aop.CachedType.analyze(CachedType.java:219)
at org.jboss.cache.aop.CachedType.(CachedType.java:68)
at org.jboss.cache.aop.PojoCache.getCachedType(PojoCache.java:396)
at org.jboss.cache.aop.CollectionClassHandler.collectionObjectPut(CollectionClassHandler.java:78)
at org.jboss.cache.aop.TreeCacheAopDelegate._putObject(TreeCacheAopDelegate.java:213)
at org.jboss.cache.aop.PojoCache._putObject(PojoCache.java:731)
at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:462)
at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:423)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040789#4040789
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040789
18 years, 12 months