Bug report for Tomcat 5 [2007/11/11]

2007-11-11 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  |
| |   |   |  |  |
|27122|Opn|Enh|2004-02-20|IE plugins cannot access components through Tomcat|
|28039|Opn|Enh|2004-03-30|Cluster Support for SingleSignOn  |
|29160|Ver|Enh|2004-05-23|precompile problem: _jspx_meth_* (javax.servlet.js|
|29494|Inf|Enh|2004-06-10|No way to set PATH when running as a service on Wi|
|29936|Opn|Blk|2004-07-06|XML parser loading problems by container  |
|30241|Ver|Enh|2004-07-21|Enhance build script to use branch argument when c|
|33262|Inf|Enh|2005-01-27|Service Manager autostart should check for adminis|
|33453|Opn|Enh|2005-02-08|Jasper should recompile JSP files whose datestamps|
|33650|Inf|Enh|2005-02-19|Jasper performance for multiple files processing  |
|33671|Opn|Enh|2005-02-21|Manual Windows service installation with custom na|
|34801|New|Enh|2005-05-08|PATCH: CGIServlet does not terminate child after a|
|34805|Ass|Enh|2005-05-08|warn about invalid security constraint url pattern|
|34868|Ass|Enh|2005-05-11|allow to register a trust store for a session that|
|35054|Inf|Enh|2005-05-25|warn if appBase is not existing as a File or direc|
|35869|Inf|Enh|2005-07-26|Can't run as a service on Windows Server 2003 64-B|
|36133|Inf|Enh|2005-08-10|Support JSS SSL implementation|
|36169|New|Enh|2005-08-12|[PATCH] Enable chunked encoding for requests in II|
|36362|New|Enh|2005-08-25|missing check for Java reserved keywords in tag fi|
|36569|Inf|Enh|2005-09-09|Redirects produce illegal URL's   |
|36837|Inf|Enh|2005-09-28|Looking for ProxyHandler implementation of Http re|
|36922|Inf|Enh|2005-10-04|setup.sh file mis-advertised and missing  |
|36923|New|Nor|2005-10-05|Deactivated EL expressions are not parsed for jsp |
|37018|Ass|Enh|2005-10-11|Document how to use tomcat-SSL with a pkcs11 token|
|37072|Ass|Nor|2005-10-13|Encoding mismatch in error condition  |
|37084|Opn|   |2005-10-14|JspC from ant fails on JSPs that use custom taglib|
|37334|Inf|Enh|2005-11-02|Realm digest property not aligned with the adminis|
|37449|Opn|Enh|2005-11-10|Two UserDatabaseRealm break manager user  |
|37485|Inf|Enh|2005-11-14|I'd like to run init SQL after JDBC Connection cre|
|37498|Inf|Nor|2005-11-14|[PATCH] NPE in org.apache.catalina.core.ContainerB|
|37515|Inf|Nor|2005-11-15|smap not generated by JspC when used from Ant for |
|37627|Opn|Nor|2005-11-24|Slow and incomplete dynamic content generation aft|
|37785|Inf|Nor|2005-12-05|Changing startup type via Tomcat Monitor does not |
|37794|Opn|Nor|2005-12-05|getParameter() fails on POST with transfer-encodin|
|37797|Inf|Maj|2005-12-05|Configure Tomcat utility truncates classpath to 96|
|37822|Opn|Nor|2005-12-07|WebappClassLoader interfering with Catalina core c|
|37847|Ass|Enh|2005-12-09|Allow User To Optionally Specify Catalina Output F|
|37869|Opn|Nor|2005-12-12|Cannot obtain client certificate with SSL / client|
|37918|Inf|Nor|2005-12-15|EL cannot find valid getter from object when using|
|37984|New|Nor|2005-12-21|JNDIRealm.java not able to handle MD5 password|
|38001|Inf|Nor|2005-12-22|TruncatedClassFile when loadind applets   |
|38046|Ass|   |2005-12-27|apache-tomcat-5.5.14-deployer doesn't work (Illega|
|38131|New|Enh|2006-01-05|WatchedResource does not work if app is outside "w|
|38216|Inf|Enh|2006-01-10|Extend Jmxproxy to allow call of MBean Operations |
|38268|Inf|Enh|2006-01-13|User friendly: Need submit button on adding/deleti|
|38352|Inf|Nor|2006-01-22|Additional Entries for Default catalina.policy fil|
|38360|Inf|Enh|2006-01-24|Domain for session cookies|
|38367|Inf|Nor|2006-01-24|Executing any Catalina Ant task results in an exce|
|38372|Inf|Cri|2006-01-25|tcnative-1.dll response overflow corruption, parti|
|38427|Inf|Nor|2006-01-27|ServletContextListener Notified Multiple Times Whe|
|38483|Inf|Nor|2006-02-01|access log valve uses simpledateformat in tread-un|
|38484|New|Min|2006-02-01|webapps Admin: Invalid path /login was requested  |
|38516|

Bug report for Tomcat 4 [2007/11/11]

2007-11-11 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  |
| |   |   |  |  |
| 3839|Opn|Enh|2001-09-26|Problem bookmarking login page|
| 4227|Opn|Enh|2001-10-17|Invalid CGI path  |
| 5329|New|Enh|2001-12-08|NT Service exits startup before Tomcat is finished|
| 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|
| 5985|New|Enh|2002-01-23|Tomcat should perform a more restrictive validatio|
| 6600|Opn|Enh|2002-02-20|enodeURL adds 'jsession' when 'isRequestedSessionI|
| 6614|New|Enh|2002-02-21|Have Bootstrap and StandardClassLoader use the sam|
| 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   |
| 7374|New|Enh|2002-03-22|Apache Tomcat/4.0.1 message on standard output|
| 7676|New|Enh|2002-04-02|Allow name property to use match experssions in  without className in server.xml produces N|
|11069|Opn|Enh|2002-07-23|Tomcat not flag error if tld is outside of /WEB-IN|
|11129|New|Enh|2002-07-24|New valve for putting the sessionIDs in the reques|
|11248|New|Enh|2002-07-29|DefaultServlet doesn't send expires header|
|11754|Opn|Enh|2002-08-15|Synchronous shutdown script - shutdown.sh should w|
|12069|New|Enh|2002-08-27|Creation of more HttpSession objects for one previ|
|12428|Opn|Enh|2002-09-09|request.getUserPrincipal(): Misinterpretation of s|
|12658|New|Enh|2002-09-15|a proxy host and port at the  element level |
|12766|New|Enh|2002-09-18|Tomcat should use tld files in /WEB-INF/ over vers|
|13309|Opn|Enh|2002-10-04|Catalina calls System.exit()  |
|13634|New|Enh|2002-10-15|Allowing system properties to be substituted in co|
|13689|Opn|Enh|2002-10-16|Classloader paths for 'Common' classes and librari|
|13731|New|Enh|2002-10-17|Final request, response, session and other variabl|
|13941|New|Enh|2002-10-24|reload is VERY slow   |
|13965|New|Enh|2002-10-25|Catalina.sh correction request for Tru64 Unix |
|14097|New|Enh|2002-10-30|hardcoded registry value for vm lets tomcat servic|
|14416|New|Enh|2002-11-10|blank tag name in TLD cause NullPointerException  |
|14635|New|Enh|2002-11-18|Should be possible not to have -MM-DD in log f|
|14766|New|Enh|2002-11-22|Redirect Vavle|
|14993|New|Enh|2002-12-02|Possible obselete synchronized declaration|
|15115|New|Enh|2002-12-05|correct docs... XML parser *cannot* be overridden |
|15417|Opn|Enh|2002-12-16|Add port for forced compilation of JSP pages  |
|15688|New|Enh|2002-12-27|full-qualified names instead of imports   |
|15941|New|Enh|2003-01-10|Expose rootCause exceptions at deeper levels  |
|16294|New|Enh|2003-01-21|Configurable URL Decoding.|
|16357|New|Enh|2003-01-23|"connection timeout reached"  |
|16531|New|Enh|2003-01-29|Updating already deployed ".war" files in a single|
|16579|New|Enh|2003-01-30|documentation page layout/style breaks wrapping to|
|16596|New|Enh|2003-01-30|option for disabling log rotation |
|17070|New|Enh|2003-02-14|The Catalina Ant tasks do not allow for 'reusable'|
|17146|New|Enh|2003-02-18|Simplify build.xml using 

Bug report for Tomcat 3 [2007/11/11]

2007-11-11 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|
| 5331|Ass|Nor|2001-12-09|getPathInfo vs URL normalization  |
| 6027|Inf|Maj|2002-01-25|Tomcat  Automatically shuts down as service   |
| 6488|Ver|Maj|2002-02-15|Error: 304. Apparent bug in default ErrorHandler c|
| 7785|Inf|Blk|2002-04-06|tomcat bug in context reloading   |
| 7863|Inf|Maj|2002-04-09|I have a problem when running Tomcat with IIS |
| 8187|Inf|Cri|2002-04-17|Errors when Tomcat used with MS Access database   |
| 9737|Ver|Nor|2002-06-10|ArrayIndexOutOfBoundsException when sending just p|
|10047|Ass|Cri|2002-06-20|IllegalStateException |
|10406|Ass|Cri|2002-07-02|IllegalStateException |
|11087|Inf|Blk|2002-07-23|IllegalStateException |
|12156|Inf|Cri|2002-08-29|Apache and Tomcat 3.3.1 Interworking problem  |
|16363|Ass|Cri|2003-01-23|Stack Overflow accessing compiled JSP - Tomcat 3.2|
|39250|Inf|Cri|2006-04-07|Tomcat 3.2.1 + JDK 1.4|
+-+---+---+--+--+
| Total   14 bugs   |
+---+

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



Bug report for Watchdog [2007/11/11]

2007-11-11 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|
|29398|New|Nor|2004-06-04|Update site and note current status   |
+-+---+---+--+--+
| Total   15 bugs   |
+---+

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



Re: svn commit: r593943 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread Mladen Turk

[EMAIL PROTECTED] wrote:

Author: rjung
Date: Sun Nov 11 11:22:23 2007
New Revision: 593943

URL: http://svn.apache.org/viewvc?rev=593943&view=rev
Log:
Undo revision 593927.
This produced a mem leak for vhosts with private JkMounts.
No idea why.



Because uw_map is now allocated *only* if uri_to_context is
allocated. In other cases uw_map is pointer to the parent
allocated uw_map. So if you free uw_map with uri_to_context equals
NULL, you'll actually have a double free of the same pointer.

Regards,
Mladen


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



DO NOT REPLY [Bug 43841] New: - Tomcat 6.0.14 crashed at JDK 1.6.0_03

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=43841

   Summary: Tomcat 6.0.14 crashed at JDK 1.6.0_03
   Product: Tomcat 6
   Version: 6.0.14
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: critical
  Priority: P2
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When I debug tomcat at eclipse with tomcatPlugs. It's crashed. There is the log.
hs_err_pid2892.log
--
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x6d9eaa8f, pid=2892, tid=2976
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x17aa8f]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---  T H R E A D  ---

