Cayenne.xml not found.

From: WONDER (mmmmmmmmm5..eb.de)
Date: Tue Apr 04 2006 - 08:47:59 EDT

  • Next message: Andrus Adamchik: "Re: Cayenne.xml not found."

    Hello,

    Primitive problem, but still cant find the correct solution,

    I have a WebObjects application, use Cayenne and want to run the Application
    under Tomcat under Windows.

    I know how can i run WO Applications under Tomcat "without" Cayenne.

    Well the Structure looks like
    ------------------------------------------------------------
    AppName
    + META-INF
    + WEB-INF
    + Frameworks
    + lib
    + PhotoAlbum.woa
    ++ Contents
    +++ Resources
    ++++ Java
    +++++ appName.jar // this is the application jar
    file.
    +++++ Cayenne.xml
    +++++ another Cayenne.xml files.
    + web.xml
      ------------------------------------------------------------

    The same WebObjects applications runs on WebObjects Server successfully.
    The log I get looks like:
    ====================================================
    DEBUG - using domain file name: cayenne.xml
    DEBUG - canInitialize started.
    DEBUG - initialize starting.
    DEBUG - URL not found with classloader: cayenne.xml
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at
    com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServlet
    Adaptor.java:415)
            at
    com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdapt
    or.java:78)
            at
    com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java
    :629)
            at javax.servlet.GenericServlet.init(GenericServlet.java:211)
            at
    org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
    java:1105)
            at
    org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:93
    2)
            at
    org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
    t.java:3917)
            at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:4
    197)
            at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
    .java:759)
            at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
    9)
            at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

            at
    org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)

            at
    org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698
    )
            at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472
    )
            at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
            at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
    :310)
            at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
            at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

            at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
            at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

            at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
    )
            at
    org.apache.catalina.core.StandardService.start(StandardService.java:4
    50)
            at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:709
    )
            at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: com.webobjects.foundation.NSForwardException
    [org.objectstyle.cayenne
    .ConfigurationException] [v.1.2M12 March 23 2006] Error during Configuration
    ini
    tialization. [v.1.2M12 March 23 2006]
    [org.objectstyle.cayenne.conf.DefaultConfi
    guration] : Domain configuration file "cayenne.xml" is not found.:
    <Application>
     failed instantiation. Exception thrown :
    org.objectstyle.cayenne.ConfigurationException: [v.1.2M12 March 23 2006]
    Error d
    uring Configuration initialization. [v.1.2M12 March 23 2006]
    [org.objectstyle.ca
    yenne.conf.DefaultConfiguration] : Domain configuration file "cayenne.xml"
    is no
    t found.: [v.1.2M12 March 23 2006] Error during Configuration
    initialization. [v
    .1.2M12 March 23 2006] [org.objectstyle.cayenne.conf.DefaultConfiguration] :
    Dom
    ain configuration file "cayenne.xml" is not found.
            at
    com.webobjects.foundation._NSUtilities._explainInstantiationException
    (_NSUtilities.java:567)
            at
    com.webobjects.foundation._NSUtilities.instantiateObject(_NSUtilities
    .java:581)
            at
    com.webobjects.appserver.WOApplication.primeApplication(WOApplication
    .java:411)
            ... 34 more
    INFO - Marking servlet WOServletAdaptor as unavailable
    ERROR - Servlet /PhotoAlbum threw load() exception
    javax.servlet.UnavailableException: Error initializing servlet adaptor: null
            at
    com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServlet
    Adaptor.java:435)
            at
    com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdapt
    or.java:78)
            at
    com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java
    :629)
            at javax.servlet.GenericServlet.init(GenericServlet.java:211)
            at
    org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
    java:1105)
            at
    org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:93
    2)
            at
    org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
    t.java:3917)
            at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:4
    197)
            at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
    .java:759)
            at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
    9)
            at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

            at
    org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)

            at
    org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698
    )
            at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472
    )
            at
    org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
            at
    org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
    :310)
            at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
    eSupport.java:119)
            at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

            at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
            at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

            at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
    )
            at
    org.apache.catalina.core.StandardService.start(StandardService.java:4
    50)
            at
    org.apache.catalina.core.StandardServer.start(StandardServer.java:709
    )
            at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    04.04.2006 14:42:19 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    04.04.2006 14:42:19 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    ====================================================
    help?

    Thanks.



    This archive was generated by hypermail 2.0.0 : Tue Apr 04 2006 - 08:48:41 EDT