classpath problem.give the classpath that will do

> -----Original Message-----
> From: ravi kakani [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, June 26, 2000 12:11 PM
> 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(WLInitialC
> ontextFactoryDelegate.java,
> Compiled Code)
>         at
> weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialC
> ontextFactoryDelegate.java:148)
>         at
> weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFa
> ctory.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