[SOLVED] Installation Error: HTTP 404 - Requested Resource Not Found

3,220 views
Skip to first unread message

deech

unread,
Apr 12, 2010, 5:29:07 PM4/12/10
to xnat_discussion
Hi all,
Just wanted to report on an issue with installing XNAT 1.4 on Ubuntu.
I installed tomcat6 using 'apt-get install tomcat6' and followed the
other install instructions on the XNAT wiki [1]. However accessing
localhost:8080/xnat/ got me a "HTTP 404- Requested Resource Is Not
Available" error.

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

[1] http://nrg.wikispaces.com/XNAT+Installation+Guide

Dan Ginsburg

unread,
Apr 14, 2010, 2:15:15 PM4/14/10
to xnat_discussion
I installed XNAT 1.4 under Ubuntu 9.10 for the first time yesterday
and encountered the same issue. Thank you for posting this solution,
I had spent several hours debugging the issue. If it has not been
already, it would be good to add this to the installation guide on the
Wiki.

Thanks.

-- Dan

Timothy Olsen

unread,
Apr 14, 2010, 2:57:53 PM4/14/10
to xnat_di...@googlegroups.com
Thank you deech and Dan. I've updated the Installation Guide with a warning about this potential issue.

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.

Herrick, Rick

unread,
Jan 11, 2013, 1:01:25 PM1/11/13
to xnat_di...@googlegroups.com

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.




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.

Dominique Jennings

unread,
Jan 11, 2013, 3:07:42 PM1/11/13
to xnat_di...@googlegroups.com
No, I'm not. Here's my (incomprehensible to me) localhost log output from /usr/local/apache-tomcat-6.0.36/logs/localhost.2013-01-11.log:

--------------------------