Current thread (0x0aae0c00):  VMThread [id=2976]

siginfo: ExceptionCode=0xc005, reading address 0x0007010c

Registers:
EAX=0x07d405a8, EBX=0x003fc354, ECX=0x003fc318, EDX=0x00070100
ESP=0x0abbf624, EBP=0x003fc2c8, ESI=0x0799f3a0, EDI=0x0799f3a0
EIP=0x6d9eaa8f, EFLAGS=0x00010293

Top of Stack: (sp=0x0abbf624)
0x0abbf624:   0799f3a0 6d88bbcb 0799f3a0 0abbf674
0x0abbf634:   0abbf674 0002 003f9ba8 6d9129e1
0x0abbf644:   0799f580 003fc120 6d9127b1 003fc318
0x0abbf654:   6d8e35c3 0abbf674  003f9c00
0x0abbf664:   0799f580 6d9125f7 0abbf674 
0x0abbf674:   6da4efac 0799f580  6d90d1e3
0x0abbf684:   0799f580 0799f580  0abbf7a4
0x0abbf694:    6d9ad343 0799f580 6d88c404 

Instructions: (pc=0x6d9eaa8f)
0x6d9eaa7f:   cc 8b 41 34 56 8b 74 24 08 3b f0 73 38 8b 56 04
0x6d9eaa8f:   8b 42 0c 83 c2 08 85 c0 7f 33 7d 1d 83 c9 ff 2b 


