Bugs in deploy task?

2002-07-14 Thread Sam Ewing

Finally go the deploy ant task to work- cleared up a
lot of my misunderstanding. I found two bugs (or are
they mistakes on my part??) though:

1. The only path accepted by the ant deploy task is a
URL type (see sample below)


http://localhost/myApp.war"/>
  
   
2. The undeploy task removes the war file all right,
but the server.xml entry that is added is not removed.



--- Sam Ewing <[EMAIL PROTECTED]> wrote:
> I remember seeing a bug sometime back on deployed
> applications not persisting across Tomcat restarts.
> Has this been fixed?
> 
> The deployed app is copied into CATALINA_HOME/work
> which is not loaded up by Tomcat- so how does Tomcat
> find the context again? Is server.xml modified?
> 
> I haven't been able to get my deploy ant task to
> work
> so can't try it out (keep getting 
> java.net.UnknownHostException for deploy- all other
> tasks work fine :(- but that is another issue.)
> 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Deployed applications persisting across Tomcat restarts

2002-07-14 Thread Sam Ewing

I remember seeing a bug sometime back on deployed
applications not persisting across Tomcat restarts.
Has this been fixed?

The deployed app is copied into CATALINA_HOME/work
which is not loaded up by Tomcat- so how does Tomcat
find the context again? Is server.xml modified?

I haven't been able to get my deploy ant task to work
so can't try it out (keep getting 
java.net.UnknownHostException for deploy- all other
tasks work fine :(- but that is another issue.)

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [PATCH] ant download, build.xml, build.properties.sample and BUILDING.txt

2002-07-14 Thread Andrew Conrad

I ran into the same problem  (NullPointerException on xml to html
transformation)  The Java XML Pack (summer 02) contains Xalan 2.2 or 2.3
(don't remember) but that version of Xalan has a known transformation
bug. Download Xalan 2.4.D1 from http://xml.apache.org/xalan-j/index.html
and drop the xalan.jar from that location into your ant directory.

- Andrew

-Original Message-
From: Fredrik Viklund [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 14, 2002 6:40 PM
To: [EMAIL PROTECTED]
Subject: [PATCH] ant download, build.xml, build.properties.sample and
BUILDING.txt


I recently started out trying to build Tomcat 4.1 from sources and found
that the process was quite painful. While doing my homework, I found a
few bulid problems and that BUILDING.txt, build.xml and
build.properties.sample could be improved on a few points:

(Patches are sent separately. Sorry if this is a bit long.)



(1) I can't get building with JDK 1.3.1 to work. It quits on error:
[style] Processing
C:\jakarta-test\jakarta-tomcat-4.1.7-src\webapps\tomcat-
docs\config\globalresources.xml to C:\jakarta-test\jakarta-tomcat-4.1.7-

src\webap ps\build\tomcat-docs\config\globalresources.html

[style] : Fatal Error! java.lang.NullPointerException Cause:
java.lang.NullPointerException

[style] Failed to process C:\jakarta-test\jakarta-tomcat-4.1.7-
src\webapps\tomcat-docs\config\globalresources.xml

BUILD FAILED
file:C:/jakarta-test/jakarta-tomcat-4.1.7-src/webapps/tomcat-docs/build.
xml:112:

Fatal error during transformation



(2) I can't build with J2SDK 1.4.0 without JNDI, LDAP, JDBC Optional API
and
JSSE.

The only reason I include these problems here is that I suspect that
they are caused by me not knowing how to set these things up. I have
read the docs and tried hard and I guess that if I can't get it working,
the chances are that other people can't either. If there are any
"secret" building tricks, they should be documented in the BUILDING.txt,
but obviously, I can't do it... (If the tricks aren't secret but
obvious, they should be documented anyway as
"gotchas".)



(3) Patches to make "ant download" work

With the changes below "ant download dist" works on my system. (There
are still errors warnings from javadoc, but that might be normal, I
can't tell...)



build.xml
=
* Changed default value for servlet.home to so it corresponds with
  build.properties.sample

* In the target "download"
  - Gave it a description so it shows up on "ant -projecthelp"
  - ant dist breaks for me when commons-digester is the downloaded
version 1.2.
Version 1.1.1 and nightly works, so I changed commons-digester to
use cvs
for download. Move it below commons-logging as it is needed for
building.
  - Copying the docs for servletapi after cvsbuild makes it work on
download.
  - Decommented tyrex download
  - Added a new method target "downloadcvs" to download with CVS
whithout building.
  - Download the current source versions of Jakarta-Tomcat-Connectors
and Jasper
using downloadcvs.


build.properties.sample
===
* Connectors and Jasper got ${.loc} properties to enable automatic
download

* Commons-Digester downloads via CVS (see above)

* Updated versions to
  - JAF 1.0.2  (from 1.0.1)
  - JSSE 1.0.3 (from 1.0.2)
  - JavaMail 1.3   (from 1.3)


BUILDING.txt

The text had become complex and very hard to read and needed a facelift.

I changed the order of some elements (e.g. if a section is optional, it
should say that in the beginning of that section) and removed paragraphs
that were repeated for each package. I also added some notes on using
"ant download" and made the bulleting style more consistent.

The versions for some of the downloaded packages have increased and were
updated to JAF 1.0.2, JSSE 1.0.3 and JavaMail 1.3.

Over all, I did not add much new content but I think the readability
increased quite a bit.



(4) Questions still without an answer (things that I didn't dare to
change.)

* Are there any good reasons why is JDK 1.3.1 recommended or is it the
remains
  from when it was also possible to build with 1.3.0?

* Is the JNDI package needed at all? It is said to be optional with JDK
1.3+,
  which is also the minimum version required for building.





--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 10796] - reg. Tomcat performance

2002-07-14 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10796

reg. Tomcat performance 





--- Additional Comments From [EMAIL PROTECTED]  2002-07-15 02:26 ---
Created an attachment (id=2352)
hi

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 10796] New: - reg. Tomcat performance

