-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Migrating to annotations3.1b3 gives TypeNotPresentException
PostPosted: Wed Aug 03, 2005 11:46 am 
Regular
Regular

Joined: Thu Feb 19, 2004 4:48 am
Posts: 62
Hi,

I'm just trying to migrate a web-app deployed on tomcat from annotations3.0a3 to 3.1b3. I made all the neccessary changes (eg. moving everything from javax.ejb to javax.persistence and so on), until everything compiles again.

Now, when I deploy the app in tomcat, I get a

java.lang.TypeNotPresentException: Type javax.ejb.Entity not present

I checked numerous times, that I have the correct versions of hibernate-annotations and hibernate3.1 in the lib of the web-app, cleared and redeployed the webapp-dir without success.

I have two other web-apps running that still use annotations3.0a3 - but the tomcat class-loader should isolate them, shouldn't it???!

If anyone has any idea where to look for the javax.ejb.Entity, this could prevent me from tearing the rest of my hair out...

cheers
stf


Top
 Profile  
 
 Post subject: resolved
PostPosted: Thu Aug 04, 2005 3:34 am 
Regular
Regular

Joined: Thu Feb 19, 2004 4:48 am
Posts: 62
ok, checking the app a fourth time, cleaning up everything and redeploying&several restart fixed the problem: I guess, there must have been some remains of the old annotation-classes somewhere.

Anyway, at least this proves, that you can run different versions of hibernate in the same tomcat-instance (if proof for that was needed....)

cheers
stf


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.