0 Replies Latest reply on May 19, 2010 2:26 PM by Shinan Kassam

    Jboss cannot find a class I am referencing in my context.xml

    Shinan Kassam Newbie

      I had a custom JDBCRealm implemenation working before i moved realm.XxRealm to com.xxx.xxx.realm.XxRealm. After i changed the namespace and my configuration I get: Class not found exception from Realm in context.xml (detailed stack below)

       

      In my context.xml I have:

      <Context>

         <Realm

        debug="99"

        className="com.xxx.xxx.realm.XxRealm"

        driverName="ianywhere.ml.jdbcodbc.jdbc3.IDriver"

        connectionURL="jdbc:ianywhere:DRIVER=SQL Anywhere 10;UID=xxxx;PWD=xxxx;ENG=HostServer;LINKS=tcpip(HOST=10.6.1.99;DoBroadcast=None)"  

        userTable="usrsec"

            userNameCol="usrsec_userid"

            userCredCol="usrsec_pswd"

            userRoleTable="usrsec" roleNameCol="usrsec_level"

        />

      <Valve className="flex.messaging.security.TomcatValve"/>

      </Context>

       

      TIA.

       

       

      2010-05-19 13:08:52,191 ERROR [org.jboss.web.tomcat.service.deployers.JBossContextConfig] (HDScanner) Error processing: WEB-INF/context.xml
      java.lang.ClassNotFoundException: com.xxx.xxx.realm.XxRealm from BaseClassLoader@12ccf48{VFSClassLoaderPolicy@dcbf25{name=vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/ domain=ClassLoaderDomain@205756{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@c2a132} roots=[MemoryContextHandler@8991827[path= context=vfsmemory://a612r-mt44nx-g9egq8ig-1-g9egqocr-14 real=vfsmemory://a612r-mt44nx-g9egq8ig-1-g9egqocr-14], FileHandler@30044132[path=jbossweb.sar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/], DelegatingHandler@24635598[path=jbossweb.sar/jasper-jdt.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jasper-jdt.jar], DelegatingHandler@22372461[path=jbossweb.sar/jboss-web-service.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jboss-web-service.jar], DelegatingHandler@2991674[path=jbossweb.sar/jbossweb.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jbossweb.jar], DelegatingHandler@16533421[path=jbossweb.sar/jstl.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jstl.jar], DelegatingHandler@12956797[path=jbossweb.sar/jsf-libs/jboss-faces.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jsf-libs/jboss-faces.jar], DelegatingHandler@30185385[path=jbossweb.sar/jsf-libs/jsf-api.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jsf-libs/jsf-api.jar], DelegatingHandler@16316138[path=jbossweb.sar/jsf-libs/jsf-impl.jar context=file:/C:/jboss-5.1.0.GA/server/default/deploy/ real=file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jsf-libs/jsf-impl.jar]]  delegates=null exported=[, org.apache.tomcat.util.http.fileupload, com.sun.faces.mgbean, org.apache.taglibs.standard, org.apache.tomcat.util.net, org.apache.catalina.core, org.jboss.web.tomcat.security, org.apache.jasper.resources, org.jboss.web.tomcat.security.jaspi.modules, org.apache.tomcat.util.http, com.sun.faces, javax.faces.validator, org.apache.jasper.xmlparser, org.apache.catalina.util, org.apache.tomcat.util.log, org.eclipse.jdt.internal.compiler.classfmt, org.apache.catalina.ant.jmx, org.eclipse.jdt.internal.compiler.codegen, javax.faces.application, org.apache.catalina.startup, com.sun.faces.el, org.jboss.web.tomcat.service.jasper, org.apache.tomcat.util.modeler.modules, org.apache.taglibs.standard.tag.rt.core, org.apache.taglibs.standard.tag.common.core, org.apache.catalina.manager.host, org.jboss.web.jsf.integration.config, org.apache.taglibs.standard.tag.common.sql, com.sun.faces.lifecycle, org.apache.jasper.el, org.apache.naming.java, javax.servlet.jsp.jstl.core, com.sun.faces.config, org.jboss.web.tomcat.service.jca, org.jboss.web.cluster.advertise, org.apache.tomcat.util.net.jsse, org.apache.taglibs.standard.tag.common.fmt, org.apache.coyote.memory, org.apache.jasper.util, org.apache.taglibs.standard.lang.support, com.sun.faces.taglib.jsf_core, org.apache.taglibs.standard.tag.rt.sql, org.apache.catalina, com.sun.faces.ext.validator, org.jboss.web.jsf.integration.serialization, org.apache.tomcat.util.json, org.eclipse.jdt.core.compiler, org.apache.catalina.ssi, org.apache.jasper.servlet, javax.servlet.jsp.jstl.sql, javax.faces.lifecycle, org.apache.taglibs.standard.tag.el.core, org.apache.taglibs.standard.lang.jstl.test, org.jboss.net.protocol.jndi, org.apache.taglibs.standard.lang.jstl.test.beans, org.eclipse.jdt.internal.compiler.flow, org.apache.naming.resources, com.sun.faces.vendor, com.sun.faces.taglib.html_basic, javax.faces.webapp, org.apache.coyote.http11.filters, javax.faces.convert, org.apache.tomcat.bayeux, org.apache.el.parser, com.sun.faces.spi, com.sun.faces.ext.component, org.apache.taglibs.standard.lang.jstl.parser, org.apache.catalina.mbeans, org.apache.catalina.security, javax.faces.render, com.sun.faces.config.configprovider, org.apache.taglibs.standard.tei, org.apache.catalina.servlets, org.apache.taglibs.standard.resources, org.apache.taglibs.standard.tag.el.sql, org.jboss.web.tomcat.statistics, org.apache.naming.factory.webservices, javax.faces.event, org.eclipse.jdt.internal.core.util, org.eclipse.jdt.internal.compiler.parser.diagnose, org.jboss.web.cluster, com.sun.faces.ext.render, META-INF.services, org.apache.jasper.security, com.sun.faces.renderkit.html_basic, org.jboss.web.jsf.integration.injection, com.sun.faces.resources, org.eclipse.jdt.internal.compiler.ast, org.apache.taglibs.standard.extra.spath, org.apache.naming, org.apache.tomcat.util.http.mapper, org.jboss.web.tomcat.service.sso, org.apache.taglibs.standard.tlv, org.apache.catalina.manager, org.jboss.web.rewrite, org.apache.tomcat.util.http.res, com.sun.faces.io, org.apache.taglibs.standard.functions, javax.servlet.jsp.jstl.fmt, org.jboss.web.tomcat.service.deployers, org.apache.jasper.tagplugins.jstl, org.apache.taglibs.standard.tag.rt.fmt, org.apache.el.lang, org.apache.tomcat.util.res, javax.faces, org.apache.tomcat.util.buf.res, org.apache, javax.faces.component, org.apache.tomcat.util.digester, javax.faces.el, org.apache.taglibs.standard.lang.jstl, org.apache.catalina.manager.util, org.apache.tomcat.util, org.apache.naming.resources.jndi, org.jboss.web.tomcat.service, org.jboss.web.tomcat.filters, org.jboss.web.tomcat.security.jaspi, org.apache.catalina.loader, org.jboss.servlet.http, org.eclipse.jdt.internal.compiler.env, org.apache.jasper.compiler, org.eclipse.jdt.internal.compiler.lookup, org.eclipse.jdt.internal.compiler.util, com.sun.faces.application, org.apache.taglibs.standard.tag.rt.xml, org.jboss.web.tomcat.service.session.notification, org.jboss.web.tomcat.security.authenticators, org.apache.coyote, org.jboss.web.tomcat.service.management, org.apache.catalina.authenticator, org.eclipse.jdt.internal.compiler.problem, javax.faces.component.html, org.apache.el.util, com.sun.faces.config.processor, com.sun.faces.taglib, com.sun.faces.ext.taglib, org.apache.catalina.connector, org.apache.catalina.realm, org.apache.jasper.runtime, com.sun.faces.context, org.apache.cometd.bayeux, org.apache.jasper.tagplugins.jstl.core, javax.faces.context, org.apache.taglibs.standard.tag.el.fmt, org.jboss.web.tomcat.security.login, org.jboss.net.ssl, org.apache.jasper, org.apache.coyote.http11, org.jboss.web.php, org.apache.catalina.ant, org.eclipse.jdt.internal.compiler, org.apache.tomcat.bayeux.request, com.sun.faces.scripting, org.apache.tomcat.util.buf, org.eclipse.jdt.internal.compiler.batch, org.eclipse.jdt.core.compiler.batch, org.apache.tomcat.util.modeler, org.jboss.web.tomcat.servlets, org.apache.jasper.compiler.tagplugin, org.apache.catalina.session, org.jboss.web.tomcat.service.injection, com.sun.faces.renderkit, org.apache.taglibs.standard.tag.common.xml, javax.servlet.jsp.jstl.tlv, org.apache.catalina.deploy, org.apache.catalina.valves, org.apache.tomcat.util.net.jsse.res, javax.faces.model, com.sun.faces.util, org.apache.taglibs.standard.tag.el.xml, META-INF, org.apache.tomcat.jni, org.apache.coyote.ajp, org.jboss.web.tomcat.service.session, org.apache.tomcat.util.net.res, org.apache.naming.factory, org.jboss.web.tomcat.metadata, org.eclipse.jdt.internal.compiler.impl, org.eclipse.jdt.internal.compiler.parser, org.apache.el] <IMPORT-ALL>NON_EMPTY}}
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at org.jboss.web.tomcat.service.deployers.TomcatService.getInstance(TomcatService.java:375)
      at org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:619)
      at org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:540)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5436)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4148)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
      at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
      at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
      at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
      at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
      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 org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      at $Proxy38.start(Unknown Source)