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 - 15:51:30 EDT