Stack: [0x0ab7,0x0abc),  sp=0x0abbf624,  free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x17aa8f]

VM_Operation (0x0b77f21c): generation collection for allocation, mode:
safepoint, requested by thread 0x0b2fc400


---  P R O C E S S  ---

Java Threads: ( => current thread )
  0x0b4e4400 
[error occurred during error reporting, step 170, id 0xc005]

VM state:at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x003f6258/0x2714] Threads_lock - owner thread: 0x0aae0c00
[0x003f63f8/0x26d4] Heap_lock - owner thread: 0x0b2fc400

Heap
 def new generation   total 1088K, used 46K [0x029d, 0x02af, 0x02eb)
  eden space 1024K,   0% used [0x029d, 0x029d, 0x02ad)
  from space 64K,  73% used [0x02ae, 0x02aebb98, 0x02af)
  to   space 64K,   0% used [0x02ad, 0x02ad, 0x02ae)
 tenured generation   total 13364K, used 13361K [0x02eb, 0x03bbd000, 
0x069d)
   the space 13364K,  99% used [0x02eb, 0x03bbc428, 0x036b8000, 0x03bbd000)
 compacting perm gen  total 19968K, used 19905K [0x069d, 0x07d5, 
0x0a9d)
   the space 19968K,  99% used [0x069d, 0x07d405a8, 0x07c8ae00, 0x07d5)
No shared spaces configured.

Dynamic libraries:
0x0040 - 0x00423000 C:\Program Files\Java\jdk1.6.0_03\bin\javaw.exe
0x7c92 - 0x7c9b4000 C:\WINDOWS\system32\ntdll.dll
0x7c80 - 0x7c91d000 C:\WINDOWS\system32\kernel32.dll
0x77da - 0x77e49000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e5 - 0x77ee2000 C:\WINDOWS\system32\RPCRT4.dll
0x77fc - 0x77fd1000 C:\WINDOWS\system32\Secur32.dll
0x77d1 - 0x77d9f000 C:\WINDOWS\system32\USER32.dll
0x77ef - 0x77f37000 C:\WINDOWS\system32\GDI32.dll
0x7630 - 0x7631d000 C:\WINDOWS\system32\IMM32.DLL
0x62c2 - 0x62c29000 C:\WINDOWS\system32\LPK.DLL
0x73fa - 0x7400b000 C:\WINDOWS\system32\USP10.dll
0x77be - 0x77c38000 C:\WINDOWS\system32\msvcrt.dll
0x7c34 - 0x7c396000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\msvcr71.dll
0x6d87 - 0x6daba000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\client\jvm.dll
0x76b1 - 0x76b3a000 C:\WINDOWS\system32\WINMM.dll
0x6d3c - 0x6d3c8000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\hpi.dll
0x76bc - 0x76bcb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d4b - 0x6d4d9000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\jdwp.dll
0x6d77 - 0x6d776000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\npt.dll
0x6d82 - 0x6d82c000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\verify.dll
0x6d46 - 0x6d47f000 C:\Program 
Files\Java\jdk1.6.0_03\jre\bin\java.dll
0x6d86 

DO NOT REPLY [Bug 43840] New: - Unexpected behaviour when GenericPrincipal is serialized using the SerializablePrincipal in a cluster.

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=43840

   Summary: Unexpected behaviour when GenericPrincipal is serialized
