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.
# 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. ?
# 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.