InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InstantDB: permission denied when write to trace.log


the problem is that this file is generated on runtime, so if user A runs and
then user B
tries to use the same application it will fail ( I had the same problem) the
solution will
be to get the source from instantDB and change the file mask, but appears that
this will not be possible, so as temp solution I modified the  properties file
from:

! Sets the level of transaction journalling. See trans.html.
! Defaults to 1.
!
! 0 - No journalling takes place.
! 1 - Normal journalling (default).
! 2 - Full journalling.
!
transLevel=1

to
! Sets the level of transaction journalling. See trans.html.
! Defaults to 1.
!
! 0 - No journalling takes place.
! 1 - Normal journalling (default).
! 2 - Full journalling.
!
transLevel=0

this will not generate the file.




Wei Guo wrote:

  Hi,

  We got some problem when we run instantDB on Apache: the permission of
  writing to trace.log is denied.

  The error message we got is:

  java.sql.SQLException: IO problem: java.io.FileNotFoundException:
  ./trace.log (Permission denied)
          at
  org.enhydra.instantdb.jdbc.idbConnection.<init>(idbConnection.java:87)
          at org.enhydra.instantdb.jdbc.idbDriver.connect(idbDriver.java:40)
          at java.sql.DriverManager.getConnection(DriverManager.java:517)
          at java.sql.DriverManager.getConnection(DriverManager.java:199)
          at
  com.riverdelta.sms.server.ServletPool.setupSMSlogDatabase(ServletPool.java:6
  12)
          at
  com.riverdelta.sms.server.ServletPool.<init>(ServletPool.java:719)
          at
  com.riverdelta.sms.server.ServletPool.getInstance(ServletPool.java:439)
          at com.riverdelta.sms.server.LoginServlet.task(LoginServlet.java:90)
          at
  com.riverdelta.sms.server.LoginServlet.doPost(LoginServlet.java:57)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
          at
  com.riverdelta.sms.server.LoggingServlet.service(LoggingServlet.java:99)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
          at
  org.apache.jserv.JServConnection.processRequest(JServConnection.java:317)
          at org.apache.jserv.JServConnection.run(JServConnection.java:188)
          at java.lang.Thread.run(Thread.java:484)

  Do you have any suggesion on this? Thanks a lot.

  Wei
  -----------------------------------------------------------------------------
  To unsubscribe from this mailing list, send email to majordomo@enhydra.org
  with the text "unsubscribe instantdb" in the body of the email.
  If you have other questions regarding this mailing list, send email to
  the list admin at owner-instantdb@enhydra.org.


-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.