users@glassfish.java.net

ProgrammaticLogin problems

From: <glassfish_at_javadesktop.org>
Date: Wed, 21 Mar 2007 01:22:52 PST

I am writing swing client that via the use of ProgrammaticLogin is connecting to a remote instance of Glassfish. The problem is there is a class that it cannot load and I am unfortunately unable to locate it for it to successfully login. I am surprised that the default set of libraries attached to the project via the Glassfish Eclipse Plugin does not cover the missing class. Any help you can give would be appricated.

Thanks

Dan

---
App Server: Glassfish v2 b33e
IDE: Eclipse 3.2.2 using Glassfish server plugin
JSE: 6
Stack Trace:
[code]
java.lang.NoClassDefFoundError: org/netbeans/modules/schema2beans/BaseBean
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at com.sun.enterprise.security.audit.AuditManagerFactory.<clinit>(AuditManagerFactory.java:40)
	at com.sun.enterprise.security.auth.LoginContextDriver.<clinit>(LoginContextDriver.java:79)
	at com.sun.appserv.security.ProgrammaticLogin$1.run(ProgrammaticLogin.java:139)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.appserv.security.ProgrammaticLogin.login(ProgrammaticLogin.java:124)
	at ***.common.EJBUtil.login(EJBUtil.java:80)
	at ***.EJBLoginService.authenticate(EJBLoginService.java:61)
	at org.jdesktop.swingx.auth.LoginService$1.doInBackground(LoginService.java:127)
	at org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
	at org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
	at java.lang.Thread.run(Thread.java:595)
[/code]
[Message sent by forum member 'dansiviter' (dansiviter)]
http://forums.java.net/jive/thread.jspa?messageID=209133