Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Tomcat 4.1 JSP Problem

Posted on 2003-10-21
5
Medium Priority
?
315 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Did you know there are services out there that can turn an Instagram feed into an RSS feed? I found some interesting exclusive Instagram content which I wanted to follow without signing up for yet another social media account. RSS to the rescue!
Following on from our article on "The Murky World of Consent and opt in", we thought we would issue some helpful guidance, not only on consent itself but knowing what information you are capturing, what you are doing with this data and how you can p…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

824 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