Solved

lassNotFoundException: com.sun.logging.LogDomains

Posted on 2010-08-30
6
1,412 Views
Last Modified: 2012-05-10
Building my application works fine, but when  i try to run my application i get the error ClassNotFoundException: com.sun.logging.LogDomains. I assume this mean that i am missing some library. On the net i found a page that said that it would be located in the appserv-rt.jar file. I have this added to the list of libraries but it does not seem to help.

I am using netbeans 6.9.1 and glassfish 3.01

Complete error message can be seen in the code window.
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javaws.Launcher.executeApplication(Launcher.java:1799)
	at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1745)
	at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1507)
	at com.sun.javaws.Launcher.run(Launcher.java:129)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: com/sun/logging/LogDomains
	at com.sun.appserv.security.ProgrammaticLogin.<clinit>(ProgrammaticLogin.java:94)
	at programmaticlogin.Main.main(Main.java:23)
	... 9 more
Caused by: java.lang.ClassNotFoundException: com.sun.logging.LogDomains
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:332)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 11 more


----------------------------------------------------
?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="file:/C:/Users/js/Documents/NetBeansProjects/ProgrammaticLoginTest/dist/" href="launch.jnlp" spec="1.0+">
    <information>
        <title>ProgrammaticLoginTest</title>
        <vendor>js</vendor>
        <homepage href=""/>
        <description>ProgrammaticLoginTest</description>
        <description kind="short">ProgrammaticLoginTest</description>

    </information>
<update check="always"/>

    <resources>
<j2se java-vm-args=": -Djava.security.auth.login.config=C:/JavaServers/glassfishv3/glassfish/lib/appclient/appclientlogin.conf" version="1.5+"/>
<jar href="ProgrammaticLoginTest.jar" main="true"/>


    <jar href="lib/Login-ejb.jar"/>
<jar href="lib/gf-client.jar"/>
<jar href="lib/security.jar"/>
<jar href="lib/admin-cli.jar"/>
<jar href="lib/appserv-rt.jar"/>
<jar href="lib/javaee.jar"/>
</resources>
    <application-desc main-class="programmaticlogin.Main">

    </application-desc>
</jnlp>

Open in new window

0
Comment
Question by:endasil
  • 4
6 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 33556392
Yes, you need to find out which jar LogDomains is in. See

http://technojeeves.com/joomla/index.php/free/45-jarsearch
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 500 total points
ID: 33556403
I would point the application at my link at the glassfish root
0
 
LVL 92

Expert Comment

by:objects
ID: 33556415

Should be in one of your appserv jar, try one of these:

    appserv-deployment-client.jar
    appserv-launch.jar
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:endasil
ID: 33556447
objects i do not have those files, neither in my glassfish/lib folder or glassfish modules folder.
Thank you CEHJ the utility pointed me to the common-util.jar file and once that was added, no more complains.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 33556451
Glad i could help
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 33556454
:-)
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to parse custom JSON to POJO java 4 74
servlet  URL Rewriting 1 37
Tomcat: Unable to run tomcat service. 2 20
How do I remove an object from a 3 26
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question