Re: multiuser tomcat environment

2004-01-05 Thread Dominique Batard
You may use Virtual Hosts: one student = one host. This way, each student
can have as many context as needed, one of them being the manager.

Dom
- Original Message -
From: Tsirkin Evgeny [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 11:38 PM
Subject: multiuser tomcat environment


 Hi all!
 I am new to this list but i hope that is the right one to
 ask the question.
 We are trying to set up a multiuser machine running Linux
 (currently RH7.3) and Tomcat in our college.
 The main perpose of the server - a programming course,the
 students should develope their projects on it.
 Students probably should be able to do the folowing:
 [1] deploy/redeply/reload their applications
 [2] they should NOT be able to do the same for the
  other students applications
 [3] they can't restart the server ,of course, since
  students don't have root access.
 So,using manager app is not appropriate - that way all the
 students will be able to manage all the application.
 Is there any other managers/suggestions that we can use?
 Thanks.

 Evgeny
 ---
 JCT.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Integrating Tomcat 4.1.29 with Apache 2

2003-11-14 Thread Dominique Batard
Hi

I've integrated JBoss 3.2.2 ( Tomcat 4.1.27) , with apache2 using jk2 and IP
socket.

How may I use UNIX sockets, as I don't find the jk2.properties file in the
JBoss embeded Tomcat ?

Dom

- Original Message -
From: Chong Yu Meng [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 14, 2003 3:53 AM
Subject: Re: Integrating Tomcat 4.1.29 with Apache 2


 David,

 I have a sample UNIX sockets configuration on this page
 (http://cymulacrum.net/tomcat/jk2man_channel_UNIX.html ). This page is
 actually linked from the page I mentioned to you earlier for the Apache
 2 and Tomcat integration with mod_jk2
 (http://cymulacrum.net/tomcat/jk2_compile.html)

 Regards,
 pascal chong



 Dennis McRitchie wrote:

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html
 
 
 
 -Original Message-
 From: Dave Morrow [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 13, 2003 1:19 PM
 To: 'Tomcat Users List'
 Subject: Integrating Tomcat 4.1.29 with Apache 2
 
 
 Hi all, well, as seen by my previous posting, I have finally gotten
 mod_jk2.so and jkjni.so installed.
 
 Does anyone have an idiots guide to getting Apache and Tomcat working
 together. A basic configuration is all I need.
 
 David Morrow
 Systems Technical Lead, IT Operations
 P: (519) 951-6079
 F: (519) 451-6615
 mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 
 ..poor planning on your part does not make an emergency on my
 part
 
  This message has originated from Autodata Solutions.  The
 attached material
 is the Confidential and Proprietary Information of Autodata
 Solutions. This
 email and any files transmitted with it are confidential and
 intended solely
 for the use of the individual or entity to whom they are addressed. If
you
 have received this email in error please delete this message and
 notify the
 Autodata system administrator at  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: V Host

2003-11-05 Thread Dominique Batard
Put your webapp anywhere, ie C:\anywhere

+--anywhere
   +--images
   +--WEB-INF
  +--classes
 +--listeners
 +--filters
 +--compressionFilters
 +--util

Server.xml :
appBase must be the absolute path

Host name=pjkt debug=0 appBase=C:\anywhere 
   Context path=/PruebaJavier reloadable=true docBase=. /
/Host

http://pjkt:8080/PruebaJavier

Dom

- Original Message -
From: Javier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 8:49 PM
Subject: V Host



 Hi

 I want to know if it's possible to configure a virtual host placed outside
 webapps... and how could I make it... (a simple sample will be helpfull)


 Thanks in advance


 jl




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re[2]: Virtual host and app

2003-11-03 Thread Dominique Batard
Hi

You may have an other instance of Tomcat running.

You really have troubles with Host and Context
(You should avoid spaces in your directory names)

If you need a PruebaJavier virtual Host and a default Context (/) :
Host name=PruebaJavier debug=0 appBase=C:\Program Files\Apache
Software Foundation\Tomcat 5.0\webapps\PruebaJavier unpackWARs=true
autoDeploy=true
   Context path= reloadable=true docBase=. /
/Host

the url will be http://PruebaJavier:8080/

Having deployed your app under webapps (you shouldn't with virtual hosts) ,
you can also access it within localhost :
http://localhost:8080/PruebaJavier/ (this is possible only because you've
used the webapps absolute URL in appBase)

If you want a pjkt virtual Host and a PruebaJavier Context :

Host name=pjkt debug=0 appBase=C:\Program Files\Apache Software
Foundation\Tomcat 5.0\webapps\PruebaJavier unpackWARs=true
autoDeploy=true
   Context path=/PruebaJavier reloadable=true docBase=. /
/Host

(Note the / in path)

the url will be http://pjkt:8080/PruebaJavier/

Dom

- Original Message -
From: Javier [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, November 02, 2003 10:27 PM
Subject: Re[2]: Virtual host and app


 On 02/11/2003 at 13:34 Sean Dockery wrote:

 You need a Context node in your Host for the default context.
 


 Thanks for your reply.

 I've tried to get a Context setting in many ways but I give up...

 If I've my application in

 webapps
 +--PruebaJavier
+--images
+--WEB-INF
   +--classes
  +--listeners
  +--filters
  +--compressionFilters
  +--util

 How could I get a well configured context ?

 I made

 Context path=PruebaJavier docBase=C:\Program Files\Apache Software
 Foundation\Tomcat 5.0\webapps\PruebaJavier\ debug=0 /

 but I really don't understand difference between path and docBase (after
 read documentation). Also, I want to know wich is the equivalent setting
 for Apache DirectoryIndex.

 And as last problem...I receive the following error:

 --
 Error initializing endpoint
 java.net.BindException: Address already in use: JVM_Bind:8080
 at

org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
 :286)
 at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:184)
 at

org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:13
 26)
 at

org.apache.catalina.core.StandardService.initialize(StandardService.java:633
 )
 at

org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2413)

 at org.apache.catalina.startup.Catalina.load(Catalina.java:531)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:552)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396)
 02-nov-2003 22:21:05 org.apache.catalina.startup.Catalina load
 GRAVE: Catalina.start
 LifecycleException:  Protocol handler initialization failed:
 java.net.BindException: Address already in use: JVM_Bind:8080
 at

