Aaron Mulder wrote:
> 
>         Well, this is definitely a client classloader problem.  Are you
> absolutely sure there's nothing on your classpath before you run the
> client script?  Are you using dynamic class loading (via a security
> manager) or anything?  Does the client JAR have a classpath in its
> manifest file?

No. CLASSPATH is empty.
Everything is pretty default: I've grapped jboss and
jboss modules from CVS, done the normal build, updated
the jars in jbosstest that needed to be updated, and 
nothing else.

No classpath in any of the EJB jars (testbean.jar and
testbean2.jar).
testbean2.jar contains the AllTypes bean whose ejbCreate()
fails, and the interfaces for the beans in testbean.jar
(including the StatefulSessionHome interface).

What really worries me is that I am not trying to do
anything special. I have JDK1.3rc1 on Linux with no
special setup, and nothing non-default in lib or
lib/ext. I get jboss and jbosstest sources from CVS
and do a default build.

And still this test fails. But only this test.
All other tests run fine.

Last time I tried running the jbosstest testbeantest,
everything ran fine as it used to. I really wish I had
saved the old sources from back then so I could compare
and find out what has changed.

Best Regards,

Ole Husgaard.

> 
> Aaron
> 
> On Fri, 13 Oct 2000, Ole Husgaard wrote:
> > 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.
> > > >
> >

Reply via email to