svn commit: r1526842 - /tomcat/jk/trunk/native/common/jk_connect.c

2013-09-27 Thread mturk
Author: mturk
Date: Fri Sep 27 09:37:31 2013
New Revision: 1526842

URL: http://svn.apache.org/r1526842
Log:
Dump correct IPv4/IPv6 addresses

Modified:
tomcat/jk/trunk/native/common/jk_connect.c

Modified: tomcat/jk/trunk/native/common/jk_connect.c
URL: 
http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_connect.c?rev=1526842r1=1526841r2=1526842view=diff
==
--- tomcat/jk/trunk/native/common/jk_connect.c (original)
+++ tomcat/jk/trunk/native/common/jk_connect.c Fri Sep 27 09:37:31 2013
@@ -1142,23 +1142,44 @@ char *jk_dump_hinfo(jk_sockaddr_t *saddr
 
 char *jk_dump_sinfo(jk_sock_t sd, char *buf)
 {
-struct sockaddr_in rsaddr;
-struct sockaddr_in lsaddr;
-socklen_t  salen;
+struct sockaddr rsaddr;
+struct sockaddr lsaddr;
+socklen_t   salen;
 
 salen = sizeof(struct sockaddr);
-if (getsockname(sd, (struct sockaddr *)lsaddr, salen) == 0) {
+if (getsockname(sd, lsaddr, salen) == 0) {
 salen = sizeof(struct sockaddr);
-if (getpeername(sd, (struct sockaddr *)rsaddr, salen) == 0) {
-unsigned long  laddr = (unsigned  
long)htonl(lsaddr.sin_addr.s_addr);
-unsigned short lport = (unsigned short)htons(lsaddr.sin_port);
-unsigned long  raddr = (unsigned  
long)htonl(rsaddr.sin_addr.s_addr);
-unsigned short rport = (unsigned short)htons(rsaddr.sin_port);
-sprintf(buf, %d.%d.%d.%d:%d - %d.%d.%d.%d:%d,
-(int)(laddr  24), (int)((laddr  16)  0xff),
-(int)((laddr  8)  0xff), (int)(laddr  0xff), 
(int)lport,
-(int)(raddr  24), (int)((raddr  16)  0xff),
-(int)((raddr  8)  0xff), (int)(raddr  0xff), 
(int)rport);
+if (getpeername(sd, rsaddr, salen) == 0) {
+char   pb[8];
+size_t ps;
+if (lsaddr.sa_family == AF_INET) {
+struct sockaddr_in  *sa = (struct sockaddr_in  *)lsaddr;
+inet_ntop4((unsigned char *)sa-sin_addr,  buf, 16);
+sprintf(pb, :%d, (unsigned int)htons(sa-sin_port));
+}
+#if APR_HAVE_IPV6
+else {
+struct sockaddr_in6 *sa = (struct sockaddr_in6 *)lsaddr;
+inet_ntop6((unsigned char *)sa-sin6_addr, buf, 64);
+sprintf(pb, :%d, (unsigned int)htons(sa-sin6_port));
+}
+#endif
+strcat(buf, pb);
+strcat(buf,  - );
+ps = strlen(buf);
+if (rsaddr.sa_family == AF_INET) {
+struct sockaddr_in  *sa = (struct sockaddr_in  *)rsaddr;
+inet_ntop4((unsigned char *)sa-sin_addr,  buf + ps, 16);
+sprintf(pb, :%d, (unsigned int)htons(sa-sin_port));
+}
+#if APR_HAVE_IPV6
+else {
+struct sockaddr_in6 *sa = (struct sockaddr_in6 *)rsaddr;
+inet_ntop6((unsigned char *)sa-sin6_addr, buf + ps, 64);
+sprintf(pb, :%d, (unsigned int)htons(sa-sin6_port));
+}
+#endif
+strcat(buf, pb);
 return buf;
 }
 }



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55588] Tomcat randomly crashes with [libtcnative-1.so+0x12e39] Java_org_apache_tomcat_jni_Socket_sendbb+0x59

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55588

st.mailingli...@gmail.com changed:

   What|Removed |Added

 CC||st.mailingli...@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55602] New: JRE crashes during websocket communication

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55602

Bug ID: 55602
   Summary: JRE crashes during websocket communication
   Product: Tomcat 7
   Version: unspecified
  Hardware: PC
OS: Linux
Status: NEW
  Severity: major
  Priority: P2
 Component: Connectors
  Assignee: dev@tomcat.apache.org
  Reporter: st.mailingli...@gmail.com

During some initial tests with the Websocket implementation in Tomcat 7.0.42
the jre crashed seemingly randomly with the following crash log.

We got the same crash 3 times during a full work day while testing an extended
version of the chat examples/ app in message (not binary) mode with a few
clients. No idea how to reproduce though as the crashes appeared seemingly
randomly. The chat had always been working fine for some time before the crash
occurred.

Using APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x7f4b6a72c9dd, pid=10100, tid=139961597916928
#
# JRE version: Java(TM) SE Runtime Environment (7.0_40-b43) (build
1.7.0_40-b43)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.0-b56 mixed mode linux-amd64
compressed oops)
# Problematic frame:
# C  [libtcnative-1.so.0.1.27+0x129dd] 
Java_org_apache_tomcat_jni_Socket_send+0x15d
#
# Core dump written. Default location: /home/asok/myself/core or core.10100
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0x7f492801):  JavaThread http-apr-10088-exec-7 daemon
[_thread_in_native, id=18750, stack(0x7f4b59437000,0x7f4b59538000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR),
si_addr=0x0040

Registers:
RAX=0x, RBX=0x7f49280011d0, RCX=0x,
RDX=0x7f4b59534128
RSP=0x7f4b59534110, RBP=0x7f49280101e8, RSI=0x7f4b59534130,
RDI=0x
R8 =0x7f4b59534130, R9 =0x0001, R10=0x7f4b8d01852d,
R11=0x7f4b985e3ed0
R12=0x, R13=0x, R14=0x7f4b59536210,
R15=0x7f492801
RIP=0x7f4b6a72c9dd, EFLAGS=0x00010246, CSGSFS=0x0033,
ERR=0x0004
  TRAPNO=0x000e

Top of Stack: (sp=0x7f4b59534110)
0x7f4b59534110:   327473657547202a 6f6a207361682031
0x7f4b59534120:   002e64656e69 0001
0x7f4b59534130:   0081 
0x7f4b59534140:    0008
0x7f4b59534150:    
0x7f4b59534160:    
0x7f4b59534170:    
0x7f4b59534180:   3528 
0x7f4b59534190:   5978 
0x7f4b595341a0:   5980 
0x7f4b595341b0:   0008 
0x7f4b595341c0:    
0x7f4b595341d0:    
0x7f4b595341e0:    
0x7f4b595341f0:    
0x7f4b59534200:    
0x7f4b59534210:    7f4b0008
0x7f4b59534220:    7f4b
0x7f4b59534230:   7f49 7f49
0x7f4b59534240:   7f4b 7f4b
0x7f4b59534250:    
0x7f4b59534260:    
0x7f4b59534270:    
0x7f4b59534280:    
0x7f4b59534290:    
0x7f4b595342a0:    
0x7f4b595342b0:    
0x7f4b595342c0:    0b00
0x7f4b595342d0:    
0x7f4b595342e0:    
0x7f4b595342f0:    
0x7f4b59534300:     

Instructions: (pc=0x7f4b6a72c9dd)
0x7f4b6a72c9bd:   89 ea 4c 89 f6 48 89 ef ff 90 40 06 00 00 48 8b
0x7f4b6a72c9cd:   43 30 48 8b 7b 18 48 8d 54 24 18 48 8d 74 24 20
0x7f4b6a72c9dd:   ff 50 40 89 c3 e9 47 ff ff ff be 58 00 00 00 48
0x7f4b6a72c9ed:   89 ef e8 ec a1 ff ff b8 a8 ff ff ff e9 6a ff ff 

Register to memory mapping:

RAX=0x is an unknown value
RBX=0x7f49280011d0 is an unknown value
RCX=0x is an unknown value
RDX=0x7f4b59534128 is pointing into the stack for thread:
0x7f492801
RSP=0x7f4b59534110 is pointing into the stack for thread:

[Bug 55603] New: Printing from servlet causes endles spoolling

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55603

Bug ID: 55603
   Summary: Printing from servlet causes endles spoolling
   Product: Tomcat 7
   Version: 7.0.42
  Hardware: PC
OS: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Servlet  JSP API
  Assignee: dev@tomcat.apache.org
  Reporter: jorgevpi...@gmail.com

This code works correctly in a java program (command line), but NOT when called
inside a servlet (I am currently calling from a Struts 1.2.8 Action)

I only get an endless spooling.

-- START CODE --

MyPainter myp = new MyPainter(); // Implements Printable interface

DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;

PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
aset.add(new JobName(myjob, Locale.getDefault()));

PrintService [] pservices = PrintServiceLookup.lookupPrintServices(flavor,
aset);

DocPrintJob pj = pservices[0].createPrintJob();

Doc doc = new SimpleDoc(myp, flavor, null);

pj.print(doc, aset);

-- END CODE --

I think it is a bug, because my code never gets called, i.e. the print() method
in the painter is never called.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55588] Tomcat randomly crashes with [libtcnative-1.so+0x12e39] Java_org_apache_tomcat_jni_Socket_sendbb+0x59

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55588

