Well, 'essentially' and 'same' are different. :-)  I pull the files
from my classpath, not via file: url.  My war files have been deployed
via weblogic(6.1), resin and tomcat(3.3,4.0.x) without problems. 

Can you give your exact code?  Both the java code and reposting your
xml?  Note that I include a forward slash in the "/database.xml" ref
for when I set the configuration location.

> Date: Wed, 22 May 2002 18:30:50 -0400 (EDT)
> From: Jessica Perry Hekman <[EMAIL PROTECTED]>

> On Wed, 22 May 2002, Ned Wolpert wrote:
> 
> > jdo = new JDO();
> > jdo.setClassLoader( getClass().getClassLoader() );
> > jdo.setConfiguration(getClass().getResource("/database.xml").toString());
> > jdo.setDatabaseName(dbname);
> > 
> > and in my database.xml, I have this for the mapping.xml file:
> > 
> > <mapping href="mapping.xml"/>
> > 
> > and both files are in the webapp classpath, (in
> >           <appname>/WEB-INF/classes
> > in my case, in the top level, so they are
> >           <appname>/WEB-INF/classes/database.xml
> >           <appname>/WEB-INF/classes/mapping.xml
> 
> This is essentially the same as what I do. I am curious -- how do you 
> start your servlet engine? I notice that mapping.xml is resolved relative 
> to the directory in which I run my servlet engine's start script. (I use 
> Tomcat 4.)
> 
> j
> 
> ---
>   "Users complain that they receive too much spam, while spammers protest
> messages are legal." -InfoWorld
>   "You do not have to do everything disagreeable that you have a right to
> do." -Judith Martin (Miss Manners)
> 
> ----------------------------------------------------------- 
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to