Guys that quick. Thanks for the replies. But I keep getting the same error!
I tried everything you guys told. Then I tried recompiling the client. And
guess what it wont compile either(I had compiled it yesterday!). The error
it dumps is--
D:\Melvin\EJB>javac CustClient.java
CustClient.java:12: cannot access javax.ejb.EJBHome
file javax\ejb\EJBHome.class not found
Customer c = cust.create(2, "Vasanth", "CTS");
^
CustClient.java:13: cannot access javax.ejb.EJBObject
file javax\ejb\EJBObject.class not found
System.out.println("Initial Values..." + c.getCustID()+ " "
+ c
.getName() + " " + c.getAddress());
^
2 errors
This might look silly but I cant set it right! Am I doing something rather
Silly???
A clarifications--
* While I deploy in Weblogic I have to use something as weclogic.ejbc to
compile the JAR file. This creates the stubs and skeletons and the Home and
Remote Implementations I guess. Is there a similar thing for jBoss? if we
dont have to do these when are they created?
Vasanth Dharmaraj
-----------------------
V A S A N T H . C J B . N E T
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [SMTP:[EMAIL PROTECTED]]
> Sent: None
> To: jBoss
> Subject: Re: [jBoss-User] cant get the client running!
>
> Hi,
> It's a bootstrapping problem. Your client needs to have
> an initial starting point to start doing lookups on home
> interfaces. To do this, include the following on your
> java command line:
>
> -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> -Djava.naming.provider.url=localhost
> -Djava.naming.factory.url.pkgs=org.jboss.naming
>
> Alternately you could include these in a jndi.properties
> file and make sure that the file is in the CLASSPATH. If
> you go with the file route, leave out the -D's.
>
> cheers,
> peter
>
> <pre>
> Hi,
>
> I am new to EJB and JBoss. I just deployed a simple stateless bean. All
> went
> fine thanks to Auto Deploy. Now I when I tried to run the client I got the
> following error. Is this because of some class path setting? I have set
> the
> classpath to <jboss home>\lib\;<jboss
> home>\lib\ext\;\J2SDKEE1.2\LIB\J2EE.JAR;.
>
> Thanks in advance.
>
> The Error.
>
> D:\Melvin\EJB>java CustClient
> Exception in thread "main" javax.naming.NoInitialContextException: Cannot
> instan
> tiate class: org.jnp.interfaces.NamingContextFactory. Root exception is
> java.la
> ng.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at com.sun.naming.internal.VersionHelper12.loadClass(Unknown
> Source)
> at javax.naming.spi.NamingManager.getInitialContext(Unknown
> Source)
> at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
> at javax.naming.InitialContext.init(Unknown Source)
> at javax.naming.InitialContext.<init>(Unknown Source)
> at CustClient.getInitialContext(CustClient.java:27)
> at CustClient.main(CustClient.java:10)
>
> Vasanth Dharmaraj
> -----------------------
> V A S A N T H . C J B . N E T
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
> </pre>
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]