Solved

Tomcat 4.1 JSP Problem

Posted on 2003-10-21
5
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article describes how to import Lotus Notes Contacts into Outlook 2016, 2013, 2010 and 2007 etc. with a few manual steps. You can easily export and migrate Lotus Notes contacts into Microsoft Outlook without having to use any third party tools.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

626 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