Invoking servlets via https (ssl) on tomcat

I can hit tomcat on localhost through the browser - https//localhost:8443/myServlet/ - but I get a "requested resource (/myServlet/) is not available". I am using a standard web.xml for this servlet., as follows:

<servlet>

<servlet-name>myServlet</servlet-name>

<servlet-class>com.company.servlets.MyFancyServlet</servlet-class>

</servlet>

<servlet-mapping>

<servlet-name>myServlet</servlet-name>

<url-pattern>/myServlet</url-pattern>

</servlet-mapping>

What more do I have to do to cause tomcat to find and invoke this servlet?

Thanks.

[678 byte] By [BCScomputersTXa] at [2007-11-26 18:30:44]
# 1
Perhaps you should try to remove the ending slash? I'm betting the server is now looking for /myServlet/index.htm or whatever default file you have configured.Also did you uncomment the https connector in your server.xml ?
gimbal2a at 2007-7-9 6:04:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks for your suggestions.

> Perhaps you should try to remove the ending slash?

> I'm betting the server is now looking for

> /myServlet/index.htm or whatever default file you

> have configured.

I have tried it both ways. Same result either way.

>

> Also did you uncomment the https connector in your

> server.xml ?

Yes. The https connector is uncommented.

Other ideas?

One other piece of information: When I try to hit it http, it comes back to say that file is a something/somehting stream and offers me the opportunity to download it or run it with my selected execution program. Clearly, it is not attempting to run it as a servlet. ?

BCScomputersTXa at 2007-7-9 6:04:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Where did you put the servlet .class file? If it wants to download it you must have put it in the web root with your JSP's. The servlet needs to go inWEB-INF/classes/com/company/servlets/MyFancyServlet.classDo you have that?
gimbal2a at 2007-7-9 6:04:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

> Where did you put the servlet .class file? If it

> wants to download it you must have put it in the web

> root with your JSP's. The servlet needs to go in

>

> WEB-INF/classes/com/company/servlets/MyFancyServlet.cl

> ***

>

> Do you have that?

Yes, that is where the class file is.

I have been making some progress on this. I will come back with more information perhaps tomorrow evening.

BCScomputersTXa at 2007-7-9 6:04:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
I have enough information now to narrow this topic. I will start another topic called, "How to configure an application on tomcat with an "empty" context ?"See ya there.
BCScomputersTXa at 2007-7-9 6:04:52 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...