Java preferences

Issues and Questions related to running Apache Tomcat on z/OS
Post Reply
jriemer
Posts: 25
Joined: Thu Jul 06, 2006 11:15 am

Java preferences

Post by jriemer » Tue Jul 12, 2011 2:04 pm

Attempting to use the Java preferences API from a servlet, receiving:

java.util.prefs.FileSystemPreferences$2 run
WARNING: Couldn't create user preferences directory. User preferences are unusable.

I've created the following under both JAVA_HOME and CATALINA_HOME:

.systemPrefs/.system.lock
.systemPrefs/.systemRootModFile

and restarted Tomcat, but to no avail. Any enlightenment appreciated.

dovetail
Site Admin
Posts: 1907
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail » Wed Jul 13, 2011 9:57 am

Try using the same API from a standalone Java program on z/OS. Does it work there without running under Tomcat?

jriemer
Posts: 25
Joined: Thu Jul 06, 2006 11:15 am

Post by jriemer » Wed Jul 13, 2011 4:08 pm

Turns out that the home directory / user.home spec was invalid. Thanks.

Post Reply