Solved

Tomcat 4.1 JSP Problem

Posted on 2003-10-21
5
308 Views
Last Modified: 2010-04-01
Hi guys, well you see I'm trying to crete a new Web app and my Tomcat instead of displaying my JSP files, it downloads them

this is what I did:

I created the context /Myapp and created the directory with the name Myapp on the Tomcat\webapps directory
under that i created a folder called WEB-INF and in there a web.xml file wich contains only the servlet mapping
of my app. Under WEB-INF I created a folder called classes and under that folder I created the whole path of my
package (com.victor.intranet) and left there my servlets.

     The thing is that my servlets work fine, I accessed them directly and the input was the one I was expecting
the thing is that when I access http://localhost/Myapp the index.jsp file instead of executing it, it's trying to download it.

     I've asked arround what could this be, because I've never had that problem.. and the only thing they tell me is "Weird.. It shouldn't do that"

     I hope you can help me..

    Oh, btw, I'm using w2k  :)

     Thanks..
              Victor
0
Comment
Question by:vic_soqui
5 Comments
 

Expert Comment

by:wolrabp
ID: 9593805
can you post your index.jsp code? If it is very large just let me know.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9594235
Is the behaviour the same for all JSPs?

Do you get any errors/exceptions reported?

What does your localhost_access log file show?
0
 

Author Comment

by:vic_soqui
ID: 9594697
Well.. actually I just solved this "Mistery"
this is what happened..

I checked the Index.jsp file.. and it was all weird characters..
I don't know what happened or why but well.. so I deleted the file
and created a new one.. turned off and on the Tomcat server
and the same error keep apearing.. until..
I checked my try..catch block and..
it all was o.k.. it was a out.println("message");
but.. I just put that into a comment and.. voila.. it worked..
it's very weird.. but.. thanks.. now my jsp are working..

Thanks anyway guys... :D
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9594716
;-)
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 9596287
User resolved; points refunded and question closed.

Netminder
EE Admin
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
reflections, dynamic class loading 3 75
jsp login check 12 43
how to debug htl and js pages 8 39
running on tomcat not jboss eap 7.0 3 19
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Smart phones, smart watches, Bluetooth-connected devices—the IoT is all around us. In this article, we take a look at the security implications of our highly connected world.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question