DO NOT REPLY [Bug 25508] New: - JNDI Does Set Up comp namespace

2003-12-14 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=25508.
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=25508

JNDI Does Set Up comp namespace

   Summary: JNDI Does Set Up comp namespace
   Product: Tomcat 4
   Version: 4.1.15
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: Major
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I labeled this bug as Major because of its fundamental nature and because I 
spent about 3 weaks trying to figure this one out.  I wanted to use JNDI to 
access a data source and access environmental variables defined in server.xml.  
I got the exception:

javax.naming.NameNotFoundException: Name comp is not bound in this Context

See transcripts below from the Tomcat Users Mailing List about the problem and 
errors in server.xml, but briefly:

1) I used multiple Service tags
2) I tried using JNDI in the 2nd Service tag
3) In the first Service tag I used 2 Context tags
4) In the first Service tag, the Host tag sets autoDeploy.

5a) Multiple Context tags in the first Service tag causes the exception
5b) Setting autoDeploy=true in the above Host tag causes the exception.

Fix 5a and 5B and JNDI works.

These symptoms and behaviors are not documented, hence the 3 weeks mentioned 
above.  Either Service tags should not allow multiple Context tags (in 
which case the failure to notify or burp is a bug) or JNDI should not be 
affected by multiple Context tags.  Also, JNDI should not depend on the value 
of autoDeploy.

Thanks
=  Transcript From Tomcat User Mailing List ===

I narrowed down the problem a bit more.  I found 2 things which look like they 
may be bugs.

1)  In the first Service tag I had a Engine tag and a Host tag as seen 
below:

  Service name=XXX

Engine name=Standalone
defaultHost=localhost
debug=0

  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=false

Context.../Context

Context.../Context

With Host autoDeploy=true JNDI doesn't work.  When I set autoDeploy 
to false JNDI works.

2) I had 2 Context tags in the above Service tag.  When I commented out the 
2nd Context tag JNDI worked.


 
Tony 

-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 10:31 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace - Tomcat Developers Please Read

As per my suspicion, multiple Service seemed to cause the problem as I had 
the JNDI resources defined in the second Service.  Removing the first service 
temporarily seemed to fix it.

Is this a bug in Tomcat?  Or is there something else I need to specify?

I will do some more testing to see if I can't narrow it down further.

 
Tony

-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 1:23 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: JNDI comp namespace

Hi,

Thanks for the tip.  Actually, this is how my server.xml was set up 
originally.  I changed the resource name to java:comp/env/jdbc/NNT under the 
notion that it might create the comp namespace if it saw it in the xml file.

I am beginning to wonder if the problem is related to the fact that I have 
different ports running web apps?

Thanks,
 
Tony Colson
 
-Original Message-
From: Altankov Peter [mailto:[EMAIL PROTECTED] 
 Howdy,Try this setup in your context definition:
   Resource name=jdbc/NNT auth=Container type=javax.sql.DataSource/

   ResourceParams name=jdbc/NNT .


After that in the source where u access it go for:
Context ictx = new InitialContext();
if (ictx == null) {
throw new Exception(Boom - No Context);
}
DtataSource ds = (DataSource) ictx.lookup(java:comp/env/jdbc/NNT);

I don't have the time to go into JNDI details, but im pretty sure that wold 
work for you


-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED] 
Sent: 12  2003 ?. 10:48
To: 'Tomcat Users List'
Subject: RE: JNDI comp namespace


As per a suggestion I am posting my server.xml file.

I have several applications on different ports.  I am trying to use JNDI on the 
NNT application running on port 9000.  Do a search for 9000 and you will be 
at the Service... tag.  Just scroll down to see the Context and Resource 
tags to look at my setup.  (Also note that I am trying to use 
GlobalNamingResources as seen at the top of the file.)

Thanks
Tony
= START SERVER.XML ==

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each 