2002-07-14 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10796

reg. Tomcat performance 

   Summary: reg. Tomcat performance
   Product: Tomcat 4
   Version: 4.0 Beta 3
  Platform: Other
   URL: http://202.172.42.5:8080/test/jsp/GIS/Production/default
.jsp
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Installable Packages
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Here, we are using the tomcat 4.0.3 version to run our jsp application.
 It is taking 100% CPU performance. 
 We have tried it on windows and  unix also.
 And finally, we  have installed the tomcat4.0. 
 Even though no change in the performance. 
 we have found that java.exe is taking 100% performance. 
 Could you help us to solve this problem ?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FW: bad link

2002-07-14 Thread Pier Fumagalli

Not acked.

-- Forwarded Message
> From: "Chanaka Samarajeewa" <[EMAIL PROTECTED]>
> Date: Fri, 12 Jul 2002 18:45:32 -0600
> To: [EMAIL PROTECTED]
> Subject: bad link
> 
> 
> Hi, the source download links for tomcat 4.0.3, 4.beta are broken.
> 
> 
> 
> _
> Join the world’s largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
> 
> 
> 

-- End of Forwarded Message


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [PATCH] ant download, build.xml, build.properties.sample and BUILDING.txt

2002-07-14 Thread Fredrik Viklund

These are the patches to build.xml and build.properties.sample that I propose:

=

--- build.xml.orig Thu Jun 13 02:21:36 2002
+++ build.xml Mon Jul 15 00:22:28 2002
@@ -24,7 +24,7 @@
   
   
   
-  
+  
   
   
   
@@ -60,7 +60,7 @@

   
   
+   description="Build and deploy all components (default)">
 Target: Catalina - Deploy ...
 
 Target: Jasper - Deploy ...
@@ -445,8 +445,8 @@
 
   

-  
-
+  
 
   
   
@@ -455,17 +455,16 @@
   
   
 
-
-  
-  
-
-
+
 
+
+
+
 
   
   
@@ -480,25 +479,46 @@
   tofile="${commons-logging-api.jar}"
 />

+
+
+  
+  
+  
+
+
+
 
   
   
 
-
-
+
+
+
 
   
   
   
 
+
+
+  
+

 
   
   
   
 
-

+
 
   
   
@@ -509,7 +529,6 @@
   
   
 
-
 
 
 
@@ -552,13 +571,22 @@
   
   
 
-
+
+
+  
+  
+  
+
+
+  
+  
+  
+
   

   
@@ -617,6 +645,20 @@
 
 
 
+  
+
+  
+
+
+
+
+
+
+  
+
   

   


=

--- build.properties.sample.orig Thu Jun 27 12:03:46 2002
+++ build.properties.sample Mon Jul 15 00:23:00 2002
@@ -44,11 +44,12 @@


 # - Jakarta Tomcat Connectors source path -
-#jtc.home=../../jakarta-tomcat-connectors
-
+#jtc.home=../jakarta-tomcat-connectors
+jtc.loc=jakarta-tomcat-connectors

 # - Jakarta Tomcat Jasper source path -
 #jasper.home=../jakarta-tomcat-jasper/jasper2
+jasper.loc=jakarta-tomcat-jasper/jasper2


 # --
@@ -71,10 +72,11 @@


 # - Commons Digester, version 1.1.1 or later -