org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:13
 28)
 at

org.apache.catalina.core.StandardService.initialize(StandardService.java:633
 )
 at

org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2413)

 at org.apache.catalina.startup.Catalina.load(Catalina.java:531)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:552)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:396)

 --

 And I don't know why it's produced...

 Any help will be welcome

 jl




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Apache Tomcat 5.0.9 Beta released

2003-08-27 Thread Dominique Batard
Did anything changed in the docBase Context attribute within virtual Hosts ?

I can't have an absolute path in the docBase attribute, either within
server.xml or within a context file

I'm getting :
INFO: Processing Context configuration file URL
file:C:\jakarta-tomcat-5.0.9\conf\Catalina\edevis\foo.xml
27 août 2003 16:17:08 org.apache.commons.digester.Digester startElement
GRAVE: Begin event threw exception
java.io.IOException: Syntaxe du nom de fichier, de répertoire ou de volume
incorrecte
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:352)
at java.io.File.getCanonicalPath(File.java:513)
at java.io.File.getCanonicalFile(File.java:534)
at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
...

Dom
- Original Message -
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 5:30 AM
Subject: Re: [ANN] Apache Tomcat 5.0.9 Beta released


 This part of Tomcat didn't really change all that much from 4.1.x.  There
 are no changes on the Apache side (i.e. you can use the same binaries for
 mod_jk(2) that you use for 4.1.x).  Warp (aka mod_webapp) is not
supported.
 On the Tomcat side, only the CoyoteConnector is supported.  Other than
that,
 the server.xml config is a bit nicer, but it will also support your old
 4.1.x configuration.  Your jk2.properties for 4.1.x should also work with
 Tomcat 5.

 Johan Wasserman - CPX Mngd Services [EMAIL PROTECTED]
wrote
 in message

news:[EMAIL PROTECTED]
.
 HOT!

 Any spec's available on setting up and running under Apache? Did it
 really change all that much?

 Thanks from a loyal supporter.




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.7 Host default Context docBase

2003-08-23 Thread Dominique Batard
Hi John

Yes, I've tried C:\edevis : same trouble.

I've finaly found that the docBase and workDir paths of the Context (not the
appBase) MUST be relative to the $CATALINA_HOME  path (../edevis), within
server.xml, or using the Context files.

I don't have this trouble with 4.1.x

I've just downloaded 5.0.9, I'll give it a try ..

Dom
- Original Message -
From: John Corrigan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 7:07 AM
Subject: RE: Tomcat 5.0.7 Host default Context docBase


 Looks like it is complaining about the path.  Have you tried using