DO NOT REPLY [Bug 25508] - JNDI Does Not Set Up comp namespace

2003-12-14 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=25508.
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=25508

JNDI Does Not Set Up comp namespace

[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|JNDI Does Set Up comp |JNDI Does Not Set Up comp
   |namespace   |namespace

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



cvs commit: jakarta-tomcat-catalina/webapps/docs/architecture index.xml overview.xml

2003-12-14 Thread remm
remm2003/12/14 01:11:41

  Modified:webapps/docs build.xml
   webapps/docs/architecture index.xml overview.xml
  Log:
  - Build the architecture portions.
  - Typo fixes.
  
  Revision  ChangesPath
  1.8   +25 -0 jakarta-tomcat-catalina/webapps/docs/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/build.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- build.xml 14 Jul 2003 16:29:39 -  1.7
  +++ build.xml 14 Dec 2003 09:11:41 -  1.8
  @@ -53,6 +53,11 @@
   !-- Catalina Functional Specifications --
   mkdir dir=${webapps.build}/${webapp.name}/catalina/funcspecs/
   
  +!-- Architecture --
  +copytodir=${webapps.build}/${webapp.name}/architecture
  +  fileset dir=architecture excludes=*.xml/
  +/copy
  +
   !-- Images Subdirectory --
   mkdir dir=${webapps.build}/${webapp.name}/images/
   copytodir=${webapps.build}/${webapp.name}/images
  @@ -158,6 +163,26 @@
   mkdir dir=${webapps.build}/${webapp.name}/config/printer/
   style basedir=config
  destdir=${webapps.build}/${webapp.name}/config/printer
  + extension=.html
  + style=tomcat-docs.xsl
  +  excludes=project.xml
  +  includes=*.xml
  +  param name=relative-path expression=../../
  +  param name=project-menu expression=nomenu/
  +/style
  +
  +!-- Server Architecture --
  +style basedir=architecture
  +   destdir=${webapps.build}/${webapp.name}/architecture
  + extension=.html
  + style=tomcat-docs.xsl
  +  excludes=project.xml
  +  includes=*.xml
  +  param name=relative-path expression=../
  +/style
  +mkdir dir=${webapps.build}/${webapp.name}/architecture/printer/
  +style basedir=architecture
  +   destdir=${webapps.build}/${webapp.name}/architecture/printer
extension=.html
style=tomcat-docs.xsl
 excludes=project.xml
  
  
  
  1.2   +1 -1  jakarta-tomcat-catalina/webapps/docs/architecture/index.xml
  
  Index: index.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/architecture/index.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- index.xml 13 Dec 2003 17:18:56 -  1.1
  +++ index.xml 14 Dec 2003 09:11:41 -  1.2
  @@ -41,7 +41,7 @@
   and concepts./li
   lia href=startup.htmlstrongServer Startup/strong/a -
   A detailed description, with sequence diagrams, of how the Tomcat
  -server starts up.
  +server starts up./li
   lia href=requestProcess.htmlstrongRequest Process Flow/strong/a -
   A detailed description of how Tomcat handles a request./li
   /ul
  
  
  
  1.2   +1 -1  jakarta-tomcat-catalina/webapps/docs/architecture/overview.xml
  
  Index: overview.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/architecture/overview.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- overview.xml  13 Dec 2003 17:51:53 -  1.1
  +++ overview.xml  14 Dec 2003 09:11:41 -  1.2
  @@ -8,7 +8,7 @@
   
 properties
   author email=[EMAIL PROTECTED]Yoav Shapira/author
  -titleArchitecture Overview/title
  +titleArchitecture Overview/title
 /properties
   
   body
  
  
  

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



Re: Likely bug in org.apache.jasper.servlet.JspServlet (Tomcat 5)

2003-12-14 Thread Reshat Sabiq


Remy Maucherat wrote:

Reshat Sabiq wrote:



Remy Maucherat wrote:

Reshat Sabiq wrote:

I think i found a bug in Tomcat 5 implementation (J2EE 1.4-DR). I 
would highly appreciate if somebody could provide a brief 
description of what includeUri, and requestUri below stand for. I 
looked at the comments in Constants, but can't make out a lot out 
of them. Please see my comment below.
org.apache.jasper.servlet.JspServlet.service() starting on line 190:
   String includeUri
   = (String) 
request.getAttribute(Constants.INC_SERVLET_PATH);
   String requestUri
   = (String) 
request.getAttribute(Constants.INC_REQUEST_URI);
 String jspUri;
 // When jsp-property-group/url-matching is 
used, and when the
   // jsp is not defined with servlet-name, the url
   // as to be passed as it is to the JSP container (since
   // Catalina doesn't know anything about the requested JSP
 // The first scenario occurs when the jsp is 
not directly under /
   // example: /utf16/foo.jsp
   if (requestUri != null){
   // This is pretty unsafe syntax, and i do 
get an exception here, which is the only reason why i can't migrate 
my app to J2EE 1.4-DR! ///
   String currentIncludedUri
   = 
requestUri.substring(requestUri.indexOf(includeUri));
if ( !includeUri.equals(currentIncludedUri) ) {
   includeUri = currentIncludedUri;
   }
   }

P.S. On a positive note, the custom error pages do work in DR, as 
opposed to Beta 2.




This works fine for me. How about telling us what kind of include 
causes your bug, and the exception you get ?

Rémy

I confirmed that it is a bug. It went further along after i put a 
conditional.
Now i'm getting an exception in:
fmt:message key=better bundle=${lc} /
where lc is an instance variable of the jsp servlet: apparently it 
can't be resolved. It was working in Beta 2, so this might be a bug too.

Thanks.

P.S. I'll post the details later.


Great: I really don't understand what you're trying to explain, and I 
don't see how this is related to the include issue mentioned above. So 
try to make it understandable if you want your bug to live longer than 
5 minutes ;-)

