svn commit: r372228 [6/6] - in /tomcat/jasper/tc6.0.x/src/share: javax/ javax/el/ org/apache/el/ org/apache/el/lang/ org/apache/el/parser/ org/apache/el/util/

2006-01-25 Thread remm
Added: tomcat/jasper/tc6.0.x/src/share/org/apache/el/util/ReflectionUtil.java
URL: 
http://svn.apache.org/viewcvs/tomcat/jasper/tc6.0.x/src/share/org/apache/el/util/ReflectionUtil.java?rev=372228view=auto
==
--- tomcat/jasper/tc6.0.x/src/share/org/apache/el/util/ReflectionUtil.java 
(added)
+++ tomcat/jasper/tc6.0.x/src/share/org/apache/el/util/ReflectionUtil.java Wed 
Jan 25 06:37:16 2006
@@ -0,0 +1,183 @@
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * Licensed 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.el.util;
+
+import java.beans.IntrospectionException;
+import java.beans.Introspector;
+import java.beans.PropertyDescriptor;
+import java.lang.reflect.Array;
+import java.lang.reflect.Method;
+import java.util.Arrays;
+
+import javax.el.ELException;
+import javax.el.MethodNotFoundException;
+import javax.el.PropertyNotFoundException;
+
+import org.apache.el.lang.ELSupport;
+
+
+/**
+ * Utilities for Managing Serialization and Reflection
+ * 
+ * @author Jacob Hookom [EMAIL PROTECTED]
+ * @version $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: jhook $
+ */
+public class ReflectionUtil {
+
+protected static final String[] EMPTY_STRING = new String[0];
+
+protected static final String[] PRIMITIVE_NAMES = new String[] { boolean,
+byte, char, double, float, int, long, short, void 
};
+
+protected static final Class[] PRIMITIVES = new Class[] { boolean.class,
+byte.class, char.class, double.class, float.class, int.class,
+long.class, short.class, Void.TYPE };
+
+/**
+ * 
+ */
+private ReflectionUtil() {
+super();
+}
+
+public static Class forName(String name) throws ClassNotFoundException {
+if (null == name || .equals(name)) {
+return null;
+}
+Class c = forNamePrimitive(name);
+if (c == null) {
+if (name.endsWith([])) {
+String nc = name.substring(0, name.length() - 2);
+c = Class.forName(nc, true, 
Thread.currentThread().getContextClassLoader());
+c = Array.newInstance(c, 0).getClass();
+} else {
+c = Class.forName(name);
+}
+}
+return c;
+}
+
+protected static Class forNamePrimitive(String name) {
+if (name.length() = 8) {
+int p = Arrays.binarySearch(PRIMITIVE_NAMES, name);
+if (p = 0) {
+return PRIMITIVES[p];
+}
+}
+return null;
+}
+
+/**
+ * Converts an array of Class names to Class types
+ * @param s
+ * @return
+ * @throws ClassNotFoundException
+ */
+public static Class[] toTypeArray(String[] s) throws 
ClassNotFoundException {
+if (s == null)
+return null;
+Class[] c = new Class[s.length];
+for (int i = 0; i  s.length; i++) {
+c[i] = forName(s[i]);
+}
+return c;
+}
+
+/**
+ * Converts an array of Class types to Class names
+ * @param c
+ * @return
+ */
+public static String[] toTypeNameArray(Class[] c) {
+if (c == null)
+return null;
+String[] s = new String[c.length];
+for (int i = 0; i  c.length; i++) {
+s[i] = c[i].getName();
+}
+return s;
+}
+
+/**
+ * Returns a method based on the criteria
+ * @param base the object that owns the method
+ * @param property the name of the method
+ * @param paramTypes the parameter types to use
+ * @return the method specified
+ * @throws MethodNotFoundException
+ */
+public static Method getMethod(Object base, Object property,
+Class[] paramTypes) throws MethodNotFoundException {
+if (base == null || property == null) {
+throw new MethodNotFoundException(MessageFactory.get(
+error.method.notfound, base, property,
+paramString(paramTypes)));
+}
+
+String methodName = (property instanceof String) ? (String) property
+: property.toString();
+
+Method method = null;
+try {
+method = base.getClass().getMethod(methodName, paramTypes);
+} catch (NoSuchMethodException nsme) {
+throw new MethodNotFoundException(MessageFactory.get(
+  

DO NOT REPLY [Bug 26372] - java.lang.ThreadDeath when trying to reload an application

2006-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=26372.
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=26372





--- Additional Comments From [EMAIL PROTECTED]  2006-01-25 17:12 ---
hm .. we see thread death still once in a while and i've noticed a couple 
recently that occur around the time of a stack trace serializable exception. we 
store disconnected hibernate pojos in session objects also.

-- 
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: r372290 [3/3] - in /tomcat/site/trunk: docs/faq/ docs/faq/printer/ xdocs-faq/

2006-01-25 Thread markt
Modified: tomcat/site/trunk/docs/faq/printer/unix.html
URL: 
http://svn.apache.org/viewcvs/tomcat/site/trunk/docs/faq/printer/unix.html?rev=372290r1=372289r2=372290view=diff
==
--- tomcat/site/trunk/docs/faq/printer/unix.html (original)
+++ tomcat/site/trunk/docs/faq/printer/unix.html Wed Jan 25 11:00:50 2006
@@ -1,9 +1,7 @@
 htmlheadMETA http-equiv=Content-Type content=text/html; 
charset=iso-8859-1titleTomcat FAQ - Unix / Linux Questions/titlemeta 
value=Tim Funk name=authormeta value=[EMAIL PROTECTED] 
name=emailstyle
   dt { font-size : larger;  font-weight : bold }
   dd {padding-bottom : 10px;}
-/style/headbody vlink=#525D76 alink=#525D76 link=#525D76 
text=#00 bgcolor=#fftable cellspacing=4 width=100% 
border=0!--PAGE HEADER--trtd colspan=2!--TOMCAT LOGO--a 
href=http://jakarta.apache.org/;img border=0 alt=The Jakarta Project 
align=left 
src=http://jakarta.apache.org//images/jakarta-logo.gif;/a!--PROJECT 
LOGO--a href=http://tomcat.apache.org/faq/;img border=0 alt=
-  Tomcat FAQ
- align=right src=../../images/tomcat.gif/a/td/tr!--HEADER 
SEPARATOR--trtd colspan=2hr size=1 noshade=/td/trtr!--RIGHT 
SIDE MAIN BODY--td align=left valign=top width=80%table 
cellspacing=4 width=100% border=0trtd nowrap=true valign=top 
align=lefth1Tomcat FAQ/h1h2Unix / Linux Questions/h2/tdtd 
nowrap=true valign=top align=rightimg border=0 hspace=0 vspace=0 
height=1 width=1 src=../../images/void.gif/td/tr/tabletable 
cellpadding=2 cellspacing=0 border=0trtd bgcolor=#525D76font 
face=arial,helvetica.sanserif color=#ffa 
name=PrefacestrongPreface/strong/a/font/td/trtrtdblockquote
+/style/headbody vlink=#525D76 alink=#525D76 link=#525D76 
text=#00 bgcolor=#fftable cellspacing=0 width=100% 
border=0!--PAGE HEADER--trtd!--PROJECT LOGO--a 
href=http://tomcat.apache.org/;img border=0 alt=Tomcat Logo align=left 
src=/images/tomcat.gif/a/tdtdfont 
face=arial,helvetica,sanserifh1Apache 
Tomcat/h1/font/tdtd!--APACHE LOGO--a 
href=http://www.apache.org/;img border=0 alt=Apache Logo align=right 
src=http://www.apache.org/images/asf-logo.gif;/a/td/tr/tabletable 
cellspacing=4 width=100% border=0!--HEADER SEPARATOR--trtd 
colspan=2hr size=1 noshade=/td/trtr!--RIGHT SIDE MAIN 
BODY--td align=left valign=top width=80%table cellspacing=4 
width=100% border=0trtd nowrap=true valign=top 
align=lefth1Tomcat FAQ/h1h2Unix / Linux Questions/h2/tdtd 
nowrap=true valign=top align=rightimg border=0 hspace=0 vspace=
 0 height=1 width=1 src=../../images/void.gif/td/tr/tabletable 
cellpadding=2 cellspacing=0 border=0trtd bgcolor=#525D76font 
face=arial,helvetica.sanserif color=#ffa 
name=PrefacestrongPreface/strong/a/font/td/trtrtdblockquote
   p
 I wish there was more to say right here or to link to something.
 On to the questions...

Modified: tomcat/site/trunk/docs/faq/printer/version.html
URL: 
http://svn.apache.org/viewcvs/tomcat/site/trunk/docs/faq/printer/version.html?rev=372290r1=372289r2=372290view=diff
==
--- tomcat/site/trunk/docs/faq/printer/version.html (original)
+++ tomcat/site/trunk/docs/faq/printer/version.html Wed Jan 25 11:00:50 2006
@@ -1,9 +1,7 @@
 htmlheadMETA http-equiv=Content-Type content=text/html; 
charset=iso-8859-1titleTomcat FAQ - Which Version/titlemeta value=Tim 
Funk name=authormeta value=[EMAIL PROTECTED] name=emailstyle
   dt { font-size : larger;  font-weight : bold }
   dd {padding-bottom : 10px;}
-/style/headbody vlink=#525D76 alink=#525D76 link=#525D76 
text=#00 bgcolor=#fftable cellspacing=4 width=100% 
border=0!--PAGE HEADER--trtd colspan=2!--TOMCAT LOGO--a 
href=http://jakarta.apache.org/;img border=0 alt=The Jakarta Project 
align=left 
src=http://jakarta.apache.org//images/jakarta-logo.gif;/a!--PROJECT 
LOGO--a href=http://tomcat.apache.org/faq/;img border=0 alt=
-  Tomcat FAQ
- align=right src=../../images/tomcat.gif/a/td/tr!--HEADER 
SEPARATOR--trtd colspan=2hr size=1 noshade=/td/trtr!--RIGHT 
SIDE MAIN BODY--td align=left valign=top width=80%table 
cellspacing=4 width=100% border=0trtd nowrap=true valign=top 
align=lefth1Tomcat FAQ/h1h2Which Version/h2/tdtd nowrap=true 
valign=top align=rightimg border=0 hspace=0 vspace=0 height=1 
width=1 src=../../images/void.gif/td/tr/tabletable cellpadding=2 
cellspacing=0 border=0trtd bgcolor=#525D76font 
face=arial,helvetica.sanserif color=#ffa 
name=PrefacestrongPreface/strong/a/font/td/trtrtdblockquote
+/style/headbody vlink=#525D76 alink=#525D76 link=#525D76 
text=#00 bgcolor=#fftable cellspacing=0 width=100% 
border=0!--PAGE HEADER--trtd!--PROJECT LOGO--a 
href=http://tomcat.apache.org/;img border=0 alt=Tomcat Logo align=left 
src=/images/tomcat.gif/a/tdtdfont 
face=arial,helvetica,sanserifh1Apache 
Tomcat/h1/font/tdtd!--APACHE LOGO--a 
href=http://www.apache.org/;img border=0 alt=Apache Logo align=right 

DO NOT REPLY [Bug 38373] - [PATCH] Patch to change to ASF logo on FAQ pages

2006-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38373.
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=38373


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-01-25 20:05 ---
Fixed. Main web site updated. Thanks for the report.

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



build.xml Change Required?

2006-01-25 Thread Marsh David W Maj AFIT/ENG
Note for whoever creates the build.xml scripts:

This is my first time building the system from source.  After
downloading and unzipping (to my XP box) the source code from
http://tomcat.apache.org/download-55.cgi, installing Subversion via
http://subversion.tigris.org/project_packages.html, and following the
directions at http://tomcat.apache.org/tomcat-5.5-doc/building.html, the
ant build failed when it got to jasper.  I got it to work by changing
line 1419 of ${tomcat.source}/build/build.xml from

1418!-- tomcat jasper source --
1419copy todir=${tomcat.dist}/src/${jasper.project}

to

1418!-- tomcat jasper source --
1419copy todir=${tomcat.dist}/src/${jasper.project}/jasper2

I don't know the implications of this change yet, but it was the only
solution I found that built the whole system.

_
 
Slightly different topic:
I recommend a short Download and install SVN section be added just
before the Building Tomcat section of
http://tomcat.apache.org/tomcat-5.5-doc/building.html.  It's obvious now
that I understand what's going on, but this page seems to be meant for
those who don't really know how it all works yet.

David
 


DO NOT REPLY [Bug 37822] - WebappClassLoader interfering with Catalina core classes

2006-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37822.
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=37822





--- Additional Comments From [EMAIL PROTECTED]  2006-01-25 21:11 ---
Created an attachment (id=17503)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=17503action=view)
YourKit Profiler graph that confirms the bug


-- 
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 37822] - WebappClassLoader interfering with Catalina core classes

2006-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37822.
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=37822


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|CLOSED  |REOPENED
 Resolution|FIXED   |




--- Additional Comments From [EMAIL PROTECTED]  2006-01-25 21:12 ---
First, thanks for releasing 5.5.15. 

It appears that a similair problem is still in the source.

org.apache.tomcat.util.digester.Digester maintains references to commons-logging
log that gets loaded by WebappClassloader. See attached.

Removing the log variable should be a fairly simple thing to do as it is barely
used. 

Thanks beforehand,

Kyrill Alyoshin



-- 
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 38389] New: - java.util.Arrays.Sort() crashes with AbstractMethodError when compiled using JDT, but works OK when compiled with ant

2006-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38389.
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=38389

   Summary: java.util.Arrays.Sort() crashes with AbstractMethodError
when compiled using JDT, but works OK when compiled with
ant
   Product: Tomcat 5
   Version: 5.5.14
  Platform: Other
OS/Version: Windows 2000
Status: NEW
  Severity: normal
  Priority: P2
 Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


I'm actually using Tomcat 5.5.15, but I could't select it in the list. But I've 
also got this problem with 5.5.12.

I've got the following awfully simple JSP:
-
%@ page import=java.util.Arrays,java.util.Comparator %
%
  MyClass[] list = new MyClass[2];
  list[0] = new MyClass();
  list[1] = new MyClass();
  Arrays.sort(list,new ComparatorMyClass()
{
  public int compare(MyClass mo1, MyClass mo2)
  {
return -1; // whatever
  }
});
%
%!
  public class MyClass
  {
String text = blah;
public String getText() { return text; }
  }
%
-
It compiles fine, but when executed it crashes like this:

java.lang.AbstractMethodError: org.apache.jsp.error_jsp$1.compare
(Ljava/lang/Object;Ljava/lang/Object;)I
at java.util.Arrays.mergeSort(Arrays.java:1284)
at java.util.Arrays.sort(Arrays.java:1223)
at org.apache.jsp.error_jsp._jspService(org.apache.jsp.error_jsp:64)
...more...

At first I thought it's a JDK error, but when I replace Tomcat's jasper-
compiler-jdt.jar by an Ant-compiler jar, the code runs fine !!

The above code also runs fine when I replace MyClass by Object in the 
Comparator definition, but this is ofcourse not what Java 5 is about :-)

I've already updated to Suns JDK 1.5.0_06, but that didn't change anything.

Any clues? Tanx!

-- 
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 38389] - java.util.Arrays.Sort() crashes with AbstractMethodError when compiled using JDT, but works OK when compiled with ant