C:\edevis
 instead of C:/edevis for your appBase and docBase?

 -Original Message-
 From: Dominique Batard [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 20, 2003 8:45 AM
 To: Tomcat Users List
 Subject: Tomcat 5.0.7 Host default Context docBase


 Hi

 Trying to run a Tomcat 4.1.24 web app using Tomcat 5.0.7.

 Host and context parameters :

 Host name=edevis debug=0 appBase=c:/edevis unpackWARs=true
 autoDeploy=true 
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs prefix=edevis_access_log.suffix=.txt
 pattern=common resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=edevis_log. suffix=.txt timestamp=true/
Context path= docBase=c:/edevis reloadable=true
 workDir=c:/edevis/work/org/apache/jsp/
 /Host

 Whatever I put in this virtual host default context docBase (c:/edevis, or
 .) , when I start tomcat, I get :

 20 août 2003 17:28:30 org.apache.commons.digester.Digester startElement
 GRAVE: Begin event threw exception
 java.io.IOException: Syntaxe du nom de fichier, de répertoire ou de volume
 incorrecte
 at java.io.WinNTFileSystem.canonicalize0(Native Method)
 at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:352)
 at java.io.File.getCanonicalPath(File.java:513)
 at java.io.File.getCanonicalFile(File.java:534)
 at
org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137)
 at org.apache.commons.digester.Rule.begin(Rule.java:200)
 at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
 at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
 at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
 Source)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
 wn Source)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(Unknown Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:393)

 and tomcat doesn't want to start

 If i suppress Context path= docBase=c:/edevis . , I don't have
any
 error, but the web app doesn't run.

 The jakarta docs don't show any difference about virtual hosts and default
 contexts between 4.1.x and 5.0.x

 Dom




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.7 Host default Context docBase

2003-08-22 Thread Dominique Batard
Trying 5.0.9, same trouble.

I must correct my last message :

Whatever I use in the docBase and workDir properties of Context in Host
within server.xml (absolute, relative to appBase or to $CATALINA_HOME, using
/ or \), I get the IOException.

But; suppressing the Context tag in Host within server.xml, and using a
context file (conf/Catalina/edevis/foo.xml) the docBase path cannot be
absolute, it must be relative to the appBase property of Host within
server.xml, and workDir cannot be absolute, it must be relative to
$CATALINA_HOME !

Here is my foo.xml :

!--
Context configuration file for the edevis Web App
--
Context path= docBase=. reloadable=true debug=0 privileged=true
workDir=../edevis/work
Logger className=org.apache.catalina.logger.FileLogger
prefix=edevis_default_log. suffix=.txt
timestamp=true/
/Context

Dom
- Original Message -
From: John Corrigan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 7:07 AM
Subject: RE: Tomcat 5.0.7 Host default Context docBase


 Looks like it is complaining about the path.  Have you tried using
C:\edevis
 instead of C:/edevis for your appBase and docBase?

 -Original Message-
 From: Dominique Batard [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 20, 2003 8:45 AM
 To: Tomcat Users List
 Subject: Tomcat 5.0.7 Host default Context docBase


 Hi

 Trying to run a Tomcat 4.1.24 web app using Tomcat 5.0.7.

 Host and context parameters :

 Host name=edevis debug=0 appBase=c:/edevis unpackWARs=true
 autoDeploy=true 
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs prefix=edevis_access_log.suffix=.txt
 pattern=common resolveHosts=false/
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=edevis_log. suffix=.txt timestamp=true/
Context path= docBase=c:/edevis reloadable=true
 workDir=c:/edevis/work/org/apache/jsp/
 /Host

 Whatever I put in this virtual host default context docBase (c:/edevis, or
 .) , when I start tomcat, I get :

 20 août 2003 17:28:30 org.apache.commons.digester.Digester startElement
 GRAVE: Begin event threw exception
 java.io.IOException: Syntaxe du nom de fichier, de répertoire ou de volume
 incorrecte
 at java.io.WinNTFileSystem.canonicalize0(Native Method)
 at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:352)
 at java.io.File.getCanonicalPath(File.java:513)
 at java.io.File.getCanonicalFile(File.java:534)
 at
org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137)
 at org.apache.commons.digester.Rule.begin(Rule.java:200)
 at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
 at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
 at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
 Source)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
 wn Source)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(Unknown Source)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:393)

 and tomcat doesn't want to start

 If i suppress Context path= docBase=c:/edevis . , I don't have
