InitializationException: cannot open disk journal

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

InitializationException: cannot open disk journal

lefloresg
Hello,

I am stuck installing a webapp onto my server. When I try to restart Tomcat7 I get the following error:

INFO: JVM unique ID: <10.240.120.134>
bitronix.tm.utils.InitializationException: cannot open disk journal
at bitronix.tm.BitronixTransactionManager.(BitronixTransactionManager.java:98)
at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:75)
at bitronix.tm.integration.tomcat55.BTMLifecycleListener.lifecycleEvent(BTMLifecycleListener.java:18)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: java.io.FileNotFoundException: btm2.tlog (Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:241)
at bitronix.tm.journal.DiskJournal.createLogfile(DiskJournal.java:237)
at bitronix.tm.journal.DiskJournal.open(DiskJournal.java:137)
at bitronix.tm.BitronixTransactionManager.(BitronixTransactionManager.java:85)
... 13 more


Any suggestions?

THANK YOU!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: InitializationException: cannot open disk journal

Gérald Quintana
The error message says " java.io.FileNotFoundException: btm2.tlog (Permission denied)": Check that the system user running Tomcat as R/W privileges on journal files.

Journal files location is described in Bitronix config by logPart1Filename and logPart1Filename settings (default to btm1.log and btm2.log files in current directory).

Gérald

2015-01-27 20:10 GMT+01:00 lefloresg <[hidden email]>:
Hello,

I am stuck installing a webapp onto my server. When I try to restart Tomcat7
I get the following error:

INFO: JVM unique ID: <10.240.120.134>
bitronix.tm.utils.InitializationException: cannot open disk journal
at
bitronix.tm.BitronixTransactionManager.(BitronixTransactionManager.java:98)
at
bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:75)
at
bitronix.tm.integration.tomcat55.BTMLifecycleListener.lifecycleEvent(BTMLifecycleListener.java:18)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.startup.Catalina.start(Catalina.java:689)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: java.io.FileNotFoundException: btm2.tlog (Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:241)
at bitronix.tm.journal.DiskJournal.createLogfile(DiskJournal.java:237)
at bitronix.tm.journal.DiskJournal.open(DiskJournal.java:137)
at
bitronix.tm.BitronixTransactionManager.(BitronixTransactionManager.java:85)
... 13 more


Any suggestions?

THANK YOU!



--
View this message in context: http://bitronix-transaction-manager.10986.n7.nabble.com/InitializationException-cannot-open-disk-journal-tp1689.html
Sent from the Bitronix Transaction Manager mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: InitializationException: cannot open disk journal

lefloresg
Gérald,

Thank you for your reply.

These are my permissions for: {btm.root}/work

 File: ‘work’
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 801h/2049d      Inode: 140401      Links: 2
Access: (0755/drwxr-xr-x)  Uid: (  108/ tomcat7)   Gid: (  115/ tomcat7)
Access: 2015-01-27 17:33:42.948673988 +0000
Modify: 2015-01-27 17:33:41.132674491 +0000
Change: 2015-01-27 17:33:41.132674491 +0000

 
Loading...