AW: AW: AW: cayenne with jetty6

From: Peter Schröder (Peter.Schroede..reenet-ag.de)
Date: Fri Feb 16 2007 - 03:57:59 EST

  • Next message: Michael Gentry: "Re: AUTO_PK_SUPPORT Error"

    hi andrus,

    this is the debug-output. why does the loading of local preferences fail with the maven-plugin?!

    16 Feb 2007 09:55:03.569 [DEBUG] [main] [org.objectstyle.cayenne.conf.DefaultConfiguration] - canInitialize started.
    16 Feb 2007 09:55:03.569 [DEBUG] [main] [org.objectstyle.cayenne.conf.DefaultConfiguration] - initialize starting.
    16 Feb 2007 09:55:03.569 [DEBUG] [main] [org.objectstyle.cayenne.util.WebApplicationResourceLocator] - searching for: /WEB-INF/cayenne.xml
    16 Feb 2007 09:55:03.569 [DEBUG] [main] [org.objectstyle.cayenne.util.ResourceLocator] - URL found with classloader: jar:file:/C:/Dokumente%20und%20Einstellungen/pschroeder/.m2/repository/de/phoet/basement_database/1.0.0/basement_database-1.0.0.jar!/cayenne.xml
    16 Feb 2007 09:55:03.616 [INFO] [main] [org.objectstyle.cayenne.conf.RuntimeLoadDelegate] - started configuration loading.
    16 Feb 2007 09:55:03.616 [INFO] [main] [org.objectstyle.cayenne.conf.RuntimeLoadDelegate] - loaded domain: basement
    16 Feb 2007 09:55:03.647 [DEBUG] [main] [org.objectstyle.cayenne.util.WebApplicationResourceLocator] - searching for: /WEB-INF/basementMap.map.xml
    16 Feb 2007 09:55:03.647 [DEBUG] [main] [org.objectstyle.cayenne.util.ResourceLocator] - URL found with classloader: jar:file:/C:/Dokumente%20und%20Einstellungen/pschroeder/.m2/repository/de/phoet/basement_database/1.0.0/basement_database-1.0.0.jar!/basementMap.map.xml
    16 Feb 2007 09:55:03.834 [INFO] [main] [org.objectstyle.cayenne.conf.RuntimeLoadDelegate] - loaded <map name='basementMap' location='basementMap.map.xml'>.
    16 Feb 2007 09:55:03.834 [INFO] [main] [org.objectstyle.cayenne.conf.RuntimeLoadDelegate] - loading <node name='basementNode' datasource='jdbc/basement' factory='org.objectstyle.cayenne.conf.JNDIDataSourceFactory'>.
    16 Feb 2007 09:55:03.881 [INFO] [main] [org.objectstyle.cayenne.conf.RuntimeLoadDelegate] - using factory: org.objectstyle.cayenne.conf.JNDIDataSourceFactory
    16 Feb 2007 09:55:03.897 [INFO] [main] [org.objectstyle.cayenne.access.QueryLogger] - Connecting. JNDI path: jdbc/basement
    16 Feb 2007 09:55:03.897 [INFO] [main] [org.objectstyle.cayenne.conf.JNDIDataSourceFactory] - failed JNDI lookup, attempt to load from local preferences. Location key:jdbc/basement
    16 Feb 2007 09:55:03.928 [INFO] [main] [org.objectstyle.cayenne.conf.JNDIDataSourceFactory] - failed loading from local preferences
    java.lang.ClassCastException: org.objectstyle.cayenne.modeler.pref.PreferencesDataSourceFactory
            at org.objectstyle.cayenne.conf.JNDIDataSourceFactory.loadFromPreferences(JNDIDataSourceFactory.java:147)
            at org.objectstyle.cayenne.conf.JNDIDataSourceFactory.getDataSource(JNDIDataSourceFactory.java:111)
            at org.objectstyle.cayenne.conf.RuntimeLoadDelegate.shouldLoadDataNode(RuntimeLoadDelegate.java:324)
            at org.objectstyle.cayenne.conf.ConfigLoader$NodeHandler.init(ConfigLoader.java:366)
            at org.objectstyle.cayenne.conf.ConfigLoader$DomainHandler.startElement(ConfigLoader.java:255)
            at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
            at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
            at org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:114)
            at org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:197)
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:312)
            at org.objectstyle.cayenne.conf.ServletUtil.initializeSharedConfiguration(ServletUtil.java:127)
            at org.objectstyle.cayenne.conf.WebApplicationContextFilter.init(WebApplicationContextFilter.java:142)
            at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:570)
            at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
            at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1201)
            at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:482)
            at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:444)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
            at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:141)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
            at org.mortbay.jetty.Server.doStart(Server.java:210)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:134)
            at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:332)
            at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:277)
            at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:195)
            at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183)
            at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
            at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
            at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
            at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
    16 Feb 2007 09:55:03.928 [INFO] [main] [org.objectstyle.cayenne.access.QueryLogger] - *** Connecting: FAILURE.
    javax.naming.NameNotFoundException; remaining name 'jdbc/basement'
            at org.mortbay.naming.NamingContext.lookup(NamingContext.java:634)
            at org.mortbay.naming.NamingContext.lookup(NamingContext.java:680)
            at org.mortbay.naming.local.localContextRoot.lookup(localContextRoot.java:164)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at org.objectstyle.cayenne.conf.JNDIDataSourceFactory.loadViaJNDI(JNDIDataSourceFactory.java:136)
            at org.objectstyle.cayenne.conf.JNDIDataSourceFactory.getDataSource(JNDIDataSourceFactory.java:101)
            at org.objectstyle.cayenne.conf.RuntimeLoadDelegate.shouldLoadDataNode(RuntimeLoadDelegate.java:324)
            at org.objectstyle.cayenne.conf.ConfigLoader$NodeHandler.init(ConfigLoader.java:366)
            at org.objectstyle.cayenne.conf.ConfigLoader$DomainHandler.startElement(ConfigLoader.java:255)
            at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
            at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
            at org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:114)
            at org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:197)
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:312)
            at org.objectstyle.cayenne.conf.ServletUtil.initializeSharedConfiguration(ServletUtil.java:127)
            at org.objectstyle.cayenne.conf.WebApplicationContextFilter.init(WebApplicationContextFilter.java:142)
            at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:570)
            at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
            at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1201)
            at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:482)
            at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:444)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
            at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:141)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
            at org.mortbay.jetty.Server.doStart(Server.java:210)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:134)
            at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:332)
            at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:277)
            at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:195)
            at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183)
            at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
            at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
            at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
            at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
    16 Feb 2007 09:55:03.944 [INFO] [main] [org.objectstyle.cayenne.conf.RuntimeLoadDelegate] - Error: DataSource load failed
    javax.naming.NameNotFoundException; remaining name 'jdbc/basement'
            at org.mortbay.naming.NamingContext.lookup(NamingContext.java:634)
            at org.mortbay.naming.NamingContext.lookup(NamingContext.java:680)
            at org.mortbay.naming.local.localContextRoot.lookup(localContextRoot.java:164)
            at javax.naming.InitialContext.lookup(InitialContext.java:351)
            at org.objectstyle.cayenne.conf.JNDIDataSourceFactory.loadViaJNDI(JNDIDataSourceFactory.java:136)
            at org.objectstyle.cayenne.conf.JNDIDataSourceFactory.getDataSource(JNDIDataSourceFactory.java:101)
            at org.objectstyle.cayenne.conf.RuntimeLoadDelegate.shouldLoadDataNode(RuntimeLoadDelegate.java:324)
            at org.objectstyle.cayenne.conf.ConfigLoader$NodeHandler.init(ConfigLoader.java:366)
            at org.objectstyle.cayenne.conf.ConfigLoader$DomainHandler.startElement(ConfigLoader.java:255)
            at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
            at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
            at org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:114)
            at org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:197)
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:312)
            at org.objectstyle.cayenne.conf.ServletUtil.initializeSharedConfiguration(ServletUtil.java:127)
            at org.objectstyle.cayenne.conf.WebApplicationContextFilter.init(WebApplicationContextFilter.java:142)
            at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:570)
            at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
            at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1201)
            at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:482)
            at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:444)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
            at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:141)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
            at org.mortbay.jetty.Server.doStart(Server.java:210)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:134)
            at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:332)
            at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:277)
            at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:195)
            at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183)
            at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
            at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
            at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
            at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
    16 Feb 2007 09:55:03.944 [INFO] [main] [org.objectstyle.cayenne.conf.RuntimeLoadDelegate] - no adapter set, using automatic adapter.
    16 Feb 2007 09:55:04.100 [INFO] [main] [org.objectstyle.cayenne.conf.RuntimeLoadDelegate] - loaded map-ref: basementMap.
    2007-02-16 09:55:04.116::WARN: failed CayenneFilter
    org.objectstyle.cayenne.ConfigurationException: [v.1.2.1 September 19 2006] Error during Configuration initialization. [v.1.2.1 September 19 2006] Load failures. Main configuration class: org.objectstyle.cayenne.conf.DefaultConfiguration, details:
            domain.node.name=basementNode, domain.node.datasource=jdbc/basement, reason: DataSource load failed - null
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:321)
            at org.objectstyle.cayenne.conf.ServletUtil.initializeSharedConfiguration(ServletUtil.java:127)
            at org.objectstyle.cayenne.conf.WebApplicationContextFilter.init(WebApplicationContextFilter.java:142)
            at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:570)
            at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
            at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1201)
            at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:482)
            at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:444)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
            at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:141)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
            at org.mortbay.jetty.Server.doStart(Server.java:210)
            at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
            at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:134)
            at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:332)
            at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:277)
            at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:195)
            at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:183)
            at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
            at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
            at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
            at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
    Caused by: org.objectstyle.cayenne.ConfigurationException: [v.1.2.1 September 19 2006] Load failures. Main configuration class: org.objectstyle.cayenne.conf.DefaultConfiguration, details:
            domain.node.name=basementNode, domain.node.datasource=jdbc/basement, reason: DataSource load failed - null
            at org.objectstyle.cayenne.conf.RuntimeLoadDelegate.finishedLoading(RuntimeLoadDelegate.java:481)
            at org.objectstyle.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:115)
            at org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:197)
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:312)
            ... 33 more

    -----Ursprüngliche Nachricht-----
    Von: Andrus Adamchik [mailto:andru..bjectstyle.org]
    Gesendet: Mittwoch, 14. Februar 2007 15:48
    An: use..ayenne.apache.org
    Betreff: Re: AW: AW: cayenne with jetty6

    You may need to enable logging for Cayenne config classes - there
    should be a lot of info preceding the exception (including
    intermediate exceptions) when this happens.

    http://cayenne.apache.org/doc12/configuring-logging.html

    You may set this logger to DEBUG:

    log4j.logger.org.objectstyle.cayenne = DEBUG

    Andrus

    On Feb 14, 2007, at 2:31 AM, Peter Schröder wrote:
    > hi andrus,
    >
    > i get this:
    >
    > 2007-02-14 08:30:01.463::WARN: failed CayenneFilter
    > org.objectstyle.cayenne.ConfigurationException: [v.1.2.1 September
    > 19 2006] Error during Configuration initialization. [v.1.2.1
    > September 19 2006] Load failures. Main configuration class:
    > org.objectstyle.cayenne.conf.DefaultConfiguration, details:
    > domain.node.name=basementNode, domain.node.datasource=jdbc/
    > basement, reason: DataSource load failed - null
    > at
    > org.objectstyle.cayenne.conf.Configuration.initializeSharedConfigurati
    > on(Configuration.java:321)
    > at
    > org.objectstyle.cayenne.conf.ServletUtil.initializeSharedConfiguration
    > (ServletUtil.java:127)
    > at org.objectstyle.cayenne.conf.WebApplicationContextFilter.init
    > (WebApplicationContextFilter.java:142)
    > at org.mortbay.jetty.servlet.FilterHolder.doStart
    > (FilterHolder.java:99)
    > at org.mortbay.component.AbstractLifeCycle.start
    > (AbstractLifeCycle.java:40)
    > at org.mortbay.jetty.servlet.ServletHandler.initialize
    > (ServletHandler.java:570)
    > at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
    > at org.mortbay.jetty.webapp.WebAppContext.startContext
    > (WebAppContext.java:1201)
    > at org.mortbay.jetty.handler.ContextHandler.doStart
    > (ContextHandler.java:482)
    > at org.mortbay.jetty.webapp.WebAppContext.doStart
    > (WebAppContext.java:444)
    > at org.mortbay.component.AbstractLifeCycle.start
    > (AbstractLifeCycle.java:40)
    > at org.mortbay.jetty.handler.HandlerCollection.doStart
    > (HandlerCollection.java:147)
    > at org.mortbay.jetty.handler.ContextHandlerCollection.doStart
    > (ContextHandlerCollection.java:141)
    > at org.mortbay.component.AbstractLifeCycle.start
    > (AbstractLifeCycle.java:40)
    > at org.mortbay.jetty.handler.HandlerCollection.doStart
    > (HandlerCollection.java:147)
    > at org.mortbay.component.AbstractLifeCycle.start
    > (AbstractLifeCycle.java:40)
    > at org.mortbay.jetty.handler.HandlerWrapper.doStart
    > (HandlerWrapper.java:117)
    > at org.mortbay.jetty.Server.doStart(Server.java:210)
    > at org.mortbay.component.AbstractLifeCycle.start
    > (AbstractLifeCycle.java:40)
    > at org.mortbay.jetty.plugin.Jetty6PluginServer.start
    > (Jetty6PluginServer.java:134)
    > at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty
    > (AbstractJettyMojo.java:332)
    > at org.mortbay.jetty.plugin.AbstractJettyMojo.execute
    > (AbstractJettyMojo.java:277)
    > at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute
    > (AbstractJettyRunMojo.java:195)
    > at org.mortbay.jetty.plugin.Jetty6RunMojo.execute
    > (Jetty6RunMojo.java:183)
    > at org.apache.maven.plugin.DefaultPluginManager.executeMojo
    > (DefaultPluginManager.java:412)
    > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
    > (DefaultLifecycleExecutor.java:534)
    > at
    > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneG
    > oal(DefaultLifecycleExecutor.java:488)
    > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
    > (DefaultLifecycleExecutor.java:458)
    > at
    > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand
    > leFailures(DefaultLifecycleExecutor.java:306)
    > at
    > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
    > s(DefaultLifecycleExecutor.java:273)
    > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
    > (DefaultLifecycleExecutor.java:140)
    > at org.apache.maven.embedder.MavenEmbedder.execute
    > (MavenEmbedder.java:441)
    > at org.apache.maven.embedder.MavenEmbedder.execute
    > (MavenEmbedder.java:382)
    > at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
    > Caused by: org.objectstyle.cayenne.ConfigurationException: [v.1.2.1
    > September 19 2006] Load failures. Main configuration class:
    > org.objectstyle.cayenne.conf.DefaultConfiguration, details:
    > domain.node.name=basementNode, domain.node.datasource=jdbc/
    > basement, reason: DataSource load failed - null
    > at org.objectstyle.cayenne.conf.RuntimeLoadDelegate.finishedLoading
    > (RuntimeLoadDelegate.java:481)
    > at org.objectstyle.cayenne.conf.ConfigLoader.loadDomains
    > (ConfigLoader.java:115)
    > at org.objectstyle.cayenne.conf.DefaultConfiguration.initialize
    > (DefaultConfiguration.java:197)
    > at
    > org.objectstyle.cayenne.conf.Configuration.initializeSharedConfigurati
    > on(Configuration.java:312)
    > ... 33 more
    >
    > -----Ursprüngliche Nachricht-----
    > Von: Andrus Adamchik [mailto:andru..bjectstyle.org]
    > Gesendet: Dienstag, 13. Februar 2007 17:23
    > An: use..ayenne.apache.org
    > Betreff: Re: AW: cayenne with jetty6
    >
    >
    > On Feb 13, 2007, at 11:19 AM, Peter Schröder wrote:
    >
    >> after that jetty:run started without class-cast exception. instead
    >> cayenne could not find the jndi-resources.
    >
    > What output do you see on the console?
    >
    > Andrus
    >
    >



    This archive was generated by hypermail 2.0.0 : Fri Feb 16 2007 - 03:59:43 EST