any
 error, but the web app doesn't run.

 The jakarta docs don't show any difference about virtual hosts and default
 contexts between 4.1.x and 5.0.x

 Dom




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.7 Host default Context docBase

2003-08-22 Thread Dominique Batard
I know that appBase is a Host property, and that docBase is a Context
property, thanxs ( you rewrites the begining of my message :  Whatever I
use in the docBase and workDir properties of Context in Host ...
(maybe should I use attribute instead of property?)

Anyway, I should be able to use an absolute path in each of these Context
attributes, as it is documented.

Dom

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 22, 2003 3:22 PM
Subject: RE: Tomcat 5.0.7 Host default Context docBase



 Howdy,

 Whatever I use in the docBase and workDir properties of Context in Host

 Host and Context support different attributes.  Host doesn't have a
 docBase, it has an appBase (by default $CATALINA_HOME/webapps).  workDir
 from any context overrides that of the Host for that context.

 Yoav Shapira



 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.0.7 Host default Context docBase

2003-08-20 Thread Dominique Batard
Hi

Trying to run a Tomcat 4.1.24 web app using Tomcat 5.0.7. 

Host and context parameters :

Host name=edevis debug=0 appBase=c:/edevis unpackWARs=true autoDeploy=true 
   Valve className=org.apache.catalina.valves.AccessLogValve directory=logs 
prefix=edevis_access_log.suffix=.txt pattern=common resolveHosts=false/
   Logger className=org.apache.catalina.logger.FileLogger directory=logs 
prefix=edevis_log. suffix=.txt timestamp=true/
   Context path= docBase=c:/edevis reloadable=true 
workDir=c:/edevis/work/org/apache/jsp/
/Host

Whatever I put in this virtual host default context docBase (c:/edevis, or .) , when I 
start tomcat, I get :

20 août 2003 17:28:30 org.apache.commons.digester.Digester startElement
GRAVE: Begin event threw exception
java.io.IOException: Syntaxe du nom de fichier, de répertoire ou de volume incorrecte
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:352)
at java.io.File.getCanonicalPath(File.java:513)
at java.io.File.getCanonicalFile(File.java:534)
at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:512)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:393)

and tomcat doesn't want to start

If i suppress Context path= docBase=c:/edevis . , I don't have any error, but 
the web app doesn't run.

The jakarta docs don't show any difference about virtual hosts and default contexts 
between 4.1.x and 5.0.x

Dom



Re: How to debug and run a JSP file or Servlet with JBuilder 4 ?

2001-05-28 Thread Dominique BATARD

Using JBuilder4 Foundation, I've integrated JBoss-Tomcat. I can now also
debug JSP (and EJB of course)

see http://www.jboss.org/documentation/HTML/ch11.html#howtotomcat

Dom
- Original Message -
From: Edwin Martin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 28, 2001 8:41 AM
Subject: Re: How to debug and run a JSP file or Servlet with JBuilder 4 ?


 Huynh Tin wrote:

 Anyone help me , let me know how could i debug or run JSP or Servlet with
 this version of JBuilder4 and Tomcat,

 Looking at the feature matrix, it would only work with JBuilder
Enterprise.

 http://www.borland.com/jbuilder/jb4/feamatrix/

 Bye,
 Edwin Martin.

 --
 Surf Edwin Martin's brainwaves: http://www.bitstorm.org/edwin/






Re: How to debug and run a JSP file or Servlet with JBuilder 4 ?

2001-05-28 Thread Dominique BATARD

Sorry, this one is the good one :
http://www.jboss.org/documentation/HTML/ch11s99.html

Dom

- Original Message -
From: Huynh Tin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 28, 2001 5:36 AM
Subject: How to debug and run a JSP file or Servlet with JBuilder 4 ?


 Hi all,
 I have Jbuilder4 Foundation version, it doesn't include Tomcat ..,
 But i had Jakarta-Tomcat-3.2.1

 Anyone help me , let me know how could i debug or run JSP or Servlet with
 this version of JBuilder4 and Tomcat,
 Or let me know any Document about this problem, how could i config TomCat
 with this version of JBuilder4.
 Thank you
 Best regards !

 Huynh Tin







Re: gzip

2001-03-08 Thread Dominique BATARD
Title: gzip




I tried it, and it was working . But I noticed an 
apache slow down

Dom


  - Original Message - 
  From: 
  Parayali, Jayesh 1065 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, March 08, 2001 3:59 
  AM
  Subject: gzip
  
  Anybody had any luck with gzip in 
  JSP? 
  Thanks, Jayesh 