using the SerializablePrincipal in a cluster.
   Product: Tomcat 6
   Version: 6.0.14
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Cluster
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The method 'getUserPrincipal()' in the GenericPrincipal class returns itself or
a provided Principal if possible. This is also the return value of the
request.getUserPrincipal() method. This works fine in a non-clustered 
environment.

However the behaviour of this method changes when the GenericPrincipal is
serialized by the SerializablePrincipal class. In the initial node of a cluster
the request.getUserPrincipal() method behaves normally. However after the
principal is serialized to another node it no longer contains the internal
Principal object, so the same method call will now return a different object.

I think a solution could be:

1) If there exists an internal userPrincipal AND it is Serializable then
serialize it along with the other properties of GenericPrincipal.

2) Recreate it at the other end if it is available in the object stream.

In this manner users with custom Principal objects that implement
java.io.Serializable will have predictable results from the
request.getUserPrincipal method across nodes in a cluster.

I'd appreciate your thoughts on this.

Thanks,
Ashley

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 43839] - I think the implement is difference with the document in function CoyoteAdapter.postParseRequest

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=43839


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|I think the implement is|I think the implement is
   |difference with the document|difference with the document
   ||in function
   ||CoyoteAdapter.postParseReque
   ||st




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 43839] New: - I think the implement is difference with the document

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=43839

   Summary: I think the implement is difference with the document
   Product: Tomcat 6
   Version: 6.0.14
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: major
  Priority: P2
 Component: Connectors
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hello,
I think the document for context
"http://tomcat.apache.org/tomcat-6.0-doc/config/context.html"; describe
the configuration item "cookies" difference the implement.
Please think this case.
1. In the same computer I start two tomcat, one is linsten 80, other
linsten 8080.
2. The tomcat bind at 80, it set the cookies to true.
3. The tomcat bind at 8080, it set the cookies to false. It will use the
URL rewrite to post the jsessionid.
4. First time I access the 80, it will return the JSESSIONID in cookie.
5. Don't close the IE, the access with the 8080 without URL rewrite.
What will happen. The tomcat linsten 8080 will use the jsession id of
80. It very strange.
So I modify the source code for file.
"apache-tomcat-6.0.14-src\java\org\apache\catalina\connector\CoyoteAdapter.java".
Change the code at line 472 from
parseSessionCookiesId(req, request);
to
if (((Context)request.getMappingData().context).getCookies())
parseSessionCookiesId(req, request);

If I modify it in wrong way, I want to know how to resoluate the case
that I list previous. Please tell me why the praseSessionCookiesId don't
care about the configuration item "cookies" in "Context".
Thanks.
Mars Engle




/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *  http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


package org.apache.catalina.connector;

import java.io.IOException;

import org.apache.catalina.CometEvent;
import org.apache.catalina.Context;
import org.apache.catalina.Globals;
import org.apache.catalina.Wrapper;
import org.apache.catalina.util.StringManager;
import org.apache.coyote.ActionCode;
import org.apache.coyote.Adapter;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.apache.tomcat.util.buf.B2CConverter;
import org.apache.tomcat.util.buf.ByteChunk;
import org.apache.tomcat.util.buf.CharChunk;
import org.apache.tomcat.util.buf.MessageBytes;
import org.apache.tomcat.util.http.Cookies;
import org.apache.tomcat.util.http.ServerCookie;
import org.apache.tomcat.util.net.SocketStatus;

/**
 * Implementation of a request processor which delegates the processing to a
 * Coyote processor.
 *
 * @author Craig R. McClanahan
 * @author Remy Maucherat
 * @version $Revision: 555304 $ $Date: 2007-07-11 17:28:52 +0200 (mer., 11 juil.
2007) $
 */

public class CoyoteAdapter
implements Adapter 
 {
private static Log log = LogFactory.getLog(CoyoteAdapter.class);

// -- Constants


public static final int ADAPTER_NOTES = 1;


protected static final boolean ALLOW_BACKSLASH = 
   
Boolean.valueOf(System.getProperty("org.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH",
"false")).booleanValue();


// --- Constructors


/**
 * Construct a new CoyoteProcessor associated with the specified connector.
 *
 * @param connector CoyoteConnector that owns this processor
 */
public CoyoteAdapter(Connector connector) {

super();
this.connector = connector;

}


// - Instance Variables


/**
 * The CoyoteConnector with which this processor is associated.
 */
private Connector connector = null;


/**
 * The match string for identifying a session ID parameter.
 */
private static final String match =
";" + Globals.SESSION_PARAMETER_NAME + "=";


/**
 * The string manager for this package.
 */
protected StringManager sm =
StringManager.getManager(Constants

DO NOT REPLY [Bug 43002] - NIO connector performance issue in 6.0.13

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=43002


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2007-11-11 15:07 ---
hi there,
Are you talking about the same bug?
We went from JDK buffer overflow problems, to corrupt chunk lengths
If this is a different issue than the original one, it is easier for us to track
as a new bug. 

If possible, open the new case with a test case.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r593952 - /tomcat/connectors/trunk/jk/native/common/jk_status.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 12:46:36 2007
New Revision: 593952

URL: http://svn.apache.org/viewvc?rev=593952&view=rev
Log:
Add a missing free for a map used in the status worker.

Modified:
tomcat/connectors/trunk/jk/native/common/jk_status.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_status.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_status.c?rev=593952&r1=593951&r2=593952&view=diff
==
--- tomcat/connectors/trunk/jk/native/common/jk_status.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_status.c Sun Nov 11 12:46:36 
2007
@@ -3491,6 +3491,7 @@
 if (e && *e && (*e)->endpoint_private) {
 status_endpoint_t *p = (*e)->endpoint_private;
 
+jk_map_free(&(p->req_params));
 free(p);
 *e = NULL;
 JK_TRACE_EXIT(l);



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



svn commit: r593943 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 11:22:23 2007
New Revision: 593943

URL: http://svn.apache.org/viewvc?rev=593943&view=rev
Log:
Undo revision 593927.
This produced a mem leak for vhosts with private JkMounts.
No idea why.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593943&r1=593942&r2=593943&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 11:22:23 
2007
@@ -2322,8 +2322,14 @@
we can't guarantee what order pools get cleaned
up between APR implementations. */
 wc_close(NULL);
-if (conf->uw_map)
-uri_worker_map_free(&conf->uw_map, NULL);
+if (conf->uri_to_context) {
+jk_map_free(&conf->uri_to_context);
+/* We cannot have allocated uw_map
+ * unless we've allocated uri_to_context
+ */
+if (conf->uw_map)
+uri_worker_map_free(&conf->uw_map, NULL);
+}
 conf->was_initialized = JK_FALSE;
 }
 s = s->next;
@@ -2812,7 +2818,6 @@
   sconf->uri_to_context, 
sconf->log))
 jk_error_exit(APLOG_MARK, APLOG_EMERG, srv,
   srv->process->pool, "Memory error");