Christopher Schultz ch...@christopherschultz.net changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #1 from Christopher Schultz ch...@christopherschultz.net ---
Both Tomcat and tcnative are out of date. Can you re-try your testing with
current versions (current are Tomcat 7.0.42, tcnative 1.1.27). Also, APR 1.3.9
is fairly old. What type of Linux system is this?

Also, please run 'ulimit -c unlimited' in the shell before launching Tomcat so
you can get a core file -- hopefully with a more complete backtrace.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1526918 - in /tomcat/trunk/webapps/docs: images/docs-stylesheet.css tomcat-docs.xsl

2013-09-27 Thread kpreisser
Author: kpreisser
Date: Fri Sep 27 14:48:41 2013
New Revision: 1526918

URL: http://svn.apache.org/r1526918
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55383
Improve CSS:
- Use media queries in the main CSS file to better control when CSS styles 
should not be applied for printing.
- Use noPrint class for ASF logo.

Modified:
tomcat/trunk/webapps/docs/images/docs-stylesheet.css
tomcat/trunk/webapps/docs/tomcat-docs.xsl

Modified: tomcat/trunk/webapps/docs/images/docs-stylesheet.css
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/images/docs-stylesheet.css?rev=1526918r1=1526917r2=1526918view=diff
==
--- tomcat/trunk/webapps/docs/images/docs-stylesheet.css (original)
+++ tomcat/trunk/webapps/docs/images/docs-stylesheet.css Fri Sep 27 14:48:41 
2013
@@ -58,10 +58,15 @@ main {
 }
 
 #header {
