You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christian Stalp <st...@imbei.uni-mainz.de> on 2005/07/11 13:17:30 UTC
Tomcat and Apache
Hello together,
I still have some trouble running Apache and Tomcat together in one host.
I heard that I have to write a " j_secutiry_check" into apache.conf or
httpd.conf. Where exactly I have to write this, and with which syntax. What
else I have to consider while running Apache and Tomcat together.
Important: Tomcat is not embedded in Apache in my case. It has its own
process!!!
Thank you...
Gruss Christian
--
Christian Stalp
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Johannes-Gutenberg-Universität Mainz
Tel.: 06131 / 17-3107
E-Mail: stalp@imbei.uni-mainz.de
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat and Apache
Posted by Ivan Rodriguez <iv...@interd4u.com>.
I have the same issue! with debian sarge, and tomcat installed from scratch:
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
The return type is incompatible with JspSourceDependent.getDependants()
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
jakarta-tomcat-5.5.9-src.tar.gz
Debian GNU/Linux 3.1
jdk1.5.0_03
>No this isn't the solution. Tomcat and Apache are full independent. They don't
>cooperate together nor they communicate. Apache listens at port 80 and Tomcat
>at port 8180 ( its the Debian Solution ).
>But I cannot run tomcat under these configuration. I get an error dump each
>time:
>[quote]
>HTTP Status 500 -
>
>type Exception report
>
>message
>
>description The server encountered an internal error () that prevented it from
>fulfilling this request.
>
>exception
>
>org.apache.jasper.JasperException: Unable to compile class for JSP
> at
>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432)
> at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
> at org.apache.catalina.core.ApplicationFilterChain.access$000
>(ApplicationFilterChain.java:51)
> at org.apache.cata.....
>......
>[/quote]
>
>Apache works fine and makes no trouble.
>
>Gruss Christian
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat and Apache
Posted by dan stephens <ks...@hotmail.com>.
>From: Christian Stalp <st...@imbei.uni-mainz.de>
>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>To: "Tomcat Users List" <to...@jakarta.apache.org>
>Subject: Re: Tomcat and Apache
>Date: Mon, 11 Jul 2005 13:53:09 +0200
>
>Am Montag, 11. Juli 2005 13:34 schrieb Ivan Rodriguez:
> > I don t know details about your problem but i can answer that
> >
> > j_secutiry_check is not a way of integrating tomcat into apache. It is
>an
> > authentition scheme defined by J2EE specs.
> >
> > What you need is the jk_mount apache module, to let your Apache install
> > bypass the dynamic calls to tomcat, and then to serve only static
>content
> > with apache.
> >
> > Details of configuration can be found at:
> >
> > http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/
>
>No this isn't the solution. Tomcat and Apache are full independent. They
>don't
>cooperate together nor they communicate. Apache listens at port 80 and
>Tomcat
>at port 8180 ( its the Debian Solution ).
>But I cannot run tomcat under these configuration. I get an error dump each
>time:
>[quote]
>HTTP Status 500 -
>
>type Exception report
>
>message
>
>description The server encountered an internal error () that prevented it
>from
>fulfilling this request.
>
>exception
>
>org.apache.jasper.JasperException: Unable to compile class for JSP
> at
>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432)
> at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
> at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
> at org.apache.catalina.core.ApplicationFilterChain.access$000
>(ApplicationFilterChain.java:51)
> at org.apache.cata.....
>......
>[/quote]
>
>Apache works fine and makes no trouble.
>
>Gruss Christian
>
>--
>Christian Stalp
>Institut für Medizinische Biometrie, Epidemiologie und Informatik
>Johannes-Gutenberg-Universität Mainz
>Tel.: 06131 / 17-3107
>E-Mail: stalp@imbei.uni-mainz.de
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
Tomcat and apache are fully independent, but to enable Apache to use Tomcat
as the J2EE container, you need to use mod_jk, which is what Ivan stated.
Then when a request comes into Apache, your jk mount point will tell it to
deliver the JSP from tomcat. That's a high level anyway.
Do you really need apache? You can just use Tomcat for your static content,
JSP, beans etc...
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat and Apache
Posted by Christian Stalp <st...@imbei.uni-mainz.de>.
Am Montag, 11. Juli 2005 13:34 schrieb Ivan Rodriguez:
> I don t know details about your problem but i can answer that
>
> j_secutiry_check is not a way of integrating tomcat into apache. It is an
> authentition scheme defined by J2EE specs.
>
> What you need is the jk_mount apache module, to let your Apache install
> bypass the dynamic calls to tomcat, and then to serve only static content
> with apache.
>
> Details of configuration can be found at:
>
> http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/
No this isn't the solution. Tomcat and Apache are full independent. They don't
cooperate together nor they communicate. Apache listens at port 80 and Tomcat
at port 8180 ( its the Debian Solution ).
But I cannot run tomcat under these configuration. I get an error dump each
time:
[quote]
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from
fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.access$000
(ApplicationFilterChain.java:51)
at org.apache.cata.....
......
[/quote]
Apache works fine and makes no trouble.
Gruss Christian
--
Christian Stalp
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Johannes-Gutenberg-Universität Mainz
Tel.: 06131 / 17-3107
E-Mail: stalp@imbei.uni-mainz.de
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Tomcat and Apache
Posted by Ivan Rodriguez <iv...@interd4u.com>.
I don t know details about your problem but i can answer that
j_secutiry_check is not a way of integrating tomcat into apache. It is an authentition scheme defined by J2EE specs.
What you need is the jk_mount apache module, to let your Apache install bypass the dynamic calls to tomcat, and then to serve only static content with apache.
Details of configuration can be found at:
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/
Christian Stalp escribió:
>Hello together,
>I still have some trouble running Apache and Tomcat together in one host.
>I heard that I have to write a " j_secutiry_check" into apache.conf or
>httpd.conf. Where exactly I have to write this, and with which syntax. What
>else I have to consider while running Apache and Tomcat together.
>
>Important: Tomcat is not embedded in Apache in my case. It has its own
>process!!!
>
>Thank you...
>
>Gruss Christian
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org