Hi
    I tried even with @EJB it showing same thing
java.lang.ClassNotFoundException


Thanks.

On Sun, Apr 18, 2010 at 5:51 AM, bambang passion <
bambang.teleinfocomproj...@gmail.com> wrote:

> Hi,
>
> I suggest you contact whoever write the code, as i have no control and
> known
>
> whether the codes are working or not ?
>
> Looking at the exception however, i noticed that : Caused by: java.lang.
> ClassNotFoundException: com.sun.logging.LogDomains
>
> somehow the code missing the com.sun.logging.LogDomains,
>
> however you still need to check with the writer.
>
> Also, i noticed that with jee5 onwards, you actually can inject the @EJB
> rather
>
> that do the lookup. Pls. check the javapassion.com javaadvanced
> presentation
>
> and excercise.
>
>
> thx
>
> bambang
>
>
> On Sat, Apr 17, 2010 at 6:47 AM, 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-clientapp/
>> 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>(SerialInitContextFactory.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>(SerialInitContextFactory.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>
>>> For more options, visit this group at
>>>
>>> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
>>>  ------------------------------
>>> 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 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<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