if you are running weblogic 5.0

from the dos shell that you run the client from call setEnv.bat first. This
will set up all your classpaths and other stuff. Then run your client.

But please read the documentation first it is clearly stated.

-----Original Message-----
From: ravi kakani [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 26, 2000 7:41 AM
To: [EMAIL PROTECTED]
Subject: weblogic problem


Hi,
   I wrote a simple statefulsession bean which just
prints message.I compiled and deployed the ejb.but
when i run the client it give me the following error:

java.lang.NoClassDefFoundError:
com/sun/java/util/collections/Map
        at
weblogic.common.internal.ThreadStorage.<clinit>(ThreadStorage.java:19)
        at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java,
Compiled Code)
        at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
        at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
        at
javax.naming.InitialContext.init(InitialContext.java:218)
        at
javax.naming.InitialContext.<init>(InitialContext.java:194)
        at client_1.getInitialContext(client_1.java:38)
        at client_1.main(client_1.java:19)
Exception in thread "main"

THE CLIENT PROGRAM IS:
import ajay.edata.trial.TrialHome;
import ajay.edata.trial.Trial;
import ajay.edata.trial.TrialBean;

import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.ejb.CreateException;
import java.rmi.RemoteException;
import java.util.Properties;
import weblogic.jndi.WLInitialContextFactory;

public class client_1
{
public static void main(String []args)
{
try
{
 Context jndiContext =getInitialContext();
 TrialHome
home=(TrialHome)jndiContext.lookup("statefulSession.TrialHome");
 Trial res=home.create();
 res.hello();
 }catch(java.rmi.RemoteException re)
{re.printStackTrace();}
  catch(javax.naming.NamingException
ne){ne.printStackTrace();}
  catch(javax.ejb.CreateException
ce){ce.printStackTrace();}

 }
 public static Context getInitialContext()
  throws javax.naming.NamingException
  {
  Properties p= new Properties();
  System.out.println("Propertires Created");
  p.put(Context.INITIAL_CONTEXT_FACTORY,
        "weblogic.jndi.WLInitialContextFactory");
  System.out.println("First put done");
  p.put(Context.PROVIDER_URL,"t3://127.0.0.1:7001");

  return new InitialContext(p);
  }
};


Can anybody tell me what i am missing here.
Thank you in advance.

Bye,
Ravi kakani

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to