On Wed, May 26, 2010 at 6:00 AM, Luciano Resende <[email protected]> wrote: > 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/ >
I'm not sure this is all down to permissions. I just saw this when running one of the new launcher samples. It seems that the transaction logs really were locked because a previous run of the sample was holding onto a Java process for some reason. I killed the process manually and didn't get the "unable to obtain lock" error. I don't know yet whether this is something in the sample itself (likely) or in the node code. Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com