2006-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38389.
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=38389


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2006-01-25 21:36 ---
Have you set the correct jspServlet compiler init parameter for jdt java 5 
support?

conf/web.xml

servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
init-param
param-namecompilerSourceVM/param-name
param-value1.5/param-value
/init-param
init-param
param-namecompilerTargetVM/param-name
param-value1.5/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

-- 
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 38389] - java.util.Arrays.Sort() crashes with AbstractMethodError when compiled using JDT, but works OK when compiled with ant

2006-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38389.
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=38389





--- Additional Comments From [EMAIL PROTECTED]  2006-01-26 05:31 ---
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=125254 for explanation about
this problem.

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



RE: truncated server.xml got when storing config on condition that more than one vitual host with same application base directory webapps were defined.

2006-01-25 Thread Yong Gou
yes. I checked each webapps/app/META-INF directory, each of these directory has 
a lot of backup files named like context.xml.2005-11-28.19-02-56. These files 
were created when Tomcat server was running. and also I think there should be 
no write permission related issues since my Tomcat server was running on 
Windows XP. so I am not sure if this is same as your case.

Thanks,
Eric

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: 2006年1月19日 0:27
To: 'Tomcat Developers List'
Subject: RE: truncated server.xml got when storing config on condition that 
more than one vitual host with same application base directory webapps were 
defined.

