1 Reply Latest reply on Apr 28, 2011 10:50 AM by Wolfgang Knauf

    [JBoss AS 6] JAASRealm not found

    bysse Newbie

      Hi,

      I'm trying to implement a SSO solution using Waffle in JBoss AS 6.0.0.Final but I get stuck right away. The problem is my Realm configuration generates a ClassNotFoundException on startup which it doesn't do in JBoss 4.2.2 or in Tomcat 6.

       

      I've tried put the configuration on WEB-INF/context-xml and in server.xml but it doesn't make any change. login-config.xml is not included since this problem occures when starting the server and not on authentication.

       

      Anyone have an idea of why this happens?

       

      This is my context.xml

      {code:xml}

      <Context>

      <Valve className="waffle.apache.NegotiateAuthenticator" principalFormat="fqn" roleFormat="both" allowGuestLogin="false" />

      <Realm className="org.apache.catalina.realm.JAASRealm" appName="ServerRealm" userClassNames="waffle.jaas.UserPrincipal" roleClassNames="waffle.jaas.RolePrincipal" useContextClassLoader="false" debug="true" />

      </Context>

      {code}

       

      Stack trace:

      {quote}14:47:52,950 ERROR [JBossContextConfig] Error processing: WEB-INF/context.xml: java.lang.ClassNotFoundException: org.apache.catalina.realm.JAASRealm from BaseClassLoader@13ceeb6{vfs:///C:/jboss/jboss-6-distrib/server/default/deploy/jbossweb.sar}

                at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:480) [jboss-classloader.jar:2.2.0.GA]

                at java.lang.ClassLoader.loadClass(Unknown Source) [:1.6.0_25]

                at org.jboss.web.tomcat.service.deployers.TomcatService.getInstance(TomcatService.java:421) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:788) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:701) [:6.0.0.Final]

                at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:192) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.deployers.JBossContextConfig.lifecycleEvent(JBossContextConfig.java:206) [:6.0.0.Final]

                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:115) [:6.0.0.Final]

                at org.apache.catalina.core.StandardContext.init(StandardContext.java:4746) [:6.0.0.Final]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3653) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.0.0.Final]

                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.0.0.Final]

                at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477) [:6.0.0.Final]

                at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.0.0.Final]

                at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.0.0.Final]{quote}

      ...

       

      Thanks