Jan 11, 2013 9:08:25 AM org.apache.catalina.core.ApplicationContext log
INFO: Destroying Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 9:08:28 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 11, 2013 9:08:28 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jan 11, 2013 9:18:12 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 9:18:25 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 11, 2013 9:18:25 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 11, 2013 11:02:46 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 11:03:08 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.RuntimeException: unable to start DICOM SCP
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:32)
at org.nrg.xnat.restlet.servlet.XNATRestletServlet.init(XNATRestletServlet.java:93)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at org.dcm4che2.net.NetworkConnection.bind(NetworkConnection.java:630)
at org.dcm4che2.net.Device.startListening(Device.java:711)
at org.nrg.dcm.DicomSCP.start(DicomSCP.java:306)
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:24)
... 28 more
Jan 11, 2013 11:03:08 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /xnat threw load() exception
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at org.dcm4che2.net.NetworkConnection.bind(NetworkConnection.java:630)
at org.dcm4che2.net.Device.startListening(Device.java:711)
at org.nrg.dcm.DicomSCP.start(DicomSCP.java:306)
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:24)
at org.nrg.xnat.restlet.servlet.XNATRestletServlet.init(XNATRestletServlet.java:93)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jan 11, 2013 11:03:10 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 11, 2013 11:03:10 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 11, 2013 11:03:12 AM org.apache.catalina.core.ApplicationContext log
INFO: Destroying Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 11:03:15 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 11, 2013 11:03:15 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jan 11, 2013 11:03:23 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 11:03:30 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.RuntimeException: unable to start DICOM SCP
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:32)
at org.nrg.xnat.restlet.servlet.XNATRestletServlet.init(XNATRestletServlet.java:93)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at org.dcm4che2.net.NetworkConnection.bind(NetworkConnection.java:630)
at org.dcm4che2.net.Device.startListening(Device.java:711)
at org.nrg.dcm.DicomSCP.start(DicomSCP.java:306)
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:24)
... 28 more
Jan 11, 2013 11:03:30 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /xnat threw load() exception
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at org.dcm4che2.net.NetworkConnection.bind(NetworkConnection.java:630)
at org.dcm4che2.net.Device.startListening(Device.java:711)
at org.nrg.dcm.DicomSCP.start(DicomSCP.java:306)
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:24)
at org.nrg.xnat.restlet.servlet.XNATRestletServlet.init(XNATRestletServlet.java:93)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jan 11, 2013 11:03:30 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 11, 2013 11:03:30 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 11, 2013 11:03:31 AM org.apache.catalina.core.ApplicationContext log
INFO: Destroying Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 11:03:32 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 11, 2013 11:03:32 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jan 11, 2013 11:04:17 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 11:04:24 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.RuntimeException: unable to start DICOM SCP
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:32)
at org.nrg.xnat.restlet.servlet.XNATRestletServlet.init(XNATRestletServlet.java:93)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at org.dcm4che2.net.NetworkConnection.bind(NetworkConnection.java:630)
at org.dcm4che2.net.Device.startListening(Device.java:711)
at org.nrg.dcm.DicomSCP.start(DicomSCP.java:306)
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:24)
... 28 more
Jan 11, 2013 11:04:24 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /xnat threw load() exception
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at org.dcm4che2.net.NetworkConnection.bind(NetworkConnection.java:630)
at org.dcm4che2.net.Device.startListening(Device.java:711)
at org.nrg.dcm.DicomSCP.start(DicomSCP.java:306)
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:24)
at org.nrg.xnat.restlet.servlet.XNATRestletServlet.init(XNATRestletServlet.java:93)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jan 11, 2013 11:04:24 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 11, 2013 11:04:24 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 11, 2013 11:04:26 AM org.apache.catalina.core.ApplicationContext log
INFO: Destroying Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 11:04:26 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 11, 2013 11:04:26 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jan 11, 2013 11:05:56 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 11:06:02 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.RuntimeException: unable to start DICOM SCP
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:32)
at org.nrg.xnat.restlet.servlet.XNATRestletServlet.init(XNATRestletServlet.java:93)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at org.dcm4che2.net.NetworkConnection.bind(NetworkConnection.java:630)
at org.dcm4che2.net.Device.startListening(Device.java:711)
at org.nrg.dcm.DicomSCP.start(DicomSCP.java:306)
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:24)
... 28 more
Jan 11, 2013 11:06:02 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /xnat threw load() exception
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at org.dcm4che2.net.NetworkConnection.bind(NetworkConnection.java:630)
at org.dcm4che2.net.Device.startListening(Device.java:711)
at org.nrg.dcm.DicomSCP.start(DicomSCP.java:306)
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:24)
at org.nrg.xnat.restlet.servlet.XNATRestletServlet.init(XNATRestletServlet.java:93)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jan 11, 2013 11:06:02 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 11, 2013 11:06:02 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 11, 2013 11:06:04 AM org.apache.catalina.core.ApplicationContext log
INFO: Destroying Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 11:06:04 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 11, 2013 11:06:04 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jan 11, 2013 12:01:01 PM org.apache.catalina.core.ApplicationContext log
INFO: Destroying Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 12:01:40 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 12:05:01 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 12:05:08 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.RuntimeException: unable to start DICOM SCP
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:32)
at org.nrg.xnat.restlet.servlet.XNATRestletServlet.init(XNATRestletServlet.java:93)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at org.dcm4che2.net.NetworkConnection.bind(NetworkConnection.java:630)
at org.dcm4che2.net.Device.startListening(Device.java:711)
at org.nrg.dcm.DicomSCP.start(DicomSCP.java:306)
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:24)
... 28 more
Jan 11, 2013 12:05:08 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /xnat threw load() exception
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383)
at java.net.ServerSocket.bind(ServerSocket.java:328)
at org.dcm4che2.net.NetworkConnection.bind(NetworkConnection.java:630)
at org.dcm4che2.net.Device.startListening(Device.java:711)
at org.nrg.dcm.DicomSCP.start(DicomSCP.java:306)
at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:24)
at org.nrg.xnat.restlet.servlet.XNATRestletServlet.init(XNATRestletServlet.java:93)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jan 11, 2013 12:05:09 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 11, 2013 12:05:09 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 11, 2013 12:05:11 PM org.apache.catalina.core.ApplicationContext log
INFO: Destroying Spring FrameworkServlet 'spring-mvc'
Jan 11, 2013 12:05:11 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jan 11, 2013 12:05:11 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()