BTW, there could be changes between PFD 3 and the final spec.

Rémy

OK. I believe the fmt is a non-issue: el does not consider instance 
variables in fmt. It probably worked in Beta 2 out of luck 
(implementation defaulted to default localization attribute name, or 
something like that). I resolved that.
The last problem i'm having is that when requesting a folder with a 
parameter (e.g., /folder?param=value), when index.jsp for that folder is 
served it does not receive the parameter. This sounds simple, but makes 
applications unusable. Because of this, my migration to J2EE 1.4-DR is 
still in progress. It will probably be harder for me to fix this on my 
own, not knowing Tomcat's architecture and all. Has anybody else come 
across this?

P.S. In the next couple of days I will be submitting a bug and at least 
one suggested fix for the 2 issues mentioned above.

Thanks.

--
Sincerely,
Reshat.
---
If you see my certificate with this message, you should be able to send me encrypted e-mail. 
Please consult your e-mail client for details if you would like to do that.



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Likely bug in org.apache.jasper.servlet.JspServlet (Tomcat 5)

2003-12-14 Thread Remy Maucherat
Reshat Sabiq wrote:
OK. I believe the fmt is a non-issue: el does not consider instance 
variables in fmt. It probably worked in Beta 2 out of luck 
(implementation defaulted to default localization attribute name, or 
something like that). I resolved that.
The last problem i'm having is that when requesting a folder with a 
parameter (e.g., /folder?param=value), when index.jsp for that folder is 
served it does not receive the parameter. This sounds simple, but makes 
applications unusable. Because of this, my migration to J2EE 1.4-DR is 
still in progress. It will probably be harder for me to fix this on my 
own, not knowing Tomcat's architecture and all. Has anybody else come 
across this?
I find this extremely odd. Welcome file redirection is done by rewriting 
the servlet path, etc. By then, the query string was set aside, and 
should be processed normally.

