Please send all emails in a daily digest format. It is becoming a big problem here with so many emails. If digest not possible, please cancel my membership asap.
--- Werner Guttmann <[EMAIL PROTECTED]> wrote: > > Marco, > > yes, you'll have to get the JAR file(s) via ftp (as > it always is the case with Castor downloads). Look > at > > http://castor.exolab.org/phpBB2/viewtopic.php?t=336 > > for the original announcement I posted to the > mailing lists that includes the URLs. > > Werner > > On Wed, 10 Nov 2004 08:54:43 -0000, Marco Mistroni > wrote: > > > > >Hello Werner, > > Thanx..i'll do it... > >Just one minor isse: there have been many posts > recently about > >Where the 0.9.5.6 can be downloaded... > >I assume I have to go thru 'FTP access', correct? > > > > > > > >Thanx and regards > > marco > > > >-----Original Message----- > >From: Werner Guttmann > [mailto:[EMAIL PROTECTED] > >Sent: 09 November 2004 19:16 > >To: [EMAIL PROTECTED] > >Subject: Re: [castor-user] classLoading problem > with Castor 0.9.5.3? > > > > > >Marco, > > > >as far as I remember, there's been a problem > reported for this 'feature' > >shortly after the 0.9.5.3 release. If you're > willing to consider using > >the 0.9.6 release > >candidate, I am 100% sure that this has been fixed. > > > >Werner > > > >On Tue, 9 Nov 2004 09:13:06 -0000, Marco Mistroni > wrote: > > > >> > >>Hello all, > >> I am experiencing ClassLoading problems with > Castor 0.9.5.3. > >>In my CastorPersistenceManager class, I am loading > database.xml & > >>Mapping.xml 'dynamically' with following code > >> > >> _mapping = new Mapping( > getClass().getClassLoader() ); > >> _mapping.setLogWriter(new > PrintWriter(System.out) ); > >> InputStream stream = > >>this.getClass().getResourceAsStream(mapping); > >> _mapping.loadMapping(new InputSource( stream ) > ); > >> _jdo = new JDO(); > >> _jdo.setLogWriter(new > PrintWriter(System.out)); > >> URL url = > >>this.getClass().getClassLoader().getResource("/database.xml"); > >> _jdo.loadConfiguration(url.toString()); > >> _jdo.setDatabaseName( "test" ); > >> > >>In this way, I don't have to specify the > 'absolute' path of my mapping > >>files.. > >> > >>The values of mapping.xml and databae.xml is > '/mapping.xml' > >> > >>Issue is, when I run my program with castor > 0.9.5.2, everything gets > >>loaded > >>Without any problems.. > >> > >>When I moved to castor 0.9.5.3, then it looks like > castor is trying to > >>find the file in my directory, instead of loading > from classes > >> > >>Anyone can give me help, or suggestion on what can > be wrong? > >> > >>Thanx in advance and regard > >> marco > >> > >> > >> > >> > >>-----Original Message----- > >>From: Marco Mistroni > [mailto:[EMAIL PROTECTED] > >>Sent: 08 November 2004 21:40 > >>To: Marco Mistroni > >>Subject: RE: [castor-user] SourceGenerator issue > /2 > >> > >>--- error in initializing > >>org.exolab.castor.mapping.MappingException: Nested > error: > >>java.io.FileNotFoundEx > >>ception: > C:\Sw\Budget-Project\Backend\target\mapping.xml (The > system > >>cannot > >>find > >> the file specified) > >>2004-11-08 21:38:41,187 ERROR > com.myapp.castor.CastorFactory [main] - > >>Error in > >> initializing castor! > >> > >>java.lang.Exception: Error in initializing > >>cpmgr!org.exolab.castor.mapping.Mappi > >>ngException: Nested error: > java.io.FileNotFoundException: > >>C:\Sw\Budget-Project\B > >>ackend\target\mapping.xml (The system cannot find > the file specified) > >> at > >>com.myapp.castor.CastorPersistenceManager.init(CastorPersistenceManag > >>er.java:88) > >> at > com.myapp.castor.CastorFactory.<init>(CastorFactory.java:26) > >> at > >>com.myapp.castor.CastorPersistenceManagerTest.setUp(CastorPersistence > >>ManagerTest.java:69) > >> at > junit.framework.TestCase.runBare(TestCase.java:125) > >> at > junit.framework.TestResult$1.protect(TestResult.java:106) > >> at > junit.framework.TestResult.runProtected(TestResult.java:124) > >> at > junit.framework.TestResult.run(TestResult.java:109) > >> at > junit.framework.TestCase.run(TestCase.java:118) > >> at > junit.framework.TestSuite.runTest(TestSuite.java:208) > >> at > junit.framework.TestSuite.run(TestSuite.java:203) > >> at > >>org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUni > >>tTestRunner.java:325) > >> at > >>org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JU > >>nitTask.java:848) > >> at > >>org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT > >>ask.java:556) > >> at > >>org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitT > >>ask.java:532) > >> at > org.apache.tools.ant.Task.perform(Task.java:341) > >> at > >>org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:232) > >> at > >>org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > >> at > >>org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > >> at > >>org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) > >> at > >org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) > >> at > >>org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > >> at > >>org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > >> at > >>org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) > >> at > >>com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128) > >> at > com.werken.werkz.Goal.fire(Goal.java:639) > >> at > com.werken.werkz.Goal.attain(Goal.java:575) > >> at > com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > >> at > com.werken.werkz.Goal.attain(Goal.java:573) > >> at > com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > >> at > com.werken.werkz.Goal.attain(Goal.java:573) > >> at > >>com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) > === message truncated === __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-user