-  box-shadow: 0 0 7px #aaa;
   border-bottom: 1px solid #bbb;
 }
 
+@media not print {
+#header {
+box-shadow: 0 0 7px #aaa;
+}
+}
+
 #header  div {
   padding-left: 15px;
   padding-right: 15px;
@@ -182,8 +187,13 @@ main {
   padding-left: 5px;
   padding-right: 5px;
   background-color: #eaeaea;
-  border: 1px solid #ccc;
-  border-radius: 4px;
+}
+
+@media not print {
+#content h3, #content h4, #content h5, #content h6 {
+border: 1px solid #ccc;
+border-radius: 4px;
+}
 }
 
 #content h4, #content h5, #content h6 {
@@ -267,3 +277,11 @@ ul.changelog  li{
 ul.changelog img {
   vertical-align: middle
 }
+
+
+/* Printer-only Styles */
+@media print {
+.noPrint { display: none; }
+#middle  div  div#mainLeft { display: none; }
+a { color: inherit; text-decoration: none; }
+}
\ No newline at end of file

Modified: tomcat/trunk/webapps/docs/tomcat-docs.xsl
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/tomcat-docs.xsl?rev=1526918r1=1526917r2=1526918view=diff
==
--- tomcat/trunk/webapps/docs/tomcat-docs.xsl (original)
+++ tomcat/trunk/webapps/docs/tomcat-docs.xsl Fri Sep 27 14:48:41 2013
@@ -72,11 +72,6 @@
 xsl:value-of select=$relative-path/xsl:value-of 
select=$home-stylesheet/
   /xsl:variable
   link href={$css-src} rel=stylesheet type=text/css/
-  style type=text/css media=print![CDATA[
-.noPrint { display: none; }
-#middle  div  div#mainLeft { display: none; }
-a { color: inherit; text-decoration: none; }
-  ]]/style
 
   titlexsl:value-of select=project/title/ (xsl:value-of 
select=$version/) - xsl:value-of select=properties/title//title
   xsl:for-each select=properties/author
@@ -159,7 +154,7 @@
 xsl:variable name=src
   xsl:value-of select=$relative-path/xsl:value-of 
select=$apache-logo/
 /xsl:variable
-div class=asfLogo
+div class=asfLogo noPrint
   a href=http://www.apache.org/; target=_blankimg src={$src} 
alt=The Apache Software Foundation style=width: 266px; height: 83px;//a
 /div
 h1xsl:value-of select=$project/title//h1



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55588] Tomcat randomly crashes with [libtcnative-1.so+0x12e39] Java_org_apache_tomcat_jni_Socket_sendbb+0x59

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55588

--- Comment #2 from Christopher Schultz ch...@christopherschultz.net ---
Also, why do you believe this is not the issue covered by bug #51813 ?

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55602] JRE crashes during websocket communication

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55602