-commons-digester.home=${base.path}/commons-digester-1.2
+commons-digester.home=${base.path}/commons-digester
 commons-digester.lib=${commons-digester.home}
 commons-digester.jar=${commons-digester.lib}/commons-digester.jar
-commons-digester.loc=http://jakarta.apache.org/builds/jakarta-commons/release/commons-digester/v1.2/commons-digester-1.2.tar.gz
+commons-digester.loc=jakarta-commons/digester
+#commons-digester.loc=http://jakarta.apache.org/builds/jakarta-commons/release/commons-digester/v1.2/commons-digester-1.2.tar.gz


 # - Commons Logging, version 1.0.1 or later -
@@ -131,7 +133,7 @@


 # - Java Activation Framework (JAF), version 1.0.1 or later -
-activation.home=${base.path}/jaf-1.0.1
+activation.home=${base.path}/jaf-1.0.2
 activation.lib=${activation.home}
 activation.jar=${activation.lib}/activation.jar

@@ -168,7 +170,6 @@
 javaservice.home=${base.path}/javaservice
 
javaservice.loc=http://www.alexandriasc.com/software/JavaService/JavaService-bin-1.2.0.zip

-
 # - Java Database Connectivity (JDBC) Optional Package, version 2.0 -
 jdbc20ext.home=${base.path}/jdbc2_0-stdext
 jdbc20ext.lib=${jdbc20ext.home}
@@ -183,7 +184,7 @@


 # - Java Secure Sockets Extension (JSSE), version 1.0.2 or later -
-jsse.home=${base.path}/jsse-1.0.2
+jsse.home=${base.path}/jsse-1.0.3
 jsse.lib=${jsse.home}/lib
 jcert.jar=${jsse.lib}/jcert.jar
 jnet.jar=${jsse.lib}/jnet.jar
@@ -204,7 +205,7 @@


 # - Java Mail, version 1.2 or later -
-mail.home=${base.path}/javamail-1.2
+mail.home=${base.path}/javamail-1.3
 mail.lib=${mail.home}
 mail.jar=${mail.lib}/mail.jar

@@ -232,5 +233,3 @@
 tyrex.lib=${tyrex.home}
 tyrex.jar=${tyrex.lib}/tyrex-1.0.jar
 tyrex.loc=ftp://ftp.exolab.org/pub/tyrex/tyrex-1.0/tyrex-1.0.jar
-
-


=


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [PATCH] ant download, build.xml, build.properties.sample and BUILDING.txt

2002-07-14 Thread Fredrik Viklund

This is the revised BUILDING.txt that I propose:

Building The Tomcat 4.1 Servlet/JSP Container
=

This subproject contains the source code Tomcat 4.1, a server that implements
the Servlet 2.3 and JSP 1.2 Specifications from Java Software. In order to build
a binary distribution version of the container from a source distribution, you
must have a Java Development Kit (JDK) for version 1.3 (or later) downloaded and
installed (version 1.3.1 recommended).

Each package described below should be unpacked into its own subdirectory. To
minimize the changes to the build.properties file, it is convenient to store the
separate distributions below in subdirectories of one and the same directory.

E.g.
  ../jakarta
  ../jakarta/jakarta-ant-1.5
  ../jakarta/jakarta-tomcat-4.1.7-src
etc.

Building Jakarta-Tomcat 4.1 from source requires approximately 180 MB disk
space, varying with how many of the depending packages you compile from source.


(0) Download and Install a Java Development Kit

* Download a Java Development Kit (JDK) version 1.3 or later or a Standard
  Edition Software Development Kit (J2SE SDK) version 1.4 or later from:

http://java.sun.com/j2se/

* Install the JDK according to the instructions included with the release.

* Set an environment variable JAVA_HOME to the pathname of the directory
  into which you installed the JDK release.


(1) Download and Install Ant

* Ant 1.5 or later is required. Download a binary distribution from

http://jakarta.apache.org/builds/jakarta-ant/release/v1.5/bin/

* Unpack the binary distribution into a convenient location so that the Ant
  release resides in its own directory (conventionally named "jakarta-ant-1.5").
  The symbolic name "${ant.home}" refers to the full pathname of the Ant release
  directory.

* Modify the PATH environment variable to include directory "${ant.home}/bin" in
  its list.  This makes the "ant" command line script available, which will be
  used to actually perform the build.

* You can test your installation of Ant by typing "ant -help" at the command prompt.



(2) Download and Install the Tomcat Subproject Source Code

* Use anonymous CVS as described on http://jakarta.apache.org/site/cvsindex.html
  or download a current source distribution from:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/src/

  If you want to compile the latest release, you will find the sources at

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/

  Unpack the files into a convenient location, preferably in an empty
  subdirectory (that will later also be populated with supporting packages and
  distributions.)

