Re: Error during Configuration initialization -- running on Websphere

From: Alan Guo (AGU..ndependenthealth.com)
Date: Wed Jun 22 2005 - 16:07:19 EDT

  • Next message: Andrus Adamchik: "Re: Cayenne performance degrades over time"

    Thanks.

    I put the file into the wrong dir. Even though it wroks in IBM WSAD local testing env., it does not work when the built package put on the real server.

    Guys, thanks for the help.

    Alan

    CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may contain confidential information which is privileged and protected from disclosure by Federal and State confidentiality laws, rules or regulations. This e-mail and attachments, if any, are intended for the designated addressee only . If you are not the designated addressee, you are hereby notified that any disclosure, copying, or distribution of this e-mail and its attachments, if any, may be unlawful and may subject you to legal consequences. If you have received this e-mail and attachments in error, please contact Independent Health immediately at (716) 631-3001 and delete the e-mail and its attachments from your computer. Thank you for your attention.

    >>> andru..bjectstyle.org 06/22/05 03:51PM >>>
    Alan,

    The question is not so much "why" (Cayenne application needs cayenne.xml
    to run). Rather the question is where exactly do you put this file in your
    deployment. Can you doublecheck its location?

    In most cases it simply has to be deployed in the root of a jar file or a
    WEB-INF/classes folder.

    Andrus

    > Hi, I put a new application using cayenne (built with IBM WSAD) and
    > deployed on the Websphere server. I got an error as following when I tried
    > to get the data from db. It seems that it looks for "cayenne.xml", I am
    > not sure why it looks for this file (which I think it is already in a ..ear
    > file deployed).
    >
    > Thanks,
    >
    > Alan
    >
    > Error 500--Internal Server Error
    > org.objectstyle.cayenne.ConfigurationException: [v.1.1.2 April 28 2005]
    > Error during Configuration initialization. [v.1.1.2 April 28 2005]
    > [org.objectstyle.cayenne.conf.DefaultConfiguration] : Domain configuration
    > file "cayenne.xml" is not found.
    > at
    > org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:304)
    > at
    > org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:278)
    > at
    > org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:261)
    > at
    > org.objectstyle.cayenne.conf.Configuration.getSharedConfiguration(Configuration.java:224)
    > at
    > org.objectstyle.cayenne.access.DataContext.createDataContext(DataContext.java:252)
    > at
    > org.objectstyle.cayenne.conf.BasicServletConfiguration.getDefaultContext(BasicServletConfiguration.java:125)
    > at dayofweek.actions.ComputeDayAction.execute(ComputeDayAction.java:102)
    > at
    > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    > at
    > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    > at
    > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    > at
    > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
    > at
    > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
    > at
    > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
    > at
    > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
    > at
    > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    > at
    > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    > at
    > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
    > at
    > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
    > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    > Caused by: org.objectstyle.cayenne.ConfigurationException: [v.1.1.2 April
    > 28 2005] [org.objectstyle.cayenne.conf.DefaultConfiguration] : Domain
    > configuration file "cayenne.xml" is not found.
    > at
    > org.objectstyle.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:174)
    > at
    > org.objectstyle.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:296)
    > ... 22 more
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Jun 22 2005 - 16:07:43 EDT