Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43898 - Tomcat and java-config problem
Summary: Tomcat and java-config problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-06 10:51 UTC by Sumit Khanna
Modified: 2004-03-16 20:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sumit Khanna 2004-03-06 10:51:25 UTC
I'm having some trouble with Tomcat. When ever I start or restart the tomcat service, I get the following error:

/etc/init.d/tomcat restart
Traceback (most recent call last):
  File "/usr/bin/java-config", line 14, in ?
    from java_config import jc_options
  File "/usr/lib/python2.3/site-packages/java_config/jc_options.py", line 18, in ?
    from jc_util import get_line_from_env_file
  File "/usr/lib/python2.3/site-packages/java_config/jc_util.py", line 17, in ?
    USER_ENV_DIR = os.path.join(env['HOME'], '.gentoo')
  File "/usr/lib/python2.3/UserDict.py", line 19, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: 'HOME'
 * Restarting Tomcat...
Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JAVA_HOME:       /opt/blackdown-jdk-1.4.1
Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JAVA_HOME:       /opt/blackdown-jdk-1.4.1                           [ ok ]

Although tomcat starts fine, since java-config crashes, the class path isn't set to reflect all the java packages I have installed. This means I have to go back manually and specify class-paths in tomcat's config files. This is actually a java-config issue.
Comment 1 Kevin J. Menard, Jr. 2004-03-15 11:45:22 UTC
Have you tried with java-config 1.2.6?  I was having a similar issue, but it went away once I upgraded java-config.
Comment 2 Chris Aniszczyk (RETIRED) gentoo-dev 2004-03-16 20:32:05 UTC
Fixed in portage now, emerge sync for magic.