Here's the corresponding error in /var/log/tomcat6/
localhost.<date>.log:
Apr 12, 2010 4:09:50 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextDestroyed()
Apr 12, 2010 4:09:50 PM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextDestroyed()
Apr 12, 2010 4:09:56 PM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextInitialized()
Apr 12, 2010 4:09:56 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextInitialized()
Apr 12, 2010 4:09:56 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Error configuring application listener of class
org.apache.axis.transport.http.AxisHTTPSessionListener
java.lang.ExceptionInInitializerError
at
org.apache.commons.discovery.jdk.JDKHooks.<clinit>(JDKHooks.java:75)
at
org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:
412)
at
org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:
378)
at org.apache.axis.components.logger.LogFactory
$1.run(LogFactory.java:45)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:
41)
at
org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:
33)
at
org.apache.axis.transport.http.AxisHTTPSessionListener.<clinit>(AxisHTTPSessionListener.java:
33)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:
513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3878)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
4429)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
791)
at org.apache.catalina.core.ContainerBase.access
$000(ContainerBase.java:123)
at org.apache.catalina.core.ContainerBase
$PrivilegedAddChild.run(ContainerBase.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
769)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:902)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1258)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:
516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:
583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:
177)
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission createClassLoader)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
323)
at
java.security.AccessController.checkPermission(AccessController.java:
546)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:
594)
at java.lang.ClassLoader.<init>(ClassLoader.java:226)
at
org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.<init>(PsuedoSystemClassLoader.java:
73)
at
org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:
215)
at
org.apache.commons.discovery.jdk.JDK12Hooks.<clinit>(JDK12Hooks.java:
73)
... 45 more
Apr 12, 2010 4:09:56 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Skipped installing application listeners due to previous
error(s)
This is caused by tomcat not letting the jvm run certain methods, like
createClassLoader. In order to allow tomcat to run these methods I
appended the following block to the end of /etc/tomcat6/policy.d/
03catalina.policy:
grant codeBase "file:${catalina.base}/webapps/-" {
permission java.security.AllPermission;
};
This grants total access to all apps under the CATALINA_BASE/webapps
which in the standard Ubuntu install defaults to /var/lib/tomcat6/
webapps/.
Hope this helps,
-deech
Thanks.
-- Dan
Tim
Thanks.
-- Dan
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To post to this group, send email to xnat_di...@googlegroups.com.
To unsubscribe from this group, send email to xnat_discussi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xnat_discussion?hl=en.
Just to clarify, are you seeing the same error in your localhost log?
From: xnat_di...@googlegroups.com [mailto:xnat_di...@googlegroups.com]
On Behalf Of Dominique Jennings
Sent: Friday, January 11, 2013 11:28 AM
To: xnat_di...@googlegroups.com
Cc: aditya...@gmail.com
Subject: [XNAT Discussion] Re: [SOLVED] Installation Error: HTTP 404 - Requested Resource Not Found
Hi all,
I have run into the same issue. I've installed apache tomcat 6.0.36, postgresql 9.2 and xnat 1.6 according to the instructions for xnat 1.6. At step 11 ("Start the webapp and login"), I point my browser to http://localhost:8080/xnat, and I get the 404 error.
I've uncommented:
grant codeBase "file:${catalina.base}/webapps/-" {
permission java.security.AllPermission;
as described by deech below. I'm doing this on a Mac OS X 10.7.5.
If anyone can help, I would be eternally grateful.
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msg/xnat_discussion/-/WT1FcnsXoTQJ.
To post to this group, send email to
xnat_di...@googlegroups.com.
To unsubscribe from this group, send email to
xnat_discussi...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/xnat_discussion?hl=en.
It looks like you’ve either already got an XNAT running on that server or else something else is blocking port 8104. Is it possible that Tomcat is already running as a service on that machine?
To view this discussion on the web visit https://groups.google.com/d/msg/xnat_discussion/-/5dZhmsAaVaUJ.
--------------------------
Rick Herrick
Sr. Programmer/Analyst
Neuroinformatics Research Group
Washington University School of Medicine
Cool, glad that got you working. Yeah, the “Address already in use” exception can happen in a number of different circumstances, e.g. anything from something has crashed and left an orphan thread that’s hanging out in space blocking the port to you thought you shut the server down but didn’t. Luckily, it’s usually pretty easy to resolve, even if you have to go to a full nuclear solution (i.e. system reboot).
To view this discussion on the web visit https://groups.google.com/d/msg/xnat_discussion/-/G0VtedxoITgJ.
Steph,
Have a look at your Tomcat logs in the folder /var/log/tomcat7. That 404 means that XNAT’s not even getting started so something’s very wrong in the configuration.
From: xnat_di...@googlegroups.com [mailto:xnat_di...@googlegroups.com]
On Behalf Of Steph
Sent: Thursday, May 23, 2013 4:39 PM
To: xnat_di...@googlegroups.com
Subject: Re: [XNAT Discussion] Re: [SOLVED] Installation Error: HTTP 404 - Requested Resource Not Found
Hi,
sorry to hijack this post, but I also ran in the error mentioned above (pasted below).
I installed XNAT 1.6 on Ubuntu 12.04. The installation went seemingly smooth up to point 11 on the instructions (https://wiki.xnat.org/display/XNAT16/XNAT+1.6+Installation+Guide),
but when entering http://localhost:8080/xnat/ in by browser (firefox and chromium) I get the http status 404 error. I do not even know where / how to start to debug, sorry, any help would be highly appreciated!!
Thanks,
Steph
type Status report
message /xnat/
description The requested resource (/xnat/) is not available.
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-US.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,
sorry to hijack this post, but I also ran in the error mentioned above (pasted below).
I installed XNAT 1.6 on Ubuntu 12.04. The installation went seemingly smooth up to point 11 on the instructions (https://wiki.xnat.org/display/XNAT16/XNAT+1.6+Installation+Guide), but when entering http://localhost:8080/xnat/ in by browser (firefox and chromium) I get the http status 404 error. I do not even know where / how to start to debug, sorry, any help would be highly appreciated!!
Thanks,
StephHTTP Status 404 - /xnat/
type Status report
message /xnat/
description The requested resource (/xnat/) is not available.
Apache Tomcat/7.0.26
You received this message because you are subscribed to a topic in the Google Groups "xnat_discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xnat_discussion/pAD4NHEYy-Q/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to xnat_discussi...@googlegroups.com.
Steph,
That looks like your Tomcat has a bunch of apps configured in the server.xml that aren’t actually there. So e.g. it’s trying to deploy the host-manager application from the path /usr/share/tomcat7-admin/host-manager and can’t find it. Most likely, something like this happened:
1. Someone installed the tomcat7-admin package. This modified the tomcat7 configuration (I think this is under /var/lib/tomcat7/conf in the server.xml file, but you may need to look under /usr/share, I’m not sure) to explicitly load the host-manager from that path.
2. Someone moved or deleted the tomcat7-admin folder manually.
You can do a couple things:
· Try re-installing the tomcat7-admin, tomcat7-examples, and tomcat7-docs packages to get those applications back into the correct location.
· Edit the server.xml file to remove the explicit <Context> entries for those applications.
Give that a shot and see if it works for you. If not, there are some sneakier ways of pushing apps into your Tomcat that may be going on. Let’s not try those until you’ve tried to knock out the obvious ones first though.
From: xnat_di...@googlegroups.com [mailto:xnat_di...@googlegroups.com] On Behalf Of Steph
Sent: Tuesday, June 11, 2013 4:17 PM
To: xnat_di...@googlegroups.com
Cc: aditya...@gmail.com
--
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-US.
For more options, visit https://groups.google.com/groups/opt_out.
type Status report
message /xnat/URL/app/template/Configuration.vm
description The requested resource is not available.
And my localhost log from: "C:\servers\Apache Software Foundation\Tomcat 7.0\logs\localhost.2014-02-22.log" is:
Feb 22, 2014 9:10:33 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'spring-mvc'
Feb 22, 2014 9:11:25 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Feb 22, 2014 9:11:25 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Feb 22, 2014 9:11:25 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@407eb85e')