--- Comment #1 from Christopher Schultz ch...@christopherschultz.net ---
Possible dupe of bug #51813

Can you re-try with tcnative 1.1.28? (I mis-typed in your other bug that 1.1.27
is latest... it's 1.1.28 though it does not appear to be on the download page
for some reason). Try looking here:
http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.28/

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55603] Printing from servlet causes endles spoolling

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55603

Christopher Schultz ch...@christopherschultz.net changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #1 from Christopher Schultz ch...@christopherschultz.net ---
What user runs the CLI version, and what user runs Tomcat? Could this be a
permissions issue? Most services have virtually no local permissions (including
access to printers).

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1526921 - in /tomcat/site/trunk: docs/ docs/stylesheets/ xdocs/stylesheets/

2013-09-27 Thread kpreisser
Author: kpreisser
Date: Fri Sep 27 14:56:46 2013
New Revision: 1526921

URL: http://svn.apache.org/r1526921
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55383
Improve CSS:
- Use media queries in the main CSS file to better control when CSS styles 
should not be applied for printing.
- Use noPrint class for ASF logo.

Modified:
tomcat/site/trunk/docs/bugreport.html
tomcat/site/trunk/docs/ci.html
tomcat/site/trunk/docs/contact.html
tomcat/site/trunk/docs/download-60.html
tomcat/site/trunk/docs/download-70.html
tomcat/site/trunk/docs/download-80.html
tomcat/site/trunk/docs/download-connectors.html
tomcat/site/trunk/docs/download-native.html
tomcat/site/trunk/docs/findhelp.html
tomcat/site/trunk/docs/getinvolved.html
tomcat/site/trunk/docs/heritage.html
tomcat/site/trunk/docs/index.html
tomcat/site/trunk/docs/irc.html
tomcat/site/trunk/docs/legal.html
tomcat/site/trunk/docs/lists.html
tomcat/site/trunk/docs/maven-plugin.html
tomcat/site/trunk/docs/migration-6.html
tomcat/site/trunk/docs/migration-7.html
tomcat/site/trunk/docs/migration-8.html
tomcat/site/trunk/docs/migration.html
tomcat/site/trunk/docs/oldnews-2010.html
tomcat/site/trunk/docs/oldnews-2011.html
tomcat/site/trunk/docs/oldnews-2012.html
tomcat/site/trunk/docs/oldnews.html
tomcat/site/trunk/docs/resources.html
tomcat/site/trunk/docs/security-3.html
tomcat/site/trunk/docs/security-4.html
tomcat/site/trunk/docs/security-5.html
tomcat/site/trunk/docs/security-6.html
tomcat/site/trunk/docs/security-7.html
tomcat/site/trunk/docs/security-8.html
tomcat/site/trunk/docs/security-impact.html
tomcat/site/trunk/docs/security-jk.html
tomcat/site/trunk/docs/security-native.html
tomcat/site/trunk/docs/security.html
tomcat/site/trunk/docs/stylesheets/tomcat.css
tomcat/site/trunk/docs/svn.html
tomcat/site/trunk/docs/tomcat-55-eol.html
tomcat/site/trunk/docs/tools.html
tomcat/site/trunk/docs/whichversion.html
tomcat/site/trunk/docs/whoweare.html
tomcat/site/trunk/xdocs/stylesheets/tomcat-site.xsl
tomcat/site/trunk/xdocs/stylesheets/tomcat.css

Modified: tomcat/site/trunk/docs/bugreport.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/bugreport.html?rev=1526921r1=1526920r2=1526921view=diff
==
--- tomcat/site/trunk/docs/bugreport.html (original)
+++ tomcat/site/trunk/docs/bugreport.html Fri Sep 27 14:56:46 2013
@@ -3,7 +3,6 @@
 head
 META http-equiv=Content-Type content=text/html; charset=UTF-8
 link href=stylesheets/tomcat.css rel=stylesheet type=text/css
-link href=stylesheets/tomcat-printer.css rel=stylesheet type=text/css 
media=print
 titleApache Tomcat - Reporting Bugs/title
 meta name=author content=Glenn L. Nielsen
 /head
@@ -17,7 +16,7 @@
 a href=img alt=Tomcat Home src=./images/tomcat.png/a
 /div
 div style=height: 1px;/div
-div class=asfLogo
+div class=asfLogo noPrint
 a href=http://www.apache.org/; target=_blankimg 
src=http://www.apache.org/images/feather.png; alt=The Apache Software 
Foundation style=width: 266px; height: 83px;/a
 /div
 h1 style=margin-top: 35px;Apache Tomcat/h1

