users@glassfish.java.net

Re: Glassfish V3 custom realm issue

From: <glassfish_at_javadesktop.org>
Date: Tue, 09 Feb 2010 05:29:02 PST

Thank you for response.

I have used the asadmin to create my realm, but now I cannot start the server. On startup it throws this exception:

SEVERE: Exception in thread "Thread-29"
SEVERE: java.lang.NoClassDefFoundError: com/sun/enterprise/security/auth/realm/IASRealm
        at java.lang.ClassLoader.findBootstrapClass(Native Method)
        at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:882)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at com.sun.enterprise.v3.server.APIClassLoaderServiceImpl$APIClassLoader.loadClass(APIClassLoaderServiceImpl.java:174)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:296)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at com.sun.enterprise.security.auth.realm.Realm.doInstantiate(Realm.java:276)
        at com.sun.enterprise.security.auth.realm.Realm.instantiate(Realm.java:183)
        at com.sun.enterprise.security.auth.realm.RealmConfig.createRealms(RealmConfig.java:74)
        at com.sun.enterprise.security.SecurityLifecycle.createRealms(SecurityLifecycle.java:308)
        at com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:195)
        at com.sun.enterprise.security.SecurityLifecycle.postConstruct(SecurityLifecycle.java:264)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:174)
        at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:87)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:84)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
        at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
        at com.sun.enterprise.security.SecuritySniffer.setup(SecuritySniffer.java:105)
        at com.sun.enterprise.v3.server.ContainerStarter.startContainer(ContainerStarter.java:99)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainer(ApplicationLifecycle.java:703)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:451)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:262)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)
        at com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:292)
        at com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:100)

I have found out, that this class should contain appserv-rt.jar, but when I look into this file (from lib dir), it contains only MET-INF dir. Actually in the lib dir are only a few files (3 directly in lib and 29 in subdirs), when I compare it to 2.1.1 lib dir(128 jars)... Is this correct? I have installed Glassfish using windows installer on XP.
[Message sent by forum member 'anaq' (anaque_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=385640