Solved

Tomcat 4.1 JSP Problem

Posted on 2003-10-21
5
302 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Help with LDAp login using jsp 6 109
Multiple Images Upload [JSP Web-application] 3 35
AlarmClock Challenge 35 145
spring example errors 33 200
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now