View previous topic :: View next topic |
Author |
Message |
romeo n00b
Joined: 11 Jun 2003 Posts: 2
|
Posted: Wed Jun 11, 2003 11:51 am Post subject: Tomcat doesn't start |
|
|
I have emerged tomcat and when I try to start it from the init.d folder, I get the following error:
kmp init.d # ./tomcat start
* Starting Tomcat...
/opt/tomcat/bin/catalina.sh: line 63: /etc/conf.d/tomcat: Permission den [ !! ]
etc/conf.d/tomcat permission is 750 according to the newest install and security warning (by default, haven't changed it).
When I run catalina from the /opt/tomcat/bin/ folder it runs fine. What can I try to solve this problem? |
|
Back to top |
|
|
SmegTheLight Tux's lil' helper
Joined: 05 Jul 2002 Posts: 97 Location: 3rd Planet
|
Posted: Wed Jun 11, 2003 3:04 pm Post subject: |
|
|
That bug was for /opt/tomcat - Not /etc/conf.d/tomcat
/etc/conf.d/tomcat needs to be mode 755
(Default is uid=root, gid=root, mode 755)
or
/etc/conf.d/tomcat needs to be set to group "tomcat" and mode 750
(which is what I have done with mine) |
|
Back to top |
|
|
romeo n00b
Joined: 11 Jun 2003 Posts: 2
|
Posted: Thu Jun 12, 2003 6:35 am Post subject: |
|
|
Thanks, setting the group to tomcat worked!
Is there a difference between setting the user to tomcat or leaving it as root?
For now I only changed the group and not the user, so now it is "root:tomcat".
But what happens when I set it to "tomcat:tomcat".
Which one is preferred and why? |
|
Back to top |
|
|
SmegTheLight Tux's lil' helper
Joined: 05 Jul 2002 Posts: 97 Location: 3rd Planet
|
Posted: Thu Jun 12, 2003 5:29 pm Post subject: |
|
|
romeo wrote: | Thanks, setting the group to tomcat worked!
Is there a difference between setting the user to tomcat or leaving it as root?
For now I only changed the group and not the user, so now it is "root:tomcat".
But what happens when I set it to "tomcat:tomcat".
Which one is preferred and why? |
Shouldn't make a difference - as long as the tomcat startup script (running as tomcat) can read the file, everything should be fine.
I have mine as root:tomcat and mode 750 so only root can modifiy it. I feel it is more secure, as only root can mess with the file, and tomcat only gets what it needs - read and execute access. |
|
Back to top |
|
|
dantrevino Tux's lil' helper
Joined: 26 Jul 2002 Posts: 92 Location: Florida, USA
|
Posted: Sat Jun 14, 2003 1:43 am Post subject: tomcat-4.1.24-r1 wont start still |
|
|
My tomcat wont start either.
Code: | chaos bin # /etc/init.d/tomcat start
* Starting Tomcat... [ !! ]
chaos bin #
|
4.1.24 was working fine. When I updated I got a message saying user and group "Tomcat" were created but they werent. I created them, but still no love. I'm not seeing any errors in /var/log/tomcat. I dont have anything else using port 8080. Any ideas? _________________ embrace the wrevolution
http://wrevolution.org/ |
|
Back to top |
|
|
rt_clik n00b
Joined: 18 Jun 2002 Posts: 70 Location: Rohnert Park, California, US
|
Posted: Thu Aug 21, 2003 11:08 pm Post subject: Re: tomcat-4.1.24-r1 wont start still |
|
|
I have the exact same issue on my Intel box. I've got a PPC box running the same 4.1.24-r1 version fine...only difference between the two is the version of the blackdown-jdk. On my PPC it is 1.3.1. On my Intel box it is 1.4.1. I have not been able to discern any other differences between the two.
No solution yet...just validation. Anyone else?
dantrevino wrote: | My tomcat wont start either.
Code: | chaos bin # /etc/init.d/tomcat start
* Starting Tomcat... [ !! ]
chaos bin #
|
4.1.24 was working fine. When I updated I got a message saying user and group "Tomcat" were created but they werent. I created them, but still no love. I'm not seeing any errors in /var/log/tomcat. I dont have anything else using port 8080. Any ideas? |
|
|
Back to top |
|
|
dlblinux n00b
Joined: 14 Sep 2003 Posts: 1
|
Posted: Sun Sep 14, 2003 7:00 pm Post subject: Re: tomcat-4.1.24-r1 wont start still |
|
|
I was having the same errors.
I am pretty new at this, but I just got tomcat working by:
looking at the passwd file in the /etc, I noticed that the groups listed for the tomcat entry were
Apache Tomcat
Note the uppercase on both groups. I did not see any groups listed as uppercase in my group file so I changed my these to lowercase in the passwd file, and tomcat comes up fine now. |
|
Back to top |
|
|
rt_clik n00b
Joined: 18 Jun 2002 Posts: 70 Location: Rohnert Park, California, US
|
Posted: Tue Sep 16, 2003 6:46 pm Post subject: Re: tomcat-4.1.24-r1 wont start still |
|
|
Actually, you are mistaken. The "Apache Tomcat" is in the comment field. The primary group is specified by the GID in the /etc/passwd file. Additonal groups (of which there are none by default for the tomcat user) are defined in /etc/group.
I unmerged and re-emerged tomcat. Now, I get an [ok] indicator on the /etc/init.d/tomcat start command, but my /var/log/tomcat/catalina.log file looks like this:
Code: | java.util.zip.ZipException: No such file or directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:117)
at java.util.jar.JarFile.<init>(JarFile.java:55)
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1082)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:221)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:204)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:147)
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal: java.util.zip.ZipException: No such file or directory
at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:1110)
at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java:221)
at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:204)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:147)
|
Appears to be a CLASSPATH error, but I cannot locate it in the config. Tomcat is definitely not running.
Earlier I had speculated that it might be a Java version problem, but I have dismissed that since downloading and installing ibm-jdk-1.4.1 on my PPC machine where Tomcat has been working under 1.3.1. Tomcat continues to work with the new JDK, leading me to search for other clues as to the problems on my x86 box.
dlblinux wrote: | I was having the same errors.
I am pretty new at this, but I just got tomcat working by:
looking at the passwd file in the /etc, I noticed that the groups listed for the tomcat entry were
Apache Tomcat
Note the uppercase on both groups. I did not see any groups listed as uppercase in my group file so I changed my these to lowercase in the passwd file, and tomcat comes up fine now. |
|
|
Back to top |
|
|
svyatogor Retired Dev
Joined: 13 Feb 2003 Posts: 186 Location: Kingdom of Kells
|
Posted: Thu Oct 16, 2003 11:37 am Post subject: Re: Tomcat doesn't start |
|
|
romeo wrote: |
kmp init.d # ./tomcat start
* Starting Tomcat...
/opt/tomcat/bin/catalina.sh: line 63: /etc/conf.d/tomcat: Permission den [ !! ]
etc/conf.d/tomcat permission is 750 according to the newest install and security warning (by default, haven't changed it).
When I run catalina from the /opt/tomcat/bin/ folder it runs fine. What can I try to solve this problem? |
The permisions should be 644, this is a bug in the ebuild. Should be fixed now. |
|
Back to top |
|
|
zanymac n00b
Joined: 17 Oct 2003 Posts: 1
|
Posted: Fri Oct 17, 2003 6:38 am Post subject: Re: tomcat-4.1.24-r1 wont start still |
|
|
rt_clik wrote: | I have the exact same issue on my Intel box. I've got a PPC box running the same 4.1.24-r1 version fine...only difference between the two is the version of the blackdown-jdk. On my PPC it is 1.3.1. On my Intel box it is 1.4.1. I have not been able to discern any other differences between the two.
No solution yet...just validation. Anyone else?
dantrevino wrote: | My tomcat wont start either.
Code: | chaos bin # /etc/init.d/tomcat start
* Starting Tomcat... [ !! ]
chaos bin #
|
4.1.24 was working fine. When I updated I got a message saying user and group "Tomcat" were created but they werent. I created them, but still no love. I'm not seeing any errors in /var/log/tomcat. I dont have anything else using port 8080. Any ideas? |
|
I've been looking through this thread, cause I just emerged tomcat a few minutes ago and have had similar issues. Here's what I found on my box:
The permissions were set wrong, so I chown'ed -R to root:tomcat /opt/tomcat, /var/log/tomcat, /etc/conf.d/tomcat. I noticed that tomcat appeared to come up when I typed /etc/init.d/tomcat start, but when I tried to go to http://localhost:8080, I got a connection refused. I then typed /etc/init.d/tomcat stop, I then got a bunch of java.net.Connect errors. I then tried to start tomcat manually. I checked to see if the variable was set up, it wasn't on my box, so I set it: export CATALINA_HOME=/opt/tomcat/bin. I then cd'ed to $CATALINA_HOME
and typed ./startup.sh. It started up fine. I'm not sure if the startup script in /etc/conf.d is set up correctly. Let me know if this works for any of you.
Cheers,
Bastian |
|
Back to top |
|
|
professorn Apprentice
Joined: 18 Sep 2003 Posts: 235 Location: Stockholm, Sweden
|
Posted: Fri Oct 17, 2003 1:24 pm Post subject: |
|
|
It works perfecly on my box, tomcat + SUn Java |
|
Back to top |
|
|
rt_clik n00b
Joined: 18 Jun 2002 Posts: 70 Location: Rohnert Park, California, US
|
Posted: Fri Oct 17, 2003 1:54 pm Post subject: Fixed...but couldn't post... |
|
|
I resolved this on my x86 box a few weeks ago, but it was during the time that the Forums site wasn't taking posts (some glitch, I guess). Was a combination of the chmod fix and emerge unmerge tomcat && emerge tomcat.
Works fine now for both platforms.
CW |
|
Back to top |
|
|
|