You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "J. Patrick Lanigan" <pa...@satx.rr.com> on 2001/05/09 19:00:18 UTC

Jsp's not executing server-side code

I finally got Apache to load mod_jk without err. I seem to have been missing
some needed libraries, but I upgraded to RedHat 7.1 and installed all the
libraries. Now, mod-jk builds fine and apache loads it.

My problem now is, server side code in the jsp's is being spit right out to
the browser rather than being executed on the server. If I add port 8080 to
the domain to get Tomcat to do ALL the work, the jsp works as it is supposed
to.

I have added the ajp13 connection handeler to the server.xml. I have
modified the workers.properties file for my enviroment. And I have tried
including each of the mod_jk.conf and mod_jk.conf-auto files in my
httpd.conf file

Any help would be great!

Thanks,
Patrick


RE: Jsp's not executing server-side code

Posted by "J. Patrick Lanigan" <pa...@satx.rr.com>.
The mod_jk.conf file was missing the AddModule line. Anyhow, I've got tomcat
serving jsp's/servlets now, but if I try and hit domain/examples/ I get an
apache directory listing. If I then hit refresh I get a 'Not Found' error.
Also, if I try to hit some of the static pages within tomcats examples
directory, I get a 404 error.

Ideas and suggestions?
Thanks,
Patrick

> I wrote:
>
> I finally got Apache to load mod_jk without err. I seem to have
> been missing
> some needed libraries, but I upgraded to RedHat 7.1 and installed all the
> libraries. Now, mod-jk builds fine and apache loads it.
>
> My problem now is, server side code in the jsp's is being spit
> right out to
> the browser rather than being executed on the server. If I add
> port 8080 to
> the domain to get Tomcat to do ALL the work, the jsp works as it
> is supposed
> to.
>
> I have added the ajp13 connection handeler to the server.xml. I have
> modified the workers.properties file for my enviroment. And I have tried
> including each of the mod_jk.conf and mod_jk.conf-auto files in my
> httpd.conf file
>
> Any help would be great!
>
> Thanks,
> Patrick
>