Re: Pb running Tomcat with Apache on a Linux Server

2001-03-02 Thread Dominique BATARD


Recompile apache avec --enable-module=so
Recompile ventuellement aussi mod_jk

Dom

- Original Message -
From: "BENARD Christophe, DDE 34/SG" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 02, 2001 10:08 AM
Subject: RE: Pb running Tomcat with Apache on a Linux Server


Dsol, je me suis un peu emmel les pinceaux...

Il faut lire :

J'ai essay de mettre en oeuvre la solution que tu proposes... sans succs.
J'ai tent d'abord de mettre le chemin complet d'accs au fichier
mod_jk.so (/usr/Apache-1.3.19/libexec/mod_jk.so), puis j'ai dplac
mod_jk.so dans /usr/libexec et modifi la ligne LoadModule
(/usr/libexec/mod_jk.so) en consquence, sans plus de succs.

Christophe

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: *** Referring to a file or a directory from inside a jsp/servlet or bean ???? ***

2001-02-20 Thread Dominique BATARD


ServletContext.getResourceAsStream() is perfect for reading a file. But what
about writing a file ?

Dom


- Original Message -
From: "Fernando Padilla" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "Jonathan Asbell" [EMAIL PROTECTED]
Sent: Tuesday, February 20, 2001 4:34 PM
Subject: Re: *** Referring to a file or a directory from inside a
jsp/servlet or bean  ***




 It all depends on what your code is.  I'm assuming you're just using new
 File( relpath ), which should be relative to the user.dir system property,
 which should be Tomcat bin I suppose ( this is all educated guessing i
 tell you. ).

 Does knowing that help you? Your relative path should then be
 "../webapps/myapp/etc".


 Instead of getting to a file as such, you really should be using some of
 the file/resource accessors from ServletContext, so that it will be
 relative to the context root so that it's portable..  Look at
 ServletContext.getResource() and ServletContext.getResourceAsStream().

 fern






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Tomcat 3.2.1 kHTTPd

2001-01-25 Thread Dominique BATARD



Hi

Is it possible to run Tomcat 3.2.1 with kHTTPd 
included in the Linux 2.4 kernel ?

Dom



Re: mod_jk.so problem on Linux

2000-11-30 Thread Dominique BATARD

You must compile mod_jk with the right apxs.

Dom
- Original Message -
From: "Phillip T. Gerringer" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 30, 2000 2:20 PM
Subject: Re: mod_jk.so problem on Linux


 I know this is going to help very little but...  Apparently when you get
 the garbled message, it means the module was compiled with different
 options than the calling module.  I know that is basic but that is where I
 would start.  Example:  if your Apache has SSL enabled, then you must
 compile mod_jk with the SSL module.

 Hope that helps...

 On Thu, 30 Nov 2000, Graham Freeman wrote:

  I am having trouble getting mod_jk.so working in Apache 1.3 on my Linux
