389 words

Tomcat + JPA Problem

#1
2011-03-07 19:06

Hi i tried to setup the example from your webpage (jpa - Tomcat with Ecplipse) and i always get this Error:

[ObjectDB 2.1.0] class "javax.persistence.Entity"'s signer information does not match signer information of other classes in the same package


[ObjectDB 2.1.0] class "javax.persistence.Entity"'s signer information does not match signer information of other classes in the same package
07.03.2011 20:01:30 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Exception sending context initialized event to listener instance of class OcspServer.CertEntryListener
java.lang.SecurityException: class "javax.persistence.Persistence"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(Unknown Source)

 

Guschtl
Guschtl's picture
Joined on 2011-03-07
User Post #1
#2
2011-03-07 19:24

This exception indicates a jar conflict, i.e. JPA is found in more than one jar (probably one signed and the other unsigned). JPA is already included in objectdb.jar. Make sure that your project doesn't contain JPA (or a Java EE with JPA) in another JAR.

It could also help if you specify the exact version of Java, Eclipse and Tomcat that you are using. This example was tested with Tomcat 6. Are you using Tomcat 7?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #153
#3
2011-03-07 19:42

thx 4 the fast support.

 

I fixed the Problem. I was using Tomcat 6.0.4.

Now i updated my Tomcat (Version 7) and everything was fine.

Guschtl
Guschtl's picture
Joined on 2011-03-07
User Post #2
#4
2011-03-07 19:45

Thank you for the update.

Could you please explain in a few words what was the cause of the problem (it might help others)?

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

I was using Datanucleus in my project before changing to JPA with objectdb.com.

Using JDO with Datanucleus made it necessary to make some changes to the tomcat directory (context.xml). In my opinion this caused the trouble.

Another Question, how to use the explorer with a Tomcat Application where can i find the db-files?

Guschtl
Guschtl's picture
Joined on 2011-03-07
User Post #3
#6
2011-03-07 20:09

The database location is specified on:

http://www.objectdb.com/tutorial/jpa/eclipse/web/listener

You can change it to absolute path and rebuild and redeploy the web application.

The default ("$objectdb/db/guest.odb") refers to WEB-INF/db/guest.odb - but not the development WEB-INF directory but the deployment WEB-INF directory somewhere under your Tomcat installation.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #155
#7
2017-05-25 05:29

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 ?

KANISHK GUPTA
KANISHK GUPTA's picture
Joined on 2017-05-25
User Post #1
#8
2017-05-25 08:46

Dear KANISHK GUPTA, Please create a new forum thread with your question, as it is not related directly to the main question of the original poster and will have to be removed from these old threads. Please also post every question only once.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #2,757

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.
Attachments:
Maximum file size: 32 MB
Cancel