• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

404 not found, but . . .

 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ok, I have a nice little .jsp file.
I have it on my server, in an appropriate directory.
Now I try to call it from my browser and I get 404, file not found, yada yada.
Now if I comment out the code and try to load it, it comes up with the title and everything that isn't dynamic. If I uncomment the code, 404 file not found.
Now this is a real bitch to trouble shoot cause I don't have any info, and all the other files are working.
I'm running Tomcat 3.2.1 on Redhat Linux 7.1
Anyone else seen this problem before?
 
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you say you comment out the code, do you change the .jsp extension too?
I'm running the same systems as you and this is where I store things.
.jsp files:
/jakarta-tomcat/webapps/examples/<jsp in this directory>
and then I access them with the following in my browser:
http://youripaddress:8080/examples/<jsp directory>/.jsp file
Let me know if you're still having difficulty.

- Sean

[This message has been edited by Sean Casey (edited September 10, 2001).]
 
Andrew Shafer
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

When I say comment out the code I mean this:

I don't change anything about the file name, it is still .jsp.
I've been working on tomcat for a bit of time, I have many wonderfully predictable working jsp and servlets.
I have Apache configured with tomcat, working great, so I don't need :8080.
Tomcat is generating the 404 error, and I'm not sure why. It weird also because, if I take the code out or comment it out, then it displays whatever is there, put the code in and I get 404. Another thing that is interesting is when I first change the file, there is a pause for a bit like it is trying to compile a .jsp for the first time, then 404.
I tried fiddling around with the code, taking this and that out to see if I could narrow down the problem. I think it has something to do with instantiating a java.io.BufferedReader, but it seems like there should be an error if there is a problem, this is strange behavior.
Anyone have an idea?
regards,
Andrew
 
Andrew Shafer
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

No one has ever seen this behavior?
 
reply
    Bookmark Topic Watch Topic
  • New Topic