345 words

Path in tomcat

2011-09-05 09:09


If I put the .jar into /opt/Tomcat/lib/, then where the .conf should be in?

And the .odb?

When I debug the Eclipse web project, I export all things into a .war file. Then I use Tomcat's web deploy tool by the .war file. However, if I put objectdb into the project's /WEB-INF/, I may lost the db when I use Undeploy tool.


Institute of Computer Technologies
gzdillon's picture
Joined on 2011-05-17
User Post #97
2011-09-07 11:18

> If I put the .jar into /opt/Tomcat/lib/, then where the .conf should be in? And the .odb?

See explanations about ObjectDB home and configuration path in the manual.

Notice that the database file can be at any absolute path that you specify.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support's picture
Joined on 2010-05-03
User Post #596
2011-09-07 11:45

You can try configuration like this (it's my day to day dev environment):

- create directory 'objectdb' somewhere - in my case ~/objectbd

- put objectdb.jar and objected.conf in this directory

- create ~/objectbd/db (or any other directory where you want store you database - this directory should be defined in objectdb.conf)

- add java agent using export CATALINA_OPTS="-javaagent:~/objectdb/objectdb.jar" or by setting this in your dev software (in my case in eclipse server configuration -> Arguments -> VM arguments)

Of course you can change this on Windows to something like "d:\objectdb" and then use this path. Now you can redeploy you application without deleting database files.

lwalkowski's picture
Joined on 2010-08-25
User Post #48
2011-09-08 12:05

Ok,I believe there are some improvements need to be done. The link shows a tutorial,


>Now, add ObjectDB support to the new Eclipse Project - by dragging the objectdb.jar file from the file system and dropping it on the WEB-INF/lib node in the Eclipse Project Explorer:

If the jar is put into the "WEB-INF/lib", it will increase the size of war file, and will destroy the DB under db-files with tomcat undepoly tool. I think it is best to put the jar file into Tombat/lib for global calling, not just the "WEB-INF/lib" of the project.


Institute of Computer Technologies
gzdillon's picture
Joined on 2011-05-17
User Post #98
2017-05-25 05:08

Hi support,

as you mentioned the odb file is in the deployment WEB-INF directory but not in development one , can I change it to the development one because in building a war file it will use the current development directory. This will create the new file instead of using the deployed one ?

Joined on 2017-05-25
User Post #2

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Maximum file size: 32 MB