Re: Custom Compoents
It depends what you mean by custom components. Tomcat is servlet and JSP container so much of your code can be written to the spec and be portable to any servlet container. But there items not addressed by the specs or purposefuly left out. In those cases, you need to write tomcat specific code. Start with the FAQ. http://jakarta.apache.org/tomcat/faq/ -Tim Sreejith wrote: Hi all, I am fairly new to TC. Can any body tell how to develop and deploy custom components in Tomcat. TIA Sreejith. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom Compoents
Tim, Thanks for the reply. I am looking for some thing simlar to Jakarta Avalon in Tomcat, a component container which can manage the lifecycle and component lookup. For eg, I would write a subscriber manager component and configure it in server.xml. I expect TC to load, intialize and start the module. Also from the servlet/JSP these component instance should be accessible. Any pointer on how to implement this would be greatly appreciated. TIA Sreejith -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 5:47 PM To: Tomcat Developers List Subject: Re: Custom Compoents It depends what you mean by custom components. Tomcat is servlet and JSP container so much of your code can be written to the spec and be portable to any servlet container. But there items not addressed by the specs or purposefuly left out. In those cases, you need to write tomcat specific code. Start with the FAQ. http://jakarta.apache.org/tomcat/faq/ -Tim Sreejith wrote: Hi all, I am fairly new to TC. Can any body tell how to develop and deploy custom components in Tomcat. TIA Sreejith. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom Compoents
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html#Install%20A%20New%20Application Regards, M - Original Message - From: Sreejith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 20, 2003 12:03 AM Subject: Custom Compoents Hi all, I am fairly new to TC. Can any body tell how to develop and deploy custom components in Tomcat. TIA Sreejith. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TC5 Adding service.bat
Hi, Can we add some batch file to the TC5 installation that will enable users to easily install the TC5 as service without the need to download the .exe installer. Since the procrun is invoked from nsi installation script, making something like that would be quite simple. I even volunteer to make the job. Something like service.bat with optional 'delete' argument that will remove the service from the system or install by default. How that sounds? MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC5 Adding service.bat
I know Startup and Shutdown have been covered ad nausaeum Start tomcat with Ant build.xml target name=start exec executable=${tomcat.home}/bin/startup.bat os=Windows 2000 / /target It should work. To stop the server with Ant build.xml target name=stop exec executable=${tomcat.home}/bin/shutdown.bat os=Windows 2000 / /target The thing is once Tomcat is installed either as console or as a service would you want operators to 'easily' uninstall it? Installing/Uninstalling Tomcat is a painful in most shops with the side-effect that Tomcat has a tendency to 'stay put' once the install is declared stable. I can see 'hot deploy' as a better use of a developer's time..ie installing non-core pieces while Tomcat is running with a cache refresh picking up the new pieces (components) at a later time.. Something to think about.. Martin - Original Message - From: Mladen Turk [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Saturday, December 20, 2003 1:27 PM Subject: TC5 Adding service.bat Hi, Can we add some batch file to the TC5 installation that will enable users to easily install the TC5 as service without the need to download the .exe installer. Since the procrun is invoked from nsi installation script, making something like that would be quite simple. I even volunteer to make the job. Something like service.bat with optional 'delete' argument that will remove the service from the system or install by default. How that sounds? MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 25676] New: - Why the session is invalidaed?
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=25676. 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=25676 Why the session is invalidaed? Summary: Why the session is invalidaed? Product: Tomcat 5 Version: 5.0.16 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: Servlet JSP API AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have two web application,one name is /one and other is /two. Now,one servlet named test0 in /one will request the servlet named test2 in /two,the code is : ServletContext sc = request.getSession().getServletContext().getContext(/two); sc.getRequestDispatcher(/test2).forward(request,response); and there are codes in servlet test2 : request.getSession().isNew(); then this code throw an Exception:session is invalidated.I'd like to know the exception is right? If it is right,but the same code worked well in Tomcat4.1.12-LE-jdk1.4. Maybe it is a bug! Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC5 Adding service.bat
- Original Message - From: Mladen Turk [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Saturday, December 20, 2003 10:27 AM Subject: TC5 Adding service.bat Hi, Can we add some batch file to the TC5 installation that will enable users to easily install the TC5 as service without the need to download the .exe installer. Since the procrun is invoked from nsi installation script, making something like that would be quite simple. I even volunteer to make the job. Something like service.bat with optional 'delete' argument that will remove the service from the system or install by default. How that sounds? +1 Whenever I install something under procrun, I always do it from a .bat file. It seems that there are a fair number of people on the user list that would want this feature as well. Since the //DS// option simply removes the service, but leaves Tomcat fully functional, I see no reason to add the 'delete' option as well. MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is intended only for the use of the person(s) listed above as the intended recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you may not read, copy, or distribute this message or any attachment. If you received this communication in error, please notify us immediately by e-mail and then delete all copies of this message and any attachments. In addition you should be aware that ordinary (unencrypted) e-mail sent through the Internet is not secure. Do not send confidential or sensitive information, such as social security numbers, account numbers, personal identification numbers and passwords, to us via ordinary (unencrypted) e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 15555] - Setting cookie=false appears to still use cookies.
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=1. 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=1 Setting cookie=false appears to still use cookies. [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID | --- Additional Comments From [EMAIL PROTECTED] 2003-12-20 22:19 --- Yes, I read your request to not reopen the bug. But please take a look at the current documentation of attribute cookies: This is from Tomcat4/Tomcat 5 documentation: 'Set to true if you want cookies to be used for session identifier communication if supported by the client (this is the default). Set to false if you want to disable the use of cookies for session identifier communication, and rely only on URL rewriting by the application.' IMO the documentation doesn't let any room for interpretation. Either it is a bug in tomcat or the documentation is completely misleading. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 8607] - Valid User, invalid role, results in msg 403, then incorrect operation
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=8607. 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=8607 Valid User, invalid role, results in msg 403, then incorrect operation [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2003-12-20 22:35 --- This behaviour is as per the spec. The 403 is the correct response to a valid user that is not authorised to access the requested resource. Once a valid user has logged in, they stay logged in until the sesison ends (timeout or the browser is closed). Trying to access the login page directly is not an accepted way of trying to changing the current user (or even to login in the first place) and therefore results in the 404. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 25676] - Why the session is invalidaed?
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=25676. 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=25676 Why the session is invalidaed? --- Additional Comments From [EMAIL PROTECTED] 2003-12-20 22:46 --- Please submit a test case. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup DigesterFactory.java TldConfig.java ContextConfig.java
remm2003/12/20 15:04:02 Modified:catalina/src/share/org/apache/catalina/core StandardServer.java catalina/src/share/org/apache/catalina/ant ValidatorTask.java catalina/src/share/org/apache/catalina/valves JDBCAccessLogValve.java catalina/src/share/org/apache/catalina/startup DigesterFactory.java TldConfig.java ContextConfig.java Log: - Remove imports. Revision ChangesPath 1.24 +4 -5 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardServer.java Index: StandardServer.java === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardServer.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- StandardServer.java 3 Dec 2003 18:53:15 - 1.23 +++ StandardServer.java 20 Dec 2003 23:04:02 - 1.24 @@ -71,7 +71,6 @@ import java.beans.PropertyDescriptor; import java.io.File; import java.io.FileOutputStream; -import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStreamWriter; 1.6 +4 -5 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ant/ValidatorTask.java Index: ValidatorTask.java === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ant/ValidatorTask.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ValidatorTask.java19 Dec 2003 16:45:11 - 1.5 +++ ValidatorTask.java20 Dec 2003 23:04:02 - 1.6 @@ -68,7 +68,6 @@ import java.io.FileInputStream; import java.io.InputStream; -import org.apache.catalina.core.StandardContext; import org.apache.catalina.startup.Constants; import org.apache.catalina.startup.DigesterFactory; import org.apache.commons.digester.Digester; 1.4 +0 -1 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/JDBCAccessLogValve.java Index: JDBCAccessLogValve.java === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/JDBCAccessLogValve.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- JDBCAccessLogValve.java 19 Nov 2003 23:56:14 - 1.3 +++ JDBCAccessLogValve.java 20 Dec 2003 23:04:02 - 1.4 @@ -64,7 +64,6 @@ import java.io.IOException; import java.sql.Connection; import java.sql.Driver; -import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Timestamp; 1.2 +0 -2 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/DigesterFactory.java Index: DigesterFactory.java === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/DigesterFactory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- DigesterFactory.java 27 Oct 2003 20:48:59 - 1.1 +++ DigesterFactory.java 20 Dec 2003 23:04:02 - 1.2 @@ -65,10 +65,8 @@ import javax.xml.parsers.ParserConfigurationException; import org.apache.catalina.util.SchemaResolver; -import org.apache.catalina.util.StringManager; import org.apache.commons.digester.Digester; import org.apache.commons.digester.RuleSet; -import org.xml.sax.InputSource; import org.xml.sax.SAXNotRecognizedException; import org.xml.sax.SAXNotSupportedException; 1.34 +0 -1 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/TldConfig.java Index: TldConfig.java === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/TldConfig.java,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- TldConfig.java27 Oct 2003 20:48:59 - 1.33 +++ TldConfig.java20 Dec 2003 23:04:02 - 1.34 @@ -90,7 +90,6 @@ import org.apache.catalina.Context; import org.apache.catalina.Globals; import org.apache.catalina.core.StandardContext; -import org.apache.catalina.util.SchemaResolver; import org.apache.catalina.util.StringManager; import org.apache.commons.digester.Digester; import org.xml.sax.InputSource; 1.39 +1 -2 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/ContextConfig.java Index: ContextConfig.java
cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper JspC.java
remm2003/12/20 15:04:23 Modified:jasper2/src/share/org/apache/jasper/runtime PerThreadTagHandlerPool.java jasper2/src/share/org/apache/jasper JspC.java Log: - Remove imports. Revision ChangesPath 1.5 +3 -4 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PerThreadTagHandlerPool.java Index: PerThreadTagHandlerPool.java === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PerThreadTagHandlerPool.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- PerThreadTagHandlerPool.java 25 Nov 2003 18:05:06 - 1.4 +++ PerThreadTagHandlerPool.java 20 Dec 2003 23:04:23 - 1.5 @@ -62,7 +62,6 @@ package org.apache.jasper.runtime; import java.util.Enumeration; -import java.util.Hashtable; import java.util.Vector; import javax.servlet.ServletConfig; 1.63 +3 -5 jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java Index: JspC.java === RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspC.java,v retrieving revision 1.62 retrieving revision 1.63 diff -u -r1.62 -r1.63 --- JspC.java 5 Dec 2003 02:29:47 - 1.62 +++ JspC.java 20 Dec 2003 23:04:23 - 1.63 @@ -81,8 +81,6 @@ import java.util.StringTokenizer; import java.util.Vector; -import javax.servlet.ServletException; - import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.jasper.compiler.Compiler; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]