* The symbolic name "${tomcat.source}" is used to refer to the full pathname of
  the release directory.


(3) Automatic download of libraries and subprojects

* To build Tomcat, several libraries and subprojects are needed. The easiest way
  to get them is to use the download build target to do automated download.

  As the download proceeds, ant will use CVS to download sources that have not
  yet had formal releases. For this to work, you need to have the cvs command
  available in your PATH environment variable. If you don't have a CVS command-
  line client, you can download sources or binaries from

http://www.cvshome.org/downloads.html

  To automatically download the needed packages into, issue the command

ant download

  This will fetch the packages described below for building the complete Tomcat
  distribution into a directory hierarchy rooted in ../ resulting in a
  convenient structure.

  If the downloads completes without errors, you can now continue with step (27),
  "Building a binary distribution".

  If you are behind a firewall or using a proxy, you can edit the network
  settings in build.properties.


(4) Manual download and installation

* If the download fails or for some reason you want to fetch the files manually,
  read on.

* If you are working in a Microsoft Windows environment, you may want to use the
  zip files available from the directories listed below. If you are working in a
  Unix- like environment the tar.gz-files may suit you better.


(5) Download and Install Packages for JDK Version 1.3

* If you are using J2SDK version 1.4 or later you can skip this step

* If you are using the JDK version 1.3 you need to download

  - The JNDI Reference Implementation version 1.2.1 or later and
  - The LDAP Service Provider Maintenance package version 1.2.3 or later

They can both be found at

  http://java.sun.com/products/jndi/

These files unpack into the current directory. It is therefore convenient to
create a directory (conventionally named jndi-1.2.1) and unpack them both
there so that "ldap.jar" and "jaas.jar" (from the LDAP package) resides in
the "lib" subdirectory of the JNDI directory, parallel to "jndi.jar".


  - The Java XML Pack Binary Distribution version 1.1.3 or later

It can be found at

[PATCH] ant download, build.xml, build.properties.sample and BUILDING.txt

2002-07-14 Thread Fredrik Viklund

I recently started out trying to build Tomcat 4.1 from sources and found
that
the process was quite painful. While doing my homework, I found a few
bulid
problems and that BUILDING.txt, build.xml and build.properties.sample
could be
improved on a few points:

(Patches are sent separately. Sorry if this is a bit long.)



(1) I can't get building with JDK 1.3.1 to work. It quits on error:
[style] Processing
C:\jakarta-test\jakarta-tomcat-4.1.7-src\webapps\tomcat-
docs\config\globalresources.xml to C:\jakarta-test\jakarta-tomcat-4.1.7-

src\webap ps\build\tomcat-docs\config\globalresources.html

[style] : Fatal Error! java.lang.NullPointerException Cause:
java.lang.NullPointerException

[style] Failed to process C:\jakarta-test\jakarta-tomcat-4.1.7-
src\webapps\tomcat-docs\config\globalresources.xml

BUILD FAILED
file:C:/jakarta-test/jakarta-tomcat-4.1.7-src/webapps/tomcat-docs/build.xml:112:

Fatal error during transformation



(2) I can't build with J2SDK 1.4.0 without JNDI, LDAP, JDBC Optional API
and
JSSE.

The only reason I include these problems here is that I suspect that
they are
caused by me not knowing how to set these things up. I have read the
docs and
tried hard and I guess that if I can't get it working, the chances are
that
other people can't either. If there are any "secret" building tricks,
they
should be documented in the BUILDING.txt, but obviously, I can't do
it... (If
the tricks aren't secret but obvious, they should be documented anyway
as
"gotchas".)



(3) Patches to make "ant download" work

With the changes below "ant download dist" works on my system. (There
are still
errors warnings from javadoc, but that might be normal, I can't tell...)



build.xml
=
* Changed default value for servlet.home to so it corresponds with
  build.properties.sample

* In the target "download"
  - Gave it a description so it shows up on "ant -projecthelp"
  - ant dist breaks for me when commons-digester is the downloaded
version 1.2.
Version 1.1.1 and nightly works, so I changed commons-digester to
use cvs
for download. Move it below commons-logging as it is needed for
building.
  - Copying the docs for servletapi after cvsbuild makes it work on
download.
  - Decommented tyrex download
  - Added a new method target "downloadcvs" to download with CVS
whithout building.
  - Download the current source versions of Jakarta-Tomcat-Connectors
and Jasper
using downloadcvs.


build.properties.sample
===
* Connectors and Jasper got ${.loc} properties to enable automatic
download

* Commons-Digester downloads via CVS (see above)

* Updated versions to
  - JAF 1.0.2  (from 1.0.1)
  - JSSE 1.0.3 (from 1.0.2)
  - JavaMail 1.3   (from 1.3)


BUILDING.txt

The text had become complex and very hard to read and needed a facelift.

I changed the order of some elements (e.g. if a section is optional, it
should
say that in the beginning of that section) and removed paragraphs that
were
repeated for each package. I also added some notes on using "ant
download" and
made the bulleting style more consistent.

The versions for some of the downloaded packages have increased and were
updated
to JAF 1.0.2, JSSE 1.0.3 and JavaMail 1.3.

Over all, I did not add much new content but I think the readability
increased
quite a bit.



(4) Questions still without an answer (things that I didn't dare to
change.)

* Are there any good reasons why is JDK 1.3.1 recommended or is it the
remains
  from when it was also possible to build with 1.3.0?

* Is the JNDI package needed at all? It is said to be optional with JDK
1.3+,
  which is also the minimum version required for building.





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 10789] New: - Setting DirectoryIndex of index.jsp does not get served by jk2

