You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Werner van Mook <we...@connecties.com> on 2004/02/10 16:51:06 UTC

slowly I'm losing it. JSP not working

Hi all,

My configuration is :
httpd + mod_jk + tomcat 4.1.24

in httpd.conf I have :

	<IfModule mod_jk.c>
	 AddModule mod_jk.c
	 JkWorkersFile /home/tomcat/conf/workers.properties
	 JkLogFile     /etc/httpd/logs/mod_jk.log
	 JkLogLevel    info
	 JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
	 JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
	 JkRequestLogFormat     "%w %V %T"
	</IfModule>

	<Location ~ ".*/WEB-INF/">
	  AllowOverride None
	  deny from all
	</Location>

	<Location ~ ".*/META-INF/">
	  AllowOverride None
	  deny from all
	</Location>


and :

NameVirtualHost 193.195.96.175
<VirtualHost 193.195.96.175>
ServerName www.connecties.com
ServerAdmin admin
DocumentRoot /home/sites/home/web
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^193.195.96.175(:80)?$
RewriteCond %{HTTP_HOST}                !^www.connecties.com(:80)?$
RewriteRule ^/(.*)                      http://www.connecties.com/$1 
[L,R]
RewriteOptions inherit
#
# The next line is there for mod_jk
#
JkMount /* ajp13
#
#
#
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/home/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>

<VirtualHost 193.195.96.175>
ServerName www.klepreclame.nl
ServerAdmin admin
DocumentRoot /home/sites/site2/web
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^193.195.96.175(:80)?$
RewriteCond %{HTTP_HOST}                !^www.klepreclame.nl(:80)?$
RewriteRule ^/(.*)                      http://www.klepreclame.nl/$1 
[L,R]
RewriteOptions inherit
#
# The ext line is there for mod_jk
#
JkMount /* ajp13
#
#
#
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site2/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>

<VirtualHost 193.195.96.175>
ServerName www.karnhuis.nl
ServerAdmin admin
DocumentRoot /home/sites/site1/web
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^193.195.96.175(:80)?$
RewriteCond %{HTTP_HOST}                !^www.karnhuis.nl(:80)?$
RewriteRule ^/(.*)                      http://www.karnhuis.nl/$1 [L,R]
RewriteOptions inherit
#
# The next line is there for mod_jk
#
JkMount /* ajp13
#
#
#
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site1/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
</VirtualHost>

#Include /usr/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf


There is more in there but I did not copy it in.


I also have my server.xml file
In there I have 3 <Host></Host> parts.
One for every virtual host.

And now the problem.

www.klepreclame.nl has been a complete html site.
No jsp/servlets in there.
There was no JkMount /* ajp13 for this site in my httpd.conf file.
I did not have a <Host></Host> part in my server.xml.

The other two sites and this html site were working perfectly.
Now I changed the index.html page for www.klepreclame.nl  into 
index.jsp.
I added a taglib declaration to the page like :

<%@ taglib prefix="count" uri="http://www.klepreclame.nl/taglib" %>
as the first line for the index.jsp.

I included JkMount /* ajp13 in httpd.conf (as above)
and copied one of the <Host></Host> parts in server.xml and changed
it to www.klepreclame.nl wherever necessary
Also changed the doc_rot to point to the correct location.

If I now start my browser and point it to www.klepreclame.nl/index.jsp
It will not be transformed into a servlet. How do I know?
Take a look at the source from the page (in the browser) and I can see 
the taglib declaration.
This should not be possible if tomcat would pick it up.

I do not get any error messages there is nothing in any log file.

Is there someone who can guess (or even better, know) what is going 
wrong?

I think I'm going slightly mad.
Please help.

Kind regards
Werner van Mook


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org