Re: [5.0.1] Tagging today

2003-02-19 Thread jean-frederic clere
Remy Maucherat wrote:

Costin Manolache wrote:


Remy Maucherat wrote:



Jeanfrancois Arcand wrote:


Are you able to build it? The nightly build failled with the following
(see below). I will look at the failure latter this afternoon...



It's a hint that there are urgent bugs to fix in either JspC or Jasper,
which make precompilation fail (read my commit massage to see the full
story) ;-)




Well, we can't release a milestone with both gump and normal build 
failing.
At this point disabling the precompilation seems the best short-term
workaround, but I think we should rather wait with the milestone until 
the
fix is available.


That's reasonable.
+1 for fixing the bugs (I tried a bit and failed).

I'd need a Win9x compatible version of procrun to make the release, also :)


I will try to test and fix the win9x code.
But the only win9x machine I have here is _very_ slow.



Remy


-
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: [5.0.1] Tagging today

2003-02-19 Thread Henri Gomez
Remy Maucherat wrote:

 From my experience, Tomcat 5.0.1 doesn't appear to have any critical 
issue remaining.

I plan to put the 5.0.1 tag later today and release alpha binaries.

Remy

Will you put the necessary source/binaries in :

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

or may be better

http://jakarta.apache.org/builds/jakarta-tomcat-5/

So I could try to make a rpm of it ;)

Regards

BTW, we'll need also jakarta-servletapi-5 somewhere.

Regards (back to work)


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




DO NOT REPLY [Bug 10026] - manager/stop and manager/remove

2003-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10026.
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=10026

manager/stop and manager/remove

[EMAIL PROTECTED] changed:

   What|Removed |Added

Version|4.0.4 Final |4.1.20

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




[GUMP] Build Failure - jakarta-tomcat-5

2003-02-19 Thread bobh

This email is autogenerated from the output from:
http://cvs.apache.org/builds/gump/2003-02-19/jakarta-tomcat-5.html


Buildfile: build.xml

