开发者

Irrelevant Glassfish Exception

开发者 https://www.devze.com 2023-02-21 12:01 出处:网络
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

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(U开发者_JAVA百科RLClassLoader.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.


Well I think I found the solution! By right click over 'GlassFish Server 3' item under Servers in Services tab and selecting properties the server window will be opend. In Java tab of opened window, there is a check-box says 'Use IDE's proxy setting' which is checked by default and I believe as I had proxy setting in my system which by default uses as IDE proxy this strange problem occurred. Anyway deselecting the check-box solved the problem!!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号