This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why lck file block database even i access it first time after deploying?

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting exception.database already in use(which comes when lck file gets generated.)
Here only in one linux server its giving me this exception.
in all others lck file gets generated only when i acceseed the url of site at least once. second time without deleting i get this exception in all normal case.
But only in one linux machine i am unable to figure out why its reacting like this.
is there any dependency on this what i can find out and solve.

or please guide me what to do here.

i am fully confused.

Is this a problem of jboss(or any slimmed down version), Linux machine,
or anything else.wher to modify what .
is it just based on jform-custom.conf as i am using it.


thanks.
vijendra

[originally posted on jforum.net by vijendra]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This problems usually happen when there is a crash, or something related, and the SO / VM keeps the lock on the file.
The only way I see to "solve" this is to restart Tomcat, but if is it happening too much, it may be something else.

The WEB-INF/config/database/hsqldb directory have full writing permissions?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic