Bruce, it does the same thing with the "./" in front as with out. It
looks for the file in mappings/mappings instead of just mappings/. I
don't know if this is a java issue or castor issue. 

-------Original Message-----
--From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
--Sent: Tuesday, July 20, 2004 12:37 PM
--To: [EMAIL PROTECTED]
--Subject: Re: [castor-dev] Two different file behaviors
--
--
--Nick Stuart wrote:
--
--> Hello all, just ran into a weird problem. I have a conf 
--file like the
--> following: 
--> 
--> <database name="projects" engine="mysql" >
-->     <driver url="jdbc:mysql://myserver/database" 
-->                     class-name="com.mysql.jdbc.Driver">
-->             <param name="user" value="meh"/>
-->             <param name="password" value="meh" />
-->     </driver>
-->     <mapping href="./mappings/projectMaps.xml" />
-->     <mapping href="./mappings/vortechsMaps.xml" />  
-->     <mapping href="./mappings/vortSentryMaps.xml" /> </database>
--> 
--> And it works fine in windows. But, I just tried it in linux using 
--> j2sdk
--> 1.4.2_04-b05 and it doesn't. It fails with an error saying 
--cant find 
--> mapping file 'mappings/mappings/projectMaps.xml'. Which of 
--course is 
--> correct as the file doesn't exist, but the path to begin with is 
--> wrong. If I change the href='../mappings/blah' (notice the 
--double dot) it works fine.
--> 
--> Is there anyway to get around this or is this a straight 
--java related issue? 
--> My program loads the database file using the string  
--'mappings/database.xml' 
--
--Nick,
--
--What happens if you drop the ./ from the beginning of the path?
--
--Bruce
----
--perl -e 'print
--unpack("u30","<0G)[EMAIL PROTECTED]&5R\\"F9E<G)E=\\$\\!F<FEI+F-O;0\
\`\\`");'
--
--The Castor Project
--http://www.castor.org/
--
--Apache Geronimo
--http://incubator.apache.org/projects/geronimo.html
--
--
--
-------------------------------------------------------------
--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