Hi there,
I am trying to make servlet mapping working for my apache+tomcat on
Solaris 8. I need to map some time /myfile.html to a servlet
com.corp.servlet.LightWeightUiServlet. I add the following tags to
$TOMCAT_HOME/conf/web.xml.
<servlet>
<servlet-name>
myservlet
</servlet-name>
<description>
</description>
<servlet-class>
com.corp.servlet.LightWeightUiServlet
</servlet-class>
<!-- Load this servlet at server startup time -->
<load-on-startup>5</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>
myservlet
</servlet-name>
<url-pattern>
/myfile.html
</url-pattern>
</servlet-mapping>
All my class files are installed under $TOMCAT_HOME/classes and
$TOMCAT_HOME/lib
It did not for me. I got the 404 error. The request is logged as an
error in apache and is never dispatched to servlet. Then I addes a line
in mod_jk.conf-auto
JkMount /myfile.html ajp12
and restart apache. This time the request was send to servlet but got a
error "Ctx( ): 404 R( + /myfile.html + null) null"
I have no clue what to do next. Would somebody give me some advice?
Thanks,
Feng