-jk_map_free(&sconf->uri_to_context);
 if (sconf->options & JK_OPT_REJECTUNSAFE)
 sconf->uw_map->reject_unsafe = 1;
 else



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



svn commit: r593930 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:58:05 2007
New Revision: 593930

URL: http://svn.apache.org/viewvc?rev=593930&view=rev
Log:
Prevent crash, if worker_name is still NULL.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593930&r1=593929&r2=593930&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:58:05 
2007
@@ -2137,13 +2137,13 @@
 if (JK_IS_DEBUG_LEVEL(xconf->log))
jk_log(xconf->log, JK_LOG_DEBUG, "Into handler %s worker=%s"
   " r->proxyreq=%d",
-  r->handler, worker_name, r->proxyreq);
+  r->handler, STRNULL_FOR_NULL(worker_name), r->proxyreq);
 
 /* If this is a proxy request, we'll notify an error */
 if (r->proxyreq) {
 jk_log(xconf->log, JK_LOG_INFO, "Proxy request for worker=%s"
   " is not allowed",
-  worker_name);
+  STRNULL_FOR_NULL(worker_name));
 JK_TRACE_EXIT(xconf->log);
 return HTTP_INTERNAL_SERVER_ERROR;
 }



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



svn commit: r593927 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:50:46 2007
New Revision: 593927

URL: http://svn.apache.org/viewvc?rev=593927&view=rev
Log:
We don't use uri_to_context after post_config, so we
can clean it up early.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593927&r1=593926&r2=593927&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:50:46 
2007
@@ -2322,14 +2322,8 @@
we can't guarantee what order pools get cleaned
up between APR implementations. */
 wc_close(NULL);
-if (conf->uri_to_context) {
-jk_map_free(&conf->uri_to_context);
-/* We cannot have allocated uw_map
- * unless we've allocated uri_to_context
- */
-if (conf->uw_map)
-uri_worker_map_free(&conf->uw_map, NULL);
-}
+if (conf->uw_map)
+uri_worker_map_free(&conf->uw_map, NULL);
 conf->was_initialized = JK_FALSE;
 }
 s = s->next;
@@ -2818,6 +2812,7 @@
   sconf->uri_to_context, 
sconf->log))
 jk_error_exit(APLOG_MARK, APLOG_EMERG, srv,
   srv->process->pool, "Memory error");
+jk_map_free(&sconf->uri_to_context);
 if (sconf->options & JK_OPT_REJECTUNSAFE)
 sconf->uw_map->reject_unsafe = 1;
 else



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



svn commit: r593926 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:49:09 2007
New Revision: 593926

URL: http://svn.apache.org/viewvc?rev=593926&view=rev
Log:
Correct typo from revision 593921.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593926&r1=593925&r2=593926&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:49:09 
2007
@@ -2459,7 +2459,7 @@
 }
 