Modified: tomcat/site/trunk/docs/ci.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/ci.html?rev=1526921r1=1526920r2=1526921view=diff
==
--- tomcat/site/trunk/docs/ci.html (original)
+++ tomcat/site/trunk/docs/ci.html Fri Sep 27 14:56:46 2013
@@ -3,7 +3,6 @@
 head
 META http-equiv=Content-Type content=text/html; charset=UTF-8
 link href=stylesheets/tomcat.css rel=stylesheet type=text/css
-link href=stylesheets/tomcat-printer.css rel=stylesheet type=text/css 
media=print
 titleApache Tomcat - Continuous Integration/title
 /head
 body
@@ -16,7 +15,7 @@
 a href=img alt=Tomcat Home src=./images/tomcat.png/a
 /div
 div style=height: 1px;/div
-div class=asfLogo
+div class=asfLogo noPrint
 a href=http://www.apache.org/; target=_blankimg 
src=http://www.apache.org/images/feather.png; alt=The Apache Software 
Foundation style=width: 266px; height: 83px;/a
 /div
 h1 style=margin-top: 35px;Apache Tomcat/h1

Modified: tomcat/site/trunk/docs/contact.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/contact.html?rev=1526921r1=1526920r2=1526921view=diff
==
--- tomcat/site/trunk/docs/contact.html (original)
+++ tomcat/site/trunk/docs/contact.html Fri Sep 27 14:56:46 2013
@@ -3,7 +3,6 @@
 head
 META http-equiv=Content-Type content=text/html; charset=UTF-8
 link href=stylesheets/tomcat.css rel=stylesheet type=text/css
-link href=stylesheets/tomcat-printer.css rel=stylesheet type=text/css 
media=print
 titleApache Tomcat - Contact Information/title
 /head
 body
@@ -16,7 +15,7 @@
 a href=img alt=Tomcat Home src=./images/tomcat.png/a
 /div
 div 

Re: svn commit: r1526921 - in /tomcat/site/trunk: docs/ docs/stylesheets/ xdocs/stylesheets/

2013-09-27 Thread Christopher Schultz
Konstantin,

On 9/27/13 10:56 AM, kpreis...@apache.org wrote:
 Author: kpreisser
 Date: Fri Sep 27 14:56:46 2013
 New Revision: 1526921
 
 URL: http://svn.apache.org/r1526921
 Log:
 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55383
 Improve CSS:
 - Use media queries in the main CSS file to better control when CSS styles 
 should not be applied for printing.
 - Use noPrint class for ASF logo.

Any particular reason to use a separate (physical) stylesheet for the
print media?

-chris



signature.asc
Description: OpenPGP digital signature


svn commit: r1526922 - in /tomcat/site/trunk: docs/whoweare.html xdocs/whoweare.xml

2013-09-27 Thread kpreisser
Author: kpreisser
Date: Fri Sep 27 14:59:38 2013
New Revision: 1526922

URL: http://svn.apache.org/r1526922
Log:
Use h4 instead of h3 for Headings in section elements for correct 
document outline.

Modified:
tomcat/site/trunk/docs/whoweare.html
tomcat/site/trunk/xdocs/whoweare.xml

Modified: tomcat/site/trunk/docs/whoweare.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/whoweare.html?rev=1526922r1=1526921r2=1526922view=diff
==
--- tomcat/site/trunk/docs/whoweare.html (original)
+++ tomcat/site/trunk/docs/whoweare.html Fri Sep 27 14:59:38 2013
@@ -247,7 +247,7 @@ A complete list of all the Apache Commit
 div class=text
 
 
-h3PMC Chair/h3
+h4PMC Chair/h4
 
 p
 bMladen Turk/b (mturk at apache.org)br
@@ -255,7 +255,7 @@ A complete list of all the Apache Commit
 
 
 
-h3PMC Members amp; Committers/h3
+h4PMC Members amp; Committers/h4
 
 
 p

Modified: tomcat/site/trunk/xdocs/whoweare.xml
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/whoweare.xml?rev=1526922r1=1526921r2=1526922view=diff
==
--- tomcat/site/trunk/xdocs/whoweare.xml (original)
+++ tomcat/site/trunk/xdocs/whoweare.xml Fri Sep 27 14:59:38 2013
@@ -42,11 +42,11 @@ A complete list of all the Apache Commit
 
 section name=Project Management Committee
 
-h3PMC Chair/h3
+h4PMC Chair/h4
 pbMladen Turk/b (mturk at apache.org)br//p
 !--Your bio goes here--
 
