On Mon, May 24, 2010 at 3:38 AM, kelvin goodson <[email protected]> wrote: > I note when I build a binary distro that the whole file system > hierarchy in the distribution/target/* is read only. This hasn't been > an issue until I just tried running "mvn" in the sample jse launcher > directory and got the following failure ... > > Caused by: java.lang.IllegalStateException: > org.objectweb.howl.log.LogConfigurationException: LogFileManager.open: > unable to obtain lock on > file > C:\Runtimes\building_m5_2\tuscany-sca-2.0-SNAPSHOT\samples\launcher-embedded-jse\target\logs\transaction_1.log > at > org.apache.tuscany.sca.policy.transaction.runtime.geronimo.TransactionManagerWrapper.start(TransactionManagerWrapper.java:69) > at > org.apache.tuscany.sca.policy.transaction.runtime.geronimo.TransactionModuleActivator.start(TransactionModuleActivator.java:57) > ... 36 more > Caused by: org.objectweb.howl.log.LogConfigurationException: > LogFileManager.open: unable to obtain lock on file > C:\Runtimes\building_m5_2\tu > scany-sca-2.0-SNAPSHOT\samples\launcher-embedded-jse\target\logs\transaction_1.log > at org.objectweb.howl.log.LogFileManager.open(LogFileManager.java:782) > at org.objectweb.howl.log.Logger.open(Logger.java:303) > at org.objectweb.howl.log.xa.XALogger.open(XALogger.java:893) > at > org.apache.geronimo.transaction.log.HOWLLog.doStart(HOWLLog.java:224) > at > org.apache.tuscany.sca.policy.transaction.runtime.geronimo.TransactionManagerWrapper.start(TransactionManagerWrapper.java:66) > ... 37 more > 24-May-2010 11:24:50 org.apache.tuscany.sca.node.impl.NodeFactoryImpl > loadContributions > INFO: Loading contribution: > file:/C:/Runtimes/building_m5_2/tuscany-sca-2.0-SNAPSHOT/samples/launcher-embedded-jse/../contribution-implement > ation-java-calculator/target/classes > Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 24.641 > sec <<< FAILURE! > > Results : > > Tests in error: > testContributionBindingWSCalculator(launcher.LauncherTestCase) > testContributionBindingRMICalculator(launcher.LauncherTestCase) > testContributionImplementationJavaCalculator(launcher.LauncherTestCase) > > Tests run: 4, Failures: 0, Errors: 3, Skipped: 0 > > ----- > Any clues/insights how I should resolve this? Would this be true of > an RC without a fix? > > Kelvin. >
I have tweaked the assemblies to help with this, and at svn revision 948319, but it seems that there is still an issue on the log file created by Geronimo transaction manager. The strange thing is that, even if I force a chmod ugo+rw for the whole samples (recursively), Geronimo/Log4j still tries to create a read only log file. Does anyone have any idea why ? Did we update Geronimo Tx Manager recently ? -- Luciano Resende http://people.apache.org/~lresende http://twitter.com/lresende1975 http://lresende.blogspot.com/