--------------------------

Does that help anyone? 

Herrick, Rick

unread,
Jan 11, 2013, 5:12:49 PM1/11/13
to xnat_di...@googlegroups.com

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.

djenning

unread,
Jan 11, 2013, 6:30:57 PM1/11/13
to xnat_di...@googlegroups.com
Ah, well, I ran netstat and port 8080 (I assume you meant 8080, not 8104? is that right?) is being used:

netstat -an | grep "*.8"
tcp4       0      0  *.88                   *.*                    LISTEN     
tcp6       0      0  *.88                   *.*                    LISTEN     
tcp46      0      0  *.8080                 *.*                    LISTEN     
udp4       0      0  *.88                   *.*                               
udp6       0      0  *.88                   *.*                               

but I don't know how to (or if I should try to) stop the process that's using it? Could I change the port xnat is trying to use instead to something not being used? 


 

--------------------------

 

      ...
Show original


Herrick, Rick

unread,
Jan 12, 2013, 10:53:57 AM1/12/13
to xnat_di...@googlegroups.com
No, I actually meant 8104, which is the port the DICOM SCP listener runs on. The error message that indicates that's an issue is this:

SEVERE: StandardWrapper.Throwable
java.lang.RuntimeException: unable to start DICOM SCP
            at org.nrg.dcm.DicomSCPManager.startOrStopDicomSCPAsDictatedByConfiguration(DicomSCPManager.java:32)
            ...
Caused by: java.net.BindException: Address already in use

But the fact that something is already running on port 8080 is probably also indicative of the same issue, which is a Tomcat instance running on the same server.

You can find out what process is holding onto that port 8080 by adding, I think, the p option to the netstat command:

sudo netstat -anp | fgrep 8080

That'll show you the user and PID for the running Tomcat process and you can then take steps to shut that down. But that's definitely the root of your issue.

Rick Herrick

Sr. Programmer/Analyst

Neuroinformatics Research Group

Washington University School of Medicine

(314) 827-4250


From: xnat_di...@googlegroups.com [xnat_di...@googlegroups.com] on behalf of djenning [dominique....@gmail.com]
Sent: Friday, January 11, 2013 5:30 PM
--
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/-/MbzkmJst4lsJ.

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.

djenning

unread,
Jan 13, 2013, 9:34:17 PM1/13/13
to xnat_di...@googlegroups.com
That was in fact, the problem. I ran 'ps -ax | grep httpd' and 'killall httpd'. these were the things that were running at the time:

M069726 19:56:27 /Users/njenning ps -ax | grep httpd
   90 ??         0:00.44 /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/bin/httpd -D FOREGROUND -f /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/conf/httpd.conf
  173 ??         0:00.00 /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/bin/httpd -D FOREGROUND -f /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/conf/httpd.conf
  174 ??         0:00.00 /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/bin/httpd -D FOREGROUND -f /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/conf/httpd.conf
  175 ??         0:00.00 /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/bin/httpd -D FOREGROUND -f /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/conf/httpd.conf
  176 ??         0:00.00 /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/bin/httpd -D FOREGROUND -f /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/conf/httpd.conf
  177 ??         0:00.01 /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/bin/httpd -D FOREGROUND -f /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/conf/httpd.conf
 1572 ??         0:00.00 /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/bin/httpd -D FOREGROUND -f /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/conf/httpd.conf
 1575 ??         0:00.00 /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/bin/httpd -D FOREGROUND -f /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/conf/httpd.conf
 2258 ttys000    0:00.00 grep httpd

There was nothing holding onto 8080:

M069726 19:15:21 /Users/njenning sudo netstat -an | fgrep 8080
tcp46      0      0  *.8080                 *.*                    LISTEN     

but I followed it up by sudo lsof -i :80 and killed all PIDs related to that anyway.

Anyway, all is well now, and I really appreciate your help and time.

Kind regards,
Nicki

Herrick, Rick

unread,
Jan 14, 2013, 12:33:49 PM1/14/13
to xnat_di...@googlegroups.com

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.

Herrick, Rick

unread,
May 23, 2013, 11:00:01 PM5/23/13
to xnat_di...@googlegroups.com

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



HTTP Status 404 - /xnat/


type Status report

message /xnat/

description The requested resource (/xnat/) is not available.


Apache Tomcat/7.0.26

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.

nixs jennings

unread,
May 27, 2013, 9:17:32 AM5/27/13
to xnat_di...@googlegroups.com
hi steph, 

no worries, did you try killing the browsers completely and freeing up the port? 

1.
ps -ax | grep httpd' and 'killall httpd

2.
sudo netstat -an | fgrep 8080
sudo lsof -i :80  (then kill anything holding onto 8080)

sorry, these are what I ran for macos (not sure if they translate), but try those particular concepts and see if either of them work. it's been awhile since I had this error, but i can go back through the installation and see if something jogs my memory. also, tick was very responsive and helpful. 

best of luck. 
nicki



On Thu, May 23, 2013 at 5:38 PM, Steph <bic...@gmail.com> wrote:
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




HTTP 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.

To post to this group, send email to xnat_di...@googlegroups.com.

Steph

unread,
Jun 11, 2013, 5:16:59 PM6/11/13
to xnat_di...@googlegroups.com, aditya...@gmail.com
Thank you Nicki and Rick for your responses!

I am slow to follow up on this. But, I did what you recommended Nicki but I still get the error. Rick, I hope you don't mind that I will paste the log from /var/log/tomcat7 below in the hope you can make sense of it (because I certainly can't). Thank you again!

Jun 10, 2013 5:45:49 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Jun 10, 2013 5:45:49 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jun 10, 2013 5:45:50 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manager]] after stop() had already been called. The second call will be ignored.
Jun 10, 2013 5:45:50 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]] after stop() had already been called. The second call will be ignored.
Jun 10, 2013 5:45:50 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/examples]] after stop() had already been called. The second call will be ignored.
Jun 10, 2013 5:45:50 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/host-manager]] after stop() had already been called. The second call will be ignored.
Jun 10, 2013 5:45:50 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Jun 10, 2013 5:45:50 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Jun 10, 2013 7:24:34 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 10, 2013 7:24:34 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 749 ms
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Jun 10, 2013 7:24:34 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/host-manager.xml
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /usr/share/tomcat7-admin/host-manager does not exist or is not a readable directory
    at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4894)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5074)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
    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:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:679)
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/host-manager] startup failed due to previous errors
Jun 10, 2013 7:24:34 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/manager.xml
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /usr/share/tomcat7-admin/manager does not exist or is not a readable directory
    at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4894)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5074)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
    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:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:679)
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/manager] startup failed due to previous errors
Jun 10, 2013 7:24:34 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/examples.xml
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /usr/share/tomcat7-examples/examples does not exist or is not a readable directory
    at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4894)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5074)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
    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:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:679)
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/examples] startup failed due to previous errors
Jun 10, 2013 7:24:34 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/docs.xml
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /usr/share/tomcat7-docs/docs does not exist or is not a readable directory
    at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
    at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4894)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5074)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
    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:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:679)
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Jun 10, 2013 7:24:34 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/docs] startup failed due to previous errors
Jun 10, 2013 7:24:34 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Jun 10, 2013 7:24:35 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jun 10, 2013 7:24:35 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1056 ms


On Monday, April 12, 2010 5:29:07 PM UTC-4, deech wrote:

Herrick, Rick

unread,
Jun 12, 2013, 11:00:42 AM6/12/13
to xnat_di...@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.
 
 