if (overrides->mountcopy == JK_UNSET && jk_mount_copy_all == JK_TRUE) { 
   
-   overrides->mountcopy == JK_TRUE;
+   overrides->mountcopy = JK_TRUE;
}
if (overrides->uri_to_context && overrides->mountcopy == JK_TRUE) {
 /* jk_map_copy() preserves existing entries in overrides map */



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



svn commit: r593924 - /tomcat/tc6.0.x/trunk/STATUS

2007-11-11 Thread remm
Author: remm
Date: Sun Nov 11 08:39:40 2007
New Revision: 593924

URL: http://svn.apache.org/viewvc?rev=593924&view=rev
Log:
- Votes.

Modified:
tomcat/tc6.0.x/trunk/STATUS

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS?rev=593924&r1=593923&r2=593924&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Sun Nov 11 08:39:40 2007
@@ -39,13 +39,13 @@
 
 * Fix BZ 43702 - Inner class files have unnecessarily long names
   http://people.apache.org/~markt/patches/2007-10-30-Bug43702.patch
-  +1: markt
+  +1: markt, remm
   -1:
 
 * Fix BZ 43675 - Possible logging related classloader leak
   http://people.apache.org/~markt/patches/2007-10-30-Bug43675.patch
   +1: markt
-  -1:
+  -1: remm (in ServerCookie, log(String) should probably be removed)
 
 * Fix double quoting of quoted-string. 
http://people.apache.org/~jfclere/patches/cookies.tck.patch
   and $Version parsing
@@ -61,5 +61,5 @@
 
 * Fix licensing of JSP 2.1 schema
   svn diff -c r593814
-  +1: markt
+  +1: markt, remm
   -1:



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



svn commit: r593922 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:33:11 2007
New Revision: 593922

URL: http://svn.apache.org/viewvc?rev=593922&view=rev
Log:
Even if a vhost has private JkMounts, it should not always
inherit the mounts from the global server. Only inherit
if JkMountCopy indicates it.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593922&r1=593921&r2=593922&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:33:11 
2007
@@ -2461,18 +2461,18 @@
if (overrides->mountcopy == JK_UNSET && jk_mount_copy_all == JK_TRUE) { 
   
overrides->mountcopy == JK_TRUE;
}
-   if (overrides->uri_to_context) {
+   if (overrides->uri_to_context && overrides->mountcopy == JK_TRUE) {
 /* jk_map_copy() preserves existing entries in overrides map */
 if (jk_map_copy(base->uri_to_context, overrides->uri_to_context) == 
JK_FALSE) {
 jk_error_exit(APLOG_MARK, APLOG_EMERG, overrides->s, p, 
"Memory error");
 }
-if (overrides->mount_file_reload == JK_UNSET)
-overrides->mount_file_reload = base->mount_file_reload;
 if (!overrides->mount_file)
 overrides->mount_file = base->mount_file;
 if (!overrides->alias_dir)
 overrides->alias_dir = base->alias_dir;
 }
+if (overrides->mount_file_reload == JK_UNSET)
+overrides->mount_file_reload = base->mount_file_reload;
 if (overrides->strip_session == JK_UNSET)
 overrides->strip_session = base->strip_session;
 



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



svn commit: r593921 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:28:51 2007
New Revision: 593921

URL: http://svn.apache.org/viewvc?rev=593921&view=rev
Log:
Merge is always done before post_config, so we
can use jk_mount_copy_all to set mountcopy during merge,
which simplifies mount copy logic.

JkMountCopy All should be weaker than JkMountCopy Off,
i.e. a vhost with JkMountCopy Off should not inherit
the mounts, even if JkMountCopy All is globally set.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593921&r1=593920&r2=593921&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:28:51 
2007
@@ -2458,6 +2458,9 @@
 }
 }
 
+   if (overrides->mountcopy == JK_UNSET && jk_mount_copy_all == JK_TRUE) { 
   
+   overrides->mountcopy == JK_TRUE;
+   }
if (overrides->uri_to_context) {
 /* jk_map_copy() preserves existing entries in overrides map */
 if (jk_map_copy(base->uri_to_context, overrides->uri_to_context) == 
JK_FALSE) {
@@ -2826,7 +2829,7 @@
 }
 }
 else {
-if (sconf->mountcopy == JK_TRUE || jk_mount_copy_all 
== JK_TRUE) {
+if (sconf->mountcopy == JK_TRUE) {
 sconf->uw_map = conf->uw_map;
 }
 }



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



svn commit: r593918 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:06:27 2007
New Revision: 593918

URL: http://svn.apache.org/viewvc?rev=593918&view=rev
Log:
We should always have a non-NULL mapping table
in the main server. Otherwise e.g. we get a core dump,
when using the mount attribute in workers.properties.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593918&r1=593917&r2=593918&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:06:27 
2007
@@ -2354,6 +2354,9 @@
 c->ssl_enable = JK_UNSET;
 c->strip_session = JK_UNSET;
 } else {
+if (!jk_map_alloc(&(c->uri_to_context))) {
+ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, "Memory error");
+}
 c->mountcopy = JK_FALSE;
 c->mount_file_reload = JK_URIMAP_DEF_RELOAD;
 c->log_level = JK_LOG_DEF_LEVEL;



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



svn commit: r593917 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:02:09 2007
New Revision: 593917

