I'm facing with very weird problem in NetBeans IDE 6.9.1 and GlassFish 3. Just after installing NetBeans over windows Seven with 64 bits JDK and without creating any project I start GlassFish server and get following error !!!
java.lang.NoClassDefFoundError:
<local>*|localhost|127/0/0/1|MyPCName
Caused by:
java.lang.ClassNotFoundException:
<local>*|localhost|127.0.0.1|MyPCName
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class:
<local>*|localhost|127.0.0.1|MyPCName.
Program will exit.
It worked fine in same system and suddenly I got the error! After that even uninstalling NetBeans and GlassFish and installing them in other drive did not solve the problem.