Bug report for Tomcat 5 [2009/04/05]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |27122|Opn|Enh|2004-02-20|IE plugins cannot access components through Tomcat| |28039|Opn|Enh|2004-03-30|Cluster Support for SingleSignOn | |29160|Ver|Enh|2004-05-23|precompile problem: _jspx_meth_* (javax.servlet.js| |29494|Inf|Enh|2004-06-10|No way to set PATH when running as a service on Wi| |30241|Ver|Enh|2004-07-21|Enhance build script to use branch argument when c| |33262|Inf|Enh|2005-01-27|Service Manager autostart should check for adminis| |33453|Opn|Enh|2005-02-08|Jasper should recompile JSP files whose datestamps| |33671|Opn|Enh|2005-02-21|Manual Windows service installation with custom na| |34110|Opn|Nor|2005-03-21|The message "SEVERE: Error listenerStart" should b| |34801|New|Enh|2005-05-08|PATCH: CGIServlet does not terminate child after a| |34805|Ass|Enh|2005-05-08|warn about invalid security constraint url pattern| |34868|Ass|Enh|2005-05-11|allow to register a trust store for a session that| |35054|Inf|Enh|2005-05-25|warn if appBase is not existing as a File or direc| |36133|Inf|Enh|2005-08-10|Support JSS SSL implementation| |36362|New|Enh|2005-08-25|missing check for Java reserved keywords in tag fi| |36569|Inf|Enh|2005-09-09|Redirects produce illegal URL's | |36837|Inf|Enh|2005-09-28|Looking for ProxyHandler implementation of Http re| |36922|Inf|Enh|2005-10-04|setup.sh file mis-advertised and missing | |36923|New|Nor|2005-10-05|Deactivated EL expressions are not parsed for jsp | |37018|Ass|Enh|2005-10-11|Document how to use tomcat-SSL with a pkcs11 token| |37084|Ass|Nor|2005-10-14|JspC from ant fails on JSPs that use custom taglib| |37334|Inf|Enh|2005-11-02|Realm digest property not aligned with the adminis| |37449|Opn|Enh|2005-11-10|Two UserDatabaseRealm break manager user | |37458|Ass|Nor|2005-11-10|Datarace on org.apache.catalina.loader.WebappClass| |37485|Inf|Enh|2005-11-14|I'd like to run init SQL after JDBC Connection cre| |37498|New|Nor|2005-11-14|[PATCH] NPE in org.apache.catalina.core.ContainerB| |37515|Opn|Nor|2005-11-15|smap not generated by JspC when used from Ant for | |37627|Inf|Nor|2005-11-24|Slow and incomplete dynamic content generation aft| |37785|Inf|Nor|2005-12-05|Changing startup type via Tomcat Monitor does not | |37794|Opn|Nor|2005-12-05|getParameter() fails on POST with transfer-encodin| |37797|Inf|Maj|2005-12-05|Configure Tomcat utility truncates classpath to 96| |37847|Ass|Enh|2005-12-09|Allow User To Optionally Specify Catalina Output F| |37869|Opn|Nor|2005-12-12|Cannot obtain client certificate with SSL / client| |37984|New|Nor|2005-12-21|JNDIRealm.java not able to handle MD5 password| |38197|Opn|Maj|2006-01-09|taglib pool bug when tag is used with jsp:attribut| |38216|Inf|Enh|2006-01-10|Extend Jmxproxy to allow call of MBean Operations | |38217|Ver|Enh|2006-01-10|mention that private key password and keystore pas| |38268|Inf|Enh|2006-01-13|User friendly: Need submit button on adding/deleti| |38352|Inf|Nor|2006-01-22|Additional Entries for Default catalina.policy fil| |38360|Inf|Enh|2006-01-24|Domain for session cookies| |38483|New|Nor|2006-02-01|access log valve uses simpledateformat in tread-un| |38484|New|Min|2006-02-01|webapps Admin: Invalid path /login was requested | |38516|Inf|Nor|2006-02-05|Configuration Manager loses "Log On" settings | |38546|Inf|Enh|2006-02-07|Google bot sends invalid If-Modifed-Since Header, | |38553|New|Nor|2006-02-07|Wrong HTTP code for failed CLIENT-CERT authenticat| |38570|New|Nor|2006-02-08|if docBase path contains "webapps", a backslash is| |38577|Inf|Enh|2006-02-08|Enhance logging of security failures | |38630|Inf|Maj|2006-02-13|Environment (java:comp/env/) sometimes not availab| |38713|Ass|Nor|2006-02-20|java.io.IOException: tmpFile.renameTo(classFile) f| |38743|New|Min|2006-02-21|when using APR, JKS options are silently ignored | |38797|Opn|Nor|2006-02-27|5.5.12 and 5.5.15 emit different code on | |41007|Opn|Enh|
Bug report for Tomcat 4 [2009/04/05]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | | 3839|Opn|Enh|2001-09-26|Problem bookmarking login page| | 4227|Opn|Enh|2001-10-17|Invalid CGI path | | 5329|New|Enh|2001-12-08|NT Service exits startup before Tomcat is finished| | 5795|New|Enh|2002-01-10|Catalina Shutdown relies on localhost causing prob| | 5829|New|Enh|2002-01-13|StandardManager needs to cope with sessions throwi| | 5985|New|Enh|2002-01-23|Tomcat should perform a more restrictive validatio| | 6600|Opn|Enh|2002-02-20|enodeURL adds 'jsession' when 'isRequestedSessionI| | 6614|New|Enh|2002-02-21|Have Bootstrap and StandardClassLoader use the sam| | 6671|New|Enh|2002-02-25|Simple custom tag example uses old declaration sty| | 7043|New|Enh|2002-03-12|database user and password for JDBC Based Store | | 7374|New|Enh|2002-03-22|Apache Tomcat/4.0.1 message on standard output| | 7676|New|Enh|2002-04-02|Allow name property to use match experssions in without className in server.xml produces N| |11129|New|Enh|2002-07-24|New valve for putting the sessionIDs in the reques| |11248|New|Enh|2002-07-29|DefaultServlet doesn't send expires header| |11754|Opn|Enh|2002-08-15|Synchronous shutdown script - shutdown.sh should w| |12069|New|Enh|2002-08-27|Creation of more HttpSession objects for one previ| |12428|Opn|Enh|2002-09-09|request.getUserPrincipal(): Misinterpretation of s| |12658|New|Enh|2002-09-15|a proxy host and port at the element level | |12766|New|Enh|2002-09-18|Tomcat should use tld files in /WEB-INF/ over vers| |13309|Opn|Enh|2002-10-04|Catalina calls System.exit() | |13634|New|Enh|2002-10-15|Allowing system properties to be substituted in co| |13689|Opn|Enh|2002-10-16|Classloader paths for 'Common' classes and librari| |13731|New|Enh|2002-10-17|Final request, response, session and other variabl| |13941|New|Enh|2002-10-24|reload is VERY slow | |13965|New|Enh|2002-10-25|Catalina.sh correction request for Tru64 Unix | |14097|New|Enh|2002-10-30|hardcoded registry value for vm lets tomcat servic| |14416|New|Enh|2002-11-10|blank tag name in TLD cause NullPointerException | |14635|New|Enh|2002-11-18|Should be possible not to have -MM-DD in log f| |14766|New|Enh|2002-11-22|Redirect Vavle| |14993|New|Enh|2002-12-02|Possible obselete synchronized declaration| |15115|New|Enh|2002-12-05|correct docs... XML parser *cannot* be overridden | |15417|Opn|Enh|2002-12-16|Add port for forced compilation of JSP pages | |15688|New|Enh|2002-12-27|full-qualified names instead of imports | |15941|New|Enh|2003-01-10|Expose rootCause exceptions at deeper levels | |16294|New|Enh|2003-01-21|Configurable URL Decoding.| |16357|New|Enh|2003-01-23|"connection timeout reached" | |16531|New|Enh|2003-01-29|Updating already deployed ".war" files in a single| |16579|New|Enh|2003-01-30|documentation page layout/style breaks wrapping to| |16596|New|Enh|2003-01-30|option for disabling log rotation | |17070|New|Enh|2003-02-14|The Catalina Ant tasks do not allow for 'reusable'| |17146|New|Enh|2003-02-18|Simplify build.xml using
Bug report for Tomcat 6 [2009/04/05]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=Critical REG=Regression MAJ=Major | | | | MIN=Minor NOR=NormalENH=Enhancement TRV=Trivial | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | |39661|Opn|Enh|2006-05-25|Please document JULI FileHandler configuration pro| |41093|Ver|Enh|2006-11-30|publish 6.0.2 beta jars in a maven repository | |41128|Inf|Enh|2006-12-07|Reference to java Thread name from RequestProcesso| |41530|Ver|Nor|2007-02-02|stopping a connector produces intermittent SocketE| |41679|Ass|Enh|2007-02-22|SemaphoreValve should be able to filter on url pat| |41791|New|Enh|2007-03-07|Tomcat behaves inconsistently concerning flush-pac| |41797|Ver|Maj|2007-03-09|CNFE/NPE thrown from function mapper when external| |41883|Ass|Enh|2007-03-18|use abstract wrapper instead of plain X509Certific| |41944|New|Enh|2007-03-25|Start running the RAT tool to see where we're miss| |41992|New|Enh|2007-03-30|Need ability to set OS process title | |42463|New|Enh|2007-05-20|"crossContext" and classloader issues - pls amend | |43001|New|Enh|2007-07-30|JspC lacks setMappedFile and setDie for use in Ant| |43003|New|Enh|2007-07-30|Separate dependent component download and build ta| |43154|New|Enh|2007-08-17|forward port from 5.5.x to 6.x about AccessLogValv| |43285|Opn|Enh|2007-09-02|Missing EL Coercion causes argument type mismatch | |43400|New|Enh|2007-09-14|enum support for tag libs | |43497|New|Enh|2007-09-26|Add ability to escape rendered output of JSP expre| |43548|New|Enh|2007-10-04|xml schema for tomcat-users.xml | |43642|New|Enh|2007-10-17|Add prestartminSpareThreads attribute for Executor| |43682|New|Enh|2007-10-23|JULI: web-inf/classes/logging.properties to suppor| |43742|New|Enh|2007-10-30|.tag compiles performed one at a time -- extremel| |43790|Ass|Enh|2007-11-03|concurrent access issue on TagHandlerPool | |43979|New|Enh|2007-11-27|Add abstraction for Java and Classfile output | |44047|New|Enh|2007-12-10|Provide a way for Tomcat to serve up error pages w| |44106|New|Enh|2007-12-19|autodeploy configures directories which do not con| |44199|New|Enh|2008-01-10|expose current backlog queue size | |44225|New|Enh|2008-01-14|SSL connector tries to load the private keystore f| |44264|New|Enh|2008-01-18|Clustering - Support for disabling multicasting an| |44265|New|Enh|2008-01-18|Improve JspWriterImpl performance with "inline" su| |44284|New|Enh|2008-01-23|Support java.lang.Iterable in c:forEach tag | |44294|New|Enh|2008-01-25|Support for EL functions with varargs | |44299|New|Enh|2008-01-26|Provider manager app with a log out button| |44312|New|Enh|2008-01-28|Warn when overwritting docBase of the default Host| |44409|New|Enh|2008-02-13|Tomcat does not support Windows-My Provider | |44598|New|Enh|2008-03-13|JAASRealm is suppressing Exceptions | |44645|New|Enh|2008-03-20|[Patch] JNDIRealm - Doesn't support JNDI "java.nam| |44787|New|Enh|2008-04-09|provide more error context on "java.lang.IllegalSt| |44818|New|Enh|2008-04-13|tomcat hangs with GET when content-length is defin| |45014|New|Enh|2008-05-15|Request and Response classes should have wrappers | |45255|New|Enh|2008-06-23|support disable jsessionid from url against sessio| |45282|New|Enh|2008-06-25|NioReceiver doesn't close cleanly, leaving sockets| |45283|Opn|Enh|2008-06-25|Allow multiple authenticators to be added to pipel| |45403|New|Nor|2008-07-15|Tomcat does not reload application| |45428|New|Enh|2008-07-18|warn if the tomcat stop doesn't complete | |45654|New|Enh|2008-08-19|use static methods and attributes in a direct way!| |45731|New|Enh|2008-09-02|Enhancement request : pluggable httpsession cache | |45794|New|Enh|2008-09-12|Patch causes JNDIRealm to bind with user entered c| |45832|New|Enh|2008-09-18|add DIGEST authentication support to Ant tasks| |45871|New|Enh|2008-09-23|Support for salted and digested patches in DataSou| |45878|New|Enh|2008-09-24|Generated jars do not contain proper manifests or | |45879|Opn|Enh|2008-09-24|Windows installer fails to install NOTICE and RELE| |45931|
[Tomcat Wiki] Trivial Update of "FAQ/Miscellaneous" by ChuckCaldarale
Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification. The following page has been changed by ChuckCaldarale: http://wiki.apache.org/tomcat/FAQ/Miscellaneous The comment on the change is: Fixing typos. -- 1. [#Q16 Why do I get java.lang.IllegalStateException ?] 1. [#Q17 How do I make a scheduled event on Tomcat?] 1. [#Q18 What is Element "web-app" does not allow "servlet" here?] - 1. [#Q19 How do open a file for reading in my webapp?] + 1. [#Q19 How do I open a file for reading in my webapp?] 1. [#Q20 Can I run tomcat with the JRE, or do I need the full JDK?] 1. [#Q21 Is tomcat an EJB server? Can I use EJBs with tomcat?] 1. [#Q22 Can I access Tomcat's JNDI provider from outside tomcat?] @@ -31, +31 @@ 1. [#Q25 Help! Even though I run shutdown.sh (or shutdown.bat), Tomcat does not stop!] 1. [#Q26 How do I debug JSP errors in the Admin web application?] 1. [#Q27 What order do webapps start (or How can I change startup order)?] - 1. [#Q28 What's the different between a Valve and Filter? + 1. [#Q28 What's the different between a Valve and Filter?] == Answers == [[Anchor(Q1)]]'''I am unable to compile my JSP!''' @@ -252, +252 @@ 6. If you haven't already, define an admin user in %CATALINA_HOME%\conf\tomcat-users.xml. 7. Start Tomcat, navigate to http://localhost:8080 (or your actual server:port if you have modified the default values), and access the admin web application. It will run slower because Tomcat is now compiling the JSPs on-demand the first time you access them, but should otherwise appear normal. - [[Anchor(Q27)]]'''What order do webapps start (or How can I change startup order)?''' + [[Anchor(Q27)]]'''What order do webapps start (or how can I change startup order)?''' There is no expected startup order. Neither the Servlet spec nor Tomcat define one. You can't rely on the apps starting in any particular order. [[Anchor(Q28)]]'''What's the different between a Valve and Filter?''' - A Filter lives in the webapp space and it's behavior is defined by the Servlet spec. It will work across all Servlet containers. + A Filter lives in the webapp space and its behavior is defined by the Servlet spec. It will work across all Servlet containers. A Valve can do everything a Filter can do but is Tomcat specific, and potentially not portable across Tomcat versions. A Valve can be executed earlier in the lifecycle of a request, access Tomcat internals, and do other "interesting" decorations to your webapp in the chance you cannot change your deployed webapp. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: Problem with Tomcat - unable to start webapp
borko1 wrote: > Hello > > Please advice me. I have problem with starting webapp from Web Application > Manager, error: FAIL - Application at context path /webapp1 could not be > started. > > I was successfully uploaded WAR file, do i need to do something else? > > Please help me. > Thanks. This is a question for the users list. Mark - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Problem with Tomcat - unable to start webapp
Hello Please advice me. I have problem with starting webapp from Web Application Manager, error: FAIL - Application at context path /webapp1 could not be started. I was successfully uploaded WAR file, do i need to do something else? Please help me. Thanks. -- View this message in context: http://www.nabble.com/Problem-with-Tomcat---unable-to-start-webapp-tp22898597p22898597.html Sent from the Tomcat - Dev mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
Re: package update for JSP Generator.
Varun Puttewar wrote: > While running the trunk tomcat version, I found out that Java files > generated from the JSP giving error while compiling, > > After going in to sources I found that, fully qualified name for > InstanceManager class was coming out correctly. > > following patch fixes the package name and with it I could execute the JSP > successfully. Thanks. I fixed this and one other location I found. Mark > > Varun > > Index: java/org/apache/jasper/compiler/Generator.java > === > --- java/org/apache/jasper/compiler/Generator.java (revision 762074) > +++ java/org/apache/jasper/compiler/Generator.java (working copy) > @@ -530,7 +530,7 @@ > out.printin("private javax.el.ExpressionFactory "); > out.print(VAR_EXPRESSIONFACTORY); > out.println(";"); > -out.printin("private org.apache.InstanceManager "); > +out.printin("private org.apache.tomcat.InstanceManager "); > out.print(VAR_INSTANCEMANAGER); > out.println(";"); > out.println(); > - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r762133 - in /tomcat/trunk/java/org/apache/jasper: compiler/Generator.java runtime/InstanceManagerFactory.java
Author: markt Date: Sun Apr 5 18:52:31 2009 New Revision: 762133 URL: http://svn.apache.org/viewvc?rev=762133&view=rev Log: Update package name Modified: tomcat/trunk/java/org/apache/jasper/compiler/Generator.java tomcat/trunk/java/org/apache/jasper/runtime/InstanceManagerFactory.java Modified: tomcat/trunk/java/org/apache/jasper/compiler/Generator.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/Generator.java?rev=762133&r1=762132&r2=762133&view=diff == --- tomcat/trunk/java/org/apache/jasper/compiler/Generator.java (original) +++ tomcat/trunk/java/org/apache/jasper/compiler/Generator.java Sun Apr 5 18:52:31 2009 @@ -530,7 +530,7 @@ out.printin("private javax.el.ExpressionFactory "); out.print(VAR_EXPRESSIONFACTORY); out.println(";"); -out.printin("private org.apache.InstanceManager "); +out.printin("private org.apache.tomcat.InstanceManager "); out.print(VAR_INSTANCEMANAGER); out.println(";"); out.println(); Modified: tomcat/trunk/java/org/apache/jasper/runtime/InstanceManagerFactory.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/runtime/InstanceManagerFactory.java?rev=762133&r1=762132&r2=762133&view=diff == --- tomcat/trunk/java/org/apache/jasper/runtime/InstanceManagerFactory.java (original) +++ tomcat/trunk/java/org/apache/jasper/runtime/InstanceManagerFactory.java Sun Apr 5 18:52:31 2009 @@ -36,7 +36,7 @@ InstanceManager instanceManager = (InstanceManager) config.getServletContext().getAttribute(InstanceManager.class.getName()); if (instanceManager == null) { -throw new IllegalStateException("No org.apache.InstanceManager set in ServletContext"); +throw new IllegalStateException("No org.apache.tomcat.InstanceManager set in ServletContext"); } return instanceManager; } - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r762106 - /tomcat/trunk/java/org/apache/tomcat/util/http/MimeMap.java
Author: costin Date: Sun Apr 5 15:29:53 2009 New Revision: 762106 URL: http://svn.apache.org/viewvc?rev=762106&view=rev Log: Added a getter and the css mapping. Modified: tomcat/trunk/java/org/apache/tomcat/util/http/MimeMap.java Modified: tomcat/trunk/java/org/apache/tomcat/util/http/MimeMap.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/MimeMap.java?rev=762106&r1=762105&r2=762106&view=diff == --- tomcat/trunk/java/org/apache/tomcat/util/http/MimeMap.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/http/MimeMap.java Sun Apr 5 15:29:53 2009 @@ -36,6 +36,7 @@ new Hashtable(101); static { defaultMap.put("txt", "text/plain"); +defaultMap.put("css", "text/css"); defaultMap.put("html","text/html"); defaultMap.put("htm", "text/html"); defaultMap.put("gif", "image/gif"); @@ -144,6 +145,10 @@ return map.keys(); } +public String getMimeType(String ext) { +return getContentTypeFor(ext); +} + public String getContentType(String extn) { String type = map.get(extn.toLowerCase()); if(type == null) type = defaultMap.get(extn); - To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org
svn commit: r762105 - in /tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat: servlets/jsp/JasperCompilerTemplateClassMapper.java util/ util/buf/ util/buf/UriNormalizer.java util/http/ util/http/
Author: costin Date: Sun Apr 5 15:28:07 2009 New Revision: 762105 URL: http://svn.apache.org/viewvc?rev=762105&view=rev Log: Files changed/added in tomcat Added: tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/util/ tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/util/buf/ tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/util/buf/UriNormalizer.java (with props) tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/util/http/ tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/util/http/mapper/ tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/util/http/mapper/BaseMapper.java Modified: tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/servlets/jsp/JasperCompilerTemplateClassMapper.java Modified: tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/servlets/jsp/JasperCompilerTemplateClassMapper.java URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/servlets/jsp/JasperCompilerTemplateClassMapper.java?rev=762105&r1=762104&r2=762105&view=diff == --- tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/servlets/jsp/JasperCompilerTemplateClassMapper.java (original) +++ tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/servlets/jsp/JasperCompilerTemplateClassMapper.java Sun Apr 5 15:28:07 2009 @@ -26,7 +26,7 @@ import javax.servlet.ServletContext; import javax.servlet.ServletException; -import org.apache.InstanceManager; +import org.apache.tomcat.InstanceManager; import org.apache.jasper.EmbeddedServletOptions; import org.apache.jasper.JasperException; import org.apache.jasper.JspC; Added: tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/util/buf/UriNormalizer.java URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/util/buf/UriNormalizer.java?rev=762105&view=auto == --- tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/util/buf/UriNormalizer.java (added) +++ tomcat/trunk/modules/tomcat-lite/java/org/apache/tomcat/util/buf/UriNormalizer.java Sun Apr 5 15:28:07 2009 @@ -0,0 +1,161 @@ +/* Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.tomcat.util.buf; + +import java.io.IOException; + +/** + * + */ +public class UriNormalizer { + + +public static void decodeRequest(MessageBytes decodedURI, + MessageBytes requestURI, + UDecoder urlDecoder) throws IOException { + decodedURI.duplicate(requestURI); + + if (decodedURI.getType() == MessageBytes.T_BYTES) { + // %xx decoding of the URL + urlDecoder.convert(decodedURI, false); + // Normalization + if (!normalize(decodedURI)) { + throw new IOException("Error normalizing"); + } + // Character decoding + //convertURI(decodedURI, request); + } else { + // The URL is chars or String, and has been sent using an in-memory + // protocol handler, we have to assume the URL has been properly + // decoded already + decodedURI.toChars(); + } +} + +/** + * Normalize URI. + * + * This method normalizes "\", "//", "/./" and "/../". This method will + * return false when trying to go above the root, or if the URI contains + * a null byte. + * + * @param uriMB URI to be normalized + */ +public static boolean normalize(MessageBytes uriMB) { + +ByteChunk uriBC = uriMB.getByteChunk(); +byte[] b = uriBC.getBytes(); +int start = uriBC.getStart(); +int end = uriBC.getEnd(); + +// URL * is acceptable +if ((end - start == 1) && b[start] == (byte) '*') + return true; + +int pos = 0; +int index = 0; + +// Replace '\' with '/' +// Check for null byte +for (pos = start; pos < end; pos++) { +if (b[pos] == (byte) '\\') +b[pos] = (byte) '/'; +if (b[pos] == (byte) 0) +return
svn commit: r762090 - in /tomcat/trunk/modules/tomcat-lite: build.xml coyote-nio.files examples/ examples/spring/ examples/spring/TomcatSpring.java examples/spring/tomcat-spring.xml
Author: costin Date: Sun Apr 5 14:24:42 2009 New Revision: 762090 URL: http://svn.apache.org/viewvc?rev=762090&view=rev Log: Build and one example of embedding tomcat-lite ( I'll add more when I get time, I only picked spring for its limitations - it's easier to use tomcat-lite in a framework that supports existing-object injection ). Added: tomcat/trunk/modules/tomcat-lite/build.xml (with props) tomcat/trunk/modules/tomcat-lite/coyote-nio.files tomcat/trunk/modules/tomcat-lite/examples/ tomcat/trunk/modules/tomcat-lite/examples/spring/ tomcat/trunk/modules/tomcat-lite/examples/spring/TomcatSpring.java (with props) tomcat/trunk/modules/tomcat-lite/examples/spring/tomcat-spring.xml (with props) Added: tomcat/trunk/modules/tomcat-lite/build.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/tomcat-lite/build.xml?rev=762090&view=auto == --- tomcat/trunk/modules/tomcat-lite/build.xml (added) +++ tomcat/trunk/modules/tomcat-lite/build.xml Sun Apr 5 14:24:42 2009 @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Propchange: tomcat/trunk/modules/tomcat-lite/build.xml -- svn:eol-style = native Added: tomcat/trunk/modules/tomcat-lite/coyote-nio.files URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/tomcat-lite/coyote-nio.files?rev=762090&view=auto == --- tomcat/trunk/modules/tomcat-lite/coyote-nio.files (added) +++ tomcat/trunk/modules/tomcat-lite/coyote-nio.files Sun Apr 5 14:24:42 2009 @@ -0,0 +1,116 @@ +org/apache/coyote/http11/filters/IdentityInputFilter.java +org/apache/coyote/http11/filters/GzipOutputFilter.java +org/apache/coyote/http11/filters/IdentityOutputFilter.java +org/apache/coyote/http11/filters/SavedRequestInputFilter.java +org/apache/coyote/http11/filters/ChunkedInputFilter.java +org/apache/coyote/http11/filters/VoidInputFilter.java +org/apache/coyote/http11/filters/BufferedInputFilter.java +org/apache/coyote/http11/filters/ChunkedOutputFilter.java +org/apache/coyote/http11/filters/VoidOutputFilter.java +org/apache/coyote/http11/filters/GzipInputFilter.java +org/apache/coyote/http11/InputFilter.java +org/apache/coyote/http11/OutputFilter.java +org/apache/coyote/http11/Constants.java +org/apache/coyote/Processor.java +org/apache/coyote/ProtocolHandler.java +org/apache/coyote/Adapter.java +org/apache/coyote/RequestGroupInfo.java +org/apache/coyote/RequestInfo.java +org/apache/coyote/ActionCode.java +org/apache/coyote/Request.java +org/apache/coyote/InputBuffer.java +org/apache/coyote/OutputBuffer.java +org/apache/coyote/Constants.java +org/apache/coyote/ActionHook.java +org/apache/coyote/Response.java +org/apache/juli/logging/Log.java +org/apache/juli/logging/DirectJDKLog.java +org/apache/juli/logging/LogConfigurationException.java +org/apache/juli/logging/LogFactory.java +org/apache/juli/ClassLoaderLogManager.java +org/apache/juli/JdkLoggerFormatter.java +org/apache/juli/FileHandler.java +org/apache/juli/JdkLoggerConfig.java +org/apache/tomcat/util/http/mapper/Mapper.java +org/apache/tomcat/util/http/mapper/MappingData.java +org/apache/tomcat/util/http/mapper/SimpleMapper.java +org/apache/tomcat/util/http/ServerCookie.java +org/apache/tomcat/util/http/AcceptLanguage.java +org/apache/tomcat/util/http/BaseRequest.java +org/apache/tomcat/util/http/MimeHeaders.java +org/apache/tomcat/util/http/Parameters.java +org/apache/tomcat/util/http/FastHttpDateFormat.java +org/apache/tomcat/util/http/MimeMap.java +org/apache/tomcat/util/http/HttpMessages.java +org/apache/tomcat/util/http/ContentType.java +org/apache/tomcat/util/http/Cookies.java +org/apache/tomcat/util/net/URL.java +org/apache/tomcat/util/net/SocketStatus.java +org/apache/tomcat/util/modeler/modules/MbeansDescriptorsSerSource.java +org/apache/tomcat/util/modeler/modules/MbeansSource.java +org/apache/tomcat/util/modeler/modules/MbeansDescriptorsDOMSource.java +o
package update for JSP Generator.
While running the trunk tomcat version, I found out that Java files generated from the JSP giving error while compiling, After going in to sources I found that, fully qualified name for InstanceManager class was coming out correctly. following patch fixes the package name and with it I could execute the JSP successfully. Varun Index: java/org/apache/jasper/compiler/Generator.java === --- java/org/apache/jasper/compiler/Generator.java (revision 762074) +++ java/org/apache/jasper/compiler/Generator.java (working copy) @@ -530,7 +530,7 @@ out.printin("private javax.el.ExpressionFactory "); out.print(VAR_EXPRESSIONFACTORY); out.println(";"); -out.printin("private org.apache.InstanceManager "); +out.printin("private org.apache.tomcat.InstanceManager "); out.print(VAR_INSTANCEMANAGER); out.println(";"); out.println();
DO NOT REPLY [Bug 46958] manager XML interface hard-coded path in XSL transformation
https://issues.apache.org/bugzilla/show_bug.cgi?id=46958 --- Comment #1 from Varun 2009-04-05 05:06:28 PST --- Created an attachment (id=23442) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23442) Patch to fix this bug. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- 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