Re: cayenne.xml not found - completely at a loss here...

From: Mike Kienenberger (mkienen..laska.net)
Date: Fri Feb 25 2005 - 10:34:04 EST

  • Next message: Mike Kienenberger: "[OT] Eclipse Quantum DB plugin"

    tnaki..ofthome.net wrote:
    > Andrus Adamchik wrote:
    >
    > > Aside from following deployment instructions for web applications
    > > (e.g. http://objectstyle.org/cayenne/userguide/deploy/
    > > webapplicationlistener.html), you can try one more location:
    > >
    > > [myproject]/context/WEB-INF/classes
    >
    > Forgot to mention, I tried that one too: that's what makes the problem
    > hard: basically, I placed copies in every subdirectory of [myproject]
    > and got no results. Shouldn't there be a way to specify a path to the
    > cayenne project files?
    >
    > This is going to be a mile off-topic and probably a beginner giveaway,
    > but from what I can tell, I'm missing the complete javax.servlet package
    > which makes the webapplicationlistener instructions rather hard to
    > follow. Is the servlet package part of J2SE or do I need to get J2EE?

    > I appologize for wandering off-topic, but I'm wrestling with Java,
    > Eclipse, tomcat, sysdao, tapestry, spindle AND cayenne at the same time
    > (a novice user with everything listed) so it's a bit hard for me to
    > separate concerns.

    I'm using Eclipse, tomcat, sysdao, cayenne, and struts, so I can probably
    assist you somewhat.

    javax.servlet comes as part of your j2ee container (tomcat in your case).

    I include this in my project by referencing
    TOMCAT_HOME/common/lib/servlet.jar.
    You may or may not need jaspar-runtime.jar in the same directory -- I think
    it's only necessary for jsp support which you wouldn't use under Tapestry.

    By default, Cayenne finds cayenne.xml in the root of your classpath.

    My first guess is that your sysdao/tomcat interaction isn't set up right,
    and you're not picking up the classpath.

    If possible try copying your war file and/or project directly into tomcat's
    deployment directory first, and see if that works.

    ...jakarta-tomcat-4.1.27\webapps I think.

    If that's the case, you probably just need to get your sysdao/tomcat
    configured properly. I might be able to help you with that off-list.

    And yes, there's a way to use FileConfiguration to specify an absolute path,
    but you won't be using that anyway once you have everything configured
    properly, so there's little point in doing that now.

    When you're done, you'll just stick your cayenne.xml files either in your
    src directory so they're automatically copied to the classes directory or I
    stick them in my WEB-INF directory.

    -Mike



    This archive was generated by hypermail 2.0.0 : Fri Feb 25 2005 - 10:33:16 EST