DO NOT REPLY [Bug 6341] New: - tomcat dies on startup
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6341. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6341 tomcat dies on startup Summary: tomcat dies on startup Product: Tomcat 3 Version: 3.3 Final Platform: Macintosh OS/Version: MacOS 9 Status: NEW Severity: Critical Priority: Other Component: Config AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Tomcat (3.3a.1, but also a similar problem with 3.2.4) dies on startup on Mac Classic OS (version 9.1). With the exceptions listed below. This is a major pain, as tomcat is the only decent free webserver for this platform. The cause of the java.io.IOException: OSErr: -50 at java.io.File.getCanonicalPath is probably the following lines from org/apache/tomcat/util/IntrospectionUtils.java File f1=new File ( f, ..); The .. path is probably not valid on Classic Mac OS. tomcat 3.2.1 runs ok, so this (or a similar) bug probably got introduced somewhere in 3.2.[234] Jdk11Compat: Installing jar protocol handler java.io.IOException: OSErr: -50 at java.io.File.getCanonicalPath(File.java) at org.apache.tomcat.util.IntrospectionUtils.guessInstall(Compiled Code) at org.apache.tomcat.util.IntrospectionUtils.guessInstall(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat.initContextManager(Compiled Code) at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source) at org.apache.tomcat.util.compat.Jdk11Compat.doPrivileged(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.startTomcat(Unknown Source) at org.apache.tomcat.startup.Tomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.main(Unknown Source) at com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.java) at java.lang.Thread.run(Thread.java) EmbededTomcat: Default commonCL ERROR reading /iMac/Applications (Mac OS 9)/jakarta- tomcat-3.3a.1/conf/server.xml At Line 13 /Server/ContextManager/LoaderInterceptor11/ useApplicationLoader=true java.lang.NullPointerException at org.apache.tomcat.util.xml.ObjectCreate.start(Compiled Code) at org.apache.tomcat.util.xml.XmlMapper.matchStart(Compiled Code) at org.apache.tomcat.util.xml.XmlMapper.startElement(Compiled Code) at org.xml.sax.helpers.XMLReaderAdapter.startElement(Compiled Code) at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code) at org.apache.crimson.parser.Parser2.content(Compiled Code) at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code) at org.apache.crimson.parser.Parser2.content(Compiled Code) at org.apache.crimson.parser.Parser2.maybeElement(Compiled Code) at org.apache.crimson.parser.Parser2.parseInternal(Compiled Code) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at org.apache.tomcat.util.xml.XmlMapper.readXml(Unknown Source) at org.apache.tomcat.modules.config.ServerXmlReader.loadConfigFile(Unknown Source) at org.apache.tomcat.modules.config.ServerXmlReader.addInterceptor(Compiled Code) at org.apache.tomcat.core.ContextManager.addInterceptor(Compiled Code) at org.apache.tomcat.startup.EmbededTomcat.initContextManager(Compiled Code) at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source) at org.apache.tomcat.util.compat.Jdk11Compat.doPrivileged(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.startTomcat(Unknown Source) at org.apache.tomcat.startup.Tomcat.execute(Unknown Source) at org.apache.tomcat.startup.Tomcat.main(Unknown Source) at com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.java) at java.lang.Thread.run(Thread.java) EmbededTomcat: exception initializing ContextManager org.apache.tomcat.core.TomcatException: Root cause - null at org.apache.tomcat.modules.config.ServerXmlReader.loadConfigFile(Unknown Source) at org.apache.tomcat.modules.config.ServerXmlReader.addInterceptor(Compiled Code) at org.apache.tomcat.core.ContextManager.addInterceptor(Compiled Code) at
cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp WarpRequest.java
remm02/02/09 08:23:59 Modified:catalina/src/share/org/apache/catalina/connector/warp Tag: tomcat_40_branch WarpRequest.java Log: - Update WARP. Revision ChangesPath No revision No revision 1.8.2.2 +6 -5 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp/Attic/WarpRequest.java Index: WarpRequest.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/warp/Attic/WarpRequest.java,v retrieving revision 1.8.2.1 retrieving revision 1.8.2.2 diff -u -r1.8.2.1 -r1.8.2.2 --- WarpRequest.java 17 Jan 2002 12:17:16 - 1.8.2.1 +++ WarpRequest.java 9 Feb 2002 16:23:59 - 1.8.2.2 @@ -180,11 +180,6 @@ throws IOException { if (closed) throw new IOException(Stream closed); -if (packet.getType()==Constants.TYPE_CBK_DONE) return(-1); - -if (packet.getType()!=Constants.TYPE_CBK_DATA) -throw new IOException(Invalid WARP packet type for body); - if (this.packet.pointerthis.packet.size) return(((int)this.packet.buffer[this.packet.pointer++])0x0ff); @@ -195,6 +190,12 @@ packet.reset(); this.request.getConnection().recv(packet); + +if (packet.getType()==Constants.TYPE_CBK_DONE) return(-1); + +if (packet.getType()!=Constants.TYPE_CBK_DATA) +throw new IOException(Invalid WARP packet type for body); + return(this.read()); } -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/lib tomcat-ajp.jar tomcat-util.jar
remm02/02/09 08:24:47 Modified:lib Tag: tomcat_40_branch tomcat-ajp.jar tomcat-util.jar Log: - Update JK and tomcat-util. Revision ChangesPath No revision No revision 1.1.2.6 +231 -593 jakarta-tomcat-4.0/lib/Attic/tomcat-ajp.jar Binary file 1.1.2.5 +385 -351 jakarta-tomcat-4.0/lib/Attic/tomcat-util.jar Binary file -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/tester/web/golden JspDoc01.txt
remm02/02/09 08:40:28 Modified:tester/src/bin Tag: tomcat_40_branch tester.xml tester/web/golden Tag: tomcat_40_branch JspDoc01.txt Log: - Fix two incorrect tests: - 404 is the right result IMO in the first case. - Jasper doesn't generate extra spaces anymore in the second case, which looks ok to me. Revision ChangesPath No revision No revision 1.69.2.4 +1 -1 jakarta-tomcat-4.0/tester/src/bin/tester.xml Index: tester.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/tester/src/bin/tester.xml,v retrieving revision 1.69.2.3 retrieving revision 1.69.2.4 diff -u -r1.69.2.3 -r1.69.2.4 --- tester.xml20 Dec 2001 14:07:14 - 1.69.2.3 +++ tester.xml9 Feb 2002 16:40:27 - 1.69.2.4 @@ -35,7 +35,7 @@ !-- Should not be able to use relative path above document root -- tester host=${host} port=${port} protocol=HTTP/1.0 request=${examples.path}/../.. debug=${debug} - status=500/ + status=404/ !-- Should be able to successfully retrieve a golden file -- tester host=${host} port=${port} protocol=${protocol} No revision No revision 1.1.2.1 +1 -1 jakarta-tomcat-4.0/tester/web/golden/JspDoc01.txt Index: JspDoc01.txt === RCS file: /home/cvs/jakarta-tomcat-4.0/tester/web/golden/JspDoc01.txt,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -u -r1.1 -r1.1.2.1 --- JspDoc01.txt 12 Sep 2001 20:26:31 - 1.1 +++ JspDoc01.txt 9 Feb 2002 16:40:27 - 1.1.2.1 @@ -1 +1 @@ -a textb /b/aa textb /b/ac d text/d/cc d text/d/ce f /ftextf /f/ee f /ftextf /f/e \ No newline at end of file +atextb/b/aatextb/b/acdtext/d/ccdtext/d/cef/ftextf/f/eef/ftextf/f/e \ No newline at end of file -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps build.xml
remm02/02/09 10:27:01 Modified:webapps build.xml Log: - Don't copy jasper-* to each privileged webapp. After extensive testing, it seems more productive to put one shared copy in server/lib (putting a server-wide copy in common/lib doesn't seem as good security wise). Revision ChangesPath 1.22 +0 -8 jakarta-tomcat-4.0/webapps/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/build.xml,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- build.xml 27 Oct 2001 21:20:03 - 1.21 +++ build.xml 9 Feb 2002 18:27:01 - 1.22 @@ -88,20 +88,12 @@ copytodir=${webapps.deploy}/server/webapps/admin fileset dir=${webapps.build}/admin excludes=admin.xml/ /copy -mkdir dir=${webapps.deploy}/server/webapps/admin/WEB-INF/lib/ -copytodir=${webapps.deploy}/server/webapps/admin/WEB-INF/lib - fileset dir=${webapps.deploy}/shared/lib includes=jasper-*.jar/ -/copy copytodir=${webapps.deploy}/webapps file=${webapps.build}/manager/manager.xml/ mkdir dir=${webapps.deploy}/server/webapps/manager/ copytodir=${webapps.deploy}/server/webapps/manager fileset dir=${webapps.build}/manager excludes=manager.xml/ -/copy -mkdir dir=${webapps.deploy}/server/webapps/manager/WEB-INF/lib/ -copytodir=${webapps.deploy}/server/webapps/manager/WEB-INF/lib - fileset dir=${webapps.deploy}/shared/lib includes=jasper-*.jar/ /copy /target -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/jasper build.xml
remm02/02/09 10:27:17 Modified:jasper build.xml Log: - Don't copy jasper-* to each privileged webapp. After extensive testing, it seems more productive to put one shared copy in server/lib (putting a server-wide copy in common/lib doesn't seem as good security wise). Revision ChangesPath 1.28 +4 -0 jakarta-tomcat-4.0/jasper/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/build.xml,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- build.xml 29 Jan 2002 02:42:25 - 1.27 +++ build.xml 9 Feb 2002 18:27:17 - 1.28 @@ -188,6 +188,8 @@ include name=org/apache/jasper/*.class / /fileset /jar +copy file=${jasper.deploy}/shared/lib/jasper-compiler.jar + todir=${jasper.deploy}/server/lib / !-- Jasper Runtime JAR File -- jar jarfile=${jasper.deploy}/shared/lib/jasper-runtime.jar @@ -201,6 +203,8 @@ include name=org/apache/jasper/util/** / /fileset /jar +copy file=${jasper.deploy}/shared/lib/jasper-runtime.jar + todir=${jasper.deploy}/server/lib / /target -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/catalina/src/conf catalina.policy
remm02/02/09 10:31:25 Modified:catalina/src/conf catalina.policy Log: - Update policy files after moving Jasper around. - Also ran into a surprise problem with OpenJMX while testing (which of course lead me to believe it was somehow related to me moving Jasper). Grant an extra permission to have it work. Revision ChangesPath 1.21 +4 -22 jakarta-tomcat-4.0/catalina/src/conf/catalina.policy Index: catalina.policy === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/conf/catalina.policy,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- catalina.policy 17 Jan 2002 00:28:15 - 1.20 +++ catalina.policy 9 Feb 2002 18:31:25 - 1.21 @@ -8,7 +8,7 @@ // // * Read access to the document root directory // -// $Id: catalina.policy,v 1.20 2002/01/17 00:28:15 patrickl Exp $ +// $Id: catalina.policy,v 1.21 2002/02/09 18:31:25 remm Exp $ // @@ -68,11 +68,6 @@ permission java.security.AllPermission; }; -// These permissions apply to the JNDI naming factory -grant codeBase file:${catalina.home}/shared/lib/naming-factory.jar { -permission java.security.AllPermission; -}; - // These permissions apply to the privileged admin and manager web applications grant codeBase file:${catalina.home}/server/webapps/admin/WEB-INF/classes/- { permission java.security.AllPermission; @@ -82,22 +77,6 @@ permission java.security.AllPermission; }; -grant codeBase jar:file:${catalina.home}/server/webapps/admin/WEB-INF/lib/jasper-compiler.jar!/- { -permission java.security.AllPermission; -}; - -grant codeBase jar:file:${catalina.home}/server/webapps/admin/WEB-INF/lib/jasper-runtime.jar!/- { -permission java.security.AllPermission; -}; - -grant codeBase jar:file:${catalina.home}/server/webapps/manager/WEB-INF/lib/jasper-compiler.jar!/- { -permission java.security.AllPermission; -}; - -grant codeBase jar:file:${catalina.home}/server/webapps/manager/WEB-INF/lib/jasper-runtime.jar!/- { -permission java.security.AllPermission; -}; - // == WEB APPLICATION PERMISSIONS = @@ -137,6 +116,9 @@ // Required for getting BeanInfo permission java.lang.RuntimePermission accessClassInPackage.sun.beans.*; + +// Required for OpenJMX +permission java.lang.RuntimePermission getAttribute; // Allow read of JAXP compliant XML parser debug permission java.util.PropertyPermission jaxp.debug, read; -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Jakarta 2001 PMC: Last chance for correction of voter list.
-BEGIN PGP SIGNED MESSAGE- Please find attached the list of voters eligible to vote in the 2002 Jakarta PMC. If you see showstopper's, serious typo, etc let us known immediately. [EMAIL PROTECTED] is what will be used for the Ballot on the 12th of February. Errors are to be send to [EMAIL PROTECTED] Dw. Schedule Jakarta PMC 2002: x 0:00 GMT - 2002-2-7Nominations close x 0:00 GMT - 2002-2-9Publication of candidate list. x Publication of voter's list. 0:00 GMT - 2002-2-12 Candidate list final and announced. Voter's list final and announced. Voters receive their ballots. Ballot opens 0:00 GMT - 2002-2-19 Ballot closes 0:00 GMT - 2002-2-21 Voters receive confirmation of their vote 0:00 GMT - 2002-2-22 Final tally made and published. 0:00 GMT - 2002-2-22 Archive handed over to the ASF board secretariat. Abey M. Mullassery abey Andrew C. Oliveracoliver Adam Murdochadammurdoch Andreas V. Kempfakempf Anil Vijendran akv Alex Chafee alex Amy Roh amyroh Anders Kristensen anders Andy Armstrong andya Andy Riedel ariedel Arieh Markelarieh Arnout Kuiper arnout Arron Bates arron Arun Jamwal arun Arundhati Bhowmick aruna1 asmuts asmuts Juozas Baliuka baliuka Henri Yandell bayard Brendan Burns bburns B. C. Holmesbcholmes Hans Bergsten bergsten Bill Barker billbarker Bip Thelin bip Berin Loritsch bloritsch Stefan Bodewig bodewig Bojan Smojver bojan Jeff Brekke brekke Brian Goetz briangoetz Kevin Burtonburton carlson carlson Rich Catlettcatlett Christopher Cainccain Cedric Dumoulin cedric Ceki Gulcu ceki Charles Benett charlesb Christopher Elkins chrise Christoph Wilhelms chrisw Carl Ludwig cl Cory Hubert clhubert Casey Lucas clucas Christopher Lenzcmlenz Eung-ju Parkcolus Conor MacNeill conor Costin Manolachecostin Craig R. McClanahan craigmcc Cameron Riley criley Chris Taylorcstaylor Doug Cuttingcutting Carsten Ziegelercziegeler Dan Milsteindanmil Danny Angus danny Danny Cowarddannyc Darrell DeBoer darrell DaveB daveb Dave Kordavekor Dave Bryson dbryson Daniel F. Savarese dfs David Geary dgeary Dion Gillarddion Dirk Verbeeck dirkv Dave Polito djpolito Donald Leslie dleslie Daniel Rall dlr Dan Mandell dmandell Dmitri Plotnikovdmitri Dmitry Serebrennikovdmitrys Eric Dobbs dobbs Peter Donalddonaldp Eugene Gluzberg drag0n2 Doug Sale dsale Doug Davis dug James Duncan Davidson duncan David Weinrich dweinr1 David Winterfeldt dwinterfeldt Ed Korthof ed Eduardo Pelegri-Llopart eduardop Erik Hatcherehatcher Eric Rescorla ekr Enver Haase enver Federico Barbieri fede Fedor Karpelevitch fedor Gerhard Froehlich froehlich Vasile Gaburici gaburici Geir Magnusson Jr. geirm Michael McCallumgholam Giacomo Patigiacomo Glenn Nielsen glenn Glenn McAllisterglennm Glen Stampoultzis glens Gonzalo D Guallar gonzalo James Todd gonzo gerhard.schwarz gschwarz Paul Hammanthammant Harish Prabandham harishp Harmeet Bedihbedi Henning Schmiedehausen henning GOMEZ Henri hgomez Bernie Hoeneisenhoeneisen Diane Holt holtdl Justyna Horwat horwat Ted Husted husted Ilkka Priha ilkka ingoingo jariw jariw Jazmin Jonson jazmin Jim Boutcherjboutcher John Casturajcastura Jeff Turner jefft Sung-Gu Parkjericho jean-frederic clere jfclere Jason Hunterjhunter Petr Jirickajiricka Jean-Luc Rochat jluc Jeff Martin jmartin John McNallyjmcnally Jim Moore jmoore Jon Stevens jon Jonathan Locke jonl James Strachan jstrachan Juergen Pilljuergen Jason van Zyl jvanzyl Keith Wannamakerkeith Kevin Hammond khammond Kief Morris kief Chris Kimpton kimptoc Kin-Man Chung kinman
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF struts-config.xml
manveen 02/02/08 13:30:34 Modified:webapps/admin/WEB-INF struts-config.xml Log: Added memory Realm form and associated actions. Revision ChangesPath 1.24 +40 -11jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml Index: struts-config.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- struts-config.xml 7 Feb 2002 05:06:52 - 1.23 +++ struts-config.xml 8 Feb 2002 21:30:34 - 1.24 @@ -64,9 +64,13 @@ type=org.apache.webapp.admin.UserForm/ !-- JDBC Realm form bean -- -form-bean name=realmForm +form-bean name=jdbcRealmForm type=org.apache.webapp.admin.realm.JDBCRealmForm/ +!-- Memory Realm form bean -- +form-bean name=memoryRealmForm +type=org.apache.webapp.admin.realm.MemoryRealmForm/ + !-- UserDB Realm form bean -- form-bean name=userdbRealmForm type=org.apache.webapp.admin.realm.UserDBRealmForm/ @@ -153,6 +157,10 @@ forwardname=JDBCRealm path=/jdbcRealm.jsp redirect=false/ + +forwardname=MemoryRealm +path=/memoryRealm.jsp +redirect=false/ forwardname=UserDBRealm path=/userDBRealm.jsp @@ -255,15 +263,29 @@ path=/logger.jsp redirect=true/ /action + +!-- Set up Memory Realm datastructure -- +actionpath=/setUpMemoryRealm + type=org.apache.webapp.admin.realm.SetUpMemoryRealmAction + name=memoryRealmForm + scope=session +forwardname=SetUpMemoryRealm + path=/memoryRealm.jsp + redirect=true/ +/action + + !-- Set up JDBC Realm datastructure -- +actionpath=/setUpJDBCRealm + type=org.apache.webapp.admin.realm.SetUpJDBCRealmAction + name=jdbcRealmForm + scope=session +/action !-- Set up Realm datastructure -- actionpath=/setUpUserDBRealm type=org.apache.webapp.admin.realm.SetUpUserDBRealmAction name=userdbRealmForm scope=session - forwardname=SetUpDBRealm - path=/userdbRealm.jsp - redirect=true/ /action !-- Log out of the application -- @@ -370,17 +392,24 @@ !-- JDBC realm action -- actionpath=/JDBCRealm - input=/jdbcRealm.jsp - name=realmForm - scope=request - type=org.apache.webapp.admin.realm.JDBCRealmAction/ + type=org.apache.webapp.admin.realm.JDBCRealmAction + name=jdbcRealmForm + scope=session + input=/jdbcRealm.jsp/ + +!-- Memory realm action -- +actionpath=/MemoryRealm + type=org.apache.webapp.admin.realm.MemoryRealmAction + name=memoryRealmForm + scope=session + input=/memoryRealm.jsp/ !-- UserDB realm action -- actionpath=/UserDBRealm - input=/userDBRealm.jsp + type=org.apache.webapp.admin.realm.UserDBRealmAction name=userdbRealmForm - scope=request - type=org.apache.webapp.admin.realm.UserDBRealmAction/ + scope=session + input=/userDBRealm.jsp/ /action-mappings -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm MemoryRealmAction.java MemoryRealmForm.java SetUpMemoryRealmAction.java
manveen 02/02/08 13:33:02 Added: webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm MemoryRealmAction.java MemoryRealmForm.java SetUpMemoryRealmAction.java Log: Added functionality to be able to view and edit memory realm properties from the admin tool. Revision ChangesPath 1.1 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/MemoryRealmAction.java Index: MemoryRealmAction.java === /* * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/MemoryRealmAction.java,v 1.1 2002/02/08 21:33:02 manveen Exp $ * $Revision: 1.1 $ * $Date: 2002/02/08 21:33:02 $ * * * * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright *notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright *notice, this list of conditions and the following disclaimer in *the documentation and/or other materials provided with the *distribution. * * 3. The end-user documentation included with the redistribution, if *any, must include the following acknowlegement: * This product includes software developed by the *Apache Software Foundation (http://www.apache.org/). *Alternately, this acknowlegement may appear in the software itself, *if and wherever such third-party acknowlegements normally appear. * * 4. The names The Jakarta Project, Struts, and Apache Software *Foundation must not be used to endorse or promote products derived *from this software without prior written permission. For written *permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called Apache *nor may Apache appear in their names without prior written *permission of the Apache Group. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * http://www.apache.org/. * */ package org.apache.webapp.admin.realm; import java.util.Iterator; import java.util.Locale; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import javax.management.Attribute; import javax.management.MBeanServer; import javax.management.MBeanServerFactory; import javax.management.QueryExp; import javax.management.Query; import javax.management.ObjectInstance; import javax.management.ObjectName; import javax.management.JMException; import org.apache.struts.util.MessageResources; import org.apache.webapp.admin.ApplicationServlet; import org.apache.webapp.admin.LabelValueBean; /** * Implementation of strongAction/strong that validates * actions on a Memory Realm. * * @author Manveen Kaur * @version $Revision: 1.1 $ $Date: 2002/02/08 21:33:02 $ */ public final class MemoryRealmAction extends Action { private static MBeanServer mBServer = null; // - Public Methods /** * Process the specified
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties ApplicationResources_es.properties
manveen 02/02/08 13:37:27 Modified:webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties ApplicationResources_es.properties Log: Added memory realm related properties Revision ChangesPath 1.22 +2 -0 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_en.properties Index: ApplicationResources_en.properties === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_en.properties,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- ApplicationResources_en.properties7 Feb 2002 05:06:53 - 1.21 +++ ApplicationResources_en.properties8 Feb 2002 21:37:27 - 1.22 @@ -178,4 +178,6 @@ realm.userRoleTable=User Role Table realm.userTable=User Table realm.resource=Resource Name +realm.pathName=Path Name error.resource.required=liResource Name is required./li +error.pathName.required=liPath Name is required./li 1.23 +2 -0 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_es.properties Index: ApplicationResources_es.properties === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_es.properties,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- ApplicationResources_es.properties7 Feb 2002 05:06:53 - 1.22 +++ ApplicationResources_es.properties8 Feb 2002 21:37:27 - 1.23 @@ -178,4 +178,6 @@ realm.userRoleTable=Vector Del Papel Del Utilizador realm.userTable=Vector De Utilizador realm.resource=Nombre Del Recurso +realm.pathName=Nombre Del Path error.resource.required=liSe requiere el nombre del recurso./li +error.pathName.required=liSe requiere el nombre del path./li -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin memoryRealm.jsp
manveen 02/02/08 13:38:35 Added: webapps/admin memoryRealm.jsp Log: JSP for displaying memory realm properties from its mBean. Revision ChangesPath 1.1 jakarta-tomcat-4.0/webapps/admin/memoryRealm.jsp Index: memoryRealm.jsp === !-- Standard Struts Entries -- %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/controls.tld prefix=controls % html:html locale=true %@ include file=header.jsp % !-- Body -- body bgcolor=white !--Form -- html:errors/ html:form method=GET action=/MemoryRealm table width=100% border=0 cellspacing=0 cellpadding=0 tr bgcolor=7171A5 td width=81% html:hidden property=realmName/ html:hidden property=realmType/ div class=page-title-text align=left bean:write name=memoryRealmForm property=nodeLabel scope=session/ /div /td td width=19% div align=right controls:actions controls:action selected=true bean:message key=actions.available.actions/ /controls:action controls:action - /controls:action controls:action url= bean:message key=actions.thisrealm.delete/ /controls:action /controls:actions /div /td /tr /table %@ include file=buttons.jsp % br table class=back-table border=0 cellspacing=0 cellpadding=0 width=100% tr td controls:table tableStyle=front-table lineStyle=line-row controls:row header=true labelStyle=table-header-text dataStyle=table-header-text controls:labelbean:message key=service.property//controls:label controls:databean:message key=service.value//controls:data /controls:row controls:row labelStyle=table-label-text dataStyle=table-normal-text controls:labelbean:message key=connector.type/:/controls:label controls:data bean:write name=memoryRealmForm property=realmType scope=session/ /controls:data /controls:row controls:row labelStyle=table-label-text dataStyle=table-normal-text controls:labelbean:message key=server.debuglevel/:/controls:label controls:data html:select property=debugLvl bean:define id=debugLvlVals name=memoryRealmForm property=debugLvlVals/ html:options collection=debugLvlVals property=value labelProperty=label/ /html:select /controls:data /controls:row controls:row labelStyle=table-label-text dataStyle=table-normal-text controls:labelbean:message key=realm.pathName/:/controls:label controls:data html:text property=pathName size=25/ /controls:data /controls:row /controls:table /td /tr /table %@ include file=buttons.jsp % br /html:form pnbsp;/p /body /html:html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm SetUpUserDBRealmAction.java UserDBRealmForm.java
manveen 02/02/08 13:55:15 Modified:webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties ApplicationResources_es.properties webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm SetUpUserDBRealmAction.java UserDBRealmForm.java Log: Add a front end check from the tool to ensure that the resourceName in UserDatabase Realm has java: prefix. Revision ChangesPath 1.23 +1 -0 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_en.properties Index: ApplicationResources_en.properties === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_en.properties,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- ApplicationResources_en.properties8 Feb 2002 21:37:27 - 1.22 +++ ApplicationResources_en.properties8 Feb 2002 21:55:15 - 1.23 @@ -180,4 +180,5 @@ realm.resource=Resource Name realm.pathName=Path Name error.resource.required=liResource Name is required./li +error.resource.javaprefix=liResource must have java: prefix./li error.pathName.required=liPath Name is required./li 1.24 +1 -0 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_es.properties Index: ApplicationResources_es.properties === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/ApplicationResources_es.properties,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- ApplicationResources_es.properties8 Feb 2002 21:37:27 - 1.23 +++ ApplicationResources_es.properties8 Feb 2002 21:55:15 - 1.24 @@ -180,4 +180,5 @@ realm.resource=Nombre Del Recurso realm.pathName=Nombre Del Path error.resource.required=liSe requiere el nombre del recurso./li +error.resource.javaprefix=liEl recurso debe tener prefijo de java:/li error.pathName.required=liSe requiere el nombre del path./li 1.2 +5 -7 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/SetUpUserDBRealmAction.java Index: SetUpUserDBRealmAction.java === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/SetUpUserDBRealmAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SetUpUserDBRealmAction.java 7 Feb 2002 05:06:53 - 1.1 +++ SetUpUserDBRealmAction.java 8 Feb 2002 21:55:15 - 1.2 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/SetUpUserDBRealmAction.java,v 1.1 2002/02/07 05:06:53 manveen Exp $ - * $Revision: 1.1 $ - * $Date: 2002/02/07 05:06:53 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/SetUpUserDBRealmAction.java,v 1.2 2002/02/08 21:55:15 manveen Exp $ + * $Revision: 1.2 $ + * $Date: 2002/02/08 21:55:15 $ * * * @@ -92,7 +92,7 @@ * a UserDatabase realm is chosen. * * @author Manveen Kaur - * @version $Revision: 1.1 $ $Date: 2002/02/07 05:06:53 $ + * @version $Revision: 1.2 $ $Date: 2002/02/08 21:55:15 $ */ public class SetUpUserDBRealmAction extends Action { @@ -197,9 +197,7 @@ t.printStackTrace(System.out); //forward to error page } - -// Stash the form bean and forward to the display page -request.setAttribute(userdbRealmForm, realmFm); + // Forward back to the appropriate Realm page return (mapping.findForward(UserDBRealm)); 1.2 +7 -4 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/UserDBRealmForm.java Index: UserDBRealmForm.java === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/UserDBRealmForm.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- UserDBRealmForm.java 7 Feb 2002 05:06:53 - 1.1 +++ UserDBRealmForm.java 8 Feb 2002 21:55:15 - 1.2 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/UserDBRealmForm.java,v 1.1 2002/02/07 05:06:53 manveen Exp $ - * $Revision: 1.1 $ - * $Date:
header value too long - 400 error - is that good?
Hi, I have the following problem. I think it's more for Tomcat developers than for users so I'm posting it here. Let's say you have three servers (not Tomcat :-). dev1.toto.com, dev2.toto.com, dev3.toto.com. Each of these servers sets a very long permanent cookie on client's machine. The client uses all three servers. Now, let's say you have your great app running on Tomcat: mytomcatapp.toto.com. Finally let's say the cookie domain for devX is set to toto.com. So all the cookies (from devX) are sent back to your tomcat app when you try to access its pages. In that case tomcat generates HTTP 400. I checked in the source code and it seems that the header value size limit is set to 4K. The bottom line is that some other web applications may prevent your app users to access your tomcat app. I had that experience :-(((. Maybe the 400 error behaviour should be slightly modified. Instead of sending this error maybe only 4K should be read from header value? But I guess there may be some other concerns behind the scene (ex. security). cheers, slawek __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0 OUTSTANDING-BUGS-4.0.3.txt OUTSTANDING-BUGS-4.0.2.txt
remm02/02/09 18:41:39 Added: .Tag: tomcat_40_branch OUTSTANDING-BUGS-4.0.3.txt Removed: .Tag: tomcat_40_branch OUTSTANDING-BUGS-4.0.2.txt Log: - Rename the outstanding bug list. Revision ChangesPath No revision No revision 1.1.2.1 +28 -0 jakarta-tomcat-4.0/Attic/OUTSTANDING-BUGS-4.0.3.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties
craigmcc02/02/09 19:14:11 Modified:webapps/admin/WEB-INF struts-config.xml web.xml webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties Removed: webapps/admin listGroups.jsp listUsers.jsp user.jsp Log: Update struts-config.xml, web.xml, and the message resources for the move of user database administration stuff to users subdirectories, and remove the JSP pages that have been migrated. Subsequent commits will catch up on the new pages and classes. Revision ChangesPath 1.25 +107 -46 jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml Index: struts-config.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- struts-config.xml 8 Feb 2002 21:30:34 - 1.24 +++ struts-config.xml 10 Feb 2002 03:14:11 - 1.25 @@ -51,18 +51,6 @@ form-bean name=setLocaleForm type=org.apache.webapp.admin.SetLocaleForm/ -!-- List Groups form bean -- -form-bean name=listGroupsForm -type=org.apache.webapp.admin.ListGroupsForm/ - -!-- List Users form bean -- -form-bean name=listUsersForm -type=org.apache.webapp.admin.ListUsersForm/ - -!-- User form bean -- -form-bean name=userForm -type=org.apache.webapp.admin.UserForm/ - !-- JDBC Realm form bean -- form-bean name=jdbcRealmForm type=org.apache.webapp.admin.realm.JDBCRealmForm/ @@ -71,10 +59,28 @@ form-bean name=memoryRealmForm type=org.apache.webapp.admin.realm.MemoryRealmForm/ - !-- UserDB Realm form bean -- +!-- UserDB Realm form bean -- form-bean name=userdbRealmForm type=org.apache.webapp.admin.realm.UserDBRealmForm/ +!-- == User Database Module == -- + +form-bean name=databaseForm +type=org.apache.webapp.admin.users.BaseForm/ + +form-bean name=groupForm +type=org.apache.webapp.admin.users.GroupForm/ + +form-bean name=roleForm +type=org.apache.webapp.admin.users.RoleForm/ + +form-bean name=userForm +type=org.apache.webapp.admin.users.UserForm/ + + +!-- == == -- + + /form-beans @@ -134,18 +140,6 @@ path=/blank.jsp redirect=false/ -forwardname=Groups List -path=/listGroups.jsp -redirect=false/ - -forwardname=Users List -path=/listUsers.jsp -redirect=false/ - -forwardname=Users List Setup -path=/listUsers.do -redirect=false/ - forwardname=Logger path=/logger.jsp redirect=false/ @@ -166,6 +160,46 @@ path=/userDBRealm.jsp redirect=false/ +!-- == User Database Module == -- + +forwardname=Group +path=/users/group.jsp +redirect=false/ + +forwardname=Groups List +path=/users/listGroups.jsp +redirect=false/ + +forwardname=Groups List Setup +path=/users/listGroups.do +redirect=false/ + +forwardname=Role +path=/users/role.jsp +redirect=false/ + +forwardname=Roles List +path=/users/listRoles.jsp +redirect=false/ + +forwardname=Roles List Setup +path=/users/listRoles.do +redirect=false/ + +forwardname=User +path=/users/user.jsp +redirect=false/ + +forwardname=Users List +path=/users/listUsers.jsp +redirect=false/ + +forwardname=Users List Setup +path=/users/listUsers.do +redirect=false/ + +!-- == == -- + /global-forwards @@ -355,27 +389,6 @@ actionpath=/treeControlTest type=org.apache.webapp.admin.TreeControlTestAction/ -!-- Set up groups list action -- -actionpath=/listGroups - name=listGroupsForm - type=org.apache.webapp.admin.ListGroupsAction/ - -!-- Set up users list
cvs commit: jakarta-tomcat-4.0/webapps/admin/users - New directory
craigmcc02/02/09 19:14:16 jakarta-tomcat-4.0/webapps/admin/users - New directory -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/users footer.jsp group.jsp header.jsp listGroups.jsp listRoles.jsp listUsers.jsp role.jsp roles.jspf user.jsp
craigmcc02/02/09 19:15:04 Added: webapps/admin/users footer.jsp group.jsp header.jsp listGroups.jsp listRoles.jsp listUsers.jsp role.jsp roles.jspf user.jsp Log: Migrated (and new) JSP pages for listing and editing groups, roles, and users. Revision ChangesPath 1.1 jakarta-tomcat-4.0/webapps/admin/users/footer.jsp Binary file 1.1 jakarta-tomcat-4.0/webapps/admin/users/group.jsp Index: group.jsp === !-- Standard Struts Entries -- %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/controls.tld prefix=controls % html:html locale=true %@ include file=header.jsp % !-- Body -- body bgcolor=white !--Form -- html:errors/ html:form method=POST action=/users/saveGroup focus=groupname html:hidden property=databaseName/ html:hidden property=objectName/ table width=100% border=0 cellspacing=0 cellpadding=0 tr class=page-title-row td align=left nowrap div class=page-title-text bean:write name=groupForm property=nodeLabel/ /div /td td align=right nowrap div class=page-title-text controls:actions controls:action selected=true bean:message key=actions.available.actions/ /controls:action controls:action - /controls:action !-- will add the urls later once those screens get implemented -- %-- controls:action url= bean:message key=users.actions.group.create/ /controls:action controls:action url= bean:message key=users.actions.group.delete/ /controls:action --% /controls:actions /div /td /tr /table %@ include file=../buttons.jsp % br table class=back-table border=0 cellspacing=0 cellpadding=1 width=100% tr td controls:table tableStyle=front-table lineStyle=line-row controls:row header=true labelStyle=table-header-text dataStyle=table-header-text controls:label bean:message key=users.group.properties/ /controls:label controls:data nbsp; /controls:data /controls:row controls:row labelStyle=table-label-text dataStyle=table-normal-text controls:label bean:message key=users.prompt.groupname/ /controls:label controls:data logic:present name=groupForm property=objectName bean:write name=groupForm property=groupname/ html:hidden property=groupname/ /logic:present logic:notPresent name=groupForm property=objectName html:text property=groupname size=24 maxlength=32/ /logic:notPresent /controls:data /controls:row controls:row labelStyle=table-label-text dataStyle=table-normal-text controls:label bean:message key=users.prompt.description/ /controls:label controls:data html:text property=description size=24 maxlength=128/ /controls:data /controls:row /controls:table /td /tr /table %@ include file=../buttons.jsp % /html:form !-- Standard Footer -- %@ include file=footer.jsp % /body /html:html 1.1 jakarta-tomcat-4.0/webapps/admin/users/header.jsp Index: header.jsp === !-- Copyright (c) 1999-2002 The Apache Software Foundation. All rights reserved. -- head titlebean:message key=application.title//title html:base/ link rel=stylesheet type=text/css href=../tree-control-test.css link rel=stylesheet type=text/css href=../admin.css /head 1.1 jakarta-tomcat-4.0/webapps/admin/users/listGroups.jsp Index: listGroups.jsp === !-- Standard Struts Entries -- %@ page language=java import=java.net.URLEncoder % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % %@ taglib uri=/WEB-INF/controls.tld
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users - New directory
craigmcc02/02/09 19:17:15 jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users - New directory -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/webapps/admin/WEB-INF/classes/org/apache/webapp/admin ListGroupsAction.java ListGroupsForm.java ListUsersAction.java ListUsersForm.java SaveUserAction.java SetUpUserAction.java UserForm.java UsersTreeBuilder.java
craigmcc02/02/09 19:17:12 Removed: webapps/admin/WEB-INF/classes/org/apache/webapp/admin ListGroupsAction.java ListGroupsForm.java ListUsersAction.java ListUsersForm.java SaveUserAction.java SetUpUserAction.java UserForm.java UsersTreeBuilder.java Log: Remove user administration classes that have migrated to the users sub-package. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/users MemoryGroup.java MemoryRole.java MemoryUser.java MemoryUserDatabase.java
craigmcc02/02/09 19:20:17 Modified:catalina/src/share/org/apache/catalina/mbeans MemoryUserDatabaseMBean.java mbeans-descriptors.xml catalina/src/share/org/apache/catalina/users MemoryGroup.java MemoryRole.java MemoryUser.java MemoryUserDatabase.java Log: Synch up the server-side changes required by the new admin functionality. Revision ChangesPath 1.4 +10 -9 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MemoryUserDatabaseMBean.java Index: MemoryUserDatabaseMBean.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MemoryUserDatabaseMBean.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- MemoryUserDatabaseMBean.java 3 Feb 2002 00:56:57 - 1.3 +++ MemoryUserDatabaseMBean.java 10 Feb 2002 03:20:17 - 1.4 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MemoryUserDatabaseMBean.java,v 1.3 2002/02/03 00:56:57 craigmcc Exp $ - * $Revision: 1.3 $ - * $Date: 2002/02/03 00:56:57 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/MemoryUserDatabaseMBean.java,v 1.4 2002/02/10 03:20:17 craigmcc Exp $ + * $Revision: 1.4 $ + * $Date: 2002/02/10 03:20:17 $ * * * @@ -85,7 +85,7 @@ * codeorg.apache.catalina.users.MemoryUserDatabase/code component./p * * @author Craig R. McClanahan - * @version $Revision: 1.3 $ $Date: 2002/02/03 00:56:57 $ + * @version $Revision: 1.4 $ $Date: 2002/02/10 03:20:17 $ */ public class MemoryUserDatabaseMBean extends BaseModelMBean { @@ -216,13 +216,12 @@ * * @param groupname Group name of the new group * @param description Description of the new group - * @param roles Roles list for the new group */ -public String createGroup(String groupname, String description, - String roles[]) { +public String createGroup(String groupname, String description) { UserDatabase database = (UserDatabase) this.resource; Group group = database.createGroup(groupname, description); +/* if (roles != null) { for (int i = 0; i roles.length; i++) { Role role = database.findRole(roles[i]); @@ -233,6 +232,7 @@ group.addRole(role); } } +*/ try { MBeanUtils.createMBean(group); } catch (Exception e) { @@ -271,13 +271,13 @@ * @param username User name of the new user * @param password Password for the new user * @param fullName Full name for the new user - * @param roles Roles list for the new user */ public String createUser(String username, String password, - String fullName, String roles[]) { + String fullName) { UserDatabase database = (UserDatabase) this.resource; User user = database.createUser(username, password, fullName); +/* if (roles != null) { for (int i = 0; i roles.length; i++) { Role role = database.findRole(roles[i]); @@ -288,6 +288,7 @@ user.addRole(role); } } +*/ try { MBeanUtils.createMBean(user); } catch (Exception e) { 1.27 +2 -8 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/mbeans-descriptors.xml Index: mbeans-descriptors.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/mbeans-descriptors.xml,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- mbeans-descriptors.xml3 Feb 2002 00:56:57 - 1.26 +++ mbeans-descriptors.xml10 Feb 2002 03:20:17 - 1.27 @@ -6,7 +6,7 @@ !-- Descriptions of JMX MBeans for Catalina - $Id: mbeans-descriptors.xml,v 1.26 2002/02/03 00:56:57 craigmcc Exp $ + $Id: mbeans-descriptors.xml,v 1.27 2002/02/10 03:20:17 craigmcc Exp $ -- mbeans-descriptors @@ -700,9 +700,6 @@ parameter name=description description=Description of the new group type=java.lang.String/ - parameter name=roles - description=Roles list for the new group - type=java.lang.String[]/ /operation operation name=createRole @@ -722,7 +719,7 @@ impact=ACTION
cvs commit: jakarta-tomcat-4.0/webapps/admin/users deleteGroups.jsp deleteRoles.jsp deleteUsers.jsp groups.jspf listGroups.jspf listRoles.jspf listUsers.jspf users.jspf listGroups.jsp listRoles.jsp listUsers.jsp roles.jspf
craigmcc02/02/09 21:48:58 Modified:webapps/admin/WEB-INF struts-config.xml webapps/admin/WEB-INF/classes/org/apache/webapp/admin ApplicationResources_en.properties webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users ListGroupsAction.java ListRolesAction.java ListUsersAction.java SaveGroupAction.java SaveRoleAction.java SaveUserAction.java UsersTreeBuilder.java webapps/admin/users listGroups.jsp listRoles.jsp listUsers.jsp roles.jspf Added: webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users DeleteGroupsAction.java DeleteRolesAction.java DeleteUsersAction.java GroupsForm.java RolesForm.java UsersForm.java webapps/admin/users deleteGroups.jsp deleteRoles.jsp deleteUsers.jsp groups.jspf listGroups.jspf listRoles.jspf listUsers.jspf users.jspf Log: Implement delete functionality for groups, roles, and users. Revision ChangesPath 1.26 +44 -6 jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml Index: struts-config.xml === RCS file: /home/cvs/jakarta-tomcat-4.0/webapps/admin/WEB-INF/struts-config.xml,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- struts-config.xml 10 Feb 2002 03:14:11 - 1.25 +++ struts-config.xml 10 Feb 2002 05:48:57 - 1.26 @@ -63,6 +63,7 @@ form-bean name=userdbRealmForm type=org.apache.webapp.admin.realm.UserDBRealmForm/ + !-- == User Database Module == -- form-bean name=databaseForm @@ -71,12 +72,20 @@ form-bean name=groupForm type=org.apache.webapp.admin.users.GroupForm/ +form-bean name=groupsForm +type=org.apache.webapp.admin.users.GroupsForm/ + form-bean name=roleForm type=org.apache.webapp.admin.users.RoleForm/ +form-bean name=rolesForm +type=org.apache.webapp.admin.users.RolesForm/ + form-bean name=userForm type=org.apache.webapp.admin.users.UserForm/ +form-bean name=usersForm +type=org.apache.webapp.admin.users.UsersForm/ !-- == == -- @@ -160,46 +169,60 @@ path=/userDBRealm.jsp redirect=false/ + !-- == User Database Module == -- forwardname=Group path=/users/group.jsp redirect=false/ +forwardname=Groups Delete List +path=/users/deleteGroups.jsp +redirect=false/ + forwardname=Groups List path=/users/listGroups.jsp redirect=false/ forwardname=Groups List Setup -path=/users/listGroups.do +path=/users/listGroups.do?forward=Groups+List redirect=false/ forwardname=Role path=/users/role.jsp redirect=false/ +forwardname=Roles Delete List +path=/users/deleteRoles.jsp +redirect=false/ + forwardname=Roles List path=/users/listRoles.jsp redirect=false/ forwardname=Roles List Setup -path=/users/listRoles.do +path=/users/listRoles.do?forward=Roles+List redirect=false/ forwardname=User path=/users/user.jsp redirect=false/ +forwardname=Users Delete List +path=/users/deleteUsers.jsp +redirect=false/ + forwardname=Users List path=/users/listUsers.jsp redirect=false/ forwardname=Users List Setup -path=/users/listUsers.do +path=/users/listUsers.do?forward=Users+List redirect=false/ !-- == == -- + /global-forwards @@ -427,18 +450,33 @@ !-- == User Database Module == -- +actionpath=/users/deleteGroups + name=groupsForm + scope=request + type=org.apache.webapp.admin.users.DeleteGroupsAction/ + +actionpath=/users/deleteRoles +
DO NOT REPLY [Bug 6341] - tomcat dies on startup
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6341. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6341 tomcat dies on startup [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2002-02-10 06:25 --- For now, I'm marking this as invalid since if the invoking command contained a -Dtomcat.home=/path/to/tomcat, (with the Mac way of specifing paths of course) then Tomcat should work. Please re-open with details of your start-up if you still have a problem. Alternatively, please give the value of your System.getProperty(os.name) so that I can add a check to skip trying .. in this case. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: header value too long - 400 error - is that good?
In that case tomcat generates HTTP 400. I checked in the source code and it seems that the header value size limit is set to 4K. Could you please give more infromation about your setup. In particular, the version of Tomcat that you are using, and if applicable, the Connecter you are using (e.g Apache, IIS). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Jakarta 2001 PMC: Last chance for correction of voter list.
request-for-clarification Do votes have to be recieved from the @apache.org address, or can comitters uses thier real addresses? AFAIK my @apache.org address is nothing but a marker for the cvs commit messages. (Yes, I've spent enough time on *nix systems to know how to use Mail. I am just hoping that I don't have to re-live the nightmare :} /repuest-for-clarification - Original Message - From: Dirk-Willem van Gulik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; *[EMAIL PROTECTED] Sent: Saturday, February 09, 2002 2:20 PM Subject: Jakarta 2001 PMC: Last chance for correction of voter list. -BEGIN PGP SIGNED MESSAGE- Please find attached the list of voters eligible to vote in the 2002 Jakarta PMC. If you see showstopper's, serious typo, etc let us known immediately. [EMAIL PROTECTED] is what will be used for the Ballot on the 12th of February. Errors are to be send to [EMAIL PROTECTED] Dw. Schedule Jakarta PMC 2002: x 0:00 GMT - 2002-2-7Nominations close x 0:00 GMT - 2002-2-9Publication of candidate list. x Publication of voter's list. 0:00 GMT - 2002-2-12 Candidate list final and announced. Voter's list final and announced. Voters receive their ballots. Ballot opens 0:00 GMT - 2002-2-19 Ballot closes 0:00 GMT - 2002-2-21 Voters receive confirmation of their vote 0:00 GMT - 2002-2-22 Final tally made and published. 0:00 GMT - 2002-2-22 Archive handed over to the ASF board secretariat. Abey M. Mullassery abey Andrew C. Oliver acoliver Adam Murdoch adammurdoch Andreas V. Kempf akempf Anil Vijendran akv Alex Chafee alex Amy Roh amyroh Anders Kristensen anders Andy Armstrong andya Andy Riedel ariedel Arieh Markel arieh Arnout Kuiper arnout Arron Bates arron Arun Jamwal arun Arundhati Bhowmick aruna1 asmuts asmuts Juozas Baliuka baliuka Henri Yandell bayard Brendan Burns bburns B. C. Holmes bcholmes Hans Bergsten bergsten Bill Barker billbarker Bip Thelin bip Berin Loritsch bloritsch Stefan Bodewig bodewig Bojan Smojver bojan Jeff Brekke brekke Brian Goetz briangoetz Kevin Burton burton carlson carlson Rich Catlett catlett Christopher Cain ccain Cedric Dumoulin cedric Ceki Gulcu ceki Charles Benett charlesb Christopher Elkins chrise Christoph Wilhelms chrisw Carl Ludwig cl Cory Hubert clhubert Casey Lucas clucas Christopher Lenz cmlenz Eung-ju Park colus Conor MacNeill conor Costin Manolache costin Craig R. McClanahan craigmcc Cameron Riley criley Chris Taylor cstaylor Doug Cutting cutting Carsten Ziegeler cziegeler Dan Milstein danmil Danny Angus danny Danny Coward dannyc Darrell DeBoer darrell DaveB daveb Dave Kor davekor Dave Bryson dbryson Daniel F. Savarese dfs David Geary dgeary Dion Gillard dion Dirk Verbeeck dirkv Dave Polito djpolito Donald Leslie dleslie Daniel Rall dlr Dan Mandell dmandell Dmitri Plotnikov dmitri Dmitry Serebrennikov dmitrys Eric Dobbs dobbs Peter Donald donaldp Eugene Gluzberg drag0n2 Doug Sale dsale Doug Davis dug James Duncan Davidson duncan David Weinrich dweinr1 David Winterfeldt dwinterfeldt Ed Korthof ed Eduardo Pelegri-Llopart eduardop Erik Hatcher ehatcher Eric Rescorla ekr Enver Haase enver Federico Barbieri fede Fedor Karpelevitch fedor Gerhard Froehlich froehlich Vasile Gaburici gaburici Geir Magnusson Jr. geirm Michael McCallum gholam Giacomo Pati giacomo Glenn Nielsen glenn Glenn McAllister glennm Glen Stampoultzis glens Gonzalo D Guallar gonzalo James Todd gonzo gerhard.schwarz gschwarz Paul Hammant hammant Harish Prabandham harishp Harmeet Bedi hbedi Henning Schmiedehausen henning GOMEZ Henri hgomez Bernie Hoeneisen hoeneisen Diane Holt holtdl Justyna Horwat horwat Ted Husted husted Ilkka Priha ilkka ingo ingo jariw jariw Jazmin Jonson jazmin Jim Boutcher jboutcher John Castura jcastura Jeff Turner jefft Sung-Gu Park jericho jean-frederic clere jfclere Jason Hunter jhunter Petr Jiricka jiricka Jean-Luc Rochat jluc Jeff Martin jmartin John McNally jmcnally Jim Moore jmoore Jon Stevens jon Jonathan Locke jonl James Strachan jstrachan Juergen Pill juergen Jason van Zyl jvanzyl Keith Wannamaker keith Kevin Hammond khammond Kief Morris kief Chris Kimpton kimptoc Kin-Man Chung kinman Kasper Nielsen knielsen Kurt Schrader kschrader Larry Isaacs larryi Sean Legassick legassick Leif Mortenson leif Leonard Richardson leonardr Leon Messerschmidt leonm Leo Simons leosimons lawrence_mccay lmccay Josh Lucas lucas Jan Luehe luehe Luis Arias luis Magnús Þór Torfason magnus Manveen Kaur manveen Marc Saegesser marcsaeg Martin Cooper martinc Mike Braden mbraden Stephen McConnell mcconnell Markus Dahm mdahm Mel Martinez melaquias Mike Haberman
cvs commit: jakarta-tomcat-4.0/webapps/admin/users group.jsp groups.jspf role.jsp roles.jspf user.jsp users.jspf
craigmcc02/02/10 00:06:21 Modified:catalina/src/share/org/apache/catalina Group.java User.java catalina/src/share/org/apache/catalina/mbeans mbeans-descriptors.xml catalina/src/share/org/apache/catalina/users AbstractGroup.java AbstractUser.java MemoryGroup.java MemoryUser.java webapps/admin/WEB-INF struts-config.xml webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users GroupForm.java ListGroupsAction.java ListRolesAction.java ListUsersAction.java SaveGroupAction.java SaveRoleAction.java SaveUserAction.java SetUpGroupAction.java SetUpRoleAction.java SetUpUserAction.java UserForm.java webapps/admin/users group.jsp groups.jspf role.jsp roles.jspf user.jsp users.jspf Added: webapps/admin/WEB-INF/classes/org/apache/webapp/admin/users UserUtils.java Log: Complete full support for associating roles with users and groups, and associating groups with users. Modulo any remaining bugs, the User and Group Administration section of the admin app should be fully functional. Revision ChangesPath 1.5 +10 -4 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Group.java Index: Group.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Group.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- Group.java3 Feb 2002 00:56:57 - 1.4 +++ Group.java10 Feb 2002 08:06:19 - 1.5 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Group.java,v 1.4 2002/02/03 00:56:57 craigmcc Exp $ - * $Revision: 1.4 $ - * $Date: 2002/02/03 00:56:57 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Group.java,v 1.5 2002/02/10 08:06:19 craigmcc Exp $ + * $Revision: 1.5 $ + * $Date: 2002/02/10 08:06:19 $ * * * The Apache Software License, Version 1.1 @@ -74,7 +74,7 @@ * inherits the {@link Role}s assigned to the group./p * * @author Craig R. McClanahan - * @version $Revision: 1.4 $ $Date: 2002/02/03 00:56:57 $ + * @version $Revision: 1.5 $ $Date: 2002/02/10 08:06:19 $ * @since 4.1 */ @@ -157,6 +157,12 @@ * @param role The old role */ public void removeRole(Role role); + + +/** + * Remove all {@link Role}s from those assigned to this group. + */ +public void removeRoles(); } 1.5 +16 -4 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/User.java Index: User.java === RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/User.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- User.java 3 Feb 2002 00:56:57 - 1.4 +++ User.java 10 Feb 2002 08:06:19 - 1.5 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/User.java,v 1.4 2002/02/03 00:56:57 craigmcc Exp $ - * $Revision: 1.4 $ - * $Date: 2002/02/03 00:56:57 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/User.java,v 1.5 2002/02/10 08:06:19 craigmcc Exp $ + * $Revision: 1.5 $ + * $Date: 2002/02/10 08:06:19 $ * * * The Apache Software License, Version 1.1 @@ -75,7 +75,7 @@ * of specific {@link Role}s./p * * @author Craig R. McClanahan - * @version $Revision: 1.4 $ $Date: 2002/02/03 00:56:57 $ + * @version $Revision: 1.5 $ $Date: 2002/02/10 08:06:19 $ * @since 4.1 */ @@ -197,11 +197,23 @@ /** + * Remove all {@link Group}s from those this user belongs to. + */ +public void removeGroups(); + + +/** * Remove a {@link Role} from those assigned to this user. * * @param role The old role */ public void removeRole(Role role); + + +/** + * Remove all {@link Role}s from those assigned to this user. + */ +public void removeRoles(); } 1.28 +19 -1 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/mbeans-descriptors.xml Index: mbeans-descriptors.xml === RCS file: