On Wed, 4 Jul 2001 17:19, you wrote:
> ApJServMount /<context_path>/myServlet
> /<context_path>/servlet/theServlet
So I assume that if you request
http://myserver/<context_path>/servlet/myServlet it works too? This isn't
the point though - you're right, you shouldn't (and dont) have to do that.
> * If not can someone give a concrete example of a servlet mapping, and the
> corresponding ApJServMount line that will get apache to recognise that
> mapping?
see below (o:
--- snippet from web.xml ---
<servlet>
<servlet-name>australian3quiz-results</servlet-name>
<servlet-class>com.coxless.quizzes.QuizResultServlet</servlet-class>
<init-param>
<param-name>quiz-file</param-name>
<param-value>australian3.xml</param-value>
</init-param>
<init-param>
<param-name>results-file</param-name>
<param-value>australian3-results.xml</param-value>
</init-param>
<init-param>
<param-name>jsp</param-name>
<param-value>/jsp/quiz-results.jsp</param-value>
</init-param>
<init-param>
<param-name>error-jsp</param-name>
<param-value>/jsp/error.jsp</param-value>
</init-param>
<init-param>
<param-name>quizLink</param-name>
<param-value>/servlet/australian3quiz</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>australian3quiz-results</servlet-name>
<url-pattern>/australian3quiz-results</url-pattern>
</servlet-mapping>
--- end snippet from web.xml ---
--- snippet from httpd.conf ---
Include /var/local/apache/conf/mod_jk.conf
<VirtualHost *:80>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /projects/coxless/live/htdocs
ErrorDocument 400 /404.shtml
ErrorDocument 500 /500.shtml
ServerName dev.coxless.com
ErrorLog logs/dev-coxless.com-error_log
CustomLog logs/dev-coxless.com-access_log common
JkMount /*.jsp ajp12
JkMount /*.do ajp12
JkMount /servlet/* ajp12
</VirtualHost>
--- end snippet from httpd.conf
--- snippet from mod_jk.conf ---
LoadModule jk_module /packages/apache/libexec/mod_jk.so
JkWorkersFile /var/local/apache/conf/tomcat-workers.properties
JkLogFile /var/local/apache/logs/tomcat-mod_jk.log
#
# Log level to be used by mod_jk
#
JkLogLevel error
--- end snippet from mod_jk.conf ---
I hope this helps... if you still have problems, post yours and I'll see what
I can do (o:
cheesr
dim