-->
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.  [ 6 posts ] 
Author Message
 Post subject: could not find commons-loggin.jar Classes
PostPosted: Sat Mar 05, 2005 4:14 pm 
Newbie

Joined: Wed Mar 02, 2005 6:28 pm
Posts: 13
I'm going crazy...

I tried everithing that can come to my mind, searched a lot in this forum and still can't resolve my problem. I've got a simple test that I'm trying to run but the compiler cries this:
Code:
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.IllegalAccessError: tried to access method org.apache.commons.logging.LogFactory.getContextClassLoader()Ljava/lang/ClassLoader; from class org.apache.commons.logging.impl.LogFactoryImpl$1
   at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:554)
   at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)
   at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:259)
   at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
   at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:110)


I'm using hibernate 3 and of course I've added hibernate3.jar , commons-logging.jar, log4j.jar and dom4j.jar into my BuildPath. All the jar's are from the hibernate 3 release.

Any ideas how I can fix this problem?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 05, 2005 4:34 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Sounds like a too strict security manager in your environment.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 06, 2005 5:07 am 
Newbie

Joined: Wed Mar 02, 2005 6:28 pm
Posts: 13
Well , the IDE that I'm using is Eclipse 3.1m4. This problem is just making me mad :(....


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 06, 2005 5:56 am 
Newbie

Joined: Wed Mar 02, 2005 6:28 pm
Posts: 13
I tried the same run, but with hibernate2 package. Gues what - the same problem. Please, if there's anyone who uses Eclipse 3.1 and hibernate 3/2 just tell me how you are setting your development environment. I just can not go on, because of this stupid problem.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 06, 2005 10:08 am 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
It is not a security configuration problem. This problem is related to class loading, probably you duplicated jar files in some way, this error means you are trieng to access package visibility method from outside "runtime package" (class loader).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 06, 2005 11:24 am 
Newbie

Joined: Wed Mar 02, 2005 6:28 pm
Posts: 13
OK, I solved my problem. It seems that my Java JRE installation was some kind of broken. I tried to find in what way , but couldn't. After installing and using a new JRE 1.4 everithing works as I expect.

10x for tring to help me Michael and Baliukas


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.