Skip to main content

asadmin fails with java.lang.ClassNotFoundException: Server

No replies
sztgeza
Offline
Joined: 2012-07-13

Hi all,
I've installed Glassfish 3.1.2 on windows. When I try to start the domain with asadmin, it fails with the following:

d:\glassfish3\bin>asadmin start-domain
Waiting for domain1 to start .Error starting domain domain1.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:

java.lang.NoClassDefFoundError: Server
Caused by: java.lang.ClassNotFoundException: Server
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: Server. Program will exit.
Exception in thread "main"
Command start-domain failed.

If I register the newly installed glassfish in Netbeans, it can start the domain fine. But asadmin still fails.
Did anyone see that message before?
Any help would be appreciated,

Tomas.