glassfish
  1. glassfish
  2. GLASSFISH-3815

NoClassDefFoundError: com/sun/appserv/security/AppservRealm in 9.1 b58g-fcs

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 9.1pe
    • Fix Version/s: 9.1peur1
    • Component/s: security
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Linux

    • Issuezilla Id:
      3,815

      Description

      A Sun Custom Realm that worked under 9.1beta2 now generates the following on
      startup;

      [#|2007-10-29T16:34:45.653+1100|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting
      Sun Java System Application Server 9.1 (build b58g-fcs) ...|#]

      [#|2007-10-29T16:34:47.410+1100|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;Java
      HotSpot(TM) 64-Bit Server VM;1.6.0_03;Sun Microsystems Inc.;|CORE5076: Using
      [Java HotSpot(TM) 64-Bit Server VM, Version 1.6.0_03] from [Sun Microsystems
      Inc.]|#]

      [#|2007-10-29T16:34:47.483+1100|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=11;_ThreadName=pool-1-thread-4;|SEC1002:
      Security Manager is OFF.|#]

      [#|2007-10-29T16:34:47.488+1100|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=12;_ThreadName=pool-1-thread-2;com.sun.enterprise.interceptor.DynamicInterceptor;|MBeanServer
      started: com.sun.enterprise.interceptor.DynamicInterceptor|#]

      [#|2007-10-29T16:34:47.499+1100|INFO|sun-appserver9.1|javax.enterprise.resource.jms|_ThreadID=11;_ThreadName=pool-1-thread-4;|Using
      MQ RA for Broker lifecycle control|#]

      [#|2007-10-29T16:34:52.336+1100|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|/u01/app/glassfish-v2-b58g/domains/domain1/config/.__com_sun_appserv_pid|#]

      [#|2007-10-29T16:34:53.400+1100|INFO|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=10;_ThreadName=main;|ADM0001:SunoneInterceptor
      is now enabled|#]

      [#|2007-10-29T16:34:53.656+1100|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;com.sun.enterprise.security.provider.PolicyWrapper;|SEC1143:
      Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]

      [#|2007-10-29T16:34:53.819+1100|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=f9a934df-9727-4cb0-8593-68e2f289788e;|java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
      Caused by: java.lang.NoClassDefFoundError: com/sun/appserv/security/AppservRealm
      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$000(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 java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at
      com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:144)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at
      com.sun.enterprise.security.auth.realm.Realm.doInstantiate(Realm.java:229)
      at com.sun.enterprise.security.auth.realm.Realm.instantiate(Realm.java:165)
      at com.sun.enterprise.security.RealmConfig.createRealms(RealmConfig.java:93)
      at
      com.sun.enterprise.security.RealmConfig.createRealms(RealmConfig.java:163)
      at
      com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:113)
      at
      com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
      at
      com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
      at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
      at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
      ... 5 more

      #]

      The class does seem to exist;

      1. jar -tf lib/appserv-ext.jar | grep com/sun/appserv/security/AppservRealm
        com/sun/appserv/security/AppservRealm.class
        #

        Activity

        Hide
        scotth1 added a comment -

        I forgot the generated Java command output at startup;

        29-Oct-2007 16:34:44 com.sun.enterprise.admin.servermgmt.launch.ASLauncher
        buildCommand
        INFO:
        /usr/java/latest/bin/java
        -Dcom.sun.aas.instanceRoot=/u01/app/glassfish-v2-b58g/domains/domain1
        -Dcom.sun.aas.ClassPathPrefix=
        -Dcom.sun.aas.ClassPathSuffix=
        -Dcom.sun.aas.ServerClassPath=
        -Dcom.sun.aas.classloader.appserverChainJars.ee=
        -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar
        -Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar
        -Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
        -Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar
        -Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,/u01/app/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,/opt/sun/mfwk/share/lib/mfwk_instrum_tk.jar
        -Dcom.sun.aas.classloader.serverClassPath=/u01/app/glassfish-v2-b58g/lib/install/applications/jmsra/imqjmsra.jar,/u01/app/glassfish-v2-b58g/imq/lib/jaxm-api.jar,/u01/app/glassfish-v2-b58g/imq/lib/fscontext.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqbroker.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqjmx.jar,/u01/app/glassfish-v2-b58g/lib/ant/lib/ant.jar,/u01/app/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
        -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,/opt/sun/mfwk/share/lib/mfwk_instrum_tk.jar
        -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/usr/java/latest/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,/u01/app/glassfish-v2-b58g/imq/lib/jaxm-api.jar,/u01/app/glassfish-v2-b58g/imq/lib/fscontext.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqbroker.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqjmx.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,/u01/app/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,/u01/app/glassfish-v2-b58g/updatecenter/lib/updatecenter.jar,/u01/app/glassfish-v2-b58g/jbi/lib/jbi.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqjmx.jar,/u01/app/glassfish-v2-b58g/lib/ant/lib/ant.jar,dbschema.jar
        -Dcom.sun.aas.configName=server-config
        -Dcom.sun.aas.configRoot=/u01/app/glassfish-v2-b58g/config
        -Dcom.sun.aas.defaultLogFile=/u01/app/glassfish-v2-b58g/domains/domain1/logs/server.log
        -Dcom.sun.aas.domainName=domain1
        -Dcom.sun.aas.installRoot=/u01/app/glassfish-v2-b58g
        -Dcom.sun.aas.instanceName=server
        -Dcom.sun.aas.processLauncher=SE
        -Dcom.sun.aas.promptForIdentity=true
        -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
        -Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
        -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
        -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
        -Dcom.sun.updatecenter.home=/u01/app/glassfish-v2-b58g/updatecenter
        -Ddomain.name=domain1
        -Djava.endorsed.dirs=/u01/app/glassfish-v2-b58g/lib/endorsed
        -Djava.ext.dirs=/usr/java/latest/lib/ext:/usr/java/latest/jre/lib/ext:/u01/app/glassfish-v2-b58g/domains/domain1/lib/ext:/u01/app/glassfish-v2-b58g/javadb/lib
        -Djava.library.path=/u01/app/glassfish-v2-b58g/lib:/u01/app/glassfish-v2-b58g/lib:/u01/app/glassfish-v2-b58g/lib
        -Djava.security.auth.login.config=/u01/app/glassfish-v2-b58g/domains/domain1/config/login.conf
        -Djava.security.policy=/u01/app/glassfish-v2-b58g/domains/domain1/config/server.policy
        -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
        -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
        -Djavax.net.ssl.keyStore=/u01/app/glassfish-v2-b58g/domains/domain1/config/keystore.jks
        -Djavax.net.ssl.trustStore=/u01/app/glassfish-v2-b58g/domains/domain1/config/cacerts.jks
        -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
        -Djmx.invoke.getters=true
        -Dsun.rmi.dgc.client.gcInterval=3600000
        -Dsun.rmi.dgc.server.gcInterval=3600000
        -client
        -XX:+UnlockDiagnosticVMOptions
        -XX:MaxPermSize=192m
        -Xmx512m
        -XX:NewRatio=2
        -XX:+LogVMOutput
        -XX:LogFile=/u01/app/glassfish-v2-b58g/domains/domain1/logs/jvm.log
        -cp
        /u01/app/glassfish-v2-b58g/lib/jhall.jar:/u01/app/glassfish-v2-b58g/lib/appserv-launch.jar
        com.sun.enterprise.server.PELaunch
        start

        Show
        scotth1 added a comment - I forgot the generated Java command output at startup; 29-Oct-2007 16:34:44 com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand INFO: /usr/java/latest/bin/java -Dcom.sun.aas.instanceRoot=/u01/app/glassfish-v2-b58g/domains/domain1 -Dcom.sun.aas.ClassPathPrefix= -Dcom.sun.aas.ClassPathSuffix= -Dcom.sun.aas.ServerClassPath= -Dcom.sun.aas.classloader.appserverChainJars.ee= -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,j2ee-svc.jar -Dcom.sun.aas.classloader.excludesList=admin-cli.jar,appserv-upgrade.jar,sun-appserv-ant.jar -Dcom.sun.aas.classloader.optionalOverrideableChain.ee= -Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar -Dcom.sun.aas.classloader.serverClassPath.ee=/lib/hadbjdbc4.jar,/u01/app/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,/lib/dbstate.jar,/lib/hadbm.jar,/lib/hadbmgt.jar,/opt/sun/mfwk/share/lib/mfwk_instrum_tk.jar -Dcom.sun.aas.classloader.serverClassPath=/u01/app/glassfish-v2-b58g/lib/install/applications/jmsra/imqjmsra.jar,/u01/app/glassfish-v2-b58g/imq/lib/jaxm-api.jar,/u01/app/glassfish-v2-b58g/imq/lib/fscontext.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqbroker.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqjmx.jar,/u01/app/glassfish-v2-b58g/lib/ant/lib/ant.jar,/u01/app/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,jesmf-plugin.jar,/lib/dbstate.jar,/lib/hadbjdbc4.jar,jgroups-all.jar,/opt/sun/mfwk/share/lib/mfwk_instrum_tk.jar -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/usr/java/latest/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,com-sun-commons-launcher.jar,com-sun-commons-logging.jar,/u01/app/glassfish-v2-b58g/imq/lib/jaxm-api.jar,/u01/app/glassfish-v2-b58g/imq/lib/fscontext.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqbroker.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqjmx.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqxm.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,appserv-jstl.jar,jmxremote_optional.jar,/u01/app/glassfish-v2-b58g/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,/u01/app/glassfish-v2-b58g/updatecenter/lib/updatecenter.jar,/u01/app/glassfish-v2-b58g/jbi/lib/jbi.jar,/u01/app/glassfish-v2-b58g/imq/lib/imqjmx.jar,/u01/app/glassfish-v2-b58g/lib/ant/lib/ant.jar,dbschema.jar -Dcom.sun.aas.configName=server-config -Dcom.sun.aas.configRoot=/u01/app/glassfish-v2-b58g/config -Dcom.sun.aas.defaultLogFile=/u01/app/glassfish-v2-b58g/domains/domain1/logs/server.log -Dcom.sun.aas.domainName=domain1 -Dcom.sun.aas.installRoot=/u01/app/glassfish-v2-b58g -Dcom.sun.aas.instanceName=server -Dcom.sun.aas.processLauncher=SE -Dcom.sun.aas.promptForIdentity=true -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory -Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar -Dcom.sun.enterprise.taglisteners=jsf-impl.jar -Dcom.sun.updatecenter.home=/u01/app/glassfish-v2-b58g/updatecenter -Ddomain.name=domain1 -Djava.endorsed.dirs=/u01/app/glassfish-v2-b58g/lib/endorsed -Djava.ext.dirs=/usr/java/latest/lib/ext:/usr/java/latest/jre/lib/ext:/u01/app/glassfish-v2-b58g/domains/domain1/lib/ext:/u01/app/glassfish-v2-b58g/javadb/lib -Djava.library.path=/u01/app/glassfish-v2-b58g/lib:/u01/app/glassfish-v2-b58g/lib:/u01/app/glassfish-v2-b58g/lib -Djava.security.auth.login.config=/u01/app/glassfish-v2-b58g/domains/domain1/config/login.conf -Djava.security.policy=/u01/app/glassfish-v2-b58g/domains/domain1/config/server.policy -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder -Djavax.net.ssl.keyStore=/u01/app/glassfish-v2-b58g/domains/domain1/config/keystore.jks -Djavax.net.ssl.trustStore=/u01/app/glassfish-v2-b58g/domains/domain1/config/cacerts.jks -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver -Djmx.invoke.getters=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -client -XX:+UnlockDiagnosticVMOptions -XX:MaxPermSize=192m -Xmx512m -XX:NewRatio=2 -XX:+LogVMOutput -XX:LogFile=/u01/app/glassfish-v2-b58g/domains/domain1/logs/jvm.log -cp /u01/app/glassfish-v2-b58g/lib/jhall.jar:/u01/app/glassfish-v2-b58g/lib/appserv-launch.jar com.sun.enterprise.server.PELaunch start
        Hide
        kumarjayanti added a comment -

        The user has reported it was a user-error.

        Show
        kumarjayanti added a comment - The user has reported it was a user-error.

          People

          • Assignee:
            raharsha
            Reporter:
            scotth1
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: