Re: providing downloading functionality for a file which is on disk
you can. for instance, File file = new File(C:\\temp\\downloadfilename.csv); FileInputStream fileIn = new FileInputStream(file); ServletOutputStream out = response.getOutputStream(); byte[] outputByte = new byte[4096]; //copy binary contect to output stream while(fileIn.read(outputByte, 0, 4096) != -1) { out.write(outputByte, 0, 4096); } fileIn.close(); On Tue, Jul 21, 2009 at 2:54 PM, Ritesh399 ritesh...@gmail.com wrote: Hi all I am developing a web application using jsp and want to provide some links for a user to download data. The data is not in web application's directory(somewhere else on disk) Can I provide a direct link to that data file ? Thanks Ritesh -- View this message in context: http://www.nabble.com/providing-downloading-functionality-for-a-file-which-is-on-disk-tp24582115p24582115.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Context.xml not updating dataSource
On Monday 20 July 2009 17:08:15 Mike Frohme wrote: Edit the copy of the context.xml file and all will work as you expect. 1. In production, the operations folks don't have to unpack the app, edit the context file and re-pack the app to edit the configuration. 2. When a new version of the app is installed, the environment specific configuration isn't lost. If you want to remove the old configuration, undeploy the app first which will remove the old configuration file. A an aside, wouldn't it be nice if it were configurable whether tomcat copies the context.xml to $CATALINA_BASE/conf? Then administrators could decide to never have local configuration and always rely on the config within the war? Sorry for the late reply, Rainer. There is, in principle. Set deployXML to false in the Host declaration in your server.xml and it will do exactly what you want. On the flip side, tomcat will remove the configuration when the app is undeployed, so you need a little care in your deployment process. Thanks for the response. Actually, doesn't this do the exact oposite of what I want? What I want (as option): I know that developer/packager did it right and I never want to have local configuration. Always use the context.xml within the currently deployed application, updated every time I redeploy the app. deployXML=false seems to do: Never trust the developer, don't even copy their context configuration to local configuration if there is no local one yet. Only use a configuration I manually put on the server. Could anyone please comment whether I understand that right? Mike Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: RMI call fails when URL contain spaces
And anyway, paths containing spaces are evil and should be proscribed. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Configuring worker MPM for Tomcat
Anand Kumar Prabhakar wrote: Could anyone please explain how to configure worker MPM for Tomcat, I'm using Tomcat 6.0.20 version. I think you are a bit confused. worker MPM is something related to Apache httpd, which is a different software than Apache Tomcat. Unless you are talking about proxying requests from Apache httpd to Tomcat ? But then maybe you should explain where your problem is. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Context.xml not updating dataSource
Rainer Frey wrote: On Monday 20 July 2009 17:08:15 Mike Frohme wrote: Edit the copy of the context.xml file and all will work as you expect. 1. In production, the operations folks don't have to unpack the app, edit the context file and re-pack the app to edit the configuration. 2. When a new version of the app is installed, the environment specific configuration isn't lost. If you want to remove the old configuration, undeploy the app first which will remove the old configuration file. A an aside, wouldn't it be nice if it were configurable whether tomcat copies the context.xml to $CATALINA_BASE/conf? Then administrators could decide to never have local configuration and always rely on the config within the war? Sorry for the late reply, Rainer. There is, in principle. Set deployXML to false in the Host declaration in your server.xml and it will do exactly what you want. On the flip side, tomcat will remove the configuration when the app is undeployed, so you need a little care in your deployment process. Thanks for the response. Actually, doesn't this do the exact oposite of what I want? What I want (as option): I know that developer/packager did it right and I never want to have local configuration. Always use the context.xml within the currently deployed application, updated every time I redeploy the app. deployXML=false seems to do: Never trust the developer, don't even copy their context configuration to local configuration if there is no local one yet. Only use a configuration I manually put on the server. Could anyone please comment whether I understand that right? You do. In which case, undeploy your application before you deploy the new version and Tomcat will remove the copied context.xml as part of the undeployment. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Unable to run web services in Apachee Tomcat
Hi, I'm currently is trying to develop the web services and been trying what is the best method to implement it. Currently, I'm using the Netbean IDE6.7. I download the full version of Netbean IDE with GlassFish web server and Tomcat web server application. I try to follow the steps in : http://www.netbeans.org/kb/docs/websvc/gs-axis.html#setup But, I got a problem to setup the Axis2 for Tomcat. I cannot found the CATALINA_BASE folder in the Tomcat folder. That is why, when try to test the browser, I found an error: Unable to open the web service. -- View this message in context: http://www.nabble.com/Unable-to-run-web-services-in-Apachee-Tomcat-tp24583784p24583784.html Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: Unable to run web services in Apachee Tomcat
Hi 17101978. ... But, I got a problem to setup the Axis2 for Tomcat. I cannot found the CATALINA_BASE folder in the Tomcat folder. That is why, when try to test the browser, I found an error: Unable to open the web service. I doubt that it is why, but it may help to read the following documents, in order to understand the meaning of CATALINA_BASE, CATALINA_HOME, etc.. http://tomcat.apache.org/tomcat-6.0-doc/index.html Start with 1. Introduction - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Configuring worker MPM for Tomcat
Thank you for the reply. I'm going to use the worket MPM for the first time. And the server for which i'm trying to achieve it is in Tomcat. So it will helpful if the steps to configure the worker MPM. If i'm using Tomcat is this not possible? Anand Kumar Prabhakar wrote: Could anyone please explain how to configure worker MPM for Tomcat, I'm using Tomcat 6.0.20 version. -- View this message in context: http://www.nabble.com/Configuring-worker-MPM-for-Tomcat-tp24582105p24584599.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Configuring worker MPM for Tomcat
I'm trying to configure worker MPM for the first time. So i need the steps to configure them. Can't we implement worker MPM in tomcat server? -- View this message in context: http://www.nabble.com/Configuring-worker-MPM-for-Tomcat-tp24582105p24584637.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Configuring worker MPM for Tomcat
Anand Kumar Prabhakar wrote: I'm trying to configure worker MPM for the first time. So i need the steps to configure them. Can't we implement worker MPM in tomcat server? Go and read Andre's reply again. Then look at: http://httpd.apache.org/ and http:/tomcat.apache.org/ What you are currently asking for just isn't possible. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: providing downloading functionality for a file which is on disk
I don't have a linux at hand to prove this idea: if you're deploy your app in linux ,maybe you can use a soft link to that directory ,and put the link under your webapp's dir. hope that will help. thanks. lanxiazhi 2009/7/21 Kham Mulman kmul...@gmail.com you can. for instance, File file = new File(C:\\temp\\downloadfilename.csv); FileInputStream fileIn = new FileInputStream(file); ServletOutputStream out = response.getOutputStream(); byte[] outputByte = new byte[4096]; //copy binary contect to output stream while(fileIn.read(outputByte, 0, 4096) != -1) { out.write(outputByte, 0, 4096); } fileIn.close(); On Tue, Jul 21, 2009 at 2:54 PM, Ritesh399 ritesh...@gmail.com wrote: Hi all I am developing a web application using jsp and want to provide some links for a user to download data. The data is not in web application's directory(somewhere else on disk) Can I provide a direct link to that data file ? Thanks Ritesh -- View this message in context: http://www.nabble.com/providing-downloading-functionality-for-a-file-which-is-on-disk-tp24582115p24582115.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: net stop tomcat6 service hangs on Windows 2008 (64-bit)
I don't have a shutdown.bat or .cmd anywhere in C:\Program Files\Apache Software Foundation. No indication in logs of an OOM situation. I'm going to write a small batch file that attempts to stop the service, sleeps, queries the service state with SC, and if required kills the process. Thanks for all the responses. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: net stop tomcat6 service hangs on Windows 2008 (64-bit)
From: Matt Sullivan [mailto:mjdsulli...@hotmail.com] Subject: RE: net stop tomcat6 service hangs on Windows 2008 (64-bit) I don't have a shutdown.bat or .cmd anywhere in C:\Program Files\ Apache Software Foundation. For reasons never explained, the .bat scripts are not included in the .exe download; they are in the .zip and tarballs. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: providing downloading functionality for a file which is on disk
From: Ritesh399 [mailto:ritesh...@gmail.com] Subject: providing downloading functionality for a file which is on disk I am developing a web application using jsp and want to provide some links for a user to download data. The data is not in web application's directory(somewhere else on disk) If you don't mind providing direct access to the downloadable area, one easy way to provide this is to place a Context element in conf/Catalina/[host]/[dlink].xml, where [dlink] is the URL link you want for the downloadable files. Within the Context element, place a docBase attribute that points to the directory that downloads occur from. No programming required. For example, if using the default Host element and the downloadable files are in /usr/myName/downloads and you want the URL pattern for accessing these to be http://myhost.com/files/*.*, your Context element would look like this: Context docBase=/usr/myName/downloads/ and it would be placed in conf/Catalina/localhost/files.xml. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
very thorough analysis hopefully quick question on location of mysql libraries Tomcat managed database connections: Requires the MySQL connectors to be in $CATALINA_HOME/lib Hibernate managed database connections: Based on the above, you'll need to place the MySQL connection jar in your WEB-INF/lib directory. any reason why Tomcat managed DB connection would not read mysql jars located in WEB-INF/lib? thanks again Martin Gainty __ 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. Date: Mon, 20 Jul 2009 19:56:32 -0700 From: its_toas...@yahoo.com Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver To: users@tomcat.apache.org --- On Mon, 7/20/09, David Smith d...@cornell.edu wrote: From: David Smith d...@cornell.edu Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver To: Tomcat Users List users@tomcat.apache.org Date: Monday, July 20, 2009, 6:16 PM Caldarale, Charles R wrote: From: David Smith [mailto:d...@cornell.edu] Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver This configuration is using a tomcat managed database pool. Put your mysql jar file in tomcat's lib folder and you'll see the error go away. But the stated intent is to use C3P0 pooling, rather than Tomcat's pooling; in that case, the Resource element must be removed and instead configured via whatever mechanism C3P0 wants. Can't have both. - Chuck No argument here. I'm just diagnosing the current issue. If the OP wants help with C3PO, that should be the configuration we are given. --David Late to the thread, and this is probably overkill. This is my understanding concerning how the Tomcat / Hibernate / database environment works. Your mileage may vary, and I will probably be corrected by some people on the list. Please note that I've only used Tomcat managed database pooling. Tomcat Managed Database Pooling === Anyway, here is my environment. OS - Fedora 10 === jdk/jre - 1.6.0_14 Tomcat- 6.0.20 MySQL - 5.0.77-1 IDE - NetBeans 6.7 Hibernate - 3.2.5.ga (provided with NetBeans) OS- Windows/XP Professional SP 3 === jdk/jre - 1.6.0_14 Tomcat- 6.0.20 MySQL - 5.1.31 IDE - NetBeans 6.7 Hibernate - 3.2.5.ga (provided with NetBeans) I've chosen to use Tomcat's database pooling for the NetBeans DVD Store tutorial sample application. This necessitates several changes in how the application is configured. Basics == 1. Per Tomcat documentation, I've placed mysql-connector-java-5.0.8-bin.jar in Tomcat's lib directory. This makes it available to Tomcat in order to set up database pooling 2. All Hibernate jars are located in WEB-INF/lib. NetBeans builds the war file correctly, so I don't have to copy any jar files around. Web Application === This also follows the Tomcat documentation for creating Tomcat-managed connection pooling. 1. In META-INF/context.xml: ?xml version=1.0 encoding=UTF-8? Context antiJARLocking=true path=/DVDStore Resource auth=Container driverClassName=com.mysql.jdbc.Driver maxActive=30 maxIdle=10 maxWait=1 name=jdbc/sakila password=* type=javax.sql.DataSource url=jdbc:mysql://localhost/sakila username=*/ /Context Obviously, replace the asterisks with the appropriate username and password. Replace the database url with your appropriate database. 2. In WEB-INF/web.xml: resource-ref descriptionThis is a MySQL database connection/description res-ref-namejdbc/sakila/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth
Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Take a look at http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html. Then consider that tomcat's database pooling is instantiated in tomcat's internal classes which do not have access to any webapp's WEB-INF/lib folder. The driver has to be visible to both tomcat's internal classes and the individual webapps, so it's best placed in tomcat's lib folder (or common/lib for older versions of tomcat). --David Martin Gainty wrote: very thorough analysis hopefully quick question on location of mysql libraries Tomcat managed database connections: Requires the MySQL connectors to be in $CATALINA_HOME/lib Hibernate managed database connections: Based on the above, you'll need to place the MySQL connection jar in your WEB-INF/lib directory. any reason why Tomcat managed DB connection would not read mysql jars located in WEB-INF/lib? thanks again Martin Gainty __ 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. Date: Mon, 20 Jul 2009 19:56:32 -0700 From: its_toas...@yahoo.com Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver To: users@tomcat.apache.org --- On Mon, 7/20/09, David Smith d...@cornell.edu wrote: From: David Smith d...@cornell.edu Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver To: Tomcat Users List users@tomcat.apache.org Date: Monday, July 20, 2009, 6:16 PM Caldarale, Charles R wrote: From: David Smith [mailto:d...@cornell.edu] Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver This configuration is using a tomcat managed database pool. Put your mysql jar file in tomcat's lib folder and you'll see the error go away. But the stated intent is to use C3P0 pooling, rather than Tomcat's pooling; in that case, the Resource element must be removed and instead configured via whatever mechanism C3P0 wants. Can't have both. - Chuck No argument here. I'm just diagnosing the current issue. If the OP wants help with C3PO, that should be the configuration we are given. --David Late to the thread, and this is probably overkill. This is my understanding concerning how the Tomcat / Hibernate / database environment works. Your mileage may vary, and I will probably be corrected by some people on the list. Please note that I've only used Tomcat managed database pooling. Tomcat Managed Database Pooling === Anyway, here is my environment. OS - Fedora 10 === jdk/jre - 1.6.0_14 Tomcat- 6.0.20 MySQL - 5.0.77-1 IDE - NetBeans 6.7 Hibernate - 3.2.5.ga (provided with NetBeans) OS- Windows/XP Professional SP 3 === jdk/jre - 1.6.0_14 Tomcat- 6.0.20 MySQL - 5.1.31 IDE - NetBeans 6.7 Hibernate - 3.2.5.ga (provided with NetBeans) I've chosen to use Tomcat's database pooling for the NetBeans DVD Store tutorial sample application. This necessitates several changes in how the application is configured. Basics == 1. Per Tomcat documentation, I've placed mysql-connector-java-5.0.8-bin.jar in Tomcat's lib directory. This makes it available to Tomcat in order to set up database pooling 2. All Hibernate jars are located in WEB-INF/lib. NetBeans builds the war file correctly, so I don't have to copy any jar files around. Web Application === This also follows the Tomcat documentation for creating Tomcat-managed connection pooling. 1. In META-INF/context.xml: ?xml version=1.0 encoding=UTF-8? Context antiJARLocking=true path=/DVDStore Resource auth=Container driverClassName=com.mysql.jdbc.Driver maxActive=30 maxIdle=10 maxWait=1 name=jdbc/sakila
RE: Seeking the right solution to java.lang.ClassNotFoundException:com.mysql.jdbc.Driver
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: Seeking the right solution to java.lang.ClassNotFoundException:com.mysql.jdbc.Driver any reason why Tomcat managed DB connection would not read mysql jars located in WEB-INF/lib? The Tomcat-provided DBCP classes can't see anything in WEB-INF/lib, since the Tomcat classes are handled by the common classloader, which does not look downward: Bootstrap | System | Common / \ Webapp1 Webapp2 ... I think it would be possible to modify Tomcat's DBCP handler to make use of the webapp's classloader, but it would be tricky to avoid hanging onto references to that classloader and resulting PermGen exhaustion after some number of webapp reloads. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Issues running 2 versions of tomcat?
I have a server, running Tomcat 5 with Java 4, and running Tomcat 6 with Java 6. There is another application that is an XMLRPC server on ports 8085-8100 The XMLRPC service is running on Tomcat 5, and a struts 2 application is running on Tomcat 6. I have verified that there are no common ports listed for the 3 sets of ports (2 x server.xml, and the config for the rpc). Can anyone explain why the 8085-8100 ports might go haywire every now and then? The app works fine with Tomcat 6 shutdown, but when Tomcat 6 starts, there are anomalies. I've verified the correct JVMs are starting the correct Tomcat versions, etc. Anywhere else I might find a clue? Thanks, Mike. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
this is good information many thanks for the link Martin Gainty __ 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. Date: Tue, 21 Jul 2009 10:54:09 -0400 From: d...@cornell.edu To: users@tomcat.apache.org Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver Take a look at http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html. Then consider that tomcat's database pooling is instantiated in tomcat's internal classes which do not have access to any webapp's WEB-INF/lib folder. The driver has to be visible to both tomcat's internal classes and the individual webapps, so it's best placed in tomcat's lib folder (or common/lib for older versions of tomcat). --David Martin Gainty wrote: very thorough analysis hopefully quick question on location of mysql libraries Tomcat managed database connections: Requires the MySQL connectors to be in $CATALINA_HOME/lib Hibernate managed database connections: Based on the above, you'll need to place the MySQL connection jar in your WEB-INF/lib directory. any reason why Tomcat managed DB connection would not read mysql jars located in WEB-INF/lib? thanks again Martin Gainty __ 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. Date: Mon, 20 Jul 2009 19:56:32 -0700 From: its_toas...@yahoo.com Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver To: users@tomcat.apache.org --- On Mon, 7/20/09, David Smith d...@cornell.edu wrote: From: David Smith d...@cornell.edu Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver To: Tomcat Users List users@tomcat.apache.org Date: Monday, July 20, 2009, 6:16 PM Caldarale, Charles R wrote: From: David Smith [mailto:d...@cornell.edu] Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver This configuration is using a tomcat managed database pool. Put your mysql jar file in tomcat's lib folder and you'll see the error go away. But the stated intent is to use C3P0 pooling, rather than Tomcat's pooling; in that case, the Resource element must be removed and instead configured via whatever mechanism C3P0 wants. Can't have both. - Chuck No argument here. I'm just diagnosing the current issue. If the OP wants help with C3PO, that should be the configuration we are given. --David Late to the thread, and this is probably overkill. This is my understanding concerning how the Tomcat / Hibernate / database environment works. Your mileage may vary, and I will probably be corrected by some people on the list. Please note that I've only used Tomcat managed database pooling. Tomcat Managed Database Pooling === Anyway, here is my
Wrong SessionID
Hello, our tomcat servers seem to produce very sporadically a wrong JsessionID - instead of 58EB1F9C39278DBB72528A13EF026EFB.bsp01 we get (J2EE13679500)ID0574993050DB11991779031281660559End (without a dot-jvmroute) so we lose stickyness and our session. Our environment (Hardware Loadbalancer - 2 Apache Servers - 2 Tomcat Servers): Solaris 10 8/07 Apache/2.2.6 with mod_proxy_ajp, mod_proxy_balancer, ... Tomcat 5.5.23 with JDK 1.5.0_12-b04 Does anybody have an idea? Thanks and Regards Uwe - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: providing downloading functionality for a file which is on disk
Caldarale, Charles R schrieb: If you don't mind providing direct access to the downloadable area, one easy way to provide this is to place a Context element in conf/Catalina/[host]/[dlink].xml, where [dlink] is the URL link you want for the downloadable files. Within the Context element, place a docBase attribute that points to the directory that downloads occur from. No programming required. Context docBase=/usr/myName/downloads/ and it would be placed in conf/Catalina/localhost/files.xml. That's convenient. I tried including an additional Context file named import.xml with an unrelated web-app, thinking that by some chance it might result in a second context being configured. Context path=import docBase=C:\MILU\data\ASV-DS/ (I'm aware you should never set either @path or @docBase on META-INF/context.xml as they are inferred, but the above was meant for a different context needing these parameters.) -- M:\WORKSPACE\XPGJ\WEBCONTENT │ ├───META-INF │ context.xml │ import.xml │ MANIFEST.MF │ └───WEB-INF │ web.xml -- As I suspected, no second context gets configured. Is there a way of including a second context with a web application in a similarly convenient way? Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Context.xml not updating dataSource
Sorry, Rainer - I didn't read your msg carefully, and Mark's word is right on. Others will clarify, but as I understand it ... The default Host attribute is deployXML true which means that the context.xml is deployed to conf/[engine]/[host]/appname.xml on application deployment, and undeployed appropriately. Mark's comment to undeploy your application before you deploy the new version and Tomcat will remove the copied context.xml as part of the undeployment. is important - you may find that you are using an old context.xml if the app is not undeployed cleanly - that may have led to your original comment, I don't recall. If deployXML is false, your infrastructure team, or container/instance owner is responsible for maintaining resource contexts on applications' behalf - the case where backend security is a little more an issue, or the developer doesn't really know best. Undeploying the application in this case *removes* the conf/[engine]/[host]/appname.xml, requiring manual/process intervention to restore it. Apologies for the confusion. -- Mike -Original Message- From: Rainer Frey [mailto:rainer.f...@inxmail.de] Sent: Tuesday, July 21, 2009 2:40 AM To: Tomcat Users List Subject: Re: Context.xml not updating dataSource On Monday 20 July 2009 17:08:15 Mike Frohme wrote: Edit the copy of the context.xml file and all will work as you expect. 1. In production, the operations folks don't have to unpack the app, edit the context file and re-pack the app to edit the configuration. 2. When a new version of the app is installed, the environment specific configuration isn't lost. If you want to remove the old configuration, undeploy the app first which will remove the old configuration file. A an aside, wouldn't it be nice if it were configurable whether tomcat copies the context.xml to $CATALINA_BASE/conf? Then administrators could decide to never have local configuration and always rely on the config within the war? Sorry for the late reply, Rainer. There is, in principle. Set deployXML to false in the Host declaration in your server.xml and it will do exactly what you want. On the flip side, tomcat will remove the configuration when the app is undeployed, so you need a little care in your deployment process. Thanks for the response. Actually, doesn't this do the exact oposite of what I want? What I want (as option): I know that developer/packager did it right and I never want to have local configuration. Always use the context.xml within the currently deployed application, updated every time I redeploy the app. deployXML=false seems to do: Never trust the developer, don't even copy their context configuration to local configuration if there is no local one yet. Only use a configuration I manually put on the server. Could anyone please comment whether I understand that right? Mike Rainer - 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: Issues running 2 versions of tomcat?
2009/7/21 Security Management list-subscripti...@secmgmt.com: I have a server, running Tomcat 5 with Java 4, and running Tomcat 6 with Java 6. There is another application that is an XMLRPC server on ports 8085-8100 The XMLRPC service is running on Tomcat 5, and a struts 2 application is running on Tomcat 6. I have verified that there are no common ports listed for the 3 sets of ports (2 x server.xml, and the config for the rpc). Can anyone explain why the 8085-8100 ports might go haywire every now and then? The app works fine with Tomcat 6 shutdown, but when Tomcat 6 starts, there are anomalies. I've verified the correct JVMs are starting the correct Tomcat versions, etc. Anywhere else I might find a clue? 1. Please provide your definition of haywire 2. Do you have Apache HTTPD in front of Tomcat ? Do you use mod_jk? 3. Your operating system, and what versions of the mentioned software you are running. How old is your Tomcat 5? You may want to look at http://tomcat.apache.org/security-5.html Also Java 4 has already reached its EOL. http://java.sun.com/j2se/1.4.2/download.html Usually older apps run fine on Java 6, and Tomcat 5 apps run fine when deployed on Tomcat 6, and two instances of Tomcat, be them of different or of the same version, run fine with each other. 4. What do you mean by 8085-8100 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Issues running 2 versions of tomcat?
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Tuesday, July 21, 2009 12:01 PM To: Tomcat Users List Subject: Re: Issues running 2 versions of tomcat? 2009/7/21 Security Management list-subscripti...@secmgmt.com: I have a server, running Tomcat 5 with Java 4, and running Tomcat 6 with Java 6. There is another application that is an XMLRPC server on ports 8085-8100 The XMLRPC service is running on Tomcat 5, and a struts 2 application is running on Tomcat 6. I have verified that there are no common ports listed for the 3 sets of ports (2 x server.xml, and the config for the rpc). Can anyone explain why the 8085-8100 ports might go haywire every now and then? The app works fine with Tomcat 6 shutdown, but when Tomcat 6 starts, there are anomalies. I've verified the correct JVMs are starting the correct Tomcat versions, etc. Anywhere else I might find a clue? 1. Please provide your definition of haywire 2. Do you have Apache HTTPD in front of Tomcat ? Do you use mod_jk? 3. Your operating system, and what versions of the mentioned software you are running. How old is your Tomcat 5? You may want to look at http://tomcat.apache.org/security-5.html I'm not sure about the specific version, I will check. Thanks for the page, too, I'll look through that. Also Java 4 has already reached its EOL. http://java.sun.com/j2se/1.4.2/download.html Usually older apps run fine on Java 6, and Tomcat 5 apps run fine when deployed on Tomcat 6, and two instances of Tomcat, be them of different or of the same version, run fine with each other. 4. What do you mean by 8085-8100 Best regards, Konstantin Kolinko 1. My definition of haywire: The xmlrpc service clients sometimes hang, and sometimes get random junk messages appearing in the packets. This only happens after Tomcat 6 starts. The general consensus of the manufacturer of that software is that the sockets are not being maintained. 2. No, and No, I do not have either of those setup. 3. I'm not sure about the specific version, I will check. Thanks for the page, too, I'll look through that. I know java 4 is EOL, but I'm waiting on a manufacturer update for the software, and I have no control over that. I thought that 2 versions of should be fine together. Thanks. 4. 8085-8100 is the range of ports used by the process (i.e. 8085, 8086, 8100). I don't have the specific details as far as what exactly this means, only that they should not be used by me. Thanks, Mike. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: providing downloading functionality for a file which is on disk
From: Michael Ludwig [mailto:m...@as-guides.com] Subject: Re: providing downloading functionality for a file which is on disk Is there a way of including a second context with a web application in a similarly convenient way? No. The servlet spec expects webapps to be independent of each other, and Tomcat follows that expectation. You have to install the two webapps separately. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Fwd: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE
I installed Tomcat using apache-tomcat-6.0.20.exe But not as a service.Then from the bin I tried to run tomcat6.exe service runner But it did not start the service log is as follows [2009-07-21 20:02:34] [info] Procrun (2.0.4.0) started [2009-07-21 20:02:34] [info] Service Tomcat6 name Apache Tomcat 6 [2009-07-21 20:02:35] [info] Service Tomcat6 installed [2009-07-21 20:02:35] [info] Procrun finished. [2009-07-21 21:46:10] [info] Procrun (2.0.4.0) started [2009-07-21 21:46:10] [info] Debugging Service... [2009-07-21 21:46:10] [info] Starting service... [2009-07-21 21:46:10] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:46:10] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:46:10] [info] Debug service finished. [2009-07-21 21:46:10] [info] Procrun finished. [2009-07-21 21:46:14] [info] Procrun (2.0.4.0) started [2009-07-21 21:46:14] [info] Debugging Service... [2009-07-21 21:46:14] [info] Starting service... [2009-07-21 21:46:14] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:46:14] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:46:14] [info] Debug service finished. [2009-07-21 21:46:14] [info] Procrun finished. [2009-07-21 21:46:24] [info] Procrun (2.0.4.0) started [2009-07-21 21:46:24] [info] Running Service... [2009-07-21 21:46:24] [info] Starting service... [2009-07-21 21:46:24] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:46:24] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:46:24] [info] Run service finished. [2009-07-21 21:46:24] [info] Procrun finished. [2009-07-21 21:46:28] [info] Procrun (2.0.4.0) started [2009-07-21 21:46:28] [info] Running Service... [2009-07-21 21:46:28] [info] Starting service... [2009-07-21 21:46:28] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:46:28] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:46:28] [info] Run service finished. [2009-07-21 21:46:28] [info] Procrun finished. [2009-07-21 21:46:31] [info] Procrun (2.0.4.0) started [2009-07-21 21:46:31] [info] Running Service... [2009-07-21 21:46:31] [info] Starting service... [2009-07-21 21:46:32] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:46:32] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:46:32] [info] Run service finished. [2009-07-21 21:46:32] [info] Procrun finished. [2009-07-21 21:46:35] [info] Procrun (2.0.4.0) started [2009-07-21 21:46:35] [info] Running Service... [2009-07-21 21:46:35] [info] Starting service... [2009-07-21 21:46:35] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:46:35] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:46:35] [info] Run service finished. [2009-07-21 21:46:35] [info] Procrun finished. [2009-07-21 21:53:44] [info] Procrun (2.0.4.0) started [2009-07-21 21:53:44] [info] Debugging Service... [2009-07-21 21:53:44] [info] Starting service... [2009-07-21 21:53:44] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:53:44] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:53:44] [info] Debug service finished. [2009-07-21 21:53:44] [info] Procrun finished. [2009-07-21 21:54:06] [info] Procrun (2.0.4.0) started [2009-07-21 21:54:06] [info] Debugging Service... [2009-07-21 21:54:06] [info] Starting service... [2009-07-21 21:54:06] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:54:06] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:54:06] [info] Debug service finished. [2009-07-21 21:54:06] [info] Procrun finished. [2009-07-21 21:55:44] [info] Procrun (2.0.4.0) started [2009-07-21 21:55:44] [info] Debugging Service... [2009-07-21 21:55:44] [info] Starting service... [2009-07-21 21:55:44] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:55:44] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:55:44] [info] Debug service finished. [2009-07-21 21:55:44] [info] Procrun finished. [2009-07-21 21:55:44] [info] Procrun (2.0.4.0) started [2009-07-21 21:55:44] [info] Debugging Service... [2009-07-21 21:55:44] [info] Starting service... [2009-07-21 21:55:44] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:55:44] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:55:44] [info] Debug service finished. [2009-07-21 21:55:44] [info] Procrun finished. [2009-07-21 21:55:45] [info] Procrun (2.0.4.0) started [2009-07-21 21:55:45] [info] Debugging Service... [2009-07-21 21:55:45] [info] Starting service... [2009-07-21 21:55:45] [1030 prunsrv.c] [error] Failed setting process executable [2009-07-21 21:55:45] [1269 prunsrv.c] [error] ServiceStart returned 2 [2009-07-21 21:55:45] [info] Debug service finished. [2009-07-21 21:55:45] [info] Procrun finished. -- Forwarded message -- From: Varuna Seneviratna varunasenevira...@gmail.com Date: 2009/7/21 Subject: Re: Is it not possible
RE: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE
From: Varuna Seneviratna [mailto:varunasenevira...@gmail.com] Subject: Fwd: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE I installed Tomcat using apache-tomcat-6.0.20.exe But not as a service. First mistake. Then from the bin I tried to run tomcat6.exe service runner Second mistake - the tomcat6.exe program is indeed the service runner; it is not the service *installer*. You can manually install the service, but it's a major pain to get all the parameters right. The easiest thing for you to do now is get the .zip download, copy the service.bat script from its bin directory to your Tomcat's bin directory, and run that. If you haven't done anything major with the .exe installation, you could also just throw that away and start over. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE
I installed Tomcat using apache-tomcat-6.0.20.exe But not as a service. First mistake. I did this after trying several times to install Tomcat as a service using the windows service installer. Then from the bin I tried to run tomcat6.exe service runner Second mistake - the tomcat6.exe program is indeed the service runner; it is not the service *installer*. You can manually install the service, but it's a major pain to get all the parameters right. The easiest thing for you to do now is get the .zip download, copy the service.bat script from its bin directory to your Tomcat's bin directory, and run that. If you haven't done anything major with the .exe installation, you could also just throw that away and start over. I new that it was not the service installer But I tried whether it could be used to run Tomcat as a service since all efforts to get it installed as a service has failed Next now I will try the second option Chuck has put forward Thanks Varuna 2009/7/21 Caldarale, Charles R chuck.caldar...@unisys.com From: Varuna Seneviratna [mailto:varunasenevira...@gmail.com] Subject: Fwd: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE I installed Tomcat using apache-tomcat-6.0.20.exe But not as a service. First mistake. Then from the bin I tried to run tomcat6.exe service runner Second mistake - the tomcat6.exe program is indeed the service runner; it is not the service *installer*. You can manually install the service, but it's a major pain to get all the parameters right. The easiest thing for you to do now is get the .zip download, copy the service.bat script from its bin directory to your Tomcat's bin directory, and run that. If you haven't done anything major with the .exe installation, you could also just throw that away and start over. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141
Fwd: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE: A new development
The set up dialog box that pops up saying unable to proceed has has 3 buttons, the first is Abort second Retry, third Ignore.When I keep on clicking Retry for several times the setup goes a step forward and the Kaspersky icon at the bottom right corner display a message as NS130.TMP placed in low restricted area and again it stops with the dialog box popped up and again I keep on clicking Retry then the setup goes a step forward and Kaspersky again displays a message as before saying that it has placed another .TMP file in the low restricted area.The setup always stops when it displays the message Using jvm:C:/Program Files/Java/jre6/bin/client/jvm.dll. Can it be because of Kaspersky setting that I am unable to install Tomcat service? Varuna -- Forwarded message -- From: Varuna Seneviratna varunasenevira...@gmail.com Date: 2009/7/21 Subject: Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE To: Tomcat Users List users@tomcat.apache.org I installed Tomcat using apache-tomcat-6.0.20.exe But not as a service. First mistake. I did this after trying several times to install Tomcat as a service using the windows service installer. Then from the bin I tried to run tomcat6.exe service runner Second mistake - the tomcat6.exe program is indeed the service runner; it is not the service *installer*. You can manually install the service, but it's a major pain to get all the parameters right. The easiest thing for you to do now is get the .zip download, copy the service.bat script from its bin directory to your Tomcat's bin directory, and run that. If you haven't done anything major with the .exe installation, you could also just throw that away and start over. I new that it was not the service installer But I tried whether it could be used to run Tomcat as a service since all efforts to get it installed as a service has failed Next now I will try the second option Chuck has put forward Thanks Varuna 2009/7/21 Caldarale, Charles R chuck.caldar...@unisys.com From: Varuna Seneviratna [mailto:varunasenevira...@gmail.com] Subject: Fwd: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE I installed Tomcat using apache-tomcat-6.0.20.exe But not as a service. First mistake. Then from the bin I tried to run tomcat6.exe service runner Second mistake - the tomcat6.exe program is indeed the service runner; it is not the service *installer*. You can manually install the service, but it's a major pain to get all the parameters right. The easiest thing for you to do now is get the .zip download, copy the service.bat script from its bin directory to your Tomcat's bin directory, and run that. If you haven't done anything major with the .exe installation, you could also just throw that away and start over. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141 -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141
Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE: A new development
2009/7/21 Varuna Seneviratna varunasenevira...@gmail.com: The set up dialog box that pops up saying unable to proceed has has 3 buttons, the first is Abort second Retry, third Ignore.When I keep on clicking Retry for several times the setup goes a step forward and the Kaspersky icon at the bottom right corner display a message as NS130.TMP placed in low restricted area and again it stops with the dialog box popped up and again I keep on clicking Retry then the setup goes a step forward and Kaspersky again displays a message as before saying that it has placed another .TMP file in the low restricted area.The setup always stops when it displays the message Using jvm:C:/Program Files/Java/jre6/bin/client/jvm.dll. Can it be because of Kaspersky setting that I am unable to install Tomcat service? Yes, that is highly probable. I am also using Kaspersky 2009 (as seems you are using), and it asks me to give permission to this setup application to modify system services (I do not remember exact message, and I do not have a copy of it on the PC that I use at this very moment, so it is all from my memory). I always choose allow and in this session and it goes on, but my Kaspersky was installed to run in interactive mode (ask the user about its decisions), and I do not know about your settings. I do not know, maybe you already clicked the forbid item when you were asked, or maybe it did not ask you at all. In any case, Kaspersky can be temporarily disabled from menu that pops up when you right-click its icon in the tray, or from its configuration dialog. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fwd: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE: A new development
Varuna Seneviratna wrote: ... Can it be because of Kaspersky setting that I am unable to install Tomcat service? Let me paraphrase this : During the Tomcat installation, I repeatedly hit my head to the desk. Can this be the reason that I have a headache ? Come on, as they say in Minnesota... :-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Fwd: Is it not possible to install apache-tomcat-6.0.20 witha J2SE 5 JRE: A new development
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Fwd: Is it not possible to install apache-tomcat-6.0.20 witha J2SE 5 JRE: A new development Come on, as they say in Minnesota... Actually, they don't say that here. There's a lot of Yah, sure and Whatever (but not like a valley girl says it). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Can a Realm communicate with a web application?
I am toying with the idea of writing my own Realm for authentication. Much of the code and structures that I need are already present in the web application. Is there any way for the Realm to access Java objects from the web application? They don't appear to share the same class loader. As an alternative is there a mechanism for providing the functionality of a Realm, but within the web application structure? Mitch - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Can a Realm communicate with a web application?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mitch, On 7/21/2009 6:23 PM, Mitch Claborn wrote: I am toying with the idea of writing my own Realm for authentication. Much of the code and structures that I need are already present in the web application. Is there any way for the Realm to access Java objects from the web application? They don't appear to share the same class loader. As an alternative is there a mechanism for providing the functionality of a Realm, but within the web application structure? You could use securityfilter (http://securityfilter.sourceforge.net): you can implement your own Realm with direct access to the HttpServletRequest object being serviced during the login (in order to use this special interface, you need to get the trunk source and build it yourself: it is not yet in an official build). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpmfvMACgkQ9CaO5/Lv0PCTEACfSEt0Y38/sOyQISANpr6POW4X iaEAoIWsHmUG0VthFtbZnbaYVZ6qtmcM =mRsG -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fwd: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE: A new development
Please read the whole story behind and reply without bulling.I am trying to figure out what is the cause for not being able to install Tomcat as a service when JRun can be .My guess was is Kaspersky blocking Tomcat setup since Kaspersky prompted for user's approval after clicking Retry several times, that too was only for a single step as depicted in the installation progress bar.I stopped Kaspersky and tried to install But that too was failed. Thanks for your Help! Varuna 2009/7/22 André Warnier a...@ice-sa.com Varuna Seneviratna wrote: ... Can it be because of Kaspersky setting that I am unable to install Tomcat service? Let me paraphrase this : During the Tomcat installation, I repeatedly hit my head to the desk. Can this be the reason that I have a headache ? Come on, as they say in Minnesota... :-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141
Re: Fwd: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE: A new development
I wonder why you want to install tomcat as a service.In my mind,java is green software,and I always download a .zip or .gz file,and get it run in a specific folder,I think that will help to easy manage things. hope no bother. thanks. 2009/7/22 Varuna Seneviratna varunasenevira...@gmail.com Please read the whole story behind and reply without bulling.I am trying to figure out what is the cause for not being able to install Tomcat as a service when JRun can be .My guess was is Kaspersky blocking Tomcat setup since Kaspersky prompted for user's approval after clicking Retry several times, that too was only for a single step as depicted in the installation progress bar.I stopped Kaspersky and tried to install But that too was failed. Thanks for your Help! Varuna 2009/7/22 André Warnier a...@ice-sa.com Varuna Seneviratna wrote: ... Can it be because of Kaspersky setting that I am unable to install Tomcat service? Let me paraphrase this : During the Tomcat installation, I repeatedly hit my head to the desk. Can this be the reason that I have a headache ? Come on, as they say in Minnesota... :-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141