2002-07-14 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10789

Setting DirectoryIndex of index.jsp does not get served by jk2

   Summary: Setting DirectoryIndex of index.jsp does not get served
by jk2
   Product: Tomcat 4
   Version: 4.1.7
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Connector:Coyote JK 2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Using Apache 2.0.39 and Tomcat 4.1.7 with the mod_jk2 connector on Windows 
XP.  With the DirectoryIndex set to index.jsp when I go to a directory that 
contains index.jsp, it is not served, but if I type in /index.jsp explicitly, 
it is served.

Relevant lines from files.

>From jk2.log: 

(1) Below you can see that, at 09:57:31, when the URI of '/' is made, a 
request follows for /index.jsp - which is matched but for some reason never 
gets sent on to mod_jk.handler().

(2) When the request is made for /index.jsp explicitly, at 09:58:41, the 
extension match /index.jsp is again made and this time it does get sent on to 
mod_jk.handler().

[Sun Jul 14 09:56:13 2002] (error ) [jk_logger_file.c (171)]  Initializing log 
file G:/Apache32/Apache2/logs/jk2.log
[Sun Jul 14 09:56:16 2002] (error ) [jk_logger_file.c (171)]  Initializing log 
file G:/Apache32/Apache2/logs/jk2.log
[Sun Jul 14 09:56:18 2002] (error ) [jk_logger_file.c (171)]  Initializing log 
file G:/Apache32/Apache2/logs/jk2.log
[Sun Jul 14 09:56:18 2002] ( info ) [jk_uriMap.c (339)]  uriMap.init() set 
default host
[Sun Jul 14 09:56:18 2002] ( info ) [jk_uriMap.c (353)]  uriMap.init() loaded 
host (null)
[Sun Jul 14 09:56:18 2002] ( info ) [jk_uriMap.c (147)]  uriMap.addUriEnv() / 
(null) /
[Sun Jul 14 09:56:18 2002] ( info ) [jk_uriMap.c (404)]  uriMap.init() Create 
default context / ( for default host )
[Sun Jul 14 09:56:18 2002] ( info ) [jk_uriMap.c (427)]  uriMap.init() loaded 
context (null) / 678658 642818 63e740
[Sun Jul 14 09:56:18 2002] ( info ) [jk_uriMap.c (445)]  uriMap.init() 
processing mappings
[Sun Jul 14 09:56:18 2002] ( info ) [jk_uriEnv.c (314)]  uriEnv.init() suffix 
mapping / .jsp=ajp13:XXX.XXX.XX.XX:8009 was added
[Sun Jul 14 09:56:18 2002] ( info ) [jk_uriEnv.c (358)]  uriEnv.init()  
uri:/*.jsp  host=(null)  uri=/*.jsp type=2 ctx=(null) prefix=/ suffix=jsp
[Sun Jul 14 09:56:18 2002] ( info ) [jk_workerEnv.c (403)]  workerEnv.init() 
ok G:/Apache32/Apache2/conf/workers2.properties
[Sun Jul 14 09:56:18 2002] ( info ) [mod_jk2.c (506)]  mod_jk child init 1 -1
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (565)]  uriMap.mapUri() 
(null) /<-- 1
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (577)]  uriMap.mapUri() found 
host (null)
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (602)]  uriMap.mapUri() found 
ctx /
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (683)]  uriMap.mapUri() no 
match found
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (565)]  uriMap.mapUri() 
(null) /index.jsp
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (577)]  uriMap.mapUri() found 
host (null)
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (602)]  uriMap.mapUri() found 
ctx /
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (214)]  uriMap.mapUri() 
suffix match jsp
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (639)]  uriMap.mapUri() 
extension match /index.jsp ajp13:XXX.XXX.XX.XX:8009   < 1
[Sun Jul 14 09:57:31 2002] ( info ) [mod_jk2.c (699)]  mod_jk.translate(): 
uriMap /index.jsp ajp13:XXX.XXX.XX.XX:8009 65e6a8   < 1
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (565)]  uriMap.mapUri() 
(null) /index.html< 1
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (577)]  uriMap.mapUri() found 
host (null)
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (602)]  uriMap.mapUri() found 
ctx /
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (683)]  uriMap.mapUri() no 
match found
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (565)]  uriMap.mapUri() 
(null) /error/HTTP_FORBIDDEN.html.var
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (577)]  uriMap.mapUri() found 
host (null)
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (602)]  uriMap.mapUri() found 
ctx /
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (683)]  uriMap.mapUri() no 
match found
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (565)]  uriMap.mapUri() 
(null) /error/include/top.html
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (577)]  uriMap.mapUri() found 
host (null)
[Sun Jul 14 09:57:31 2002] ( info ) [jk_uriMap.c (602)]  uriMap.mapUri() found 
ctx /
[Sun Jul 14 09:57:31 2002] 

DO NOT REPLY [Bug 9749] - i18n encoding function dosen't work in beta(J2SE1.4.0-01)

2002-07-14 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9749

i18n encoding function dosen't work in beta(J2SE1.4.0-01)

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Priority|Other   |High

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 9749] - i18n encoding function dosen't work in beta(J2SE1.4.0-01)

2002-07-14 Thread bugzilla

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9749

i18n encoding function dosen't work in beta(J2SE1.4.0-01)

[EMAIL PROTECTED] changed:

   What|Removed |Added

Version|4.1.3   |4.1.7

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[GUMP] Build Failure - jakarta-tomcat-4.0

2002-07-14 Thread Craig McClanahan


This email is autogenerated from the output from:



Buildfile: build.xml

deploy-prepare:

deploy-static:

deploy:
 [echo] Target: Catalina - Deploy ...

flags:

flags.display:
 [echo] --- Build environment for Catalina ---
 [echo] If ${property_name} is displayed, then the property is not set)
 [echo] --- Build options ---
 [echo] full.dist=${full.dist}
 [echo] build.sysclasspath=only
 [echo] compile.debug=${compile.debug}
 [echo] compile.deprecation=${compile.deprecation}
 [echo] compile.optimize=${compile.optimize}
 [echo] --- Ant Flags ---
 [echo] 

cvs commit: jakarta-tomcat-connectors/jk/native2/server/isapi jk_iis_thread_pool.c

2002-07-14 Thread mturk

mturk   2002/07/14 06:41:36

  Modified:jk/native2/server/isapi jk_iis_thread_pool.c
  Log:
  Detach the jvm when the thread receives the shudown signal.
  There is a substantial performance gain using this approach.
  
  Revision  ChangesPath
  1.2   +10 -1 
jakarta-tomcat-connectors/jk/native2/server/isapi/jk_iis_thread_pool.c
  
  Index: jk_iis_thread_pool.c
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native2/server/isapi/jk_iis_thread_pool.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- jk_iis_thread_pool.c  8 Jul 2002 07:43:51 -   1.1
  +++ jk_iis_thread_pool.c  14 Jul 2002 13:41:36 -  1.2
  @@ -149,6 +149,15 @@
   while (GetQueuedCompletionStatus(global_thread_pool.worker_port,
   &n1, &n2, &pOverLapped, INFINITE)) {
   if  (pOverLapped == THREAD_POOL_SHUTDOWN) {
  +jk_ws_service_t *s = &thread->service;
  +if (s->workerEnv && s->realWorker) {
  +struct jk_worker *w = s->realWorker;
  +jk_env_t *env = s->workerEnv->globalEnv->getEnv( 
s->workerEnv->globalEnv );
  +if (w != NULL && w->channel != NULL 
  +&& w->channel->afterRequest != NULL) {
  +w->channel->afterRequest( env, w->channel, w, NULL, s );
  +}
  +}
   break;
   }
   else if (pOverLapped == THREAD_POOL_RECYCLE) {
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/native2/server/isapi jk_isapi_plugin.c

2002-07-14 Thread mturk

mturk   2002/07/14 06:39:13

  Modified:jk/native2/server/isapi jk_isapi_plugin.c
  Log:
  Remove the hack for unloading the jvm. Now its done on the Java side.
  Check for threadPool config value to be at least 10 or higher.
  
  Revision  ChangesPath
  1.39  +9 -8  
jakarta-tomcat-connectors/jk/native2/server/isapi/jk_isapi_plugin.c
  
  Index: jk_isapi_plugin.c
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native2/server/isapi/jk_isapi_plugin.c,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- jk_isapi_plugin.c 10 Jul 2002 17:36:09 -  1.38
  +++ jk_isapi_plugin.c 14 Jul 2002 13:39:13 -  1.39
  @@ -562,6 +562,7 @@
   SetEvent(jk2_starter_event);
   WaitForSingleObject(jk2_starter_thread, 3000);
   CloseHandle(jk2_starter_thread);
  +jk2_starter_thread = INVALID_HANDLE_VALUE;
   return TRUE;
   }
   
  @@ -577,13 +578,6 @@
   char fname[_MAX_FNAME];
   
   switch (ulReason) {
  -case DLL_PROCESS_DETACH:
  -/* Dirty hack to unload the jvm */
  -if (was_inited && jk_jni_status_code) {
  -ExitProcess(0);
  -}
  -  break;
  -
   case DLL_PROCESS_ATTACH:
   if (GetModuleFileName( hInst, file_name, sizeof(file_name))) {
   _splitpath( file_name, drive, dir, fname, NULL );
  @@ -667,6 +661,8 @@
   tmp = map->get(env,map,THREAD_POOL_TAG);
   if (tmp) {
   use_thread_pool = atoi(tmp);
  +if (use_thread_pool < 10)
  +use_thread_pool = 0;
   }
   tmp = map->get(env,map,USE_AUTH_COMP_TAG);
   if (tmp) {
  @@ -720,6 +716,11 @@
tmpbuf,
8)) {
   use_thread_pool = atoi(tmpbuf);
  +if (use_thread_pool < 10) {
  +use_thread_pool = 0;
  +env->l->jkLog(env, env->l, JK_LOG_INFO, 
  +  "read_registry_init_data, ThreadPool must be set to the 
value 10 or higher\n");
  +}
   }
   if(get_registry_config_parameter(hkey,
USE_AUTH_COMP_TAG,
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/native2/server/apache2 jk_service_apache2.c

2002-07-14 Thread mturk

mturk   2002/07/14 06:37:28

  Modified:jk/native2/server/apache2 jk_service_apache2.c
  Log:
  Move the jvm detaching to the service afterRequest.
  That way we are sure that the detaching is in the same thread.
  
  Revision  ChangesPath
  1.28  +8 -1  
jakarta-tomcat-connectors/jk/native2/server/apache2/jk_service_apache2.c
  
  Index: jk_service_apache2.c
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native2/server/apache2/jk_service_apache2.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- jk_service_apache2.c  8 Jul 2002 13:30:56 -   1.27
  +++ jk_service_apache2.c  14 Jul 2002 13:37:28 -  1.28
  @@ -585,6 +585,13 @@
   }
   }
   }
  +if (s->realWorker) {
  +struct jk_worker *w = s->realWorker;
  +if (w != NULL && w->channel != NULL 
  +&& w->channel->afterRequest != NULL) {
  +w->channel->afterRequest( env, w->channel, w, NULL, s );
  +}
  +}
   }
   
   int JK_METHOD jk2_service_apache2_init(jk_env_t *env, jk_ws_service_t *s)
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_channel_jni.c