Steph

unread,
Jun 18, 2013, 5:59:05 PM6/18/13
to xnat_di...@googlegroups.com, aditya...@gmail.com
Hi Rick,

thanks again!

I re installed the applications as you said. The did not know where to edit the /var/lib/tomcat7/conf/server.xml file, I pasted it below. Currently, I still get the same error and I also pasted the log file below. Thank you for your help again!
Steph

server.xml file:
<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at


  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="8005" shutdown="SHUTDOWN">
  <!-- Security listener. Documentation at /docs/config/listeners.html
  <Listener className="org.apache.catalina.security.SecurityListener" />
  -->
  <!--APR library loader. Documentation at /docs/apr.html -->
  <!--
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  -->
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container",
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">

    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->


    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               URIEncoding="UTF-8"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <!--
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
    -->


    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <Engine name="Catalina" defaultHost="localhost">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->

      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
    </Engine>
  </Service>
</Server>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
log file:
Jun 18, 2013 5:38:26 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Jun 18, 2013 5:38:26 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jun 18, 2013 5:38:26 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manager]] after stop() had already been called. The second call will be ignored.
Jun 18, 2013 5:38:26 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]] after stop() had already been called. The second call will be ignored.
Jun 18, 2013 5:38:26 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/examples]] after stop() had already been called. The second call will be ignored.
Jun 18, 2013 5:38:26 PM org.apache.catalina.util.LifecycleBase stop
INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/host-manager]] after stop() had already been called. The second call will be ignored.
Jun 18, 2013 5:38:26 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Jun 18, 2013 5:38:26 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Jun 18, 2013 5:38:33 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 18, 2013 5:38:33 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1079 ms
Jun 18, 2013 5:38:33 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 18, 2013 5:38:33 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Jun 18, 2013 5:38:33 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/host-manager.xml
Jun 18, 2013 5:38:34 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/manager.xml
Jun 18, 2013 5:38:34 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/examples.xml
Jun 18, 2013 5:38:34 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /etc/tomcat7/Catalina/localhost/docs.xml
Jun 18, 2013 5:38:34 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Jun 18, 2013 5:38:35 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jun 18, 2013 5:38:35 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1357 ms







On Monday, April 12, 2010 5:29:07 PM UTC-4, deech wrote:

Imran Shah

unread,
Feb 22, 2014, 12:09:35 AM2/22/14
to xnat_di...@googlegroups.com, aditya...@gmail.com
Hello Herrick,
                    I am facing the same problem. 

I am installing on Windows 7 and the XNAT version is: 1.6.2.1
I got the login page but when i enter the login name and password it is giving following error: 

HTTP Status 404 - /xnat/URL/app/template/Configuration.vm


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')

Please help me whats going wrong.

Mona Jalal

unread,
Sep 3, 2016, 12:09:52 PM9/3/16
to xnat_discussion
so when I browse I get 404 error. I have these:

jalal@klein:~/computer_vision/XNAT/xnat$ sudo netstat -anp | fgrep 8104
jalal@klein:~/computer_vision/XNAT/xnat$ vi /var/log/tomcat8/catalina.out
jalal@klein:~/computer_vision/XNAT/xnat$ ps -ax | grep httpd' and 'killall httpd
grep: httpd: No such file or directory
jalal@klein:~/computer_vision/XNAT/xnat$ sudo netstat -an | fgrep 8080
tcp6       0      0 :::8080                 :::*                    LISTEN    
unix  3      [ ]         STREAM     CONNECTED     38080   
jalal@klein:~/computer_vision/XNAT/xnat$ sudo lsof -i :80
jalal@klein:~/computer_vision/XNAT/xnat$ sudo lsof -i :8080
COMMAND   PID    USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
java    13228 tomcat8   46u  IPv6 2673854      0t0  TCP *:http-alt (LISTEN)


So what do you suggest?
Reply all
Reply to author
Forward
0 new messages