-h3PMC Members amp; Committers/h3
+h4PMC Members amp; Committers/h4
 
 pbJean-Francois Arcand/b (jfarcand at apache.org)br//p
 !--Your bio goes here--



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1526926 - in /tomcat/site/trunk: docs/stylesheets/tomcat-printer.css xdocs/stylesheets/tomcat-printer.css

2013-09-27 Thread kpreisser
Author: kpreisser
Date: Fri Sep 27 15:02:15 2013
New Revision: 1526926

URL: http://svn.apache.org/r1526926
Log:
Follow-Up to r1526921:
Remove unnecessary CSS file, as printer-only styles are now in the main CSS 
file.

Removed:
tomcat/site/trunk/docs/stylesheets/tomcat-printer.css
tomcat/site/trunk/xdocs/stylesheets/tomcat-printer.css


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55603] Printing from servlet causes endles spoolling

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55603

--- Comment #2 from Jodgi jorgevpi...@gmail.com ---
If it was security issue, there would be no spooling! Plus there is no
exceptions.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



RE: svn commit: r1526921 - in /tomcat/site/trunk: docs/ docs/stylesheets/ xdocs/stylesheets/

2013-09-27 Thread Konstantin Preißer
Hi Chris,

 -Original Message-
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Sent: Friday, September 27, 2013 4:58 PM
 To: Tomcat Developers List
 Subject: Re: svn commit: r1526921 - in /tomcat/site/trunk: docs/
 docs/stylesheets/ xdocs/stylesheets/
 
 Konstantin,
 
 On 9/27/13 10:56 AM, kpreis...@apache.org wrote:
  Author: kpreisser
  Date: Fri Sep 27 14:56:46 2013
  New Revision: 1526921
 
  URL: http://svn.apache.org/r1526921
  Log:
  Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55383
  Improve CSS:
  - Use media queries in the main CSS file to better control when CSS styles
 should not be applied for printing.
  - Use noPrint class for ASF logo.
 
 Any particular reason to use a separate (physical) stylesheet for the
 print media?

Previously, the site used a separate CSS file for printing styles. However, I 
think it is better to use CSS3 media queries in the main CSS to mark styles 
that should not be applied when printing rather than try to overwrite them (or, 
mark styles that should *only* be applied when printing). Therefore, the 
separate CSS file for printers is now gone.

Konstantin


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55602] JRE crashes during websocket communication

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55602

--- Comment #2 from st.mailingli...@gmail.com ---
(The other bug #55588 is not created by me, I just subscribed as the jre crash
looked similar. But it does not seem to have to do with websockets. Our tomcat
is very stable when not using websockets.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55602] JRE crashes during websocket communication

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55602

--- Comment #3 from Konstantin Preißer kpreis...@apache.org ---
Hi,

I remember that I got crashes when using a WebSocket application on Tomcat
7.0.27 with TC Native 1.1.23 and Java 1.7.0_03 on Windows Server 2008 x86 - see
[1].

I do not know if it is related, but the Stack traces look similar.

However, since then, I never have done additional testing with Tomcat 7,
Websockets and APR connector.


[1] http://markmail.org/message/5m5qmtu3g67zgia3

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 55603] Printing from servlet causes endles spoolling

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55603

--- Comment #3 from Christopher Schultz ch...@christopherschultz.net ---
Can you define spooling? You say it never calls your paint() method, so it's
probably not printing. If it's not printing, then it's not spooling because
that implies it's doing *something* simultaneously with another process. It
sounds like it's doing *nothing* which isn't really something.

Perhaps you could provide a thread dump showing that Tomcat is making some kind
of mistake, here?

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: [VOTE] Release Apache Tomcat 7.0.45

2013-09-27 Thread Christopher Schultz
Violetta,

On 9/25/13 9:37 AM, Violeta Georgieva wrote:
 The proposed Apache Tomcat 7.0.45 release is now available for voting.
 This release candidate contains JSR-356 Java WebSocket 1.0 implementation.
 Note that use of this functionality requires Java 7.
 
 It can be obtained from:
 https://dist.apache.org/repos/dist/dev/tomcat/tomcat-7/v7.0.45/
 The Maven staging repo is:
 https://repository.apache.org/content/repositories/orgapachetomcat-098/
 The svn tag is:
 http://svn.apache.org/repos/asf/tomcat/tc7.0.x/tags/TOMCAT_7_0_45/
 
 The proposed 7.0.45 release is:
 [ ] Broken - do not release
 [ ] Stable - go ahead and release as 7.0.45 Stable

It's fairly obvious at this point that there are some problems with
7.0.45, so I'm changing my vote from [+1 stable] to [-1 Broken] due to
APR/tcnative problems documented in this thread and also on the users
list (specifically with 8.0.0-RC3 which I think are the same).