2002-07-14 Thread mturk

mturk   2002/07/14 06:36:03

  Modified:jk/native2/common jk_channel_jni.c
  Log:
  Remove the jvm detaching from channel ajp to the service.
  
  Revision  ChangesPath
  1.33  +7 -3  jakarta-tomcat-connectors/jk/native2/common/jk_channel_jni.c
  
  Index: jk_channel_jni.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_channel_jni.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- jk_channel_jni.c  8 Jul 2002 13:41:46 -   1.32
  +++ jk_channel_jni.c  14 Jul 2002 13:36:03 -  1.33
  @@ -522,11 +522,15 @@
   {
   jk_workerEnv_t *we=worker->workerEnv;
   
  -/* XXX Don't detach if worker is reused per thread */
  -if( we==NULL || we->vm==NULL ) {
  +if( we==NULL || we->vm==NULL) {
   return JK_OK;
   }
  -we->vm->detach( env, we->vm );
  +/* 
  + * In case of not having the endpoint detach the jvm.
  + * XXX Remove calling this function from ajp13 worker?
  + */
  +if (endpoint == NULL)
  +we->vm->detach( env, we->vm );
   if( worker->mbean->debug > 0 )
   env->l->jkLog(env, env->l, JK_LOG_DEBUG, 
 "channelJni.afterRequest() ok\n");
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_worker_jni.c

2002-07-14 Thread mturk

mturk   2002/07/14 06:33:56

  Modified:jk/native2/common jk_worker_jni.c
  Log:
  Remove the destroying of the jvm from native code,
  the TomcatStarter will do that on Java side.
  
  Revision  ChangesPath
  1.27  +1 -2  jakarta-tomcat-connectors/jk/native2/common/jk_worker_jni.c
  
  Index: jk_worker_jni.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_worker_jni.c,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- jk_worker_jni.c   11 Jul 2002 11:38:12 -  1.26
  +++ jk_worker_jni.c   14 Jul 2002 13:33:56 -  1.27
  @@ -434,8 +434,7 @@
   apr_thread_yield();
   }
   #endif
  -(*jniEnv)->UnregisterNatives(jniEnv, 
jniWorker->jk_java_bridge_apri_class);
  -vm->destroy(env, vm);
  +vm->detach(env, vm);
   }
   }
   env->l->jkLog(env, env->l, JK_LOG_INFO, "jni.destroy() done\n");
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/apr TomcatStarter.java

