Hi Sri ;)
I checked that I have jdk/jre installed, tried to manually configure JAVACMD
variable, but still Tomcat refuses to start... Maybe a distro issue? SL 5.1 was
released only a month ago... Of course I can install Tomcat from sources but
that's not a good/fast solution; in RHEL and Fedora this is simple as
installing it with "Add/Remove Packages" or yum. Other distros (Debian,
OpenSuse, CentOS...) also work like a charm in this case.
We have to fix such errors in order to increase usability of SL5.1, I don't
think any non-IT people will use it if they encounter such problems.
Cheers,
Diego
________________________________
De: A.K.Srikanth [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 15 de febrero de 2008 15:49
Para: Diego García
CC: Scientific Linux users mailing list; [EMAIL PROTECTED]
Asunto: Re: Getting Tomcat5 to run under SL 5.1
Diego,
This is because you dont have the jdk/jre. I suspect that xml-commons apis
blows it away. I saw the same problem. So I went to add/remove programs and
installed the jdk1.5.0_14 again. Then I set the JAVA_HOME variable and it still
did not work.
Then I went into add/remove programs on SL5.1 and uninstalled all the tomcat
packages. It will remove these along with some dependencies.
Then check that java is still there by going to /usr/java/jdk1.5.0_14/ and
make sure these are real files and not dummy links pointing to nowhere.
Then go to http://tomcat.apache.org/tomcat-5.5-doc/index.html and download
tomcat 5.5. You wont have RPMs but you can get it running on SL 5.1
Hope this helps
Thanks,
Sri
Once everything is removed, your jdk should still be there. Go now to
Diego García wrote:
Hi,
Just installed Tomcat, JDK and xml-commons apis, but Tomcat still refuses to
start
/usr/bin/rebuild-jar-repository: error: Failed to set JAVACMD
Any idea? Thanks
Diego
-----Mensaje original-----
De: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED] En
nombre de Steve Traylen
Enviado el: jueves, 14 de febrero de 2008 10:15
Para: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>
CC: Steve Traylen; Scientific Linux users mailing list; [EMAIL
PROTECTED]<mailto:[EMAIL PROTECTED]>
Asunto: Re: Getting Tomcat5 to run under SL 5.1
On Feb 13, 2008, at 4:14 PM, A.K.Srikanth wrote:
To provide a bit more sequence info here:
I installed SL 5.1 (clean install) where I asked for tomcat5 and
sister packages to be installed
Then tried to get Tomcat5 running. I got a complaint about xml-
xxxxx jar missing. I did a yum with the jar name and that updated
fine.
Then I realized that jdk-1.5.0-14 was not installed even though
I could swear I asked for it.
This is quite possible.... The package xml-commons-jaxp-1.3-apis as
needed by tomcat obsoletes jdk-1.5.0 ...
Steve
So I went to Add/Remove Programs and checked it again and asked
that it be installed. It downloaded and installed fine.
Then I tried to get tomcat5 running and I get the problem
mentioned in the email below
Thanks,
Sri
A.K.Srikanth wrote:
Hi,
Have any of you got Tomcat5 running on SL 5.1 working
successfully? Tomcat5 fails due to the following error:
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
sun.misc.InvalidJarIndexException: Invalid index
at sun.misc.URLClassPath
$JarLoader.getResource(URLClassPath.java:769)
at sun.misc.URLClassPath
$JarLoader.getResource(URLClassPath.java:682)
at sun.misc.URLClassPath.getResource(URLClassPath.java:161)
at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.ClassLoader.defineClass1(Native Method)
Any help would be appreciated. My apologies if this question has
already been asked before and answered.
Thanks,
Sri
--
Steve Traylen
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>