URL: http://svn.apache.org/viewvc?rev=593917&view=rev
Log:
We have this check already in two of three places, where
we use uw_map. Adding it to the third place.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593917&r1=593916&r2=593917&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:02:09 
2007
@@ -2111,7 +2111,17 @@
worker_name, r->uri);
 }
 else {
-worker_name = map_uri_to_worker(xconf->uw_map, r->uri, NULL, 
xconf->log);
+if (!xconf->uw_map) {
+if (JK_IS_DEBUG_LEVEL(xconf->log))
+jk_log(xconf->log, JK_LOG_DEBUG,
+   "missing uri map for %s:%s",
+   xconf->s->server_hostname ? 
xconf->s->server_hostname : "_default_",
+   r->uri);
+}
+else
+worker_name = map_uri_to_worker(xconf->uw_map, r->uri,
+NULL, xconf->log);
+
 if (worker_name == NULL && worker_env.num_of_workers) {
 worker_name = worker_env.worker_list[0];
 if (JK_IS_DEBUG_LEVEL(xconf->log))



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



svn commit: r593916 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 08:00:07 2007
New Revision: 593916

URL: http://svn.apache.org/viewvc?rev=593916&view=rev
Log:
Add two comments, how me merge.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593916&r1=593915&r2=593916&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 08:00:07 
2007
@@ -2434,6 +2434,7 @@
 
 if (base->envvars) {
 if (overrides->envvars && overrides->envvars_has_own) {
+/* merge_apr_table() preserves existing entries in overrides table */
 merge_apr_table(base->envvars, overrides->envvars);
 merge_apr_table(base->envvars_def, overrides->envvars_def);
 }
@@ -2445,6 +2446,7 @@
 }
 
if (overrides->uri_to_context) {
+/* jk_map_copy() preserves existing entries in overrides map */
 if (jk_map_copy(base->uri_to_context, overrides->uri_to_context) == 
JK_FALSE) {
 jk_error_exit(APLOG_MARK, APLOG_EMERG, overrides->s, p, 
"Memory error");
 }



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



svn commit: r593915 - /tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

2007-11-11 Thread rjung
Author: rjung
Date: Sun Nov 11 07:55:20 2007
New Revision: 593915

URL: http://svn.apache.org/viewvc?rev=593915&view=rev
Log:
Rename envvars_in_use to envvars_has_own reflecting better
it's new use. It indicates, if the envvars are completely
inherited from another vhost, or if the vhost has at least
one envvar which is special for it.

Modified:
tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c

Modified: tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c
URL: 
http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c?rev=593915&r1=593914&r2=593915&view=diff
==
--- tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c (original)
+++ tomcat/connectors/trunk/jk/native/apache-2.0/mod_jk.c Sun Nov 11 07:55:20 
2007
@@ -208,7 +208,7 @@
 /*
  * Environment variables support
  */
-int envvars_in_use;
+int envvars_has_own;
 apr_table_t *envvars;
 apr_table_t *envvars_def;
 apr_array_header_t *envvar_items;
@@ -1826,7 +1826,7 @@
 (jk_server_conf_t *) ap_get_module_config(s->module_config,
   &jk_module);
 
-conf->envvars_in_use = JK_TRUE;
+conf->envvars_has_own = JK_TRUE;
 if (!conf->envvars) {
 conf->envvars  = apr_table_make(cmd->pool, 0);
 conf->envvars_def  = apr_table_make(cmd->pool, 0);
@@ -2366,7 +2366,7 @@
 c->key_size_indicator = JK_ENV_KEY_SIZE;
 c->strip_session = JK_FALSE;
 }
-c->envvars_in_use = JK_FALSE;
+c->envvars_has_own = JK_FALSE;
 
 c->s = s;
 apr_pool_cleanup_register(p, s, jk_apr_pool_cleanup, jk_apr_pool_cleanup);
@@ -2433,7 +2433,7 @@
 overrides->options |= (base->options & ~base->exclude_options);
 
 if (base->envvars) {
-if (overrides->envvars && overrides->envvars_in_use) {
+if (overrides->envvars && overrides->envvars_has_own) {
 merge_apr_table(base->envvars, overrides->envvars);
 merge_apr_table(base->envvars_def, overrides->envvars_def);
 }
@@ -2822,7 +2822,7 @@
 ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
  "JkRequestLogFormat format array 
NULL");
 }
-if (sconf->envvars && sconf->envvars_in_use) {
+if (sconf->envvars && sconf->envvars_has_own) {
 int i;
 const apr_array_header_t *arr;
 const apr_table_entry_t *elts;



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



DO NOT REPLY [Bug 43834] - Jsp not able to find and compile Java Class Code

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=43834


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2007-11-11 05:04 ---
You need to provide the compiled class. Use the users list if you need more 
help.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 43834] New: - Jsp not able to find and compile Java Class Code

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=43834

   Summary: Jsp not able to find and compile Java Class Code
   Product: Tomcat 5
   Version: 5.5.24
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: blocker
  Priority: P1
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I have a java class code , placed in the path C:\Program Files\Apache Software 
Foundation\Tomcat 5.5\webapps\ROOT\WEB-INF\classes\mail\jspemailjava.java

where mail is the package and the java code is 

package mail;

import javax.mail.*;
import javax.mail.internet.*;


import java.util.Properties;

public class jspemailjava {
public void execute() throws Exception{

  boolean debug = true; 

  Properties props = new Properties();

  props.setProperty("mail.transport.protocol", "smtp");
  props.setProperty("mail.smtp.host", "smtp.gmail.com");
  props.put("mail.smtp.port","587");
  props.setProperty("mail.smtp.user", "[EMAIL PROTECTED]");
  props.setProperty("mail.smtp.password", "ecosystem2007");
  props.put("mail.smtp.starttls.enable","true");
  props.put("mail.smtp.auth", "true");
  props.put("mail.debug", "true");
 
 
 Session mailSession = Session.getDefaultInstance(props,new 
javax.mail.Authenticator() {
 
protected PasswordAuthentication 
getPasswordAuthentication() {
return new PasswordAuthentication
("[EMAIL PROTECTED]", "ecosystem2007");

 }
   
 });
 
  //mailSession.setDebug(debug);

  Transport transport = mailSession.getTransport();
  
  MimeMessage message = new MimeMessage(mailSession);

  message.setSubject("Testing javamail plain");
  message.setContent("This is a test", "text/plain");
  message.addRecipient(Message.RecipientType.TO,
  new InternetAddress("[EMAIL PROTECTED]"));

  message.setFrom(new InternetAddress("[EMAIL PROTECTED]"));

  transport.connect();
  transport.sendMessage(message,
  message.getRecipients(Message.RecipientType.TO));
  transport.close();
}


}

The jsp file to invoke the java code is placed in the path C:\Program 
Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\sendmail\mail.jsp, 
the jsp code is 

<%@ page import="mail.*"%>

<%





%>

 
 
<% email.execute(); %>
A Message has been sent.  
Check your inbox. 
 

 

 

 

When i run the mail.jsp, i get the following error. Please can u help me as to 
how to solve the problem. Urgently required to complete my project.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP: 
JSP FileName:/sendmail/mail.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/work/Catalina/localhost/_//org/apache/jsp/sendmail\mail_jsp.java

An error occurred at line: 5 in the jsp file: /sendmail/mail.jsp
Syntax error on token(s), misplaced construct(s)
2: 
3: <%
4: 
5: 
6: 
7: 
8: 

JSP FileName:/sendmail/mail.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/work/Catalina/localhost/_//org/apache/jsp/sendmail\mail_jsp.java

An error occurred at line: 5 in the jsp file: /sendmail/mail.jsp
Syntax error, insert "AssignmentOperator ArrayInitializer" to complete 
ArrayInitializerAssignement
2: 
3: <%
4: 
5: 
6: 
7: 
8: 

JSP FileName:/sendmail/mail.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/work/Catalina/localhost/_//org/apache/jsp/sendmail\mail_jsp.java

An error occurred at line: 5 in the jsp file: /sendmail/mail.jsp
Syntax error, insert ";" to complete Statement
2: 
3: <%
4: 
5: 
6: 
7: 
8: 

JSP FileName:/sendmail/mail.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/work/Catalina/localhost/_//org/apache/jsp/sendmail\mail_jsp.java

An error occurred at line: 5 in the jsp file: /sendmail/mail.jsp
Syntax error, insert ";" to complete Statement
2: 
3: <%
4: 
5: 
6: 
7: 
8: 

JSP FileName:/sendmail/mail.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/work/Catalina/localhost/_//org/apache/jsp/sendmail\mail_jsp.java

An error occurred at line: 5 in the jsp file: /sendmail/mail.jsp
Syntax error, insert ";" to complete Statement
2: 
3: <%
4: 
5: 
6: 
7: 
8: 

JSP FileName:/sendmail/mail.jsp
Java FileName:/C:/Program Files/Apache Software Foundation/Tomcat 
5.5/work/Catalina/localhost/_//org/apache/jsp/sendmail\mail_jsp.java

An error occurred at line: 5 in the jsp file: /se

Re: svn commit: r593815 - /tomcat/tc6.0.x/trunk/STATUS

2007-11-11 Thread David Jencks


On Nov 11, 2007, at 1:24 AM, David Jencks wrote:



On Nov 10, 2007, at 2:12 PM, [EMAIL PROTECTED] wrote:


Author: markt
Date: Sat Nov 10 14:12:54 2007
New Revision: 593815

URL: http://svn.apache.org/viewvc?rev=593815&view=rev
Log:
Add JSP schema fix

Modified:
tomcat/tc6.0.x/trunk/STATUS

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS? 
rev=593815&r1=593814&r2=593815&view=diff
= 
=

--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Sat Nov 10 14:12:54 2007
@@ -53,3 +53,7 @@
   -1: markt - only the double quoting part - see http:// 
marc.info/?l=tomcat-dev&m=119454915422424&w=2 for reasons
   -1: fhanik - I still think it needs some work, will discuss on  
dev list


+* Fix licensing of JSP 2.1 schema
+  svn diff -c r593814
+  +1: markt
+  -1:


As noted in a reply to the commit email I think you have replaced  
the files Remy checked in with geronimo's copies of those files, so  
if I'm correct you have not improved the legal situation.


As noted in my 2nd reply I was wrong and these files are not copies  
of Remy's checkin or suns originals.


My apologies.
david jencks



thanks
david jencks





-
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: svn commit: r593815 - /tomcat/tc6.0.x/trunk/STATUS

2007-11-11 Thread David Jencks


On Nov 10, 2007, at 2:12 PM, [EMAIL PROTECTED] wrote:


Author: markt
Date: Sat Nov 10 14:12:54 2007
New Revision: 593815

URL: http://svn.apache.org/viewvc?rev=593815&view=rev
Log:
Add JSP schema fix

Modified:
tomcat/tc6.0.x/trunk/STATUS

Modified: tomcat/tc6.0.x/trunk/STATUS
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS? 
rev=593815&r1=593814&r2=593815&view=diff
== 


--- tomcat/tc6.0.x/trunk/STATUS (original)
+++ tomcat/tc6.0.x/trunk/STATUS Sat Nov 10 14:12:54 2007
@@ -53,3 +53,7 @@
   -1: markt - only the double quoting part - see http://marc.info/? 
l=tomcat-dev&m=119454915422424&w=2 for reasons
   -1: fhanik - I still think it needs some work, will discuss on  
dev list


+* Fix licensing of JSP 2.1 schema
+  svn diff -c r593814
+  +1: markt
+  -1:


As noted in a reply to the commit email I think you have replaced the  
files Remy checked in with geronimo's copies of those files, so if  
I'm correct you have not improved the legal situation.


thanks
david jencks





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