2002-07-14 Thread mturk

mturk   2002/07/14 06:32:13

  Modified:jk/java/org/apache/jk/apr TomcatStarter.java
  Log:
  Added Apache Software License prolog.
  Check if TomcatStarter was called with the stop param.
  If called that way sleep for 5 seconds to allow the server shutdown,
  and then call the clear the Runtime and exit.
  This will destroy JVM for sure.
  
  Revision  ChangesPath
  1.13  +64 -1 
jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/TomcatStarter.java
  
  Index: TomcatStarter.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/TomcatStarter.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- TomcatStarter.java7 Jul 2002 11:09:00 -   1.12
  +++ TomcatStarter.java14 Jul 2002 13:32:13 -  1.13
  @@ -1,4 +1,63 @@
  -package org.apache.jk.apr;
  +/*
  + * 
  + *
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 1999 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *notice, this list of conditions and the following disclaimer in
  + *the documentation and/or other materials provided with the
  + *distribution.
  + *
  + * 3. The end-user documentation included with the redistribution, if
  + *any, must include the following acknowlegement:
  + *   "This product includes software developed by the
  + *Apache Software Foundation (http://www.apache.org/)."
  + *Alternately, this acknowlegement may appear in the software itself,
  + *if and wherever such third-party acknowlegements normally appear.
  + *
  + * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
  + *Foundation" must not be used to endorse or promote products derived
  + *from this software without prior written permission. For written
  + *permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache"
  + *nor may "Apache" appear in their names without prior written
  + *permission of the Apache Group.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * 
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * .
  + *
  + * [Additional notices, if required by prior licensing conditions]
  + *
  + */
  + 
  + package org.apache.jk.apr;
   
   import java.io.*;
   import java.lang.reflect.*;
  @@ -69,6 +128,10 @@
   System.out.println("TomcatStarter: Done");
   if (apr.isLoaded())
   apr.jkSetAttribute(0, 0, "channel:jni", "done");
  +if (args[0].equals("stop")) {
  +  Thread.sleep(5000);
  +  Runtime.getRuntime().exit(0);
  +}
   } catch( Throwable t ) {
   t.printStackTrace(System.err);
   }
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/apr AprImpl.java