I think your problem is that an extra redirection will occur:
/folder - /folder/, and it may not append back the query string. This 
should be a trivial fix in the adapter.
If you do /folder/?param=value I think it will work.

P.S. In the next couple of days I will be submitting a bug and at least 
one suggested fix for the 2 issues mentioned above.

Thanks.



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


Re: cvs commit: jakarta-tomcat-catalina/webapps/docs/architecture index.xml overview.xml

2003-12-14 Thread Remy Maucherat
[EMAIL PROTECTED] wrote:
remm2003/12/14 01:11:41

  Modified:webapps/docs build.xml
   webapps/docs/architecture index.xml overview.xml
  Log:
  - Build the architecture portions.
  - Typo fixes.
Some comments:
- could the PDF thing be replaced by a big image (more readable), and 
also include the post processing, and more of what happens in the HTTP 
protocol handler ?
- the map() calls on each container valve are now gone
- the error dispatcher valve is now gone (as it's a standard part of the 
API, its place was in the basic container valve)
- could the blurb on performance be replaced by something more 
optimistic and marketting friendly, such as Tomcat is among the fastest 
servlet containers, unless you have evidence which proves otherwise ? ;-)

Good stuff :)

Rémy



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


DO NOT REPLY [Bug 25510] New: - Sym links don't work

2003-12-14 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=25510.
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=25510

Sym links don't work

   Summary: Sym links don't work
   Product: Tomcat 5
   Version: 5.0.16
  Platform: Other
OS/Version: Linux
Status: NEW
  Severity: Critical
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I have created a UNIX symlink in docBase directory:

$ cd myApp
$ ln -s servicios/sicuz sicuz
$ ls -l

lrwxrwxrwx ... sicuz - servicios/sicuz

I have defined a context in server.xml like this:

   Context path= docBase=myApp debug=0
   Resources className=org.apache.naming.resources.FileDirContext
  allowLinking=true /
   /Context

The requested resource (/servicios/sicuz/index.html) is available - It's OK

The requested resource (/sicuz/index.html) is not available. - Why?

It's work fine in Tomcat 4.1.29 :-(

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



DO NOT REPLY [Bug 25510] - Sym links don't work

2003-12-14 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=25510.
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=25510