I feel bad, especially because this was supposed to be your first
release. Now it's going to take at least 3 tries :(

-chris



signature.asc
Description: OpenPGP digital signature


[Bug 55603] Printing from servlet causes endles spoolling

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55603

--- Comment #4 from Jodgi jorgevpi...@gmail.com ---
Created attachment 30892
  -- https://issues.apache.org/bugzilla/attachment.cgi?id=30892action=edit
Thread dump of Tomcat 7.0.42


This is a thread dump of Tomcat while the printer queue shows the status
spooling

any package like sirios.* is the business layer of my software.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1527123 - in /tomcat/site/trunk: docs/stylesheets/tomcat.css docs/svn.html xdocs/stylesheets/tomcat.css xdocs/svn.xml

2013-09-27 Thread kpreisser
Author: kpreisser
Date: Fri Sep 27 23:22:48 2013
New Revision: 1527123

URL: http://svn.apache.org/r1527123
Log:
Allow to specify noHighlight class on a parent element so that code child 
elements will not be highlighted.

Modified:
tomcat/site/trunk/docs/stylesheets/tomcat.css
tomcat/site/trunk/docs/svn.html
tomcat/site/trunk/xdocs/stylesheets/tomcat.css
tomcat/site/trunk/xdocs/svn.xml

Modified: tomcat/site/trunk/docs/stylesheets/tomcat.css
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/stylesheets/tomcat.css?rev=1527123r1=1527122r2=1527123view=diff
==
--- tomcat/site/trunk/docs/stylesheets/tomcat.css (original)
+++ tomcat/site/trunk/docs/stylesheets/tomcat.css Fri Sep 27 23:22:48 2013
@@ -203,7 +203,7 @@ code {
   background-color: rgb(224,255,255);
 }
 