2002-07-14 Thread mturk

mturk   2002/07/14 06:30:04

  Modified:jk/java/org/apache/jk/apr AprImpl.java
  Log:
  Added Apache Software License prolog
  
  Revision  ChangesPath
  1.25  +60 -1 jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/AprImpl.java
  
  Index: AprImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/AprImpl.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- AprImpl.java  1 Jul 2002 23:12:33 -   1.24
  +++ AprImpl.java  14 Jul 2002 13:30:04 -  1.25
  @@ -1,4 +1,63 @@
  -package org.apache.jk.apr;
  +/*
  + * 
  + *
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 1999 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *notice, this list of conditions and the following disclaimer in
  + *the documentation and/or other materials provided with the
  + *distribution.
  + *
  + * 3. The end-user documentation included with the redistribution, if
  + *any, must include the following acknowlegement:
  + *   "This product includes software developed by the
  + *Apache Software Foundation (http://www.apache.org/)."
  + *Alternately, this acknowlegement may appear in the software itself,
  + *if and wherever such third-party acknowlegements normally appear.
  + *
  + * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
  + *Foundation" must not be used to endorse or promote products derived
  + *from this software without prior written permission. For written
  + *permission, please contact [EMAIL PROTECTED]
  + *
  + * 5. Products derived from this software may not be called "Apache"
  + *nor may "Apache" appear in their names without prior written
  + *permission of the Apache Group.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * 
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * .
  + *
  + * [Additional notices, if required by prior licensing conditions]
  + *
  + */
  + 
  + package org.apache.jk.apr;
   
   import java.io.*;
   import java.lang.reflect.*;
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: