Hello
          I am using windows7.Full ejb3.0 program is as follows.

http://darq.weboder.com/entry/2010/feb/01/java-ee-hello-world-ejb3-clientapp/

http://darq.weboder.com/entry/2010/feb/01/java-ee-hello-world-ejb3-netbeans/

I did same as in the above links.Even i tried with @EJB I am getting same
problem java.lang.ClassNotFoundException.


Thanks
Shiva.



On Sun, Apr 18, 2010 at 1:27 PM, Michèle Garoche <migat...@gmail.com> wrote:

> Shiva,
>
> Are you running on a Mac? I have absolutely no problem following the
> written steps in the link you gave, except that you gave the link for
> the client, but before that there is a step for creating the ejb.
>
> If you are on a Mac, operate a clean on your projects (both HelloEJB
> and HelloClient), zip them in a unique folder (that is put them in a
> folder and zip the folder: in Terminal cd
> nameofthefolderjustabovetheoneyouwanttozip, then jar cvf
> nameofthefolder.zip nameofthefolder/, send it to me, and I'll try to
> put it in order.
> If you are not on a Mac, no need to send me anything, I cannot help.
>
> Michèle
>
> On 17 avr, 00:47, iShiva <ilysk3...@gmail.com> wrote:
> > Netbeans6.8 is with glassfishv3 so no problem with versions and jarfiles.
> >
> > I am following the below link to build simple ejb3.0 with netbeans6.8
> >
> > http://darq.weboder.com/entry/2010/feb/01/java-ee-hello-world-ejb3-cl...
> > getting following errors, could not rectify the errors i will be great
> full
> > if any one can look at my errors.
> >
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > com/sun/logging/LogDomains
> >         at
> com.sun.enterprise.util.ORBManager.<clinit>(ORBManager.java:78)
> >         at
> >
> com.sun.enterprise.naming.SerialInitContextFactory.<clinit>(SerialInitConte
> xtFactory.java:56)
> >         at java.lang.Class.forName0(Native Method)
> >         at java.lang.Class.forName(Class.java:247)
> >         at
> >
> com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
> >         at
> > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
> >         at
> > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
> >         at javax.naming.InitialContext.init(InitialContext.java:223)
> >         at javax.naming.InitialContext.<init>(InitialConte6.8xt.java:175)
> >         at helloclient.Main.main(Main.java:19)
> > Caused by: java.lang.ClassNotFoundException: com.sun.logging.LogDomains
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> >         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> >         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> >         ... 10 more
> >
> > Thanks
> > Shiva.
> >
> >
> >
> >
> >
> > On Fri, Apr 16, 2010 at 7:49 AM, Evans ' <fiveholida...@hotmail.com>
> wrote:
> > >  Hi,
> > > Judging by the version of your Netbeans I'm guessing you're also using
> an
> > > older copy of the Glassfish as well. Consider upgrading...and if it
> > > continues, post here. In fact, upgrade both Netbeans and Glassfish;
> that
> > > should help.
> >
> > > Good luck
> > > Evans.
> > > *
> > > Please use Reply All or your email will be ignored!
> > > *
> > > ------------------------------
> > > Date: Thu, 15 Apr 2010 14:40:30 -0400
> > > Subject: [java ee programming] error in ejb3.0 program in
> > > netbeans6.8(java.lang.NoClassDefFoundError)
> > > From: ilysk3...@gmail.com
> > > To: java-ee-j2ee-programming-with-passion@googlegroups.com
> >
> > > Hello Friends,
> > >                      I am doing ejb3.0 program in netbeans 6.0 with
> > > glassfish.I am getting the following error.Can any one help me out in
> > > rectifying the error.
> >
> > > Thanks.
> >
> > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > com/sun/logging/LogDomains
> > >         at
> com.sun.enterprise.util.ORBManager.<clinit>(ORBManager.java:78)
> > >         at
> > >
> com.sun.enterprise.naming.SerialInitContextFactory.<clinit>(SerialInitConte
> xtFactory.java:56)
>  > >         at java.lang.Class.forName0(Native Method)
> > >         at java.lang.Class.forName(Class.java:247)
> > >         at
> > >
> com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
> > >         at
> > >
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
> > >         at
> > > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
> > >         at javax.naming.InitialContext.init(InitialContext.java:223)
> > >         at javax.naming.InitialContext.<init>(InitialContext.java:175)
> > >         at helloclient.Main.main(Main.java:19)
> > > Caused by: java.lang.ClassNotFoundException: com.sun.logging.LogDomains
> > >         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > >         at java.security.AccessController.doPrivileged(Native Method)
> > >         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > >         at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> > >         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > >         at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> > >         ... 10 more
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Java EE (J2EE) Programming with Passion!" group.
> > > To post to this group, send email to
> > > java-ee-j2ee-programming-with-passion@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com><java-ee-
> j2ee-programming-with-passion%2bunsubscr...@googlegroups.com<j2ee-programming-with-passion%252bunsubscr...@googlegroups.com>
> >
> > > For more options, visit this group at
> >
> > >http://groups.google.com/group/java-ee-j2ee-programming-with-passion?.
> ..
> > > ------------------------------
> > > Get a free e-mail account with Hotmail. Sign-up now.<
> http://clk.atdmt.com/UKM/go/197222280/direct/01/>
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Java EE (J2EE) Programming with Passion!" group.
> > To post to this group, send email to
> > java-ee-j2ee-programming-with-passion@googlegroups.com
> > To unsubscribe from this group, send email to
> > java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com>
> > For more options, visit this group athttp://
> groups.google.com/group/java-ee-j2ee-programming-with-passion?...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com<java-ee-j2ee-programming-with-passion%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
>
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to