[OS-JIRA] Created: (CAY-392) ConfigurationException on context reload in Tomcat

From: jira-norepl..bjectstyle.org
Date: Thu Oct 13 2005 - 22:57:38 EDT

  • Next message: Andrus Adamchik: "JDOM is replaceable"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-392

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-392
        Summary: ConfigurationException on context reload in Tomcat
           Type: Bug

         Status: Assigned
       Priority: Major

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Versions:
                 1.2 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Daniel Cox

        Created: Thu, 13 Oct 2005 10:57 PM
        Updated: Thu, 13 Oct 2005 10:57 PM
    Environment: Cayenne 1.2M6, Tomcat 5.5.12, Sun JDK 1.5.0_02 on Linux

    Description:
    I have a web application that starts and runs perfectly in Tomcat.
    But have found that reloading the context with active sessions shows the exception below.
    It does continue to reload properly and works but sessions are not restored.

    cayenne.xml is in WEB-INF/
    I have tried using both WebApplicationContextProvider and WebApplicationListener in web.xml.

    I am using Tomcat for development because of the persistent sessions on reload which saves a lot of time testing.

    There is a comment in DataContext.java with lazyInitParentDomainName that suggests this configuration in Tomcat should be able to work.

    11:57:02,536 INFO [[/manager]] HTMLManager: restart: Reloading web application at '/pricing'
    11:57:02,537 INFO [StandardContext] Reloading this Context has started
    11:57:04,893 ERROR [ManagerBase] Exception loading sessions from persistent storage
    org.objectstyle.cayenne.ConfigurationException: [v.1.2M6 October 6 2005] Error during Configuration initialization. [v.1.2M6 October 6 2005] [org.objectstyle.cayenne.conf.DefaultConfiguration] : Domain configuration file "cayenne.xml" is not found.
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:333)
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:306)
            at org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:287)
            at org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Configuration.java:232)
            at org.objectstyle.cayenne.access.DataContext.awakeFromDeserialization(DataContext.java:330)
            at org.objectstyle.cayenne.access.DataContext.getObjectStore(DataContext.java:439)
            at org.objectstyle.cayenne.access.DataContext.readObject(DataContext.java:1341)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    ...
    11:57:05,076 DEBUG [WebApplicationResourceLocator] searching for: /WEB-INF//cayenne.xml
    11:57:05,130 INFO [RuntimeLoadDelegate] started configuration loading.

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Thu Oct 13 2005 - 22:57:38 EDT