users@glassfish.java.net

Re: How to: use Form based auth via JDBCRealm:oracle in Glassfish 3.0

From: <glassfish_at_javadesktop.org>
Date: Thu, 14 Jan 2010 05:33:20 PST

This is probably excessive but I restarted the server and immediately looked at the server log, it had this error:


[#|2010-01-14T08:23:26.731-0500|SEVERE|glassfishv3.0|org.apache.tomcat.util.digester.Digester|_ThreadID=11;_ThreadName=Thread-1;|Begin event threw exception

java.lang.ClassNotFoundException: org.apache.catalina.realm.JDBCRealm

        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:744)

        at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)

        at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1656)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

        at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:242)

        at org.apache.tomcat.util.digester.Rule.begin(Rule.java:189)

        at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1414)

        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)

        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)

        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)

        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)

        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)

        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)

        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1699)

        at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:819)

        at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:760)

        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1014)

        at com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:180)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

        at org.apache.catalina.core.StandardContext.init(StandardContext.java:6319)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4972)

        at com.sun.enterprise.web.WebModule.start(WebModule.java:499)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)

        at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:159)

        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:181)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:910)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)

        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)

        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605)

        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)

        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)

        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)

        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)

        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)

        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)

        at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:163)

        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.v3.server.AppServerStartup.run(AppServerStartup.java:236)

        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)

        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)

        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)

        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)

        at org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1262)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:631)

        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)

        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)

        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)

        at org.jvnet.hk2.osgimain.Main.start(Main.java:140)

        at org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1262)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:631)

        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)

        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)

        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)

        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)

        at java.lang.Thread.run(Thread.java:619)

|#]



[#|2010-01-14T08:23:26.747-0500|SEVERE|glassfishv3.0|org.apache.catalina.startup.ContextConfig|_ThreadID=11;_ThreadName=Thread-1;|PWC3026: Parse error in default web.xml

java.lang.ClassNotFoundException: org.apache.catalina.realm.JDBCRealm

        at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2840)

        at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2866)

        at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1417)

        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)

        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)

        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)

        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)

        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)

        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)

        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)

        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1699)

        at org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:819)

        at org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:760)

        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:1014)

        at com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:180)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

        at org.apache.catalina.core.StandardContext.init(StandardContext.java:6319)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4972)

        at com.sun.enterprise.web.WebModule.start(WebModule.java:499)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:928)

        at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:159)

        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:181)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:910)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)

        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1933)

        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1605)

        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:90)

        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)

        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:241)

        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:236)

        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:339)

        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:340)

        at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:163)

        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.v3.server.AppServerStartup.run(AppServerStartup.java:236)

        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)

        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:457)

        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:401)

        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:125)

        at org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1262)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:631)

        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)

        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)

        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915)

        at org.jvnet.hk2.osgimain.Main.start(Main.java:140)

        at org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1262)

        at java.security.AccessController.doPrivileged(Native Method)

        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:631)

        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700)

        at org.apache.felix.framework.Felix.startBundle(Felix.java:1622)

        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)

        at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)

        at java.lang.Thread.run(Thread.java:619)

Caused by: java.lang.ClassNotFoundException: org.apache.catalina.realm.JDBCRealm

        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:744)

        at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)

        at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1656)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

        at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:242)

        at org.apache.tomcat.util.digester.Rule.begin(Rule.java:189)

        at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1414)

        ... 63 more


Seems like the server has just not been able to find the class, if so then what jar do I need to put where? I already have ojdbc14.jar in many places.
[Message sent by forum member 'cal41' (calgach_at_yahoo.ca)]

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