prepare-release:
[mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-5/release
[mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-5/release/v5.0
[mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-5/release/v5.0/bin
[mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-5/release/v5.0/src

init:
[mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-5/build
[mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-5/build/classes

deploy-static:

deploy:
 [echo] Target: Servlet API - Dist ...

prepare:

static:

compile:

examples:

javadoc:

jar:
 [copy] Copying 1 file to /home/rubys/jakarta/jakarta-servletapi-5/jsr154/build

dist:
 [echo] Target: JSP API - Dist ...

prepare:

static:

compile:

examples:

javadoc:

jar:
 [copy] Copying 1 file to /home/rubys/jakarta/jakarta-servletapi-5/jsr152/build

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

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=on
 [echo] compile.deprecation=off
 [echo] compile.optimize=off
 [echo] --- Ant Flags ---
 [echo] style task available (required)=true
 [echo] --- JDK ---
 [echo] jdk.1.2.present=true
 [echo] jdk.1.3.present=true
 [echo] jdk.1.4.present=true
 [echo] --- Source Dependencies ---
 [echo] jtc.home.present=true
 [echo] --- Required Libraries ---
 [echo] beanutils.present=true
 [echo] collections.present=true
 [echo] digester.present=true
 [echo] jaxp.present=true
 [echo] jndi.present=true
 [echo] logging.present=true
 [echo] regexp.present=true
 [echo] --- Optional Libraries ---
 [echo] dbcp.present=true
 [echo] fileupload.present=${fileupload.present}
 [echo] jaas.present=true
 [echo] javamail.present=true
 [echo] jmx.present=true
 [echo] jsse.present=true
 [echo] jta.present=true
 [echo] junit.present=true
 [echo] lang.present=${lang.present}
 [echo] launcher.present=${launcher.present}
 [echo] launcher.bootstrap.present=${launcher.bootstrap.present}
 [echo] ldap.present=true
 [echo] modeler.present=true
 [echo] pool.present=true
 [echo] tyrex.present=${tyrex.present}
 [echo] --- Required JARs ---
 [echo] jndi.jar.present(except JDK 1.3+)=true
 [echo] regexp.jar.present=true
 [echo] servlet-api.jar.present=true
 [echo] xerces2.jars.present(except JDK 1.4+)=true
 [echo] --- Optional JARs ---
 [echo] dbcp.jar.present=true
 [echo] fileupload.jar.present=${fileupload.jar.present}
 [echo] jaas.jar.present=true
 [echo] javamail.jar.present=true
 [echo] jdbc20ext.jar.present=true
 [echo] jmx.jar.present=true
 [echo] jta.jar.present=true
 [echo] junit.jar.present=${junit.jar.present}
 [echo] modeler.jar.present=true
 [echo] pool.jar.present=true
 [echo] tyrex.jar.present=${tyrex.jar.present}
 [echo] --- Conditional compilation flags ---
 [echo] compile.dbcp=true
 [echo] compile.jaas=true
 [echo] compile.javamail=true
 [echo] compile.jmx=true
 [echo] compile.jndi=true
 [echo] compile.jsse=true
 [echo] compile.jta=true
 [echo] compile.junit=true
 [echo] compile.ldap=true
 [echo] compile.ssi=true
 [echo] compile.tyrex=${compile.tyrex}
 [echo] --- Distribution flags ---
 [echo] copy.dbcp.jar=true
 [echo] copy.jmx.jar=true
 [echo] copy.launcher.jars=${copy.launcher.jars}
 [echo] copy.logging.jar=true
 [echo] copy.modeler.jar=true
 [echo] copy.pool.jar=true

build-prepare:

copy-dbcp.jar:

copy-fileupload.jar:

copy-jmx.jar:

copy-launcher.jars:

copy-modeler.jar:

copy-pool.jar:

copy-xerces2.jars:

build-static:

build-tomcat-util:

detect:

build-prepare:

build-main:
 [echo] - Java-utils -
 [echo] -- puretls.present = ${puretls.present}
 [echo] -- jsse.present = true
 [echo] -- commons-logging = true
 [echo] -- jmx = true /opt/jmx-1_0_1-ri_bin/jmx/lib/jmxri.jar
 [echo] -- modeler = true 
/home/rubys/jakarta/jakarta-commons/modeler/dist/commons-modeler.jar

build-catalina-core:

build-catalina-optional:

build-catalina:

build-main:

deploy-prepare:

deploy-static:

catalina-jars:

deploy-catalina:

build-tomcat-coyote:

init:
 [echo]  Coyote 1.0-dev 

prepare:

static:

report-tc5:
 [echo] Tomcat5 detected 

report-tc4:

report-tc33:

report:

compile.shared:

compile.tomcat5:


Repost: [4.1.20] Stability rating

2003-02-19 Thread Remy Maucherat
Remy Maucherat wrote:

I would like comments on bug 17049 before deciding what to do with 4.1.20.

If this turns out to be a relatively minor issue, I would be ok with 
releasing 4.1.20 as a beta, and would propose a vote.

For 4.1.21, there are apparently some patches for better taglib handling 
to be integrated in JspC. Other than that, it looks good enough to me.

This is a serious bug in Jasper, and I think may have been introduced by 
Jan's commit attached here.

I will try to find time to look into the issue.

Remy

luehe   2003/01/16 17:21:06

  Modified:jasper2/src/share/org/apache/jasper/compiler Tag:
tomcat_4_branch Generator.java
  Log:
  Fixed 16181: JspWriter not restored properly when exception thrown in 
a tag's body content

  Revision  ChangesPath
  No   revision


  No   revision


  1.35.2.17 +12 -12 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java

  Index: Generator.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v
  retrieving revision 1.35.2.16
  retrieving revision 1.35.2.17
  diff -u -r1.35.2.16 -r1.35.2.17
  --- Generator.java	17 Jan 2003 00:51:23 -	1.35.2.16
  +++ Generator.java	17 Jan 2003 01:21:06 -	1.35.2.17
  @@ -545,7 +545,7 @@

   	private Hashtable tagVarNumbers;
   	private String parent;
  -	private String pushBodyCount;
  +	private String pushBodyCountVar;

   	private ServletWriter out;
   	private MethodsBuffer methodsBuffer;
  @@ -1177,17 +1177,17 @@

   	String tmpParent = parent;
   	parent = tagHandlerVar;
  -	String tmpPushBodyCount = null;
  +	String tmpPushBodyCountVar = null;
   	if (n.implementsTryCatchFinally()) {
  -		tmpPushBodyCount = pushBodyCount;
  -		pushBodyCount = tagPushBodyCountVar;
  +		tmpPushBodyCountVar = pushBodyCountVar;
  +		pushBodyCountVar = tagPushBodyCountVar;
   	}

   	visitBody(n);

   	parent = tmpParent;
   	if (n.implementsTryCatchFinally()) {
  -		pushBodyCount = tmpPushBodyCount;
  +		pushBodyCountVar = tmpPushBodyCountVar;
   	}

   	generateCustomEnd(n, tagHandlerVar, tagEvalVar,
  @@ -1390,8 +1390,8 @@
   		if (n.implementsTryCatchFinally()) {
   			out.printin(tagPushBodyCountVar);
   			out.println(++;);
  -		} else if (pushBodyCount != null) {
  -			out.printin(pushBodyCount);
  +		} else if (pushBodyCountVar != null) {
  +			out.printin(pushBodyCountVar);
   			out.println(++;);
   		}
   		out.printil(out = _bc;);
  @@ -1458,8 +1458,8 @@
   		if (n.implementsTryCatchFinally()) {
   			out.printin(tagPushBodyCountVar);
   			out.println(--;);
  -		} else if (pushBodyCount != null) {
  -			out.printin(pushBodyCount);
  +		} else if (pushBodyCountVar != null) {
  +			out.printin(pushBodyCountVar);
   			out.println(--;);
   		}
   		out.popIndent();


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



JDK 1.4 - again

2003-02-19 Thread Vic Cekvenich
Some time ago I posted that maybe Tomcat 5.0 should require 1.4, and 
Tomcat 4 be 1.3.

News:
Resin 3.0 (the fastest container) requires JDK1.4.

And http://www.blackdown.org/java-linux/java2-status/jdk1.4-status.html

Of course 1.4 is faster, more reflection.

(Also: Doug Lea's collections that are fast and threaded are in JDK 1.5.)

Please consider requiring the better/faster 1.4.

.V



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



Re: JDK 1.4 - again

2003-02-19 Thread Henri Gomez
Vic Cekvenich wrote:

Some time ago I posted that maybe Tomcat 5.0 should require 1.4, and 
Tomcat 4 be 1.3.

News:
Resin 3.0 (the fastest container) requires JDK1.4.

Resin is commercial product and a company make its own choice (see M$).

Tomcat is OSS and follow what developpers/users feel the best for.


And http://www.blackdown.org/java-linux/java2-status/jdk1.4-status.html


I'm using IBM SDK on many differents systems, and for example
there is still not SDK 1.4 for Linux PowerPC.


Of course 1.4 is faster, more reflection.

(Also: Doug Lea's collections that are fast and threaded are in JDK 1.5.)

Please consider requiring the better/faster 1.4.


And as I said previously JDK 1.3.1 is more than suffisant.

We could add a note indicating that JDK 1.4 will make tomcat run
faster but I'd like to see your own benchmarks to know how faster
it will be (5%, 10%).



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




DO NOT REPLY [Bug 17202] New: - Tomcat 4.1 and oracle custom tags for Jdeveloper

2003-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17202.
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=17202

Tomcat 4.1 and oracle custom tags for Jdeveloper

   Summary: Tomcat 4.1 and oracle custom tags for Jdeveloper
   Product: Tomcat 4
   Version: 4.1.0
  Platform: PC
   URL: http://www.intelligence.tuc.gr/aler/login.html
OS/Version: All
Status: NEW
  Severity: Critical
  Priority: Other
 Component: Servlet  JSP API
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When i am trying to open a database connection using this command 

%--Retrieving profiles for current user --%
database:dbOpen  connId=ProfilesConnection
  user=%=UserSession.getdbUser()%
  password=%=UserSession.getdbPass()%
  URL=%=UserSession.getdbURL()%
  scope=page commitOnClose=true
/database:dbOpen

using the oracle custom tag library for Jdeveloper

I get the error bellow although the same program works fine on Tomcat 3.

javax.servlet.ServletException: 
oracle.jsp.dbutil.ConnBean.getDataSource()Ljava/lang/String;
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
at org.apache.jsp.profiles_jsp._jspService(profiles_jsp.java:309)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDi
...

Steps to reproduce:
Try [EMAIL PROTECTED]/mike at http://www.intelligence.tuc.gr/aler/login.html
as email/password.

Expected results:
The program profiles.jsp should read data from the database 
and show them on the screen.

Additional Builds and Platforms:
- Occurs on Tomcat 4.1 on Linux or Windows.
- Doesn't occur on Tomcat 3 on Linux or Windows.
  


Additional Information: 
The custom tag library for oracle and Jdeveloper 
can be downloaded from http://otn.oracle.com 


the whole file that this happens is profiles.jsp bellow.


%@ taglib uri=sqltaglib.tld prefix=database %
html

jsp:useBean id=UserSession class=alert.LoginBean scope=session 
/jsp:useBean

head

meta http-equiv=Content-Type content=text/html; charset=windows-1252 /
meta name=description content=Library Alert System Technical University of Crete
meta name=keywords content=library , alert , technical , university , crete
meta name=author content=Giannis Alexakis


titleLibrary Alert Service/title
link rel=stylesheet type=text/css href=style.css /

/head


body 

!-- First div, this is the left bar --
div align=center class=menu
  table border=1
tbody
tr
  td
  table cellpadding=4
tbody
tr
  thMenu/th
/tr
tr
  thhr //th
/tr
tr
  td class=button onMouseover=this.style.backgroundColor='#ADD1E9' 
onMouseout=this.style.backgroundColor='#EE'
  a href=logout.jspLogout/a/td
/tr
tr
  td class=button onMouseover=this.style.backgroundColor='#ADD1E9' 
onMouseout=this.style.backgroundColor='#EE' 
  a href=userinfo.jspPersonal/a/td
/tr
tr
  td class=button onMouseover=this.style.backgroundColor='#ADD1E9' 
onMouseout=this.style.backgroundColor='#EE'
  a href=profiles.jspProfiles/a/td
/tr
tr
  td class=button onMouseover=this.style.backgroundColor='#ADD1E9' 
onMouseout=this.style.backgroundColor='#EE'
  a href=helpuser.htmlHelp/a/td
/tr
  /tbody
  /table
  /td
/tr
  /tbody
  /table
/div

!-- Second div, bar at top --
div class=top align=right
  h3 class=headerLibrary Alert Service/h3
/div
div class=image
  img src=tuc_logo.gif width=40 height=40 alt=logo /
/div

!-- Third div, bar at bottom --
div class=footer align=left
  Send comments to the
  a class=author href=mailto:[EMAIL PROTECTED]?subject=Alert comments
  author/a br /
  script language=JavaScript type=text/javascript
// append a modification date only if server provides a valid date
if (Date.parse(document.lastModified)  0)
{
document.write('last modified:' + document.lastModified + 'BR'); 
}
  /script
/div

!--Main div--
div class=main
center



%--This is the command that produces the bug--%

DO NOT REPLY [Bug 17203] New: - Tomcat 4.1 and oracle custom tags for Jdeveloper

2003-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17203.
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=17203

Tomcat 4.1 and oracle custom tags for Jdeveloper

   Summary: Tomcat 4.1 and oracle custom tags for Jdeveloper
   Product: Tomcat 4
   Version: 4.1.0
  Platform: PC
   URL: http://www.intelligence.tuc.gr/aler/login.html
OS/Version: All
Status: NEW
  Severity: Critical
  Priority: Other
 Component: Servlet  JSP API
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When i am trying to open a database connection using this command 

%--Retrieving profiles for current user --%
database:dbOpen  connId=ProfilesConnection
  user=%=UserSession.getdbUser()%
  password=%=UserSession.getdbPass()%
  URL=%=UserSession.getdbURL()%
  scope=page commitOnClose=true
/database:dbOpen

using the oracle custom tag library for Jdeveloper

I get the error bellow although the same program works fine on Tomcat 3.

javax.servlet.ServletException: 
oracle.jsp.dbutil.ConnBean.getDataSource()Ljava/lang/String;
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
at org.apache.jsp.profiles_jsp._jspService(profiles_jsp.java:309)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDi
...

Steps to reproduce:
Try [EMAIL PROTECTED]/mike at http://www.intelligence.tuc.gr/aler/login.html
as email/password.

Expected results:
The program profiles.jsp should read data from the database 
and show them on the screen.

Additional Builds and Platforms:
- Occurs on Tomcat 4.1 on Linux or Windows.
- Doesn't occur on Tomcat 3 on Linux or Windows.
  


Additional Information: 
The custom tag library for oracle and Jdeveloper 
can be downloaded from http://otn.oracle.com 


the whole file that this happens is profiles.jsp bellow.


%@ taglib uri=sqltaglib.tld prefix=database %
html

jsp:useBean id=UserSession class=alert.LoginBean scope=session 
/jsp:useBean

head

meta http-equiv=Content-Type content=text/html; charset=windows-1252 /
meta name=description content=Library Alert System Technical University of Crete
meta name=keywords content=library , alert , technical , university , crete
meta name=author content=Giannis Alexakis


titleLibrary Alert Service/title
link rel=stylesheet type=text/css href=style.css /

/head


body 

!-- First div, this is the left bar --
div align=center class=menu
  table border=1
tbody
tr
  td
  table cellpadding=4
tbody
tr
  thMenu/th
/tr
tr
  thhr //th
/tr
tr
  td class=button onMouseover=this.style.backgroundColor='#ADD1E9' 
onMouseout=this.style.backgroundColor='#EE'
  a href=logout.jspLogout/a/td
/tr
tr
  td class=button onMouseover=this.style.backgroundColor='#ADD1E9' 
onMouseout=this.style.backgroundColor='#EE' 
  a href=userinfo.jspPersonal/a/td
/tr
tr
  td class=button onMouseover=this.style.backgroundColor='#ADD1E9' 
onMouseout=this.style.backgroundColor='#EE'
  a href=profiles.jspProfiles/a/td
/tr
tr
  td class=button onMouseover=this.style.backgroundColor='#ADD1E9' 
onMouseout=this.style.backgroundColor='#EE'
  a href=helpuser.htmlHelp/a/td
/tr
  /tbody
  /table
  /td
/tr
  /tbody
  /table
/div

!-- Second div, bar at top --
div class=top align=right
  h3 class=headerLibrary Alert Service/h3
/div
div class=image
  img src=tuc_logo.gif width=40 height=40 alt=logo /
/div

!-- Third div, bar at bottom --
div class=footer align=left
  Send comments to the
  a class=author href=mailto:[EMAIL PROTECTED]?subject=Alert comments
  author/a br /
  script language=JavaScript type=text/javascript
// append a modification date only if server provides a valid date
if (Date.parse(document.lastModified)  0)
{
document.write('last modified:' + document.lastModified + 'BR'); 
}
  /script
/div

!--Main div--
div class=main
center



%--This is the command that produces the bug--%

cvs commit: jakarta-tomcat-5 build.properties.default

2003-02-19 Thread remm
remm2003/02/19 06:39:20

  Modified:.build.properties.default
  Log:
  - Update to the new binaries provided by Mldaen.
  
  Revision  ChangesPath
  1.69  +3 -3  jakarta-tomcat-5/build.properties.default
  
  Index: build.properties.default
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/build.properties.default,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- build.properties.default  16 Feb 2003 18:28:47 -  1.68
  +++ build.properties.default  19 Feb 2003 14:39:20 -  1.69
  @@ -72,8 +72,8 @@
   commons-daemon.lib=${commons-daemon.home}/dist
   commons-daemon.jar=${commons-daemon.lib}/commons-daemon.jar
   commons-daemon.procrun.home=${commons-daemon.home}/src/native/nt/procrun/bin
  -commons-daemon.procrun.exe=${commons-daemon.procrun.home}/procrun.exe
  -commons-daemon.procrunw.exe=${commons-daemon.procrun.home}/procrunw.exe
  +commons-daemon.procrun.exe=${commons-daemon.procrun.home}/tomcat.exe
  +commons-daemon.procrunw.exe=${commons-daemon.procrun.home}/tomcatw.exe
   commons-daemon.loc=jakarta-commons-sandbox/daemon
   commons-daemon.cvs.loc=jakarta-commons-sandbox/daemon
   
  
  
  

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




cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/valves ErrorDispatcherValve.java LocalStrings.properties

2003-02-19 Thread glenn
glenn   2003/02/19 06:42:40

  Modified:catalina/src/share/org/apache/catalina/connector
ResponseBase.java
   catalina/src/share/org/apache/catalina/valves
ErrorDispatcherValve.java LocalStrings.properties
  Added:   catalina/src/share/org/apache/catalina/connector
ClientAbortException.java
  Log:
  When a remote client aborts an HTTP Request a full stack trace
  for the IOException is logged and if the web application has an
  error page it will be invoked. Logging the complete stack trace
  is not needed and is just extra overhead.  This patch logs just
  a single line with a message stating that the remote client
  aborted the request.  If the remote client aborted the request
  it is a waste of time to try and return an error page.  This
  patch detects when a remote client aborted a request and just
  terminates the request rather than try to process an error page.
  
  Revision  ChangesPath
  1.26  +9 -4  
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseBase.java
  
  Index: ResponseBase.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseBase.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- ResponseBase.java 18 Mar 2002 07:15:39 -  1.25
  +++ ResponseBase.java 19 Feb 2003 14:42:40 -  1.26
  @@ -673,6 +673,11 @@
   if (bufferCount  0) {
   try {
   output.write(buffer, 0, bufferCount);
  +} catch(IOException ioe) {
  +// An IOException on a write is almost always due to
  +// the remote client aborting the request.  Wrap this
  +// so that it can be handled better by the error dispatcher.
  +throw new ClientAbortException(ioe);
   } finally {
   bufferCount = 0;
   }
  
  
  
  1.1  
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ClientAbortException.java
  
  Index: ClientAbortException.java
  ===
  /*
   * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ClientAbortException.java,v
 1.1 2003/02/19 14:42:40 glenn Exp $
   * $Revision: 1.1 $
   * $Date: 2003/02/19 14:42:40 $
   *
   * 
   *
   * 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.
   * 

DO NOT REPLY [Bug 17204] New: - jsp:element generates incorrect output when used in a JSP Document and the element includes an xmlns attribute.

2003-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17204.
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=17204

jsp:element generates incorrect output when used in a JSP Document and the element 
includes an xmlns attribute.

   Summary: jsp:element generates incorrect output when used in a
JSP Document and the element includes an xmlns
attribute.
   Product: Tomcat 5
   Version: Nightly Build
  Platform: All
OS/Version: All
Status: NEW
  Severity: Major
  Priority: Other
 Component: Jasper2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Given the following segment within a JSP Document:

jsp:element name=elementName
xmlns:jsp=http://java.sun.com/JSP/Pagebody/jsp:element

Will generate the following:

  elementName xmlns:jsp=http://java.sun.com/JSP/Page;body/elementName

The xmlns attribute in this case shouldn't be passed through to the output,
unless explicitly set using a jsp:attribute action.

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




cvs commit: jakarta-tomcat-4.0 RELEASE-NOTES-4.1.txt

2003-02-19 Thread glenn
glenn   2003/02/19 06:47:04

  Modified:.RELEASE-NOTES-4.1.txt
  Log:
  Update release notes
  
  Revision  ChangesPath
  1.56  +6 -1  jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt
  
  Index: RELEASE-NOTES-4.1.txt
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- RELEASE-NOTES-4.1.txt 12 Feb 2003 10:29:32 -  1.55
  +++ RELEASE-NOTES-4.1.txt 19 Feb 2003 14:47:04 -  1.56
  @@ -684,6 +684,11 @@
   
   [4.1.20] ApplicationContext:
Add a workaround to allow retrieving contexts from the root context.
  +
  +[4.1.21] ErrorDispatcherValve
  + Aborted requests by remote clients are now detected so that a one
  + line entry is logged instead of a complete stack trace and the
  + request is terminated instead of trying to invoke an error page.
   
   
   
  
  
  

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




DO NOT REPLY [Bug 17205] New: - connector compile 4118 on aix 5 problems

2003-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17205.
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=17205

connector compile 4118 on aix 5 problems

   Summary: connector compile 4118 on aix 5 problems
   Product: Tomcat 4
   Version: 4.1.18
  Platform: Other
OS/Version: AIX
Status: NEW
  Severity: Major
  Priority: Other
 Component: Connector:Other
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


i have tried to compile connector 4118 on aix 5.1 ML 3
i got this error messages
/software/jakarta/connectors/4118/jakarta-tomcat-connectors-4.1.18-
src/jk/native make
Making all in common
Target all is up to date.
Making all in apache-1.3
/usr/bin/libtool --mode=compile gcc -DUSE_APACHE_MD5 -I ./common/ -
I /usr/java13_64/include -I /usr/java13_64/include/ -
I/software/jakarta/apache/1327/apache_1.3.27/src/include  -
I/software/jakarta/apache/1327/apache_1.3.27/src/os/unix -I./common -c  -o 
mod_jk.lo
gcc -DUSE_APACHE_MD5 -I ./common/ -I /usr/java13_64/include -
I /usr/java13_64/include/ -
I/software/jakarta/apache/1327/apache_1.3.27/src/include -
I/software/jakarta/apache/1327/apache_1.3.27/src/os/unix -I./common -c  -DPIC -
o mod_jk.lo
gcc: No input files
make: The error code from the last command is 1.


Stop.
make: The error code from the last command is 1.


Stop.
SRV09903-root:/software/jakarta/connectors/4118/jakarta-tomcat-connectors-
4.1.18-src/jk/native 

has anyone ever succesfully compiled connector on aix ?
if yes...can you help me?
thanks a lot
vince

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




Re: [5.0.1] Tagging today

2003-02-19 Thread jean-frederic clere
Clere, Jean-Frederic wrote:

Remy Maucherat wrote:


Costin Manolache wrote:


Remy Maucherat wrote:



Jeanfrancois Arcand wrote:


Are you able to build it? The nightly build failled with the following
(see below). I will look at the failure latter this afternoon...




It's a hint that there are urgent bugs to fix in either JspC or Jasper,
which make precompilation fail (read my commit massage to see the full
story) ;-)





Well, we can't release a milestone with both gump and normal build 
failing.
At this point disabling the precompilation seems the best short-term
workaround, but I think we should rather wait with the milestone 
until the
fix is available.



That's reasonable.
+1 for fixing the bugs (I tried a bit and failed).

I'd need a Win9x compatible version of procrun to make the release, 
also :)


I will try to test and fix the win9x code.


The test shows it it is not OK. I will now look for a fix.


But the only win9x machine I have here is _very_ slow.



Remy


-
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: cvs commit:jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compilerTagFileProcessor.java

2003-02-19 Thread Kin-Man Chung
The fix looks OK, except that you still need to put the call to
incTripCount in a synchronized block.  Of course that won't
be necessary for JSPC.

There may better solutions to this problem, and I'll look into that.
I'll also make sure that there won't be problems using jspc on tag
files.


 Date: Wed, 19 Feb 2003 07:03:46 +
 From: [EMAIL PROTECTED]
 Subject: cvs commit: 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler 
TagFileProcessor.java
 To: [EMAIL PROTECTED]
 
 billbarker2003/02/18 23:03:45
 
   Modified:jasper2/src/share/org/apache/jasper
 JspCompilationContext.java
jasper2/src/share/org/apache/jasper/compiler
 TagFileProcessor.java
   Log:
   Fix for most of the pre-compile problems with TC-5.
   
   The basic problem is that with Jspc, there is no 'RuntimeContext'.  I've 
patched around the worst parts of it, but I'm the first to admit that I don't 
know Jasper down to this sort of level.
   
   Jan, Kin-Man, please review (and feel free to -1 if I've broken something).
   
   Revision  ChangesPath
   1.32  +5 -3  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.
java
   
   Index: JspCompilationContext.java
   ===
   RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilati
onContext.java,v
   retrieving revision 1.31
   retrieving revision 1.32
   diff -u -r1.31 -r1.32
   --- JspCompilationContext.java  12 Feb 2003 16:37:11 -  1.31
   +++ JspCompilationContext.java  19 Feb 2003 07:03:44 -  1.32
   @@ -201,6 +201,8 @@
public ClassLoader getClassLoader() {
if( loader != null )
return loader;
   +   if( rctxt == null) 
   +   return getClass().getClassLoader();
return rctxt.getParentClassLoader();
}

   
   
   
   1.40  +62 -49
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagFileProces
sor.java
   
   Index: TagFileProcessor.java
   ===
   RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Tag
FileProcessor.java,v
   retrieving revision 1.39
   retrieving revision 1.40
   diff -u -r1.39 -r1.40
   --- TagFileProcessor.java   5 Feb 2003 23:35:21 -   1.39
   +++ TagFileProcessor.java   19 Feb 2003 07:03:45 -  1.40
   @@ -412,60 +412,73 @@

   JspCompilationContext ctxt = compiler.getCompilationContext();
   JspRuntimeContext rctxt = ctxt.getRuntimeContext();
   -JspServletWrapper wrapper =
   +   JspServletWrapper wrapper = null;
   +   if( rctxt != null ) {
   +   wrapper =
   (JspServletWrapper) rctxt.getWrapper(tagFilePath);

   -   synchronized(rctxt) {
   -   if (wrapper == null) {
   -   wrapper = new JspServletWrapper(ctxt.getServletContext(),
   -   ctxt.getOptions(),
   -   tagFilePath,
   -   tagInfo,
   -   ctxt.getRuntimeContext(),
   -   (JarFile) 
ctxt.getTagFileJars().get(tagFilePath));
   -   rctxt.addWrapper(tagFilePath,wrapper);
   +   synchronized(rctxt) {
   +   if (wrapper == null) {
   +   wrapper = new JspServletWrapper(ctxt.getServletContext(),
   +   ctxt.getOptions(),
   +   tagFilePath,
   +   tagInfo,
   +   ctxt.getRuntimeContext(),
   +   (JarFile) 
ctxt.getTagFileJars().get(tagFilePath));
   +   rctxt.addWrapper(tagFilePath,wrapper);
   +   }
   }
   +   } else {
   +   wrapper = new JspServletWrapper(ctxt.getServletContext(),
   +   ctxt.getOptions(),
   +   tagFilePath,
   +   tagInfo,
   +   ctxt.getRuntimeContext(),
   +   
(JarFile)ctxt.getTagFileJars().get(tagFilePath)
   +   );
   +   }
   +

   -   Class tagClazz;
   -   int tripCount = wrapper.incTripCount();
   -   try {
   -   if (tripCount  0) {
   -   // When tripCount is greater than zero, a circular
   -   // dependency exists.  The circularily dependant tag
   -   // file is compiled in prototype mode, to avoid infinite
   -   // recursion.
   +   Class 

cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler ParserController.java PageInfo.java

2003-02-19 Thread luehe
luehe   2003/02/19 11:01:02

  Modified:jasper2/src/share/org/apache/jasper/compiler
ParserController.java PageInfo.java
  Log:
  Fixed NPE in encoding determination logic
  
  Revision  ChangesPath
  1.33  +9 -12 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/ParserController.java
  
  Index: ParserController.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/ParserController.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- ParserController.java 12 Feb 2003 23:44:23 -  1.32
  +++ ParserController.java 19 Feb 2003 19:00:59 -  1.33
  @@ -222,7 +222,7 @@
compiler.getPageInfo().addDependant(absFileName);
}
   
  - // Dispatch to the proper parser
  + // Dispatch to the appropriate parser
if (isXml) {
// JSP document (XML syntax)
InputStream inStream = null;
  @@ -325,16 +325,14 @@
}

if (isExternal  !isXml) {
  - // JSP (standard) syntax
  - if (pageInfo.getConfigEncoding() != null) {
  - // Encoding specified in jsp-config (used by standard syntax
  - // only)
  - sourceEnc = pageInfo.getPageEncoding();
  + // JSP (standard) syntax. Use encoding specified in jsp-config
  + // if provided.
  + sourceEnc = pageInfo.getConfigEncoding();
  + if (sourceEnc != null) {
return;
  - } else {
  - // We don't know the encoding
  - sourceEnc = ISO-8859-1;
}
  + // We don't know the encoding
  + sourceEnc = ISO-8859-1;
} else {
// XML syntax or unknown, (auto)detect encoding ...
Object[] ret = XMLEncodingDetector.getEncoding(fname, jarFile,
  @@ -409,9 +407,8 @@
 * Determine the page encoding from the page directive, unless it's
 * specified via JSP config.
 */
  - if (pageInfo.getPageEncoding() != null) {
  - sourceEnc = pageInfo.getPageEncoding();
  - } else {
  + sourceEnc = pageInfo.getConfigEncoding();
  + if (sourceEnc == null) {
sourceEnc = getSourceEncodingForJspSyntax(jspReader, startMark);
}
   
  
  
  
  1.21  +11 -3 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageInfo.java
  
  Index: PageInfo.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageInfo.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- PageInfo.java 13 Feb 2003 19:46:11 -  1.20
  +++ PageInfo.java 19 Feb 2003 19:00:59 -  1.21
  @@ -263,10 +263,18 @@
return this.isEncodingSpecifiedInProlog;
   }
   
  +/*
  + * Sets the encoding specified in the JSP config element whose URL pattern
  + * matches this page.
  + */
   public void setConfigEncoding(String enc) {
this.configEncoding = enc;
   }
   
  +/*
  + * Gets the encoding specified in the JSP config element whose URL pattern
  + * matches this page.
  + */
   public String getConfigEncoding() {
return this.configEncoding;
   }
  
  
  

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




DO NOT REPLY [Bug 16979] - xercesImpl.jar in WEB-INF/lib does not override common/endorsed

2003-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16979.
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=16979

xercesImpl.jar in WEB-INF/lib does not override common/endorsed

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|NEW



--- Additional Comments From [EMAIL PROTECTED]  2003-02-19 19:19 ---
The Tomcat 4.1.18 distribution includes the Xerces-J 2.0.1 jar file in the 
common/endorsed folder.  The documentation on classloading (webapps\tomcat-
docs\class-loader-howto.html) indicates that this parser can be overridden by 
installing a xerces jar file in WEB-INF\lib, but this does not work.  

I wrote a servlet that demonstrates that Tomcat 4.1.18 has a bug with respect 
to class loading.  The servlet reports the xerces version loaded as well as 
information on the class loader which loaded it. ( I've tried to attach a war 
file containing this servlet to this bug, but it never works.  Contact me 
directly and I will email it mailto:[EMAIL PROTECTED] )

When the war file is installed, a xercesImpl.jar file corresponding to XML4J 
4.0.6 is included in the TomcatTest/WEB-INF/lib folder.  When the 
http://localhost/TomcatTest/TestXercesVersion servlet runs on Tomcat 4.1.18, it 
reports that the xerces version loaded is Xerces-J 2.0.1 and that it was loaded 
by the StandardClassLoader class loader.  When the servlet runs on Tomcat 
4.0.6, it reports that the xerces version loaded is XML4J 4.0.6, and that it 
was loaded by the WebappClassLoader, which is correct.  Note that the tests 
were run using IBM's JDK 1.3.1.

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




cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core ApplicationDispatcher.java

2003-02-19 Thread jfarcand
jfarcand2003/02/19 12:05:33

  Modified:catalina/src/share/org/apache/catalina/core
ApplicationDispatcher.java
  Log:
  Fix bug introduced by myself. The forward information must be based on the original 
request, not on the forwarded one. Thanks to Jan for pointing the problem.
  
  Revision  ChangesPath
  1.11  +16 -18
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationDispatcher.java
  
  Index: ApplicationDispatcher.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ApplicationDispatcher.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ApplicationDispatcher.java18 Feb 2003 23:49:45 -  1.10
  +++ ApplicationDispatcher.java19 Feb 2003 20:05:33 -  1.11
  @@ -365,6 +365,7 @@
   private void doForward(ServletRequest request, ServletResponse response)
   throws ServletException, IOException
   {
  +
   // Reset any output that has been buffered, but keep headers/cookies
   if (response.isCommitted()) {
   if ( log.isDebugEnabled() )
  @@ -451,21 +452,18 @@
   wrequest.setServletPath(servletPath);
   wrequest.setPathInfo(pathInfo);
   
  -if (sb.length()  0)
  -wrequest.setAttribute(Globals.FORWARD_REQUEST_URI_ATTR,
  -  sb.toString());
  -if (contextPath != null)
  -wrequest.setAttribute(Globals.FORWARD_CONTEXT_PATH_ATTR,
  -  contextPath);
  -if (servletPath != null)
  -wrequest.setAttribute(Globals.FORWARD_SERVLET_PATH_ATTR,
  -  servletPath);
  -if (pathInfo != null)
  -wrequest.setAttribute(Globals.FORWARD_PATH_INFO_ATTR,
  -  pathInfo);
  +wrequest.setAttribute(Globals.FORWARD_REQUEST_URI_ATTR,
  +  hrequest.getRequestURI());
  +wrequest.setAttribute(Globals.FORWARD_CONTEXT_PATH_ATTR,
  +  hrequest.getContextPath());
  +wrequest.setAttribute(Globals.FORWARD_SERVLET_PATH_ATTR,
  +  hrequest.getServletPath());
  +wrequest.setAttribute(Globals.FORWARD_PATH_INFO_ATTR,
  +  hrequest.getPathInfo());
  +wrequest.setAttribute(Globals.FORWARD_QUERY_STRING_ATTR,
  +  hrequest.getQueryString());
  + 
   if (queryString != null) {
  -wrequest.setAttribute(Globals.FORWARD_QUERY_STRING_ATTR,
  -  queryString);
   wrequest.setQueryString(queryString);
wrequest.setQueryParams(queryString);
   }
  
  
  

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




RE: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core ApplicationDispatcher.java

2003-02-19 Thread Liliana Cherlaru
Does anybody knows this when tomcat starts within idea 
and uses a web.xml file 
Invalid PUBLIC ID: -//Sun Microsystems, Inc.//DTD Web Application 1.2//EN

Thanks

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 3:06 PM
To: [EMAIL PROTECTED]
Subject: cvs commit:
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core
ApplicationDispatcher.java


jfarcand2003/02/19 12:05:33

  Modified:catalina/src/share/org/apache/catalina/core
ApplicationDispatcher.java
  Log:
  Fix bug introduced by myself. The forward information must be based on the
original request, not on the forwarded one. Thanks to Jan for pointing the
problem.
  
  Revision  ChangesPath
  1.11  +16 -18
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/Applicat
ionDispatcher.java
  
  Index: ApplicationDispatcher.java
  ===
  RCS file:
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/cor
e/ApplicationDispatcher.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ApplicationDispatcher.java18 Feb 2003 23:49:45 -  1.10
  +++ ApplicationDispatcher.java19 Feb 2003 20:05:33 -  1.11
  @@ -365,6 +365,7 @@
   private void doForward(ServletRequest request, ServletResponse
response)
   throws ServletException, IOException
   {
  +
   // Reset any output that has been buffered, but keep
headers/cookies
   if (response.isCommitted()) {
   if ( log.isDebugEnabled() )
  @@ -451,21 +452,18 @@
   wrequest.setServletPath(servletPath);
   wrequest.setPathInfo(pathInfo);
   
  -if (sb.length()  0)
  -wrequest.setAttribute(Globals.FORWARD_REQUEST_URI_ATTR,
  -  sb.toString());
  -if (contextPath != null)
  -wrequest.setAttribute(Globals.FORWARD_CONTEXT_PATH_ATTR,
  -  contextPath);
  -if (servletPath != null)
  -wrequest.setAttribute(Globals.FORWARD_SERVLET_PATH_ATTR,
  -  servletPath);
  -if (pathInfo != null)
  -wrequest.setAttribute(Globals.FORWARD_PATH_INFO_ATTR,
  -  pathInfo);
  +wrequest.setAttribute(Globals.FORWARD_REQUEST_URI_ATTR,
  +  hrequest.getRequestURI());
  +wrequest.setAttribute(Globals.FORWARD_CONTEXT_PATH_ATTR,
  +  hrequest.getContextPath());
  +wrequest.setAttribute(Globals.FORWARD_SERVLET_PATH_ATTR,
  +  hrequest.getServletPath());
  +wrequest.setAttribute(Globals.FORWARD_PATH_INFO_ATTR,
  +  hrequest.getPathInfo());
  +wrequest.setAttribute(Globals.FORWARD_QUERY_STRING_ATTR,
  +  hrequest.getQueryString());
  + 
   if (queryString != null) {
  -wrequest.setAttribute(Globals.FORWARD_QUERY_STRING_ATTR,
  -  queryString);
   wrequest.setQueryString(queryString);
wrequest.setQueryParams(queryString);
   }
  
  
  

-
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]




cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster Constants.java JGCluster.java JGManager.java ReplicatedSession.java ReplicationStream.java SerializablePrincipal.java SessionMessage.java

2003-02-19 Thread fhanik
fhanik  2003/02/19 12:24:10

  Removed: modules/cluster/src/share/org/apache/catalina/cluster
Constants.java JGCluster.java JGManager.java
ReplicatedSession.java ReplicationStream.java
SerializablePrincipal.java SessionMessage.java
  Log:
  Old replication, should not be there

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




cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp - New directory

2003-02-19 Thread fhanik
fhanik  2003/02/19 12:30:11

  jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp - 
New directory

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




cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/mcast - New directory

2003-02-19 Thread fhanik
fhanik  2003/02/19 12:30:31

  jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/mcast 
- New directory

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




cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/io - New directory

2003-02-19 Thread fhanik
fhanik  2003/02/19 12:30:40

  jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/io - 
New directory

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




cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session - New directory

2003-02-19 Thread fhanik
fhanik  2003/02/19 12:30:48

  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session 
- New directory

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




cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster Constants.java Member.java MembershipFactory.java MembershipListener.java MembershipService.java

2003-02-19 Thread fhanik
fhanik  2003/02/19 12:57:17

  Added:   modules/cluster/src/share/org/apache/catalina/cluster
Constants.java Member.java MembershipFactory.java
MembershipListener.java MembershipService.java
  Log:
  forgot to check in these files
  
  Revision  ChangesPath
  1.3   +3 -3  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/Constants.java
  
  
  
  
  1.1  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/Member.java
  
  Index: Member.java
  ===
  /*
   * $Header: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/Member.java,v
 1.1 2003/02/19 20:57:17 fhanik Exp $
   * $Revision: 1.1 $
   * $Date: 2003/02/19 20:57:17 $
   *
   * 
   *
   * 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
   * http://www.apache.org/.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.catalina.cluster;
  
  /**
   * The Member interface, defines a member in the Cluster.
   * A member is a Tomcat process that participates in session replication.BR
   * Each member can carry a set of properties, defined by the actual 
implementation.BR
   * For TCP replication has been targeted for the first release, the hostname and 
listen port
   * of the member is defined as hardcoded stuff.BR
   * The Member interface together with MembershipListener, MembershipService are 
interfaces used to
   * switch out the service used to establish membership in between the cluster nodes.
   *
   * @author Filip Hanik
   * @version $Revision: 1.1 $, $Date: 2003/02/19 20:57:17 $
   */
  
  
  public interface Member {
  /**
   * Return implementation specific properties about this cluster node.
   * @return
   */
  public java.util.HashMap getMemberProperties();
  /**
   * Returns the name of this node, should be unique within the cluster.
   * @return
   */
  public String getName();
  /**
   * Returns the TCP listen host for the TCP implementation
   * @return
   */
  public String getHost();
  /**
   * Returns the TCP listen portfor the TCP implementation
   * @return
   */
  public 

cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans mbeans-descriptors.xml

2003-02-19 Thread fhanik
fhanik  2003/02/19 13:06:40

  Modified:catalina/src/share/org/apache/catalina/mbeans
mbeans-descriptors.xml
  Log:
  added in cluster definitions
  
  Revision  ChangesPath
  1.17  +25 -6 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/mbeans-descriptors.xml
  
  Index: mbeans-descriptors.xml
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/mbeans-descriptors.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- mbeans-descriptors.xml30 Jan 2003 14:24:43 -  1.16
  +++ mbeans-descriptors.xml19 Feb 2003 21:06:40 -  1.17
  @@ -2305,12 +2305,12 @@
 /mbean
   
   
  -  mbean name=JGCluster
  +  mbean name=SimpleTcpCluster
   className=org.apache.catalina.mbeans.ClassNameMBean
  -  description=JavaGrtoups Cluster implementation
  +  description=Tcp Cluster implementation
  domain=Catalina
   group=Cluster
  - type=org.apache.catalina.cluster.JGCluster
  + type=org.apache.catalina.cluster.tcp.SimpleTcpCluster
   
   attribute   name=protocolStack
 description=JavaGroups protocol stack selection
  @@ -2319,12 +2319,12 @@
 /mbean
   
   
  -  mbean name=JGManager
  +  mbean name=SimpleTcpReplicationManager
   className=org.apache.catalina.mbeans.ClassNameMBean
 description=Clustered implementation of the Manager interface
  domain=Catalina
   group=Manager
  - type=org.apache.catalina.cluster.JGManager
  + type=org.apache.catalina.cluster.tcp.SimpleTcpReplicationManager
   
   attribute   name=algorithm
 description=The message digest algorithm to be used when generating
  @@ -2443,6 +2443,25 @@
  domain=Catalina
   group=Valve
type=org.apache.catalina.core.StandardWrapperValve
  +
  +attribute   name=className
  +  description=Fully qualified class name of the managed object
  + type=java.lang.String
  +writeable=false/
  +
  +attribute   name=debug
  +  description=The debugging detail level for this component
  + type=int/
  +
  +  /mbean
  +
  +
  +mbean name=ReplicationValve
  +className=org.apache.catalina.mbeans.ClassNameMBean
  +  description=Valve for simple tcp replication
  +   domain=Catalina
  +group=Valve
  + type=org.apache.catalina.cluster.tcp.ReplicationValve
   
   attribute   name=className
 description=Fully qualified class name of the managed object
  
  
  

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




cvs commit: jakarta-tomcat-catalina/modules/cluster build.xml

2003-02-19 Thread fhanik
fhanik  2003/02/19 13:49:13

  Added:   modules/cluster build.xml
  Log:
  LocalStrings.properties has to be in the dist jar
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-catalina/modules/cluster/build.xml
  
  Index: build.xml
  ===
  project name=Catalina-Cluster default=dist basedir=.
  
  
!-- = Initialize Property Values === --
  
!-- See build.properties.sample in the top level directory for all --
!-- property values you must customize for successful building!!!--
!--property file=build.properties/
property file=../build.properties/
property file=${user.home}/build.properties/--
  
!-- Build Defaults --
property name=catalina.home location=../../
property name=cluster.build value=${catalina.home}/modules/cluster/build/
property name=cluster.dist value=${catalina.home}/modules/cluster/dist/
property name=cluster.lib value=../../../jakarta-tomcat-5/dist/
  
  !-- Construct Catalina classpath --
path id=catalina.classpath
  pathelement location=${cluster.lib}/server/lib/catalina.jar/
  pathelement location=${cluster.lib}/server/lib/commons-logging.jar/
  pathelement location=${cluster.lib}/server/lib/mx4j-jmx.jar/
  pathelement location=${cluster.lib}/common/lib/servlet-api.jar/
  
/path
  
  !-- Source path --
path id=javadoc.sourcepath
  pathelement location=src/share/
/path
  
  
!-- === BUILD: Set compile flags === --
target name=flags
  !-- JDK flags --
  available property=jdk.1.2.present classname=java.util.HashMap /
  available property=jdk.1.3.present 
   classname=java.lang.reflect.Proxy /
  available property=jdk.1.4.present classname=java.nio.Buffer /
/target
  
  
!-- === BUILD: Set compile flags === --
target name=flags.display depends=flags unless=flags.hide
  
  echo message=--- Build environment for Catalina --- /
  
  echo message=If ${property_name} is displayed, then the property is not set) 
/
  
  echo message=--- Build options --- /
  echo message=full.dist=${full.dist} /
  echo message=build.sysclasspath=${build.sysclasspath} /
  echo message=compile.debug=${compile.debug} /
  echo message=compile.deprecation=${compile.deprecation} /
  echo message=compile.optimize=${compile.optimize} /
  
  echo message=--- Ant Flags --- /
  echo message=lt;stylegt; task available (required)=${style.available} /
  
  echo message=--- JDK --- /
  echo message=jdk.1.2.present=${jdk.1.2.present} /
  echo message=jdk.1.3.present=${jdk.1.3.present} /
  echo message=jdk.1.4.present=${jdk.1.4.present} /
  
/target
  
!-- === BUILD: Create Directories == --
target name=build-prepare
  delete dir=${cluster.build}/classes/
  mkdir dir=${cluster.build}/
  mkdir dir=${cluster.build}/classes/
  mkdir dir=${cluster.dist}/
/target
  
  
  
  
!--  BUILD: Compile Catalina Components  --

target name=build-catalina-cluster depends=build-prepare
  !-- Compile internal server components --
  javac srcdir=src/share destdir=${cluster.build}/classes
 debug=${compile.debug} deprecation=${compile.deprecation}
 optimize=${compile.optimize}
 excludes=**/CVS/**
classpath refid=catalina.classpath /
  /javac
  copy file=src/share/org/apache/catalina/cluster/LocalStrings.properties
  
tofile=${cluster.build}/classes/org/apache/catalina/cluster/LocalStrings.properties/
/target
  
  
!--  BUILD: Create Catalina Javadocs === --
target name=javadoc
  delete dir=${cluster.build}/javadoc/
  mkdir dir=${cluster.build}/javadoc/
  javadoc packagenames=org.apache.catalina.*,org.apache.naming.*
classpathref=catalina.classpath
sourcepathref=javadoc.sourcepath
destdir=${cluster.build}/javadoc
author=true
version=true
windowtitle=Catalina Internal API Documentation
doctitle=Catalina API
bottom=Copyright #169; 2000-2002 Apache Software Foundation.  All Rights 
Reserved.
  /
/target
  
  
!-- === BUILD: Clean Directory = --
target name=build-clean
  delete dir=${cluster.build}/
/target
  
  
!--  BUILD: Rebuild Everything = --
  
  
  
  
!--  DIST: Create Distribution = --
target name=dist depends=build-catalina-cluster
  jar destfile=${cluster.dist}/tomcat-replication.jar
   basedir=${cluster.build}/classes/
/target
  
!--  DIST: Clean 

DO NOT REPLY [Bug 17223] New: - java.io.EOFexception in catalina and tomcat loosing session

2003-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17223.
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=17223

java.io.EOFexception in catalina and tomcat loosing session

   Summary: java.io.EOFexception in catalina and tomcat loosing
session
   Product: Tomcat 4
   Version: 4.1.18
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Critical
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hi,
I and many others here have had this problem for a while now. When tomcat is 
started it starts ok but after that it continuously keeps throwing the 
following exception.
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
Starting service Tomcat-Apache
Apache Tomcat/4.1.18
java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputSt
ream.java:2438)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1245)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at org.apache.catalina.session.StandardSession.readObject(StandardSessio
n.java:1337)
at org.apache.catalina.session.StandardSession.readObjectData(StandardSe
ssion.java:852)
at org.apache.catalina.session.FileStore.load(FileStore.java:337)
at org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:3
07)
at org.apache.catalina.session.StoreBase.run(StoreBase.java:368)
at java.lang.Thread.run(Thread.java:536)

Although the initial work around for this was to reinstall tomcat but this 
problem surfaces after 2 or 3 days of reinstall. Although this did not stop us 
from devlopment but recently the application has started loosing session 
information as well, which is a big show stopper as every few minutes we have 
to restart the computer to fix the problem but it starts shortly after we start 
our testing. The same piece of code if run on another computer with identical 
setup the application seems to work fine. There seems to be a memory leak 
somewhere because of which tomcat looses the session info. If anyone can please 
guide me on how to solving this problem. Thanks in advance.

Rohit.

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




Startup question

2003-02-19 Thread Filip Hanik
hi there,
with the lifecycle events, can I get an event that Tomcat has started (ie, all the 
contexts have been started)?

if so, what event is that

Filip

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




JSP @include directive

2003-02-19 Thread Alexander Leyke
I must be doing something wrong, Resources doesn't work for me. Perhaps someone can point out the problem.

I need to include a file from outside of my webapp's directory tree using directive:
%@ include file=inc/foo.inc %

For that purpose I defined Resources element like this:
Context path=/myapp docBase=myapp debug=0
  Resources name=inc/foo.inc className=org.apache.naming.resources.FileDirContext docBase=webapps/inc /
/Context

In theory I should see Tomcat opening $CATALINA_HOME/webapps/inc/foo.inc, 
but it goes for $CATALINA_HOME/webapps/myapp/inc/foo.inc.

What am I doing wrong?
Alex


Alexander Leyke wrote:
Hi,

I need to use include directive in JSP that points to file physically 
located outside directory tree for Web application context. I tested two 
forms of include directive: %@include file=/../inc/name.inc % and 
%@include file=/symlink/name.inc %.

As far as I can tell from Tomcat 4.1.18 sources the former is forbidden, 
i.e., cannot specify path that goes beyond application context. The 
latter is OK, as long as 
org.apache.naming.resources.FileDirContext.setAllowLinking() has been 
called with true argument.

You have to use a Resources element for that to be called.

Remy




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




DO NOT REPLY [Bug 17204] - jsp:element generates incorrect output when used in a JSP Document and the element includes an xmlns attribute.

2003-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17204.
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=17204

jsp:element generates incorrect output when used in a JSP Document and the element 
includes an xmlns attribute.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

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




Re: Startup question

2003-02-19 Thread Tim Funk
I think o.a.catalina.core.StandardServer.start() fires the events you 
are looking for.

-Tim

org.apache.catalina.core
Filip Hanik wrote:
hi there,
with the lifecycle events, can I get an event that Tomcat has started (ie, all the contexts have been started)?

if so, what event is that

Filip
 


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




cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler JspDocumentParser.java Node.java PageDataImpl.java

2003-02-19 Thread luehe
luehe   2003/02/19 15:39:16

  Modified:jasper2/src/share/org/apache/jasper/compiler
JspDocumentParser.java Node.java PageDataImpl.java
  Log:
  Preserve xmlns:prefix attributes in XML view.
  This also fixes 17204: jsp:element generates incorrect output when
  used in a JSP Document and the element includes an xmlns attribute
  
  Revision  ChangesPath
  1.39  +158 -113  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java
  
  Index: JspDocumentParser.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- JspDocumentParser.java13 Feb 2003 02:41:26 -  1.38
  +++ JspDocumentParser.java19 Feb 2003 23:39:15 -  1.39
  @@ -169,7 +169,7 @@
// create dummy jsp:root element
AttributesImpl rootAttrs = new AttributesImpl();
rootAttrs.addAttribute(, , version, CDATA, 2.0);
  - jspRoot = new Node.JspRoot(rootAttrs, null, null);
  + jspRoot = new Node.JspRoot(rootAttrs, null, null, null);
handler.current = jspRoot;
} else {
handler.isTop = false;
  @@ -228,24 +228,33 @@
// is valid from that point forward.  Redefinitions cause an
// error.  This isn't quite consistent with how xmlns: normally
// works.
  - Attributes attrsCopy = null;
  - try {
  - attrsCopy = addCustomTagLibraries(attrs);
  - } catch (JasperException je) {
  - throw new SAXParseException(
  -Localizer.getMessage(jsp.error.could.not.add.taglibraries),
  - locator, je );
  + AttributesImpl attrsCopy = null;
  + Attributes xmlnsAttrs = null;
  + if (attrs != null) {
  + attrsCopy = new AttributesImpl(attrs);
  + xmlnsAttrs = getXmlnsAttributes(attrsCopy);
  + if (xmlnsAttrs != null) {
  + try {
  + addCustomTagLibraries(xmlnsAttrs);
  + } catch (JasperException je) {
  + throw new SAXParseException(
  + Localizer.getMessage(
  +jsp.error.could.not.add.taglibraries),
  + locator, je);
  + }
  + }
}
   
Node node = null;
if (qName.startsWith(jsp:)) {
  - node = parseStandardAction(qName, attrs, attrsCopy, start,
  + node = parseStandardAction(qName, attrsCopy, xmlnsAttrs, start,
   current);
} else {
  - node = parseCustomAction(qName, attrsCopy, start, current);
  + node = parseCustomAction(qName, attrsCopy, xmlnsAttrs, start,
  +  current);
if (node == null) {
  - node = new Node.UninterpretedTag(attrsCopy, start, qName,
  -  current);
  + node = new Node.UninterpretedTag(qName, attrsCopy, xmlnsAttrs,
  +  start, current);
}
}
   
  @@ -483,7 +492,7 @@
   // Private utility methods
   
   private Node parseStandardAction(String qName, Attributes attrs,
  -  Attributes attrsCopy, Mark start,
  +  Attributes xmlnsAttrs, Mark start,
 Node parent)
throws SAXException {
   
  @@ -493,7 +502,7 @@
   // give the jsp:root element the original attributes set
   // (attrs) instead of the copy without the xmlns: elements 
   // (attrsCopy)
  - node = new Node.JspRoot(new AttributesImpl(attrs), start, current);
  + node = new Node.JspRoot(attrs, xmlnsAttrs, start, current);
if (isTop) {
pageInfo.setHasJspRoot(true);
}
  @@ -503,45 +512,46 @@
Localizer.getMessage(jsp.error.action.istagfile, qName),
locator);
}
  - node = new Node.PageDirective(attrsCopy, start, current);
  + node = new Node.PageDirective(attrs, xmlnsAttrs, start, current);
String imports = attrs.getValue(import);
// There can only be one 'import' attribute per page directive
if (imports != null) {
((Node.PageDirective) node).addImport(imports);
}
} else if (qName.equals(JSP_INCLUDE_DIRECTIVE)) {
  - node = new Node.IncludeDirective(attrsCopy, start, current);
  - processIncludeDirective(attrsCopy.getValue(file), node);
  + node = new Node.IncludeDirective(attrs, xmlnsAttrs, start,
  +  current);
  + 

Re: JDK 1.4 - again

2003-02-19 Thread Steve Burrus
What do u mean by a Resin 3.0 anyway?? What kind of a web container is that? I have 
NEVER really heard about that ever before! Would you please humor me and tell me all 
this resin 3.0? You say that it's a lot faster than Tomcat. How can that possibly be. 
Tomcat is pretty fast.


cvs commit: jakarta-tomcat-5 build.properties.default

2003-02-19 Thread jfarcand
jfarcand2003/02/19 16:48:13

  Modified:.build.properties.default
  Log:
  Update to the latest LogKit release (1.2)
  
  Revision  ChangesPath
  1.70  +2 -2  jakarta-tomcat-5/build.properties.default
  
  Index: build.properties.default
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/build.properties.default,v
  retrieving revision 1.69
  retrieving revision 1.70
  diff -u -r1.69 -r1.70
  --- build.properties.default  19 Feb 2003 14:39:20 -  1.69
  +++ build.properties.default  20 Feb 2003 00:48:12 -  1.70
  @@ -141,7 +141,7 @@
   logkit.home=${base.path}/LogKit-1.1
   logkit.lib=${logkit.home}
   logkit.jar=${logkit.lib}/logkit-1.1.jar
  
-logkit.loc=http://jakarta.apache.org/builds/jakarta-avalon/release/logkit/latest/LogKit-1.1-bin.tar.gz
  
+logkit.loc=http://jakarta.apache.org/builds/jakarta-avalon/release/logkit/latest/LogKit-1.2-bin.tar.gz
   
   
   # - Commons DBCP, version 1.0 or later -
  
  
  

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




cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler JspDocumentParser.java Node.java PageDataImpl.java Parser.java

2003-02-19 Thread luehe
luehe   2003/02/19 17:02:52

  Modified:jasper2/src/share/org/apache/jasper/compiler
JspDocumentParser.java Node.java PageDataImpl.java
Parser.java
  Log:
  - When adding a jsp:root element to the XML view of a JSP document, do not
populate it with an xmlns:jsp=... attribute (add this attribute only to
the jsp:root element of the XML view of a JSP page in *standard* syntax).
  
  - Added support for jsp:element to XML view
  
  Revision  ChangesPath
  1.40  +5 -7  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java
  
  Index: JspDocumentParser.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- JspDocumentParser.java19 Feb 2003 23:39:15 -  1.39
  +++ JspDocumentParser.java20 Feb 2003 01:02:51 -  1.40
  @@ -162,14 +162,12 @@
}
   
Node.Nodes pageNodes = null;
  - Node.JspRoot jspRoot = null;
  + Node.Root jspRoot = null;
   
try {
if (parent == null) {
// create dummy jsp:root element
  - AttributesImpl rootAttrs = new AttributesImpl();
  - rootAttrs.addAttribute(, , version, CDATA, 2.0);
  - jspRoot = new Node.JspRoot(rootAttrs, null, null, null);
  + jspRoot = new Node.Root();
handler.current = jspRoot;
} else {
handler.isTop = false;
  
  
  
  1.58  +16 -7 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Node.java
  
  Index: Node.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Node.java,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- Node.java 19 Feb 2003 23:39:15 -  1.57
  +++ Node.java 20 Feb 2003 01:02:51 -  1.58
  @@ -343,8 +343,16 @@
   
private Root parentRoot;
   
  - Root(Attributes attrs, Mark start, Node parent) {
  - super(attrs, start, parent);
  + /*
  +  * Constructor for dummy root.
  +  */
  + Root() {}
  +
  + /*
  +  * Constructor.
  +  */
  + Root(Mark start, Node parent) {
  + super(start, parent);
   
// Figure out and set the parent root
Node r = parent;
  @@ -362,7 +370,7 @@
}
   
/**
  -  * @return The enclosing root to this root.  Usually represents the
  +  * @return The enclosing root to this root. Usually represents the
 * page that includes this one.
 */
public Root getParentRoot() {
  @@ -377,7 +385,8 @@
   
public JspRoot(Attributes attrs, Attributes xmlnsAttrs, Mark start,
   Node parent) {
  - super(attrs, start, parent);
  + super(start, parent);
  + this.attrs = attrs;
this.xmlnsAttrs = xmlnsAttrs;
}
   
  
  
  
  1.22  +42 -43
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java
  
  Index: PageDataImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- PageDataImpl.java 19 Feb 2003 23:39:15 -  1.21
  +++ PageDataImpl.java 20 Feb 2003 01:02:51 -  1.22
  @@ -97,24 +97,9 @@
   private static final String CDATA_START_SECTION = ![CDATA[\n;
   private static final String CDATA_END_SECTION = ]]\n;
   
  -// default xmlns:jsp and version attributes of jsp:root element
  -private static AttributesImpl defaultJspRootAttrs;
  -
   // string buffer used to build XML view
   private StringBuffer buf;
   
  -/*
  - * Static initializer which sets the xmlns:jsp and version 
  - * attributes of the jsp:root element to their default values.
  - */
  -static {
  - defaultJspRootAttrs = new AttributesImpl();
  - defaultJspRootAttrs.addAttribute(, , xmlns:jsp, CDATA,
  -  JSP_NAMESPACE);
  - defaultJspRootAttrs.addAttribute(, , version, CDATA,
  -  JSP_VERSION);
  -}
  -
   /**
* Constructor.
*
  @@ -124,15 +109,16 @@
throws JasperException {
   
// First pass
  - FirstPassVisitor firstPassVisitor
  - = new FirstPassVisitor(page.getRoot());
  - page.visit(firstPassVisitor);
  + boolean isXml = compiler.getPageInfo().isXml();
  + FirstPassVisitor firstPass = new FirstPassVisitor(page.getRoot(),
  + 

cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Node.java

2003-02-19 Thread luehe
luehe   2003/02/19 18:14:19

  Modified:jasper2/src/share/org/apache/jasper/compiler Node.java
  Log:
  Added zero-arg constructor (needed by Node.Root)
  
  Revision  ChangesPath
  1.59  +8 -3  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Node.java
  
  Index: Node.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Node.java,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- Node.java 20 Feb 2003 01:02:51 -  1.58
  +++ Node.java 20 Feb 2003 02:14:18 -  1.59
  @@ -95,6 +95,11 @@
   private boolean isDummy;
   
   /**
  + * Zero-arg Constructor.
  + */
  +public Node() {}
  +
  +/**
* Constructor.
* @param start The location of the jsp page
* @param parent The enclosing node
  
  
  

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




DO NOT REPLY [Bug 17231] New: - POST is not work with some wml browser...

2003-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17231.
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=17231

POST is not work with some wml browser...

   Summary: POST is not work with some wml browser...
   Product: Tomcat 4
   Version: 4.1.8
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Critical
  Priority: Other
 Component: Servlet  JSP API
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Some wml browser does not work with POST method.
I guess this problem is caused by HTTP header content-type(application/x-www-
form-urlencoded).

phone browser's HTTP header here: (Samsung, SK Telecom and so on...)

content-type=application/x-www-form-urlencoded;charset=iso-8859-1

content-type=application/x-www-form-urlencoded;SKY – charset=Korean

catalina source here: in org.apache.catalina.connector.HttpRequestBase

protected void parseParameters() {

...
if (POST.equals(getMethod())  (getContentLength()  0)
 (this.stream == null)
 application/x-www-form-urlencoded.equals(contentType)) {
...
}

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




Web browser authenticates to Tomcat Server using Client SSL authentication

2003-02-19 Thread Simon
Hi ,

Have configured Tomcat to use SSL with client authentication set to true.
Have imported client (which is the web browser IE) certificate to tomcat
server keystore.
But when I use IE to connect to Tomcat, it pops up a message box saying The
Web site you want to view requests identification. Select the certificate to
use when connecting. Problem is that there is no certificate displayed to
select.

Does anyone know how to solve this using the current setup ?

regards,
Hon Luen

__
Do You Yahoo!?
Promote your business from just $5 a month!
http://sg.biztools.yahoo.com

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




cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler TagFileProcessor.java

2003-02-19 Thread billbarker
billbarker2003/02/19 22:16:38

  Modified:jasper2/src/share/org/apache/jasper/compiler
TagFileProcessor.java
  Log:
  Restore the syncing of the tripCount, at least when running from JspServlet.
  
  Revision  ChangesPath
  1.42  +6 -3  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagFileProcessor.java
  
  Index: TagFileProcessor.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagFileProcessor.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- TagFileProcessor.java 19 Feb 2003 07:39:49 -  1.41
  +++ TagFileProcessor.java 20 Feb 2003 06:16:38 -  1.42
  @@ -413,6 +413,7 @@
   JspCompilationContext ctxt = compiler.getCompilationContext();
   JspRuntimeContext rctxt = ctxt.getRuntimeContext();
   JspServletWrapper wrapper = null;
  +int tripCount;
   if( rctxt != null ) {
   wrapper =
   (JspServletWrapper) rctxt.getWrapper(tagFilePath);
  @@ -427,6 +428,8 @@
   (JarFile) 
ctxt.getTagFileJars().get(tagFilePath));
   rctxt.addWrapper(tagFilePath,wrapper);
   }
  +tripCount = wrapper.incTripCount();
  +
   }
   } else {
   wrapper = new JspServletWrapper(ctxt.getServletContext(),
  @@ -436,11 +439,11 @@
   ctxt.getRuntimeContext(),
   
(JarFile)ctxt.getTagFileJars().get(tagFilePath)
   );
  +tripCount = wrapper.incTripCount();
   }

   
   Class tagClazz;
  -int tripCount = wrapper.incTripCount();
   try {
   if (tripCount  0) {
   // When tripCount is greater than zero, a circular
  
  
  

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




DO NOT REPLY [Bug 17193] - java.net.bindException during shutdown in Tomcat 4.1.18

2003-02-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17193.
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=17193

java.net.bindException during shutdown in Tomcat 4.1.18





--- Additional Comments From [EMAIL PROTECTED]  2003-02-20 
06:42 ---
nobody seems to be interested in resolving this bug!!!

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