m Shultz

Greenhorn
+ Follow
since Jun 01, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by m Shultz

Misha Ver wrote:Perhaps you could check IIS logs, to see where it sends request



The IIS logs just simply state the GET requests it seems. No failures are recorded in these logs.
Not sure what to think
13 years ago

Misha Ver wrote:What URL do you use to access your application? Does your application work when you try to access it directly from Tomcat? Have you checked log files?



It works fine when we use the following URLs:

http://localhost/examples/servlets/servlet/HelloWorldExample
http://localhost:8080/examples/servlets/servlet/HelloWorldExample
even
http://server_ip/examples/servlets/servlet/HelloWorldExample


However, as soon as we use IIS to assign a domain name to that IP and point the website record to the appropriate folder
(C:\Tomcat\webapps\examples)

in spite of the fact that the HTML pages continue to display properly, the .jsp pages fail with a 404 error.
URL: http://domain_name/servlets/servlet/HelloWorldExample



The log files don't seem to have very specific content either. Could you tell me which file to look for?
I'm looking in: C:\Tomcat\logs and i don't see anything that would point to errors:
I looked at: isapi_redirect.log, localhost.2010-06-02.log, manager.2010-06-02.log

Thank you for your input.
13 years ago
hi there
I'm sure this has been answered or at least dealt with, so my apologizes ahead of time, but i just spent over 4 hrs today trying to figure this out and still can't seem to find the answer anywhere.

We recently got a new server, and would like to run an application with Tomcat on it. So we installed
- IIS 7.0
- Java JRE 6u20 (C:\Java)
- Tomcat 6.0.26 (C:\Tomcat)

I followed the steps in this tutorial (http://www.iisadmin.co.uk/?p=72) which seemed quite explicit and easy to follow. It's just that now ... when we try to access servlets over the web, we can't loose the 404 error message.
---
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
---

I've followed the steps in several threads

https://coderanch.com/t/362081/Servlets/java/Tomcat-requested-resource-not-available
https://coderanch.com/t/359955/Servlets/java/HTTP-Status-servlet-error-requested

and also in the FAQ
http://faq.javaranch.com/view?InvokerServlet

but can't seem to be able to get anywhere.


We've been looking at the Hello World example.
If we comment out the servlet-mapping (just as a test) - the localhost:8080 no longer works.



So i put the comments back in - works again.


We shouldn't have to do that anyway since the servlet mappings and and servlet declarations are already in place in the web.xml file under:
C:\Tomcat\webapps\examples\WEB-INF

copy from this file:

...

(other servlets)

...

(other mappings)


Any thoughts would be appreciated.
Thanks much


p.s. we've been struggling on this for a pretty long time
13 years ago