Aaron Mulder wrote:
>
> Have you copied a current jnp-client.jar and jboss-client.jar to
> the test bean directory/classpath?
Yes. Also updated deploy.jar.
Same problem.
Now I have looked into the AllTypes test bean
(org.jboss.test.testbean2.bean.AllTypesBean)
to see what goes wrong. The problem is at line 77
where a ClassCastException is thrown.
When looking at the instance returned from the
lookup, I see:
- Its a proxy class.
- It implements org.jboss.test.testbean.interfaces.StatefulSessionHome
when I use getClass().getInterfaces().
- If obj is the instance returned from the lookup, the
expression (obj instanceof StatefulSessionHome) evaluates
to false.
Maybe it is a class loader issue:
- If obj is the instance returned from the lookup, the
expression (obj.getClass().getClassLoader().toString())
evaluates to "java.net.URLClassLoader@61f9da".
- The expression (StatefulSessionHome.class.getClassLoader().toString())
evaluates to "java.net.URLClassLoader@593f39".
Best Regards,
Ole Husgaard
>
> Aaron
>
> On Thu, 12 Oct 2000, Ole Husgaard wrote:
> > Hi,
> >
> > Had this problem yesterday.
> >
> > Today I deleted everything and grapped a fresh
> > copy from CVS, but still same problem.
> >
> > When running the jbosstest testbeantest, I get:
> >
> > javax.ejb.CreateException: $Proxy0
> > at
>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
> > at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
> > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> > at
>org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown Source)
> > at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:221)
> > at $Proxy0.create(Unknown Source)
> > at org.jboss.test.testbean.test.Main.testAllTypesBean(Main.java:645)
> >
> > I have no other problems with jBoss.
> >
> > The server log for this test indicates no problems:
> >
> > [AllTypes] TxCapsule.enlistResource(): Entered, status=STATUS_ACTIVE
> > [AllTypes] TxCapsule.startResource(XidImpl:osh.sparre.dk/92) entered:
>org.jboss.minerva.xa.XAResourceImpl@8e2dd flags=0
> > [AllTypes] TxCapsule.startResource(XidImpl:osh.sparre.dk/92) leaving:
>org.jboss.minerva.xa.XAResourceImpl@8e2dd flags=0
> > [AllTypes] TxCapsule.delistResource(): Entered, status=STATUS_ACTIVE
> > [AllTypes] TxCapsule.endResource(XidImpl:osh.sparre.dk/92) entered:
>org.jboss.minerva.xa.XAResourceImpl@8e2dd flag=67108864
> > [AllTypes] TxCapsule.endResource(XidImpl:osh.sparre.dk/92) leaving:
>org.jboss.minerva.xa.XAResourceImpl@8e2dd flag=67108864
> > [AllTypes] TxCapsule.commit(): Entered, status=STATUS_ACTIVE
> > [AllTypes] TxCapsule.commit(): Before completion done, status=STATUS_ACTIVE
> > [AllTypes] TxCapsule.commit(): One resource.
> > [AllTypes] TxCapsule.commitResources(): resourceStates[0]=3
> > [AllTypes] TxCapsule.commit(): Committed OK.
> > [AllTypes] TxCapsule.commit(): Entered, status=STATUS_ACTIVE
> > [AllTypes] TxCapsule.commit(): Before completion done, status=STATUS_ACTIVE
> > [AllTypes] TxCapsule.commit(): No resources.
> > [AllTypes] TxCapsule.commit(): Committed OK.
> >
> > Just wondering if anybody else have seen this
> > and if I should worry about it.
> >
> > Best Regards,
> >
> > Ole Husgaaard.
> >