-div.codeBox pre code, code.attributeName, code.propertyName, code.noHighlight {
+div.codeBox pre code, code.attributeName, code.propertyName, code.noHighlight, 
.noHighlight code {
   background-color: transparent;
 }
 div.codeBox {

Modified: tomcat/site/trunk/docs/svn.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/svn.html?rev=1527123r1=1527122r2=1527123view=diff
==
--- tomcat/site/trunk/docs/svn.html (original)
+++ tomcat/site/trunk/docs/svn.html Fri Sep 27 23:22:48 2013
@@ -253,7 +253,7 @@ http://svn.apache.org/repos/asf/tomcat/
 
 pThe directories below this level are:/p
 
-table class=defaultTable
+table class=defaultTable noHighlight
   
 tr
 

Modified: tomcat/site/trunk/xdocs/stylesheets/tomcat.css
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/stylesheets/tomcat.css?rev=1527123r1=1527122r2=1527123view=diff
==
--- tomcat/site/trunk/xdocs/stylesheets/tomcat.css (original)
+++ tomcat/site/trunk/xdocs/stylesheets/tomcat.css Fri Sep 27 23:22:48 2013
@@ -203,7 +203,7 @@ code {
   background-color: rgb(224,255,255);
 }
 
-div.codeBox pre code, code.attributeName, code.propertyName, code.noHighlight {
+div.codeBox pre code, code.attributeName, code.propertyName, code.noHighlight, 
.noHighlight code {
   background-color: transparent;
 }
 div.codeBox {

Modified: tomcat/site/trunk/xdocs/svn.xml
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/svn.xml?rev=1527123r1=1527122r2=1527123view=diff
==
--- tomcat/site/trunk/xdocs/svn.xml (original)
+++ tomcat/site/trunk/xdocs/svn.xml Fri Sep 27 23:22:48 2013
@@ -34,7 +34,7 @@ http://svn.apache.org/repos/asf/tomcat/
 a href=http://svn.apache.org/viewvc/tomcat/;web view of the 
repository/a./p
 
 pThe directories below this level are:/p
-table class=defaultTable
+table class=defaultTable noHighlight
   tr
 thDirectory/ththContents/th
   /tr



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1527124 - /tomcat/trunk/webapps/docs/images/docs-stylesheet.css

2013-09-27 Thread kpreisser
Author: kpreisser
Date: Fri Sep 27 23:23:54 2013
New Revision: 1527124

URL: http://svn.apache.org/r1527124
Log:
Allow to specify noHighlight class on a parent element so that code child 
elements will not be highlighted.

Modified:
tomcat/trunk/webapps/docs/images/docs-stylesheet.css

Modified: tomcat/trunk/webapps/docs/images/docs-stylesheet.css
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/images/docs-stylesheet.css?rev=1527124r1=1527123r2=1527124view=diff
==
--- tomcat/trunk/webapps/docs/images/docs-stylesheet.css (original)
+++ tomcat/trunk/webapps/docs/images/docs-stylesheet.css Fri Sep 27 23:23:54 
2013
@@ -204,7 +204,7 @@ code {
   background-color: rgb(224,255,255);
 }
 
-div.codeBox pre code, code.attributeName, code.propertyName, code.noHighlight {
+div.codeBox pre code, code.attributeName, code.propertyName, code.noHighlight, 
.noHighlight code {
   background-color: transparent;
 }
 div.codeBox {



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Recent tcnative null-dereference with 8.0.0-RC3 and 7.0.45 [tcnative-1.dll+0x7e23]

2013-09-27 Thread Christopher Schultz
All,

I know Mark and Rainer are working on trying to avoid corruption of what
looks like pollset counts or whatever, but I wanted to know if anyone
can help me decode the cause of the null-dereference that's occurring.

Obviously bandaging the symptom is not the best solution, but keeping
the JVM up and running is a nice feature to have and, since I have no
understanding of APR polling, I can at least modify tcnative to throw an
exception instead of bombing the JVM.

I can't seem to reproduce the problem using an APR connector on Linux:
reports seems to indicate that trivially accessing Tomcat via an HTTP
APR connector will cause a crash, and I was able to run the following
command without bringing down my instance:

$ ab -n 1 -c 50 http://localhost:28215/my-webapp/index.html

... where localhost:28215 is bound to an
org.apache.coyote.http11.Http11AprProtocol connector.

So, I need help decoding the tcnative-1.dll+0x7e23 pointer, which is
obviously a code pointer, but I have no idea how far into tcnative.dll
0x7e23 points. It's obviously in ..._jni_Poll_poll() but I'm not sure
which pointer is likely to be null.

Can anyone point me in the right direction?

Thanks,
-chris



signature.asc
Description: OpenPGP digital signature


[Bug 55603] Printing from servlet causes endles spoolling

2013-09-27 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=55603

--- Comment #5 from Christopher Schultz ch...@christopherschultz.net ---
I don't see a bug in Tomcat, here. The printing code is all your own. Tomcat is
waiting on your code to complete. If you can demonstrate a failure in Tomcat,
here, we'll take a look.

If you want to discuss potential reasons why this is happening and maybe get
some troubleshooting help, head on over to the users' list.

Without any further information showing that this is a bug in Tomcat, this bug
will be closed INVALID shortly.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: [VOTE] Release Apache Tomcat 7.0.45

2013-09-27 Thread Violeta Georgieva
2013/9/25 Violeta Georgieva miles...@gmail.com

 The proposed Apache Tomcat 7.0.45 release is now available for voting.
 This release candidate contains JSR-356 Java WebSocket 1.0
implementation. Note that use of this functionality requires Java 7.

 It can be obtained from:
 https://dist.apache.org/repos/dist/dev/tomcat/tomcat-7/v7.0.45/
 The Maven staging repo is:
 https://repository.apache.org/content/repositories/orgapachetomcat-098/
 The svn tag is:
 http://svn.apache.org/repos/asf/tomcat/tc7.0.x/tags/TOMCAT_7_0_45/

 The proposed 7.0.45 release is:
 [X] Broken - do not release
 [ ] Stable - go ahead and release as 7.0.45 Stable



I'm canceling the vote. Because of the issue with the APR/native connector
I'll mark 7.0.45 as not released.
I'll prepare Tomcat 7.0.46 for voting once the issue is resolved.

Regards
Violeta


svn commit: r3015 - /dev/tomcat/tomcat-7/v7.0.45/

2013-09-27 Thread violetagg
Author: violetagg
Date: Sat Sep 28 04:06:13 2013
New Revision: 3015

Log:
7.0.45 RC did not pass the vote - dropping.

Removed:
dev/tomcat/tomcat-7/v7.0.45/


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r1527148 - /tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml

2013-09-27 Thread violetagg
Author: violetagg
Date: Sat Sep 28 04:20:07 2013
New Revision: 1527148

URL: http://svn.apache.org/r1527148
Log:
Mark 7.0.45 as not released based on the vote results.

Modified:
tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml

Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1527148r1=1527147r2=1527148view=diff
==
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Sat Sep 28 04:20:07 2013
@@ -72,7 +72,7 @@
 /changelog
   /subsection
 /section
-section name=Tomcat 7.0.45 (violetagg)
+section name=Tomcat 7.0.45 (violetagg) rtext=not released
   subsection name=Catalina
 changelog
   add



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org