.
I've also tried removing hsql.jar from the lib directory to make sure
there is no classname clash between the hsql and postgres jdbc jars.
Any Ideas??
Brendan Richards
After thinking about it,
JkMount /servlet/* ajp13
quite clearly mounts servlets in the ROOT webapp only.
Try putting a servlet into $CATALINA_HOME/webapps/ROOT/WEB-INF/classes/
-
Brendan,
Thanks extending your help.
I can go with
I don't know if you can do exactly what you want but an alternative could
be to url-encode the path in the request as a variable
for example: http://server/application/mypage.jsp?path
=%2fextra%2fpath%2finfo
(I think %2f = / but please check!)
Brendan
I don't know if this will work or not...
but have you tried:
JkMount /servlet/** ajp13
If it works, let me know...
Brendan
Hi Everyone,
Recently I have connected apache with tomcat using mod_jk. In my httpd.conf
file I am giving this directive.
Or perhaps it would be even better to try:
JkMount /*/servlet/* ajp13
or:
JkMount **/servlet/* ajp13
Brendan
I don't know if this will work or not...
but have you tried:
JkMount /servlet/** ajp13
If it works, let me know...
Brendan
Hi Avnish,
To be honest, I've always just set a line in the httpd.conf for each webapp
/ context deployed.
All the documentation/examples i've seen show a JKMount being used for each
context.
I generally don't need more than one or two webapps on each server so it's
not usually a problem
If you are sending the redirect to a different server (apache on port 80
rather than tomcat on 8080) then the url to redirect to can't be
relative...
A relative URL must be on the same server.
Brendan
-
Hi,
I have an Apache HTTP server (2.0.36)
If all you are doing is starting tomcat and then trying to run a servlet
this is unlikely.
More probably there is something wrong with your servlet / jsp.
You could try...
First try running the tomcat examples and see if tomcat runs these okay.
If they don't re-install tomcat - something is
Can you run the servlet in the first place?
for example using a URL such as this:
http://localhost:8080/webapp/servlet/ServletName
see the tomcat servlet examples (linked from the default home page)
if you can run the servlet just link to the servlet's URL like any other
URL.
If you
You need to setup C:\tomcat401\webapps\ROOT\WEB-INF\web.xml to map a url to
the servlet class.
look at webapps\examples\WEB-INF\web.xml for examples.
Once you can actually view the servlet's output in a browser, through the
mapped url you can link to it like any other web file.
ie
10 matches
Mail list logo