Re: [ANN] Apache Tomcat 7.0.12 released
Hey Mark, could you upload the maven artifacts to the repository?? Thank you! On Wed, Apr 6, 2011 at 9:51 AM, Mark Thomas ma...@apache.org wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.12. Apache Tomcat 7.0.12 includes bug fixes and the following new features compared to version 7.0.11: * initial support for SPNEGO/Kerberos authentication (also referred to as Windows authentication); * provide a new configuration option to define a close method to call on a JNDI resource when it is no longer required; * optional support for pre-emptive authentication. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-7.0-doc/changelog.html Known issues: * HTTP pipelining is likely to fail with 505 errors with the HTTP BIO connector (bug 50957). The other connectors (HTTP NIO, HTTP APR/native, AJP BIO AJP APR/native) are not affected. Note that this version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for Windows operating systems running on different CPU architectures. Downloads: http://tomcat.apache.org/download-70.cgi Migration guide from Apache Tomcat 5.5.x and 6.0.x: http://tomcat.apache.org/migration.html Thank you, -- The Apache Tomcat Team - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [ANN] Apache Tomcat 7.0.11 released
Hi Mark, could you remember to release the maven artifacts, I've seen the last version released was 7.0.8. Thank you! On Fri, Mar 11, 2011 at 4:59 PM, Mark Thomas ma...@apache.org wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.11 Apache Tomcat 7.0.11 is primarily a security fix release with a small number of additional bug fixes compared to 7.0.10. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-7.0-doc/changelog.html Note that this version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for Windows operating systems running on different CPU architectures. Downloads: http://tomcat.apache.org/download-70.cgi Migration guide from Apache Tomcat 5.5.x and 6.0.x: http://tomcat.apache.org/migration.html Thank you, -- The Apache Tomcat Team - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [ANN] Apache Tomcat 7.0.6 released
Any schedule for the maven artifacts release? Thank you! On Fri, Jan 14, 2011 at 10:21 AM, Pid pids...@apache.org wrote: On 1/14/11 9:15 AM, Mark Thomas wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.6. This is the first stable release of the Tomcat 7 branch. Congrats. :) p Apache Tomcat 7.0.6 contains further performance improvements in session management, a new binary distribution targeted at users embedding Tomcat in other applications and several enhancements to the memory leak detection and prevention features. The 7.0.6 release also contains numerous bug fixes compared to 7.0.5. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-7.0-doc/changelog.html Note that this version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for Windows operating systems running on different CPU architectures. Downloads: http://tomcat.apache.org/download-70.cgi Migration guide from Apache Tomcat 5.5.x and 6.0.x: http://tomcat.apache.org/migration.html Thank you, -- The Apache Tomcat Team - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [ANN] Apache Tomcat 7.0.6 released
Great, thank you! On Mon, Jan 17, 2011 at 7:25 PM, Mark Thomas ma...@apache.org wrote: On 17/01/2011 18:18, David Calavera wrote: Any schedule for the maven artifacts release? I'm running the upload as I type. I'll update the snapshot first and then the release. It'll take a while. Upload is slw. Should be good to go in 24 hours or less. Mark Thank you! On Fri, Jan 14, 2011 at 10:21 AM, Pid pids...@apache.org wrote: On 1/14/11 9:15 AM, Mark Thomas wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.6. This is the first stable release of the Tomcat 7 branch. Congrats. :) p Apache Tomcat 7.0.6 contains further performance improvements in session management, a new binary distribution targeted at users embedding Tomcat in other applications and several enhancements to the memory leak detection and prevention features. The 7.0.6 release also contains numerous bug fixes compared to 7.0.5. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-7.0-doc/changelog.html Note that this version has 4 zip binaries: a generic one and three bundled with Tomcat native binaries for Windows operating systems running on different CPU architectures. Downloads: http://tomcat.apache.org/download-70.cgi Migration guide from Apache Tomcat 5.5.x and 6.0.x: http://tomcat.apache.org/migration.html Thank you, -- The Apache Tomcat Team - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat 7.0 embedded usage
Hi, I don't know if that's your problem but I use the method server.await to allow the server to wait. On Mon, Aug 2, 2010 at 2:32 PM, Marzia Forli marzia.fo...@yahoo.com wrote: Can somebody please help me to setup a hello world example of embedded usage of tomcat 7 with servlet 3.0 support... I have a simple annotated HelloWorld servlet and would like to launch it from my eclipse environment. I have: tomcat-catalina.jar tomcat-servlet-api.jar tomcat-juli.jar tomcat-annotations-api.jar tomcat-api.jar tomcat-util.jar tomcat-coyote.jar on my test classpath which is target/test-classes and have my project on target/classes... I am using latest eclipse, java releases. Below is the code of where I am now... Thanks import java.io.*; import org.apache.catalina.startup.*; public class EmbeddedTomcat { private final Tomcat server; public EmbeddedTomcat (final String host, final int port, final String contextPath, final String... classPaths) { final String tempPath = System.getProperty(java.io.tmpdir); final File tempDirectory = new File(tempPath); System.setProperty(catalina.base, tempDirectory.getAbsolutePath()); final File appBase = new File(tempDirectory, webapps); appBase.mkdir(); server = new Tomcat(); server.setBaseDir(tempDirectory.getAbsolutePath()); server.getHost().setAppBase(appBase.getAbsolutePath()); server.setHostname(host); server.setPort(port); final File appDirectory = new File(target/test-classes, webapps + contextPath); server.addWebapp(null, contextPath, appDirectory.getAbsolutePath()); } public void start () throws Exception { server.start(); } public void stop () throws Exception { server.stop(); } public static void main (final String[] args) { final EmbeddedTomcat container = new EmbeddedTomcat(localhost, 8080, /, target/classes, target/test-classes); try { container.start(); System.in.read(); container.stop(); } catch (final Exception problem) { System.exit(100); } } } - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how to embed tomcat 7
I have a pet project using an embedded tomcat. It's written in ruby but the code is pretty straightforward to follow: http://github.com/calavera/trinidad The class that configures the tomcat instance is this: http://github.com/calavera/trinidad/blob/master/lib/trinidad/server.rb Cheers On Sat, Jul 17, 2010 at 12:51 PM, Mark Thomas ma...@apache.org wrote: On 16/07/2010 22:09, Caldarale, Charles R wrote: From: Ikonne, Ike [mailto:ike_iko...@stercomm.com] Subject: how to embed tomcat 7 can someone point to me on how I could go about embedding Tomcat into my application. I don't think anyone has properly documented how to do this, but the first set of APIs you need are here: http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/startup/Tomcat.html And take a look at the unit tests in Tomcat 7 for numerous examples. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: RabbitMQ-based vcloud session clustering
Please open source it!! I never thought about that solucion but it could be pretty cool and I'll give a try for sure. On Tue, Apr 6, 2010 at 10:42 AM, Pid p...@pidster.com wrote: On 05/04/2010 22:53, Jon Brisbin wrote: Not sure there's anyone besides me on both these lists, but I'm x-posting just to save time. I'm currently working on setting up a RabbitMQ-based session cluster using my own session manager and store. I had to write my own because I couldn't find anything out there that uses JMS or RabbitMQ to do session clustering (which actually surprised me a little) that had the virtual cloud awareness I need. Everything I've read about Tomcat clustering uses the Apache Tribes replication, which doesn't work for me under even moderate load testing (maybe I'm just not doing right...I don't know) or the centralized JDBCStore, which introduces a single point of failure. The basic idea here is to use RabbitMQ as the session clustering back-end and have a user's session available to any server currently subscribed to the clustering queue with no sticky sessions at all. This (cross your fingers) gives me a very, very scalable clustering architecture (my RabbitMQ servers are load-balanced and clustered using VMware vms so I can add capacity at will) that doesn't suffer from the single point of failure of a JDBCStore or the multicast limitations of Apache Tribes. Sessions are also shared across points of responsibility, too, as a single session object can be passed around from code running inside a webapp to code in a command-line client. I wanted my session handling to be a first-class virtual cloud citizen, rather than feel like I'm shoe-horning existing code into what I want to do. I'm almost finished with the heavy lifting. I should have a functioning drop-in manager and store this week, which I'll put on my github account. What I'd like to know is if there's any interest in the community for something like this? If there's no interest, I won't bother writing documentation and what-not. Does this sound like it would interest any other Tomcat/RabbitMQ users? I'm not currently using RabbitMQ (nor do I have any particular plans to) but I am interested in non-multicast clustering solutions, so keep me/us posted, please. p Jon Brisbin Portal Webmaster NPC International, Inc. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where is org.apache.catalina.startup.Tomcat in the 6.0.x branch??
Thank you Mark, then I'll wait to tomcat 7 to upgrade my app, right now my current version works pretty fine and I'm not in a hurry. On Fri, Apr 2, 2010 at 12:18 AM, Mark Thomas ma...@apache.org wrote: On 01/04/2010 18:39, Caldarale, Charles R wrote: From: David Calavera [mailto:david.calav...@gmail.com] Subject: Where is org.apache.catalina.startup.Tomcat in the 6.0.x branch?? I've been using a custom version of Tomcat 6.0.18 that included that class but I can't find any extra jar that contained it for 6.0.x version and I'd like to migrate to 6.0.26 and continuing using it. Let's look at the comments in the source: * Minimal tomcat starter for embedding/unit tests. * * This class provides a main() and few simple CLI arguments, * see setters for doc. It can be used for simple tests and * demo. Doesn't look like it will ever be part of any real Tomcat distribution; trunk appears to be the only place to get it. It will be included in Tomcat 7. There are no plans to back-port it to Tomcat 6. From what I recall from doing this for an internal Tomcat fork at work, it required some API changes that would be a no-no for 6.0.x. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- David Calavera http://www.thinkincode.net
Where is org.apache.catalina.startup.Tomcat in the 6.0.x branch??
Hi, I've been using a custom version of Tomcat 6.0.18 that included that class but I can't find any extra jar that contained it for 6.0.x version and I'd like to migrate to 6.0.26 and continuing using it. I've seen the class is in trunk but it's not in any other branch. Does anyone know if that class is packed in any extra jar or other place? Thank you
Re: Configuring a database connection pool by source
Thank you guys, I don't know why this thread skipped my inbox. I already solved the problem, I loaded the contextFactory but I also had to add the context to the server. This is the source code working: http://github.com/calavera/trinidad-dbpool/blob/master/lib/trinidad_dbpool/webapp_extension.rb On Fri, Mar 26, 2010 at 7:39 PM, Muralidhar Yaragalla yaragallamur...@gmail.com wrote: Hi basically this happens when you don't provide InitialContexFactory to the Initialcontext when creating an InitialContext object. If your code resides inside tomcat you don't need to do this because it knows where its directory service is located. But if you want to connect to directory service from outside tomcat I am not sure whether you can do it or not? If you want to do it there is only one way? Find where the implementation of the factory interface is. It is responsibility of the service provider to provide its implementation. Once you find it create env properties accordingly and pass it to InitialContext constructor while creating object for that. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, March 26, 2010 6:42 PM To: Tomcat Users List Cc: David Calavera Subject: Re: Configuring a database connection pool by source On 24/03/2010 18:39, David Calavera wrote: Hi, I'm working in an application that uses an embedded tomcat and I'd like to add a feature to add a connection pool by source but when I run the server I'm getting this error: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial That sounds like you haven't configued the InitialContext via a suitable Factory. I don't think Tomcat embedded does that automatically*, so you would need to provide it yourself. p * someone will correct me if I'm wrong. I'm using the tomcat jars for the version 6.0.18, and this is how I'm trying to do it: tomcat = new org.apache.catalina.startup.Tomcat() //creates the new server ... // configures the server StandardContext application = tomcat.addWebapp(); //creates the web application ... // configures the web application resource = org.apache.catalina.deploy.ContextResource() // creates the new JNDI resource ... // configures the JNDI resource with the name, type and properties application.getNamingResources().addResource(resource) // adds the resource to the application context tomcat.start() //start tomcat This is more or less the code, seems I'm not configuring anything because without the resource it works fine. Can anyone help me? Thank you - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- David Calavera http://www.thinkincode.net
Configuring a database connection pool by source
Hi, I'm working in an application that uses an embedded tomcat and I'd like to add a feature to add a connection pool by source but when I run the server I'm getting this error: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial I'm using the tomcat jars for the version 6.0.18, and this is how I'm trying to do it: tomcat = new org.apache.catalina.startup.Tomcat() //creates the new server ... // configures the server StandardContext application = tomcat.addWebapp(); //creates the web application ... // configures the web application resource = org.apache.catalina.deploy.ContextResource() // creates the new JNDI resource ... // configures the JNDI resource with the name, type and properties application.getNamingResources().addResource(resource) // adds the resource to the application context tomcat.start() //start tomcat This is more or less the code, seems I'm not configuring anything because without the resource it works fine. Can anyone help me? Thank you
Tomcat-Rails, a pet project to run jruby on rails applications within an embedded tomcat
Hi, I'm working on a little project to use tomcat as server for rails applications without generate a war file. I'm using an embedded tomcat and jruby-rack to wrap requests. I don't know if this could be useful for anyone, currently it's based on my needs, but you can find more info in the project page: http://calavera.github.com/tomcat-rails http://github.com/calavera/tomcat-rails Advice and feedback will be really appreciated. Cheers -- David Calavera http://www.thinkincode.net
Re: Tomcat-Rails, a pet project to run jruby on rails applications within an embedded tomcat
On Mon, Jun 22, 2009 at 4:50 PM, Mark Thomas ma...@apache.org wrote: David Calavera wrote: Hi, I'm working on a little project to use tomcat as server for rails applications without generate a war file. I'm using an embedded tomcat and jruby-rack to wrap requests. I don't know if this could be useful for anyone, currently it's based on my needs, but you can find more info in the project page: http://calavera.github.com/tomcat-rails http://github.com/calavera/tomcat-rails Advice and feedback will be really appreciated. You should read http://tomcat.apache.org/legal.html, particularly the parts related to trademarks and naming. Yep, I already added the asf license and all that stuff but I have to submitted. If you haven't already found it, this class (from sandbox/trunk) is quite useful when you start embedding Apache Tomcat. http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java I'm using it, it was really useful, one code line to config all the server classes instead of hundred XD. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- David Calavera http://www.thinkincode.net
Re: Tomcat-Rails, a pet project to run jruby on rails applications within an embedded tomcat
On Mon, Jun 22, 2009 at 4:52 PM, Martin Gainty mgai...@hotmail.com wrote: Hi David- can you use CGIServlet to accomplish the ror? rails doesn't work pretty well with cgi, they are using rack, that's an implementation of python's wsgi in ruby. thanks, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: david.calav...@gmail.com Date: Mon, 22 Jun 2009 16:36:46 +0200 Subject: Tomcat-Rails, a pet project to run jruby on rails applications withinan embedded tomcat To: users@tomcat.apache.org Hi, I'm working on a little project to use tomcat as server for rails applications without generate a war file. I'm using an embedded tomcat and jruby-rack to wrap requests. I don't know if this could be useful for anyone, currently it's based on my needs, but you can find more info in the project page: http://calavera.github.com/tomcat-rails http://github.com/calavera/tomcat-rails Advice and feedback will be really appreciated. Cheers -- David Calavera http://www.thinkincode.net _ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009 -- David Calavera http://www.thinkincode.net