You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dmitri Colebatch <di...@bigpond.net.au> on 2001/07/26 07:14:15 UTC

Re: apache+mod_jk+tomcat virtual host sample setting

Hi,

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ is a wonderful
place:

search for "httpd.conf server.xml virtual hosts example" and the sixth
result is:

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg24768.html

that should give you a start (o:

cheesr
dim

On Thu, 26 Jul 2001, Jerry Qu wrote:

> Hi All,
> 
> is there any one has working sample(s) for setting apache+mod_jk+tomcat virtual host in httpd.conf and server.xml (if needed )
> 
> thanks
> 
> Jerry Qu
> 


RE: installation of tomcat on debian failed

Posted by Greg Trasuk <st...@on.aibn.com>.
The problem is that mod_jserv is designed to implement the Servlet API
version 2.0, whereas the current API is version 2.2.  You need to get the
JSDK2.0 from the Sun website and have that servlet.jar in your classpath
when you compile jserv, not the current one that comes with Tomcat.  Note
that Tomcat 3.2.3 implements servlet 2.2, so there's no problem there.

You might also want to look into using mod_jk instead of mod_jserv.

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

-----Original Message-----
From: fate@mailhost.wanadoo-sp.net
[mailto:fate@mailhost.wanadoo-sp.net]On Behalf Of Fabrice Terrasson
Sent: Thursday, July 26, 2001 2:14 PM
To: tomcat-user@jakarta.apache.org
Subject: installation of tomcat on debian failed


I used this configure settings:
./configure --with-apxs=/usr/bin/apxs --prefix=/usr/local/jserv
--with-jdk-home=/usr/lo --with-JSDK=/usr/local/jakarta-tomcat-3.2.3/lib

no errors, but when I do make:

/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv/JServConnection.java:
85:
org.apache.jserv.JServConnection should be declared abstract; it does
not define flushBuffer() in org.apache.jserv.JServConnection
public class JServConnection
       ^
/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv/JServContext.java:90:
org.apache.jserv.JServContext should be declared abstract; it does not
define getAttributeNames() in org.apache.jserv.JServContext
class JServContext implements ServletConfig, ServletContext,
JServSendError, JServLogChannels {
^
/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv/JServSession.java:74:
org.apache.jserv.JServSession should be declared abstract; it does not
define getAttribute(java.lang.String) in org.apache.jserv.JServSession
public class JServSession implements HttpSession, JServLogChannels,
Serializable {
       ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
3 errors
make[5]: *** [JServ.class] Error 1
make[5]: Leaving directory
`/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/fate/ApacheJServ-1.1.2/src/java/org/apache'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/fate/ApacheJServ-1.1.2/src/java/org'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fate/ApacheJServ-1.1.2/src/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fate/ApacheJServ-1.1.2/src'
make: *** [all-recursive] Error 1
root@brazil:~/ApacheJServ-1.1.2# uname -a
Linux brazil 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i686 unknown

Anyone got a clue ?

--
Cordialement,
Fabrice Terrasson. fte@wanadoo-sp.net


installation of tomcat on debian failed

Posted by Fabrice Terrasson <ft...@wanadoo-sp.net>.
I used this configure settings:
./configure --with-apxs=/usr/bin/apxs --prefix=/usr/local/jserv
--with-jdk-home=/usr/lo --with-JSDK=/usr/local/jakarta-tomcat-3.2.3/lib

no errors, but when I do make:

/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv/JServConnection.java:85:
org.apache.jserv.JServConnection should be declared abstract; it does
not define flushBuffer() in org.apache.jserv.JServConnection
public class JServConnection
       ^
/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv/JServContext.java:90:
org.apache.jserv.JServContext should be declared abstract; it does not
define getAttributeNames() in org.apache.jserv.JServContext
class JServContext implements ServletConfig, ServletContext,
JServSendError, JServLogChannels {
^
/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv/JServSession.java:74:
org.apache.jserv.JServSession should be declared abstract; it does not
define getAttribute(java.lang.String) in org.apache.jserv.JServSession
public class JServSession implements HttpSession, JServLogChannels,
Serializable {
       ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
3 errors
make[5]: *** [JServ.class] Error 1
make[5]: Leaving directory
`/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/fate/ApacheJServ-1.1.2/src/java/org/apache'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/fate/ApacheJServ-1.1.2/src/java/org'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fate/ApacheJServ-1.1.2/src/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fate/ApacheJServ-1.1.2/src'
make: *** [all-recursive] Error 1
root@brazil:~/ApacheJServ-1.1.2# uname -a
Linux brazil 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i686 unknown

Anyone got a clue ?

-- 
Cordialement,
Fabrice Terrasson. fte@wanadoo-sp.net

Re: apache+mod_jk+tomcat virtual host sample setting

Posted by Jerry QU <jq...@baijia.com>.
I fixed the problem

thanks 

Jerry


----- Original Message ----- 
From: "Dmitri Colebatch" <di...@bigpond.net.au>
To: <to...@jakarta.apache.org>
Sent: Thursday, July 26, 2001 1:14 PM
Subject: Re: apache+mod_jk+tomcat virtual host sample setting


> Hi,
> 
> http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ is a wonderful
> place:
> 
> search for "httpd.conf server.xml virtual hosts example" and the sixth
> result is:
> 
> http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg24768.html
> 
> that should give you a start (o:
> 
> cheesr
> dim
> 
> On Thu, 26 Jul 2001, Jerry Qu wrote:
> 
> > Hi All,
> > 
> > is there any one has working sample(s) for setting apache+mod_jk+tomcat virtual host in httpd.conf and server.xml (if needed )
> > 
> > thanks
> > 
> > Jerry Qu
> > 
>