box.
  If I include the instruction
 
   LoadModulejk_module  libexec/mod_jk.so
 
  in my httpd.conf file, Apache reports
 
 # ./bin/apachectl configtest
 Syntax error on line 991 of /usr/local/apache/conf/httpd.conf:
 API module structure `jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled - perhaps this is not an
Apache module DSO?
 
  I have tried recompiling the library from the source, and I get a
different
  file length for mod_jk.so (88757) but no change in the behaviour.
  I also tried using mod_jk.conf-auto, but it contains the same LoadModule
  instruction and gives the same error.
 
  Tomcat 3.2-b8 is otherwise working fine stand-alone.
 
Graham
 







Re: Apache + Tomcat

2000-11-27 Thread Dominique BATARD

In httpd.conf :

IfModule mod_dir.c
DirectoryIndex index.html index.jsp
/IfModule

Dom

- Original Message -
From: "carnell" [EMAIL PROTECTED]
To: "Tomcat-user" [EMAIL PROTECTED]
Sent: Monday, November 27, 2000 5:09 PM
Subject: Apache + Tomcat


 Does anyone know how to make Apache/Tomcat automatically load up index.jsp
 in a directory,
 instead of producing a directory listing? (port 80). I would like to
server
 a JSP immediately, without a index.html.

 Craig.








Re: Apache + Tomcat + virtual hosts - worker not found

2000-11-21 Thread Dominique BATARD

I've got the same problem with my mandrake 7.2 box

Recompile mod_jk from sources

Dom

- Original Message - 
From: "Norton Lam" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 21, 2000 10:27 AM
Subject: Apache + Tomcat + virtual hosts - worker not found


 Hi,
 
 I'm having a strange problem and can't seem to find any solution in
 the FAQ or this mailing list archive.
 
 I'm running RedHat 6.2, Apache 1.3.14, and Tomcat 3.1.  I installed
 mod_jk in Apache and appear to have all the server.xml and
 workers.properties files set up correctly.  Both Apache and Tomcat
 work individually, but not together.
 
 I'm able to hit pages on intranet.domain.com (apache) and
 intranet.domain.com:8087 (tomcat) and get servlets and JSPs
 to work on the tomcat server.  But I get a 500 error returned from
 the apache server when I try to access a JSP page.
 
 In the jk.log, I get the following error:
 
 [jk_uri_worker_map.c (255)]: Into
 jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=intranet was
 added
 [jk_uri_worker_map.c (266)]: Into
 jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=intranet
 was added
 [jk_uri_worker_map.c (295)]: Into
 jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules
 [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open,
 done
 [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker,
 done without a match
 [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker,
 done without a match
 [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker,
 done without a match
 [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker,
 Found a match intranet
 [jk_worker.c (123)]: Into wc_get_worker_for_name intranet
 [jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker
 
 
 Note at the top of ths snippet, the rules were added ok.
 
 Here are snippets of my config files:
 
 httpd.conf:
 
 VirtualHost IP.ad.dr.ess
 DocumentRoot /home/www/intranet/htdocs
 ServerName intranet.domain.com
 ErrorLog /home/www/intranet/logs/error_log
 CustomLog /home/www/intranet/logs/access_log common
 IfModule mod_jk.c
 JkWorkersFile /usr/local/tomcat/conf/workers-intranet.properties
 JkLogFile  /home/www/intranet/logs/jk.log
 JkLogLevel warn
 JkMount /*.jsp intranet
 JkMount /servlet/* intranet
 /IfModule
 /VirtualHost
 
 workers-intranet.properties:
 
 #
 # workers.tomcat_home should point to the location where you
 # installed tomcat. This is where you have your conf, webapps and lib
 # directories.
 #
 workers.tomcat_home=/usr/local/tomcat
 
 #
 # workers.java_home should point to your Java installation. Normally
 # you should have a bin and lib directories beneath it.
 #
 workers.java_home=/usr/local/java
 
 #
 # You should configure your environment slash... ps=\ on NT and / on
 UNIX
 # and maybe something different elsewhere.
 #
 # ps=\
 ps=/
 
 #
 #-- ADVANCED MODE 
 #-
 #
 
 #
 #-- DEFAULT worker list --
 #-
 #
 #
 # The workers that your plugins should create and work with
 #
 worker.list=intranet
 
 #
 #-- DEFAULT ajp12 WORKER DEFINITION --
 #-
 #
 
 #
 # Defining a worker named www and of type ajp12
 # Note that the name and the type do not have to match.
 #
 worker.intranet.port=8007
 worker.intranet.host=localhost
 worker.intranet.type=ajp12
 #
 # Specifies the load balance factor when used with
 # a load balancing worker.
 # Note:
 #   lbfactor must be  0
 #   Low lbfactor means less work done by the worker.
 # worker.intranet.lbfactor=1
 
 server-intranet.xml:
 
 Connector
 className="org.apache.tomcat.service.SimpleTcpConnector"
 Parameter name="handler"
 value="org.apache.tomcat.service.http.Http
 ConnectionHandler"/
 Parameter name="port" value="8087"/
 /Connector
 
 Connector
 className="org.apache.tomcat.service.SimpleTcpConnector"
 Parameter name="handler"
 value="org.apache.tomcat.service.connector
 .Ajp12ConnectionHandler"/
 Parameter name="port" value="8007"/
 /Connector
 
 
 I first start tomcat with 'tomcat.sh start -f
 /usr/local/tomcat/conf/server-intranet-xml', then start apache.
 
 Everything looks hunky doory, but the connection between the two
 isn't happening.
 
 Any help anyone can give me 

Re: Tomcat and UltraDev

2000-11-21 Thread Dominique BATARD



UltraDev jsp is NOT jsp 1.1, only 1.0 
!
If you're using ODBC-JDBC, go to their site and 
download the patch.


Dom

  - Original Message - 
  From: 
  Andrea Bertone 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, November 21, 2000 5:03 
  AM
  Subject: Tomcat and UltraDev
  
  Is anyone out there using 
  UltraDev to develop jsp pages. I am trying to set the run-time connection to 
  no avail.. I have Tomcat installed on my Linux server and have a database 
  built with MySQL.
  
  Please, can someone help... I 
  wanna cry.
  
  
  Andrea Bertone
  www.bertoneadvertising.com
  ph. 562.404.7300
  fax 562.623.0027
  


Re: Tomcat and UltraDev

2000-11-21 Thread Dominique BATARD



Hi Andrea

It's at
http://www.macromedia.com/support/ultradev/ts/documents/jsp_update.htm

But if you're using MySQL, you don't use JDBC-ODBC 
...
Do you have theMySQL jdbc driver in 
yourclasspath ?

What is your problem ?

Dom

  - Original Message - 
  From: 
  Andrea Bertone 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, November 21, 2000 5:27 
  PM
  Subject: RE: Tomcat and UltraDev
  
  Which patch... 
  I did download a few... can you explain further? please 
:o)
  
-Original Message-From: Dominique BATARD 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, November 21, 2000 2:24 
AMTo: [EMAIL PROTECTED]; 
[EMAIL PROTECTED]Subject: 
Re: Tomcat and UltraDev
UltraDev jsp is NOT jsp 1.1, only 1.0 
!
If you're using ODBC-JDBC, go to their site and 
download the patch.


Dom

  - Original Message - 
  From: 
  Andrea Bertone 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, November 21, 2000 5:03 
  AM
  Subject: Tomcat and UltraDev
  
  Is anyone out there using 
  UltraDev to develop jsp pages. I am trying to set the run-time connection 
  to no avail.. I have Tomcat installed on my Linux server and have a 
  database built with MySQL.
  
  Please, can someone 
  help... I wanna cry.
  
  
  Andrea Bertone
  www.bertoneadvertising.com
  ph. 562.404.7300
  fax 562.623.0027
  


Re: Help On Running Tomcat????

2000-11-16 Thread Dominique BATARD

Just look at http://community.borland.com/article/0,1410,22057,00.html

Dom

- Original Message -
From: "Mick Sullivan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 16, 2000 1:38 PM
Subject: Help On Running Tomcat


 Hi
 Im doing a project using JSP.
 I have installed Jbuilder and I am doing the HTML pages using JBuilder.
 I am going to convert the HTML pages to JSP pages once I have connected
 TOMCAT to the HTML pages. I have installed Tomcat and all that happens
when
 I run (bin\startup) it is that a new window opens up with 3 folders,
 classes, packages and trustlib. Anyone PLEASE tell me where I go from here
 as I am totally lost.
 Thanks in advance, Mick
 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

 Share information about yourself, create your own public profile at
 http://profiles.msn.com.






Re: servlets problem is still there

2000-11-14 Thread Dominique BATARD



Did you try http://localhost:8004/servlet/hi 
?

Dom

  - Original Message - 
  From: 
  Rasika 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, November 14, 2000 7:41 
  AM
  Subject: servlets problem is still 
  there
  
  
  Hello,I have installed TOMCAT with Apache. I 
  followed your user guide and then tomcat faqs to install tomcat.Now I am 
  able to run .jsp files using both tomcat as well as Apache. I can also run 
  sample servlet provided alongwith examples. But I cannot run my own 
  servlet.I have stored itin webapps/root/web-inf/classes directory. I 
  still don't understand which files need to be configured in order to run my 
  servlets?I have added following block to web.xml 
  fileservlet 
  servlet-namehi/servlet-name 
  servlet-classhi/servlet-class 
  /servlet
  
   
  servlet-mapping 
  servlet-namehi/servlet-name 
  url-pattern/hi/url-pattern 
  /servlet-mapping
  where "hi" is the name of my servlet file. 
  But when I try to run it through browser giving command http://localhost:8040//hi where 8040 is 
  apache port(which I have changed ) it gives me 404 error.Can you 
  please help me in configuring files so as to run my own 
  servlets?Thanks,Rasikaj


Re: Got internal servlet error with tomcat's example

2000-11-09 Thread Dominique BATARD

It's ajp13 , not apj13

Dom
- Original Message -
From: "Dave" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 8:11 PM
Subject: Got internal servlet error with tomcat's example


Hi all,

I was testing my tomcat installation using examples from the package,
I had no problem in running the examples using the set-up from
mod_jk.conf-auto, which use "Alias" to set-up "/examples" in my
default web root.

However, when I setup another vertualhost, I got internal servlet
error.  I was using the same "examples", it shouldn't be a programming
error.

Here is my setup of VH

httpd.conf---

VirtualHost 192.168.0.5
ServerName jsp
DocumentRoot "/www/examples"
JkMount /*.jsp apj13
JkMount /servlet/* apj13

/VirtualHost

server.xml ---

Host "jsp"
Context path=""
docBase="/www/examples" debug="0"
/Host

Here is my output from the browser

Error: 500
Location: /jsp/num/numguess.jsp
Internal Servlet Error:

javax.servlet.ServletException: num/NumberGuessBean
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:390)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:263)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
6)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError: num/NumberGuessBean
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:
116)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:154)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
at org.apache.tomcat.core.Handler.service(Handler.java:263)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:78
6)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:732)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)



Any idea? CLASSPATH? TOMCAT_HOME?

Thanks
Dave





workers.properties virtual hosts

2000-11-07 Thread Dominique BATARD

Tomcat 3.2b6, Apache 1.3.14, NT 4

I'm running 3 virtual hosts and want to have each one his own JVM

In server.xml :
Connector className... Parameter name="port" value="8110"/ ...
Connector className... Parameter name="port" value="8111"/ ...
Connector className... Parameter name="port" value="8112"/ ...
Connector className... Parameter name="port" value="8007"/...
Host name="host1" Context path="" ..
Host name="host2" Context path="" ..
Host name="host2" Context path="" ..

In workers.properties :
worker.list=ajp12, ajp13, ajp-8110, ajp-8111, ajp-8112

worker.ajp-8110.port=8110
worker.ajp-8110.host=localhost
worker.ajp-8110.type=ajp12
worker.ajp-8110.lbfactor=1

worker.ajp-8111.host=localhost
...
worker.ajp-8112.host=localhost
...
worker.ajp-8007.host=localhost

In httpd.conf :
NameVirtualHost 140.228.25.19
VirtualHost 140.228.25.19:80
  ServerName host1
  
  JkMount /*.jsp ajp-8110
  JkMount /servlet/* ajp-8110

  Idem for host2  ajp-8111 and host3 ... ajp8112

My question is :
1 - the worker's host property must be localhost or the vhost server name ?
 If I use the vhost server name, apache complains and doesn't start

2 - I don't see any trace of ajp-8110, ajp-8111, ajp-8112 in
mod_jk.conf-auto

3 - In NT task manager, I see only 1 JVM working

4 - In jvm.stderr, I see the ContextManager: Adding context for my vhosts
thePoolTcpConnector : Starting of  my Ajp12ConnectionHandler for my 4
ports,
but after stopping tomcat, I don't seeany stopping of the 4 ports, and I
don't see the ContextManager: Removing context of the third vhost (host3).

5 - In workers.properties :
  worker.loadbalancer.type=lb
  worker.loadbalancer.balanced_workers=ajp12, ajp13
  The doc says the load balanced workers must NOT appear in the
worker.list , but they do appear here !

Any idea ?

Dominique




Re: jsp mod_jk problem

2000-11-06 Thread Dominique BATARD

Thank you for your answer, I'll try with ajp12

By the way, do you have any idea on how to setup tomcat and apache to be
able to serve several NAMED virtual hosts, each one having his own JVM, and
to be able to restart any vhost tomcat and jvm without having to restart all
the vhosts AND apache.

The tomcat doc is rather scarse on the subject.

Dominique

- Original Message -
From: "GOMEZ Henri" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 06, 2000 2:47 PM
Subject: RE: jsp  mod_jk problem


 I tried to switch to mod_jk and ajp13 and got a strange result :
 one jsp containing only FrameSets and Frames : some of the src
 files, which
 are jsp, don't show in the right frame, and particularely one jsp shows
 twice instead of once.

 Did you use .forward ?
 It's a known problem with ajp13 and RequestDispatcher

 Going back to mod_jserv and ajp12, this jsp is ok.

 I also reverted to ajp12 but with mod_jk.

 Is it a beta problem ?

 YES ;-)





Re: jk_nt_service.exe

2000-11-03 Thread Dominique BATARD

An error in tomcat.conf or tomcat-apache.conf or server.xml

- Original Message - 
From: "Jaco Roux" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 03, 2000 2:33 PM
Subject: jk_nt_service.exe


I get this error when trying to start tomcat as a service using
jk_nt_service.exe:
 
Cloud you please respond to asap.
 
Error 2140:An internal Windows NT error occurred