-->
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.  [ 3 posts ] 
Author Message
 Post subject: problem configuring CacheManager
PostPosted: Fri Aug 25, 2006 3:48 pm 
Newbie

Joined: Tue Aug 01, 2006 3:10 pm
Posts: 7

Could not set attribute "path"

I am having a hard time trying to deploy an application using javawebstart. I set the permissions on the encache-failsafe.xml file to mod 777 (all read write and execute) and on the jar file, and the folders, however, i am still getting this error. Could someone please help with this issue or point me in the direction of help? I really appreciate any help offered.

i get this error running from both windows and linux environment



Hibernate version: 3.0

Name and version of the database you are using: mySQL


Full stack trace of any exception that occurs:
org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Cannot configure CacheManager: jar:file:C:/Documents%20and%20Settings/.../Application%20Data/Sun/Java/Deployment/cache/javaws/http/Dwww.users.muohio.edu/P80/DMcarterkr/DMconifer/RMJTraceMinerv0.1f.jar!/ehcache-failsafe.xml:12: Could not set attribute "path".
at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:134)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:172)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at src.folder.C.buildLibraryMenu(MainMenuBar.java:153)
at src.folder.MainMenuBar.buildOpenMenu(MainMenuBar.java:249)
at src.folder.MainMenuBar.buildFileMenu(MainMenuBar.java:109)
at src.folder.MainMenuBar.buildMainMenuBar(MainMenuBar.java:315)
at src.folder.MainMenuBar.<init>(MainMenuBar.java:38)
at src.folder.TheGUI.buildMainFrame(TheGUI.java:78)
at src.folder.TheGUI.<init>(TheGUI.java:64)
at src.folder.Main.main(Main.java:12)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: net.sf.ehcache.CacheException: Cannot configure CacheManager: jar:file:C:/Documents%20and%20Settings/.../Application%20Data/Sun/Java/Deployment/cache/javaws/http/Dwww.users.muohio.edu/P80/DMcarterkr/DMconifer/RMJTraceMinerv0.1f.jar!/ehcache-failsafe.xml:12: Could not set attribute "path".
at net.sf.ehcache.CacheManager.configure(CacheManager.java:170)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:138)
at net.sf.ehcache.CacheManager.create(CacheManager.java:193)
at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:130)
... 21 more

(i cant get the rest of the stack b/c I'm trying to run using JavaWebStart and when you hit abort, the stack goes away. but this is the gist of the error.)

Thanks again for your help.



Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 29, 2007 11:28 am 
Newbie

Joined: Mon Jan 29, 2007 11:25 am
Posts: 1
I'm experiencing exactly the same problem. My application worked, but for some reason it stopped working with the following output in the logfiles:

Quote:
Jan 29, 2007 4:19:15 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/var/lib/tomcat5/webapps/TetraBackupWebservice/WEB-INF/lib/j2ee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig).
log4j:WARN Please initialize the log4j system properly.
Initial SessionFactory creation failed.org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Cannot configure CacheManager: file:/var/lib/tomcat5/work/Catalina/localhost/TetraBackupWebservice/loader/ehcache-failsafe.xml:12: Could not set attribute "path".
Jan 29, 2007 4:19:20 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Jan 29, 2007 4:19:20 PM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Jan 29, 2007 4:19:20 PM org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger Catalina:type=Logger,path=/TetraBackupWebservice,host=localhost


Can anyone tell me what's going on here?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 04, 2007 5:49 pm 
Beginner
Beginner

Joined: Mon May 21, 2007 5:22 pm
Posts: 27
Location: Salt Lake City
jars and ehcache.xml not available as seen from the log.

_________________
Try 'N' Enjoy !!
Rahul

If helpful do rating ....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.