I didn't notice. Did you follow my advice to check write permissions on all of 
the webapps directories.

As reported, if the tomcat user cannot write to each webapp (or at least the 
webapp/META-INF directory), then creation of the server.xml will fail in the 
manner you describe.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Yong Gou [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 17, 2006 8:47 PM
 To: Tomcat Developers List
 Subject: RE: truncated server.xml got when storing config on condition 
 that more than one vitual host with same application base directory 
 webapps were defined.
 
 Hi Peter,
 
 I downloaded the 5.5.15 beta from Apache Tomcat downloads page and 
 installed it on my desktop. But I found the same issue was still there 
 with this version when I used its admin console webapp to add a new 
 host and store config to the server.xml. The following is the 
 resultant server.xml.
 
 ?xml version=1.0 encoding=UTF-8? Server
 port=6005
   Listener
 className=org.apache.catalina.core.AprLifecycleListener/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycle
 Listener/
   Listener
 className=org.apache.catalina.storeconfig.StoreConfigLifecycl
 eListener/
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener/
   GlobalNamingResources
 Environment
   name=simpleValue
   type=java.lang.Integer
   value=30/
 Resource
   auth=Container
   description=User database that can be updated and saved
   name=UserDatabase
   type=org.apache.catalina.UserDatabase
   pathname=conf/tomcat-users.xml
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory/
   /GlobalNamingResources
   Service
   name=Catalina
 Connector
 port=6080
 redirectPort=6443
 minSpareThreads=25
 connectionTimeout=6
 connectionLinger=-1
 serverSoTimeout=0
 maxSpareThreads=75
 maxThreads=150
 tcpNoDelay=true
 maxHttpHeaderSize=8192
 /Connector
 Connector
 port=6009
 redirectPort=6443
 protocol=AJP/1.3
 /Connector
 Engine
 defaultHost=localhost
 name=Catalina
   Realm className=org.apache.catalina.realm.UserDatabaseRealm/
   Host
   appBase=webapps
   name=localhost
   /Host
   Host
   appBase=webapps
   name=gyvh
 
 
 Thanks,
 Eric
 
 
 
 -Original Message-
 From: Peter Rossbach [mailto:[EMAIL PROTECTED]
 Sent: 2006年1月16日 18:30
 To: Tomcat Developers List
 Subject: Re: truncated server.xml got when storing config on condition 
 that more than one vitual host with same application base directory 
 webapps were defined.
 
 It storeconfig server.xml saving after add a new host works for me!
 
 I have tested with current svn head.
 
 create host with fixed MBean descriptor from MBeanFactory (Thanks for
 this)
 and store server.xml with mbean StoreConfig.storeConfig().
 
 Regards
 Peter
 
 My saved server.xml looks like this:
 
 ?xml version=1.0 encoding=UTF-8? Server
  port=8010
  shutdown=8010
Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycle
 Listener/
  
Listener
 className=org.apache.catalina.storeconfig.StoreConfigLifecycl
 eListener 
 /
Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener/
GlobalNamingResources
  Resource
auth=Container
description=User database that can be updated and saved
name=UserDatabase
type=org.apache.catalina.UserDatabase
pathname=conf/tomcat-users.xml
factory=org.apache.catalina.users.MemoryUserDatabaseFactory/
/GlobalNamingResources
Service
name=Catalina
  Connector
  URIEncoding=UTF-8
  port=8011
  connectionTimeout=6
  connectionLinger=-1
  serverSoTimeout=0
  maxSpareThreads=10
  maxThreads=25
  tcpNoDelay=true
  /Connector
  Connector
  URIEncoding=UTF-8
  port=8012
  minSpareThreads=4
  request.registerRequests=true
  maxSpareThreads=10
  maxThreads=25
  acceptCount=100
  protocol=AJP/1.3
  

svn commit: r372468 - /tomcat/container/tc5.5.x/webapps/docs/changelog.xml

2006-01-25 Thread pero
Author: pero
Date: Wed Jan 25 22:58:22 2006
New Revision: 372468

URL: http://svn.apache.org/viewcvs?rev=372468view=rev
Log:
Set correct JDT Compiler option to java 1.5 compliance s. Bug 38389

Modified:
tomcat/container/tc5.5.x/webapps/docs/changelog.xml

Modified: tomcat/container/tc5.5.x/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/webapps/docs/changelog.xml?rev=372468r1=372467r2=372468view=diff
==
--- tomcat/container/tc5.5.x/webapps/docs/changelog.xml (original)
+++ tomcat/container/tc5.5.x/webapps/docs/changelog.xml Wed Jan 25 22:58:22 2006
@@ -61,6 +61,10 @@
   /subsection
   subsection name=Jasper
 changelog
+  fix
+bug38389/bug: Set correct JDT Compiler option to java 1.5 
compliance. 
+Patch from Olivier Thomann and Paul Hamer (pero)
+  /fix
   update
 Add some useful hints to jasper-howto. (pero).
   /update



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



DO NOT REPLY [Bug 38389] - java.util.Arrays.Sort() crashes with AbstractMethodError when compiled using JDT, but works OK when compiled with ant

2006-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38389.
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=38389


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2006-01-26 08:00 ---
Great, I have commit the patch from Olivier.

Many thanks for your help to fix it
Peter

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