Hmm,
Should you be specifying port 1099 as part of the url?
Vinay
----- Original Message -----
From: "Kristoffer Larsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 3:13 PM
Subject: Re: [JBoss-dev] ClassCastException in jBoss TE in VAJ 3.5
> On Mon, 2 Jul 2001, Vinay Menon wrote:
>
> > your client needs jars under JBOSS_HOME/client .
>
> It already has them in its classpath. However, when it didn't I got
> NoClassDefFoundError, not ClassCastException.
>
> / Kristoffer
>
> >
> > ----- Original Message -----
> > From: "Kristoffer Larsson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, July 02, 2001 2:16 PM
> > Subject: [JBoss-dev] ClassCastException in jBoss TE in VAJ 3.5
> >
> >
> > >
> > > I am running VisualAge for Java 3.5 and the jBoss Test Environment
> > > and have written a simple client to the example EJB
> > > org.jboss.test.tomcat.ejb.bean.jBoss.StatelessSessionBean. However,
> > > when I try to run the client I get this nasty exception:
> > >
> > > javax.naming.NoInitialContextException: Cannot instantiate class:
> > > org.jnp.interfaces.NamingContextFactory. Root exception is
> > > java.lang.ClassCastException
> > > java.lang.Throwable()
> > > java.lang.Exception()
> > > java.lang.RuntimeException()
> > > java.lang.ClassCastException()
> > > javax.naming.Context
> > > javax.naming.spi.NamingManager.getInitialContext(java.util.Hashtable)
> > > javax.naming.Context
> > > javax.naming.spi.NamingManager.getInitialContext(java.util.Hashtable)
> > > javax.naming.Context
> > > javax.naming.InitialContext.getDefaultInitCtx()
> > > void javax.naming.InitialContext.init(java.util.Hashtable)
> > > javax.naming.InitialContext(java.util.Hashtable)
> > > void Test.TestJBoss.main(java.lang.String [])
> > >
> > >
> > > My client begins like this:
> > >
> > >
> > > import javax.naming.InitialContext;
> > > import javax.rmi.PortableRemoteObject;
> > >
> > > import org.jboss.test.tomcat.ejb.interfaces.StatelessSession;
> > > import org.jboss.test.tomcat.ejb.interfaces.StatelessSessionHome;
> > >
> > > public class TestJBoss {
> > >
> > > public static void main(String[] args) {
> > >
> > > try
> > > {
> > > java.util.Hashtable properties = new java.util.Hashtable(3);
> > > properties.put(javax.naming.Context.PROVIDER_URL, "localhost");
> > > properties.put(javax.naming.Context.URL_PKG_PREFIXES,
> > "org.jboss.naming");
> > > properties.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
> > > "org.jnp.interfaces.NamingContextFactory");
> > > InitialContext context = new InitialContext(properties);
> > >
> > > [...]
> > >
> > >
> > > Why the exception? Any help appreciated ...
> > >
>
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development