Sym links don't work

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-12-14 09:53 ---
Put allowLinking either on Context or on a DefaultContext element.
The docs are wrong (and have been fixed): you can no longer use Resources to
configure the default file based resources (it's now on Context and DefaultContext).

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



Bug report for Tomcat 3 [2003/12/14]

2003-12-14 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 2350|Ver|Nor|2001-06-27|ServletConfig.getInitParameter() requires url-patt|
| 2478|Opn|Cri|2001-07-06|Passing Session variables between JSP's and Servle|
| 4551|Opn|Nor|2001-10-31|Ctx( /tt01 ): IOException in: R( /tt01 + /com/abc/|
| 4980|New|Min|2001-11-20|Startup message indicates incorrect log file  |
| 4994|New|Nor|2001-11-21|Tomcat needs a mechanism for clean and certain shu|
| 5064|New|Cri|2001-11-25|Socket write error when include files is more than|
| 5108|New|Maj|2001-11-26|Docs for Tomcat 3.2.x appear to be for Tomcat 3.3 |
| 5137|New|Nor|2001-11-27|Null pointer in class loader after attempting to r|
| 5160|Unc|Maj|2001-11-28|'IllegalStateException'   |
| 5331|New|Nor|2001-12-09|getPathInfo vs URL normalization  |
| 5510|New|Blk|2001-12-19|How to call ejb deployed in JBoss from Tomcat serv|
| 5756|New|Nor|2002-01-08|jspc.bat exits with wrong ERRORLEVEL  |
| 5797|New|Nor|2002-01-10|UnCatched ? StringIndexOutOfBoundsException: Strin|
| 6027|New|Maj|2002-01-25|Tomcat  Automatically shuts down as service   |
| 6168|New|Blk|2002-02-01|IllegalStateException |
| 6451|New|Cri|2002-02-14|Stackoverflow |
| 6478|New|Enh|2002-02-14|Default Tomcat Encoding   |
| 6488|Ver|Maj|2002-02-15|Error: 304. Apparent bug in default ErrorHandler c|
| 6648|New|Nor|2002-02-25|jakarta-servletapi build with java 1.4 javadoc err|
| 6702|New|Cri|2002-02-27|win 2k services not working   |
| 6796|New|Cri|2002-03-01|Tomcat dies periodically  |
| 6989|New|Maj|2002-03-08|Unable to read tld file during parallel JSP compil|
| 7008|Opn|Maj|2002-03-10|facade.HttpServletRequestFacade.getParameter(HttpS|
| 7013|New|Cri|2002-03-10|Entering a servlet path with non-ISO8859-1 charact|
| 7227|New|Nor|2002-03-19|error-code directive don't work |
| 7236|New|Blk|2002-03-19|Permission denied to do thread.stop   |
| 7626|New|Nor|2002-03-29|classloader not working properly  |
| 7652|New|Cri|2002-04-01|Tomcat stalls periodically|
| 7762|New|Enh|2002-04-05|stdout logfile handling   |
| 7785|New|Blk|2002-04-06|tomcat bug in context reloading   |
| 7789|New|Maj|2002-04-06|JSP Cookie Read/Write Fails With DNS Names|
| 7863|New|Maj|2002-04-09|I have a problem when running Tomcat with IIS |
| 8154|New|Nor|2002-04-16|logrotate script in RPM rotates non-existing file |
| 8187|New|Cri|2002-04-17|Errors when Tomcat used with MS Access database   |
| 8239|New|Cri|2002-04-18|Resource temporary unavailable|
| 8263|New|Cri|2002-04-18|url-pattern easy to circumvent|
| 8634|New|Nor|2002-04-30|no way to specify different modules.xml file  |
| 8992|New|Blk|2002-05-10|IE6/XP: Limitation of POST Area within HTTP reques|
| 9086|New|Enh|2002-05-14|NPE org.apache.tomcat.core.ServerSession.setAttrib|
| 9250|New|Maj|2002-05-20|outOfMemoryError  |
| 9367|New|Maj|2002-05-23|HttpSessionBindingEvent not thrown for HttpSession|
| 9390|New|Nor|2002-05-24|jasper compilation error in tomcat|
| 9480|New|Nor|2002-05-29|Data connection pooling   |
| 9607|New|Maj|2002-06-04|precompile JSP|
| 9737|New|Nor|2002-06-10|ArrayIndexOutOfBoundsException when sending just p|
|1|New|Cri|2002-06-19|IOException Broken Pipe when authenticating JDBCRe|
|10039|New|Nor|2002-06-20|TimeStamp will not work correctly.|
|10047|New|Cri|2002-06-20|IllegalStateException |
|10202|New|Maj|2002-06-25|Tomcat is not responding in time  |
|10357|Unc|Blk|2002-06-30|java.lang.IllegalArgumentException: Short Read|
|10406|New|Cri|2002-07-02|IllegalStateException |

Bug report for Tomcat 4 [2003/12/14]

2003-12-14 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
|  218|Unc|Nor|2000-11-02|IIS  in-process tomcat BugRat Report#333 |
| 3614|Opn|Nor|2001-09-14|bug in manager webapp |
| 3755|Opn|Nor|2001-09-20|freezes at shutdown   |
| 3888|Opn|Blk|2001-09-30|WebappClassLoader: Lifecycle error : CL stopped   |
| 4091|Opn|Nor|2001-10-11|custom host with unpackWARs=true don't expand wa|
| 4138|Opn|Nor|2001-10-12|Processor threads have inconsistent ClassLoader st|
| 4352|Ass|Nor|2001-10-22|JDBCRealm does not work with CLIENT-CERT auth-meth|
| 5329|New|Nor|2001-12-08|NT Service exits startup before Tomcat is finished|
| 5598|Opn|Maj|2001-12-27|(JSP Problem) RequestDispatcher doesn't include HT|
| 5704|Ass|Maj|2002-01-05|CgiServlet corrupting images? |
| 5715|Opn|Nor|2002-01-07|response.setContentType() in Filter.doFilter not c|
| 5759|Opn|Maj|2002-01-09|CGI servlet mapping by extension *.cgi does not wo|
| 5795|New|Enh|2002-01-10|Catalina Shutdown relies on localhost causing prob|
| 5829|New|Enh|2002-01-13|StandardManager needs to cope with sessions throwi|
| 5858|New|Enh|2002-01-15|Add tomcat dir to java.library.path   |
| 5952|Opn|Nor|2002-01-22|Refence to $JAVACMD  in tomcat.conf incorrect in R|
| 5985|New|Enh|2002-01-23|Tomcat should perform a more restrictive validatio|
| 5998|Opn|Maj|2002-01-24|Exception hiding when a JspExceptioin is thrown by|
| 6218|Opn|Nor|2002-02-04|Relative links broken for servlets|
| 6229|New|Enh|2002-02-04|Need way to specify where to write catalina.out   |
| 6399|New|Nor|2002-02-12|unknown protocol: https   |
| 6408|New|Enh|2002-02-12|Starting tomcat from a cygwin bash shell using 'st|
| 6582|New|Min|2002-02-20|Sample code does not match behavior   |
| 6600|Opn|Enh|2002-02-20|enodeURL adds 'jsession' when 'isRequestedSessionI|
| 6614|New|Enh|2002-02-21|Have Bootstrap and StandardClassLoader use the sam|
| 6649|New|Nor|2002-02-25|jakarta-servletapi-4 build using java 1.4 javadoc |
| 6659|New|Nor|2002-02-25|HttpUtils.getRequestURL gives incorrect URL with w|
| 6671|New|Enh|2002-02-25|Simple custom tag example uses old declaration sty|
| 7043|New|Enh|2002-03-12|database user and password for JDBC Based Store   |
| 7190|New|Nor|2002-03-18|GenericServlet spurious log's in init(), destroy()|
| 7207|New|Nor|2002-03-18|Redeployment Problem under Tomcat 4.0.2   |
| 7360|New|Nor|2002-03-22|res-sharing-scope not supported   |
| 7366|New|Enh|2002-03-22|ISAPI Redirector Replacement  |
| 7374|New|Enh|2002-03-22|Apache Tomcat/4.0.1 message on standard output|
| 7571|New|Nor|2002-03-28|DataInputStream readLong() Problem|
| 7588|New|Nor|2002-03-28|Session cannot be established if there are multipl|
| 7676|New|Enh|2002-04-02|Allow name property to use match experssions in h|
| 7689|New|Min|2002-04-02|Performance problem with Xerces parser|
| 7702|New|Enh|2002-04-03|[PATCH] Speed up Tomcat a tiny bit|
| 7723|New|Enh|2002-04-03|[patch] additional factory for org.apache.naming.f|
| 7831|New|Nor|2002-04-08|[PATCH] JNDIRealm does not work with CLIENT-CERT a|
| 7880|Ver|Cri|2002-04-09|If a TLV flags flags an error during the translati|
| 8026|New|Enh|2002-04-12|Exceptions in StandardHostDeployer.addChild are lo|
| 8079|New|Enh|2002-04-15|Tomcat cannot start if appBase directory is access|
| 8100|New|Maj|2002-04-15|Session Tracking and HttpURLConnection|
| 8200|New|Nor|2002-04-17|include (PageContext) does not throw IOException i|
| 8217|New|Maj|2002-04-17|Documentation references workers. prefix|
| 8275|Ver|Min|2002-04-18|ContextConfig.start() attempts to create a $CATALI|
| 8323|New|Enh|2002-04-20|No support for running the 64 bit JVM |
| 8328|New|Cri|2002-04-20|webdav with User Directories do not work  |
| 8343|New|Enh|2002-04-21|adding a absorber logger class to org.apache.ca|
| 

Bug report for Watchdog [2003/12/14]

2003-12-14 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
|  278|Unc|Nor|2000-12-04|Bug in GetParameterValuesTestServlet.java file Bug|
|  279|Unc|Nor|2000-12-04|Logical Error in GetParameterValuesTestServlet Bug|
|  469|Unc|Nor|2001-01-17|in example-taglib.tld urn should be uri BugRat|
|  470|Unc|Nor|2001-01-17|FAIL positiveForward.jsp and positiveInclude.jsp B|
| 9634|New|Enh|2002-06-05|No tests exist for ServletContext.getResourcePaths|
|10703|New|Enh|2002-07-11|Need to test getRequestURI after RequestDispatcher|
|11336|New|Enh|2002-07-31|Test wrapped path methods with RD.foward()|
|11663|New|Maj|2002-08-13|JSP precompile tests rely on Jasper specific behav|
|11664|New|Maj|2002-08-13|A sweep is needed of all Watchdog 4.0 tag librarie|
|11665|New|Maj|2002-08-13|ServletToJSPErrorPageTest and ServletToServletErro|
|11666|New|Maj|2002-08-13|SetBufferSize_1TestServlet is invalid.|
|14004|New|Maj|2002-10-28|Incorrent behaviour of all attribute-related lifec|
|15504|New|Nor|2002-12-18|JSP positiveGetValues test relies on order preserv|
|24649|New|Nor|2003-11-12|getRemoteHost fails when agent has uppercase chara|
+-+---+---+--+--+
| Total   14 bugs   |
+---+

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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 CoyoteAdapter.java

2003-12-14 Thread remm
remm2003/12/14 14:13:12

  Modified:catalina/src/share/org/apache/coyote/tomcat5
CoyoteAdapter.java
  Log:
  - When redirecting, append the query string if not null, to avoid losing query 
parameters.
  - Refactor to use the new postParseRequest processing.
  
  Revision  ChangesPath
  1.15  +25 -15
jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteAdapter.java
  
  Index: CoyoteAdapter.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteAdapter.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- CoyoteAdapter.java16 Nov 2003 04:19:03 -  1.14
  +++ CoyoteAdapter.java14 Dec 2003 22:13:12 -  1.15
  @@ -198,21 +198,17 @@
   }
   
   try {
  +
   // Parse and set Catalina and configuration specific 
   // request parameters
  -if( !postParseRequest(req, request, res, response) ) {
  -return;
  -}
  -if (!request.getMappingData().redirectPath.isNull()) {
  -response.sendRedirect
  -(request.getMappingData().redirectPath.toString());
  -} else {
  +if ( postParseRequest(req, request, res, response) ) {
   // Calling the container
   connector.getContainer().invoke(request, response);
   }
  -response.finishResponse();
   
  +response.finishResponse();
   req.action( ActionCode.ACTION_POST_REQUEST , null);
  +
   } catch (IOException e) {
   ;
   } catch (Throwable t) {
  @@ -233,7 +229,7 @@
* Parse additional request parameters.
*/
   protected boolean postParseRequest(Request req, CoyoteRequest request,
  -Response res, CoyoteResponse response)
  +   Response res, CoyoteResponse response)
   throws Exception {
   // XXX the processor needs to set a correct scheme and port prior to this 
point, 
   // in ajp13 protocols dont make sense to get the port from the connector..
  @@ -249,9 +245,9 @@
   req.scheme().setString(connector.getScheme());
   request.setSecure(connector.getSecure());
   }
  - 
   
  -// FIXME: the code below doesnt belongs to here, this is only  have sense 
  +// FIXME: the code below doesnt belongs to here, 
  +// this is only have sense 
   // in Http11, not in ajp13..
   // At this point the Host header has been processed.
   // Override if the proxyPort/proxyHost are set 
  @@ -309,6 +305,20 @@
 request.getMappingData());
   request.setContext((Context) request.getMappingData().context);
   request.setWrapper((Wrapper) request.getMappingData().wrapper);
  +
  +// Possible redirect
  +MessageBytes redirectPathMB = request.getMappingData().redirectPath;
  +if (!redirectPathMB.isNull()) {
  +String redirectPath = redirectPathMB.toString();
  +String query = request.getQueryString();
  +if (query != null) {
  +// This is not optimal, but as this is not very common, it
  +// shouldn't matter
  +redirectPath = redirectPath + ? + query;
  +}
  +response.sendRedirect(redirectPath);
  +return false;
  +}
   
   // Parse cookies
   parseCookies(req, request);
  
  
  

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



DO NOT REPLY [Bug 11352] - clientauth=false equivalent to clientauth=true

2003-12-14 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=11352.
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=11352

clientauth=false equivalent to clientauth=true

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-12-15 00:01 ---
With clientauth=true, you are telling Tomcat that the user must present a 
personal certificate.  Since it seems that you hadn't installed any in 
Netscape, Netscape couldn't send one, and the request failed (just like you 
asked it to :).

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



Dynamic DNS

2003-12-14 Thread webmaster
I am trying to use my home computer for development and need to access a 
running web server on the computer.  However, for some reason I cannot 
access Tomcat using a http://[dynamic ip address] like.  I get a page 
cannot be displayed error.  The same http://[dynamic ip address] works when 
trying to open Tomcat on my localhost.  I used to do this without an 
issue.  I don't know what has changed.  I got Windows XP instead of Windows 
98 on my laptop.  Could that be it?  Any ideas why accessing a webpage on 
my laptop should be an issue?

Thanks, Michael McGrady

LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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


DO NOT REPLY [Bug 12946] - parameter serverRoot from jk2.properties not read; workaround

2003-12-14 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=12946.
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=12946

parameter serverRoot from jk2.properties not read; workaround





--- Additional Comments From [EMAIL PROTECTED]  2003-12-15 04:54 ---
Encountered the same problem with a basic installation of Tomcat 5.0.16 and 
Apache 2.0.46 on RH Enterprise Linux 3.0. Setting serverRoot as an environment 
variable worked, but it sure doesn't seem like it's being read from 
jk2.properties...

Have you guys made any progress on this? We can provide additional info about 
our setup if needed.

Thanks and happy hunting...

-David Norris [EMAIL PROTECTED]

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



Re: Dynamic DNS

2003-12-14 Thread Sander Temme
This question is probably better asked on the users list.

 I am trying to use my home computer for development and need to access a
 running web server on the computer.  However, for some reason I cannot
 access Tomcat using a http://[dynamic ip address] like.

Are you running Tomcat on port 80? Many consumer cable/DSL providers block
port 80 on their residential IP blocks because of Code Red, Nimda c.s. Try
running the httpd adaptor of Tomcat on a different port.

S.

-- 
[EMAIL PROTECTED]  http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF


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



DO NOT REPLY [Bug 25525] New: - The Binaries for JK do not work for latest Apache as not SO's

2003-12-14 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=25525.
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=25525

The Binaries for JK do not work for latest Apache as not SO's

   Summary: The Binaries for JK do not work for latest Apache as not
SO's
   Product: Tomcat 5
   Version: Unknown
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Native:JK
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The latest Apache 2.x has gone over to using .so files only.

Tomcat's JK connectors (both 4 and 5) are still as DLL's.

There is no documentation on how to compile them.

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