HTTP 404 - Requested Resource Not Found

43 views
Skip to first unread message

Kasper Claes

unread,
Mar 14, 2011, 12:10:49 PM3/14/11
to xnat_discussion
Hi all,

I have a problem as described in section 11 of
http://www.xnat.org/XNAT+Installation+Guide
The link posted there ( http://groups.google.com/group/xnat_discussion/browse_frm/thread/a400f8347118cbe4
) does not solve the issue.
I tried posting (reply to author) my issue there, but it does not
appear in the mailings for some reason, so I start over here.

I was able to follow all installation step before correctly as far as
I can see.
Browsing to http;//localhost:8080 does give a "It works!" page of
tomcat
However, browsing to http;//localhost:8080/xnat returns a 404 "The
requested resource (/xnat) is not available."
I use Ubuntu server 10.10 and all its dependencies (e.g. Tomdat
6.0.28, Firefox 3.6.13), and the xnat version downloaded a few weeks
ago.

/var/log/tomcat6 contains no errors, only a few messages like:
Mar 14, 2011 4:49:31 PM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextInitialized()
How can I proceed ?
I thank you for your help.

Regards,
Kasper

deech

unread,
Mar 14, 2011, 12:39:21 PM3/14/11
to xnat_di...@googlegroups.com
I am the author of that post. I have since stopped using the packaged version of Tomcat on Ubuntu. The quickest solution to your problem might be to uninstall Ubuntu's Tomcat (by typing "sudo dpkg -P tomcat6" at the command line) and download Tomcat (http://www.alliedquotes.com/mirrors/apache/tomcat/tomcat-6/v6.0.32/bin/apache-tomcat-6.0.32.tar.gz) and install it yourself.

If this is not an option let me know and I'll try and troubleshoot with you.

My email if you want to take this offline is: aditya...@gmail.com

Regards,
-deech

Kasper Claes

unread,
Mar 15, 2011, 4:09:02 AM3/15/11
to xnat_discussion
Thanks for your quick response.
Here's what I did:
- sudo dpkg -P tomcat6 libtomcat6-java tomcat6-admin tomcat6-common
tomcat6-docs tomcat6-examples
- downloaded and unpacked the package in your link
- ~/apache-tomcat-6.0.32/bin] ./startup.sh
- browsed to http://localhost:8080 : I get an updated tomcat welcome
screen with links on a yellow background on the left.
- browsed to http://localhost:8080/xnat : I get the same 404 error as
before.
- added the grant block of code to ~/apache-tomcat-6.0.32/conf/
catalina.policy as described in the previous post:
http://groups.google.com/group/xnat_discussion/browse_frm/thread/a400f8347118cbe4
- ~/apache-tomcat-6.0.32/bin] ./shutdown.sh
- ~/apache-tomcat-6.0.32/bin] ./startup.sh
- browsed to http://localhost:8080/xnat : I get the same 404 error as
before.

I'm out of ideas again at this point. Thanks a lot for your help, it
really makes a difference for us!

Kasper

On Mar 14, 5:39 pm, deech <aditya.si...@gmail.com> wrote:
> I am the author of that post. I have since stopped using the packaged
> version of Tomcat on Ubuntu. The quickest solution to your problem might be
> to uninstall Ubuntu's Tomcat (by typing "sudo dpkg -P tomcat6" at the
> command line) and download Tomcat
> (http://www.alliedquotes.com/mirrors/apache/tomcat/tomcat-6/v6.0.32/bi...)
> and install it yourself.
>
> If this is not an option let me know and I'll try and troubleshoot with you.
>
> My email if you want to take this offline is: aditya.si...@gmail.com
>
> Regards,
> -deech

deech

unread,
Mar 15, 2011, 11:06:21 AM3/15/11
to xnat_di...@googlegroups.com
Hi Kasper,
There were a few things I had to do after I downloaded Tomcat:
1. I found that when I downloaded Tomcat I didn't have to edit catalina.policy so you might want to reset it to the original state.
2. Edit the build.properties file in your XNAT directory:
    - set the maven.appserver.home variable to your Tomcat directory (<home-directory>/apache-tomcat-6.0.32). Use an absolute path here to be safe.
3. Delete your XNAT application from the deployments directory (<xnat-directory>/deployments/xnat)
4. Re-run "bin/setup.sh"
5. Re-run "bin/update.sh -Ddeploy=true"

Hope this helps,
-deech

Kasper Claes

unread,
Mar 15, 2011, 12:08:31 PM3/15/11
to xnat_discussion
That was a great help: now it works !
I thank you a lot, as do my colleagues in our neuroscience project.

Kasper
Reply all
Reply to author
Forward
0 new messages