Tomcat installation frustration!

1,189 views
Skip to first unread message

Simon Doran

unread,
Apr 5, 2013, 9:17:50 PM4/5/13
to xnat_di...@googlegroups.com
Hi all,

  I have never previously had a problem installing Tomcat. It should be straightforward, right?

  However ... I have a new RHEL 6 box. I am not familiar enough with this OS to know whether there are any issues I should be looking out for. Here are the setup and the symptoms:

* Latest version of Tomcat (7.0.39) installed under /srv/xnat/Tomcat

* All Tomcat directories owned by user xnat.

* catalina.sh start

* Environment variables set as follows:

export JAVA_HOME='/usr/java/latest'
export CATALINA_HOME='/srv/xnat/Tomcat/Current'
alias start_tomcat='sh /srv/xnat/Tomcat/Current/bin/startup.sh'
alias stop_tomcat='sh /srv/xnat/Tomcat/Current/bin/shutdown.sh'

where /usr/java/latest resolves to /usr/java/jdk1.7.0_17 (have also tried a 1.6.0 variant)

* Response to start_tomcat is

Using CATALINA_BASE:   /srv/xnat/Tomcat/Current
Using CATALINA_HOME:   /srv/xnat/Tomcat/Current
Using CATALINA_TMPDIR: /srv/xnat/Tomcat/Current/temp
Using JRE_HOME:        /usr/java/latest
Using CLASSPATH:       /srv/xnat/Tomcat/Current/bin/bootstrap.jar:/srv/xnat/Tomcat/Current/bin/tomcat-juli.jar

* Symptom: No webpage displayed when I try http://localhost:8080 and in catalina.out I get multiple failures as below.

Any help gratefully received!

Simon

Apr 06, 2013 2:08:34 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Apr 06, 2013 2:08:35 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 06, 2013 2:08:35 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Apr 06, 2013 2:08:35 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 660 ms
Apr 06, 2013 2:08:35 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 06, 2013 2:08:35 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.39
Apr 06, 2013 2:08:35 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /srv/xnat/Tomcat/apache-tomcat-7.0.39/webapps/manager
Apr 06, 2013 2:08:35 AM org.apache.tomcat.util.scan.StandardJarScanner scan
WARNING: Failed to scan [file:/srv/xnat/Tomcat/apache-tomcat-7.0.39/lib/._tomcat-i18n-ja.jar] from classloader hierarchy
java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:214)
        at java.util.zip.ZipFile.<init>(ZipFile.java:144)
        at java.util.jar.JarFile.<init>(JarFile.java:153)
        at java.util.jar.JarFile.<init>(JarFile.java:90)
        at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93)
        at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69)
        at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:88)
        at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
        at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)
        at org.apache.tomcat.util.scan.FileUrlJar.<init>(FileUrlJar.java:41)
        at org.apache.tomcat.util.scan.JarFactory.newInstance(JarFactory.java:34)
        at org.apache.catalina.startup.ContextConfig$FragmentJarScannerCallback.scan(ContextConfig.java:2671)
        at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:258)
        at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:221)
        at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1938)
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1268)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5269)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1673)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)

Apr 06, 2013 2:08:35 AM org.apache.tomcat.util.scan.StandardJarScanner scan
WARNING: Failed to scan [file:/srv/xnat/Tomcat/apache-tomcat-7.0.39/lib/._servlet-api.jar] from classloader hierarchy
java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:214)
        at java.util.zip.ZipFile.<init>(ZipFile.java:144)
        at java.util.jar.JarFile.<init>(JarFile.java:153)
        at java.util.jar.JarFile.<init>(JarFile.java:90)
        at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93)
        at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69)
        at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:88)
        at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
        at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89)

Simon Doran

unread,
Apr 7, 2013, 6:51:54 PM4/7/13
to xnat_di...@googlegroups.com
Oh dear! Well that's all rather embarrassing ...

The errors came about because of the rather convoluted way I had to get Tomcat onto my RHEL system, which is not directly connected to the internet. I had to go via a Mac and, for various reasons, that now don't look so great, I decompressed the distribution onto the Mac and scp'd it over to the RHEL box. All the errors that stopped Tomcat working seem to have come from the ._ files that got created for the MacOSX resource forks.

Solution: remove all the ._ files from .../apache-tomcat-7.0.39/lib, the errors go away and my tomcat screen appears!


Herrick, Rick

unread,
Apr 8, 2013, 12:18:12 PM4/8/13
to xnat_di...@googlegroups.com

Good thing, cause I had NOTHING for you on this one J

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 




The material in this message is private and may contain Protected Healthcare Information (PHI). If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.
Reply all
Reply to author
Forward
0 new messages