Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 830511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:03:21+00:00 2026-05-15T04:03:21+00:00

This is for uni homework, but I reckon it is more a generic problem

  • 0

This is for uni homework, but I reckon it is more a generic problem to the Tomcat Server(version 5.5.27) on my uni.

The problem is, I first did a skeleton Java Web Application (Just a simple Servlet and a welcome-file, nothing complicated, no lib included) using NetBeans 6.8 with the bundled Tomcat 6.0.20 (localhost:8084/WSD)

Then, to test and prove it is “portable” and “auto-deploy-able”, I cleaned and built a WSD.war file and dropped it onto my Xampp Tomcat (localhost:8080/WSD). The war extracted everything accordingly and I can see identical output from this Tomcat. So far, so good.

However, after I tried to drop to war onto uni server, funny thing happens:

uni server

Even though I’ve changed the war permission to 755, it is simply not “responding”.

I then copied the extracted files to uni server, the MainServlet cannot be recognized from within its Context Path “/WSD”, basically nothing works, expect the static index.jsp. I tried several times to stop and restart uni Tomcat, it doesn’t help?

I wonder what makes this happen? Is there anything I did wrong with my approach?

To be frank I paid no attention to a server not under my control, and I am unfortunately not a real active day-to-day Java Programmer now. I understand the fundamentals of MVC, Servelets, JSPs, JavaBeans, but I really feel frustrated by this, as I cannot see why…

Or, should I ask, a Java Web Application, after cleaned and built by NetBeans6.8, is self-contained and self-configured so ready to be deployed to any Java Web Container?

I know, I can certainly program everything in plain old JSP, but this is soooo… unacceptable to myself…

Update :

I am now wondering if there is any free Tomcat Hosting so that I would like to see if my war file and/or my web app can go with them without any configuration at all?

Second Update :

matt b makes a good point, so I went and checked my environment with an ad-hoc way:
a fake JSP page that goes to nowhere

And I did see the word Tomcat 5.5.27 prompted…

Also, another test page to see if uni has installed JDBC driver for MySQL (I am happy to see they did, as promised):JSP JDBC Test Page

So Resin or Tomcat… I cannot really tell at this point 🙂

Confirmed from my colleague, that we do share the identical environment. According to the Http headers (curl -I output)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:03:22+00:00Added an answer on May 15, 2026 at 4:03 am

    Either another server besides Tomcat is serving your files (see how the headers returned are for Apache web server), or if your environment is setup such that Apache HTTP server proxies requests to Tomcat, then something is wrong with your setup.

    $ curl -I http://www-student.it.uts.edu.au/~cmao/WSD/WEB-INF/web.xml
    
    HTTP/1.1 200 OK
    Date: Wed, 09 Jun 2010 01:17:42 GMT
    Server: Apache/2.2.10 (Unix) PHP/5.2.6 Resin/3.1.7a mod_perl/2.0.3 Perl/v5.8.8
    Last-Modified: Wed, 09 Jun 2010 01:17:42 GMT
    ETag: W/"d0304-2f3-4889b8d410680"
    Accept-Ranges: bytes
    Content-Length: 755
    Content-Type: application/xml
    

    Tomcat wouldn’t usually serve WEB-INF or web.xml files.

    Also, the Server header mentions Resin, which is a competing servlet container to Tomcat. Perhaps it is configured incorrectly?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.