Skip to main content

asadmin fails with java.lang.ClassNotFoundException: Server

No replies
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 Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
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,