tomcat + sysdeo plugin + eclipse 3.1
I'm not sure this is the right place for this question but I assume more tomcat users use the sysdeo plugin to launch tomcat. The issue is that my WEB-INF/classes directory of my web application is not on the classpath if I launch tomcat using the sysdeo plugin. This used to work fine but for some reason it is broken now. I use this directory to load some configuration files. I have multiple web applications in one tomcat installation so I can't just add the directories to the global classpath. Of course the application works fine outside eclipse. I've tried to use other plugins (e.g. the webtools tomcat launcher) but these all insist on copying and moving files instead of just accepting my working highly tweaked tomcat configuration (without manager). Sysdeo is nice because you can just point it to the server.xml and it will launch tomcat in the debugger, which is all I want. Any suggestions for replacing sysdeo or fixing the problem would be much appreciated. Regards, Jilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat + sysdeo plugin + eclipse 3.1
Jilles van Gurp wrote: I'm not sure this is the right place for this question but I assume more tomcat users use the sysdeo plugin to launch tomcat. The issue is that my WEB-INF/classes directory of my web application is not on the classpath if I launch tomcat using the sysdeo plugin. This used to work fine but for some reason it is broken now. I use this directory to load some configuration files. I have multiple web applications in one tomcat installation so I can't just add the directories to the global classpath. Of course the application works fine outside eclipse. I've tried to use other plugins (e.g. the webtools tomcat launcher) but these all insist on copying and moving files instead of just accepting my working highly tweaked tomcat configuration (without manager). Sysdeo is nice because you can just point it to the server.xml and it will launch tomcat in the debugger, which is all I want. Any suggestions for replacing sysdeo or fixing the problem would be much appreciated. Regards, Jilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ah figured it out! For the interested: do not add any projects to the tomcat classpath. Apparently this confuses things. After all if you properly configured tomcat already, this shouldn't be necessary anyway. Jilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat related help required
Hi Nix, Please check my reply below. Thanks. Santosh From: Nikola Milutinovic [EMAIL PROTECTED] Date: Sep 27, 2005 9:13 PM Subject: Re: (WAS) Generic Types support in Tomcat? To: Tomcat Users List tomcat-user@jakarta.apache.org Santosh Asbe wrote: Hi all, Hi. First of all, it is very advisable to use a separate thread when opening a new topic. I am not reprimanding you, I'm merely advising. I do not consider it rude to jump into someone elses thread of discussion - I do not consider this thread mine, in the first place. The problem is, this thread has been going on for some time and most people are not going to bother reading it at all, so you will loose valuable audience. [TCS_TIN] I by mistake replied to this message. i ahve started a new thread for the same. A] I am using tomcat 4.1.30 ( 32 bit) with Apache 2.0.46 ( this is standard apache which comes with RHEL 3.0). I am currently using RHEL 32 bit without RAID confiuration. There is no 32-bit version of TC, it is Java application. JVM, of course, is and should be 32/64-bit. Now i am planning to move to 64 bit RHEL 3.0 with RAID configuration but he the new Apache of RHEL 3.0 and same tomcat 4.1.30 ( 32 bit). I am facing a problem with mod_jk. I feel it is 32 bit complied mod_jk. It most likely is. Can anyone help me with the solution Unless you can locate a 64-bit version of mod_jk, try compiling your own version. You'll need apache-devel-* RPM for that. Some might say that even 32-bit version of mod_jk will work, but I would fly away from it - mod_jk is a sensitive pieve of software, connecting (multithreaded) Apache with multithreaded TC and the version should be as close to the target platform, as possible. [TCS_TIN] i have complied 64 bit mod2_ jk . what is the difference between mod_jk and mod2_jk? Now when i start the Apache it is not able to find the JkMount entry in the ssl.conf file. It gives the following error ERROR: Starting httpd: Syntax error on line 121 of /etc/httpd/conf.d/ssl.conf: Invalid command 'JkMount', perhaps mis-spelled or defined by a module not included in the server configuration my ssl.conf line 12 states: 121 JkMount /TIN loadbalancer 122 JkMount /TIN/* loadbalancer ( TIN is the application name) Can you tell me what wrong am i doing? or this error is due to me using mod2_jk?? B] Also my tomcat goes into hang state . So i have set an parameter LD_ASSUME_KERNEL=2.4.21. That is my Linux kernel version. Is this ok. where do i set this parameter. i have set it in the catalina.sh. The location is OK, but you should not use it on the new kernel. Is it 2.6.x? Older releases of 2.6 branch had a problem with JVM and you had to set that parameter. New releases should be bug free. [TCS_TIN] My Linux version is : Linux blade8 2.4.21-32.EL #1 SMP Fri Apr 15 21:02:58 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux My version of Kernel is 2.4.21. So it older version right. So i should set this parameter right? Setting parameter will solve my problem right or should i set i to lower version of kernel?? C] Sometime when the tomcat is started it spwans more than one processes. And then during shudown it creates problems. Also sometimes the list of open files goes beyond 1024. that is he ulimit. due to which he tomcat doesnot respond. Linux kernel 2.4 emulates threads through lightweight processes/tasks. There is nothing fundamentally wrong about it (perhaps internal resource ecconomics are misused), AFAIK, but the ps output is going to confuse you, showing each thread as a separate process. Nothing problematic about it. The number of 1024 processes/threads is alarming, however. TC will normally wpawn idle worker threads to prepare for future requests, but the parameter is usually less than 100. I'd say your application is launching threads for some reason. Either that or there is a serious bug in your system. [TCS_TIN] Will check about this . D] I am currently using 4.1.30 version of tomcat. Are there any fixes or upgrades for this tomcat. Can you inform me the link for the same. 4.1.30 is the last normal RPM, I know of. There are newer versions, check out www.JPackage.org http://www.jpackage.org/. Word of caution, prepare for RPM dependancy nightmare, unless you're using some RPM management tool. [TCS_TIN] Will check the site out. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This message is for the named addressees' use only. It may contain NSDL confidential, proprietary or legally privileged information. If you receive this message in error, please immediately delete it. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient.Unless otherwise stated, any commercial information given in this message
RE: What to put into JAVA_HOME on Windows xp
HI Ramnish, Remove bin from the JAVA_HOME. JAVA_HOME=C:\JDK1.4\AppServer\jdk I dit it, but that doesn't make it work too! I can reach the javac command from a MS-Command line, so the compiler is available. Why Tomcat can't see it? Thanx , Markus --- Ursprüngliche Nachricht --- Von: Ramnish Kalsi [EMAIL PROTECTED] An: Markus Hapke [EMAIL PROTECTED], tomcat-user@jakarta.apache.org Betreff: RE: What to put into JAVA_HOME on Windows xp Datum: Mon, 26 Sep 2005 18:19:24 +0100 Remove bin from the JAVA_HOME. JAVA_HOME=C:\JDK1.4\AppServer\jdk -ramnish. -Original Message- From: Markus Hapke [mailto:[EMAIL PROTECTED] Sent: 25 September 2005 21:27 To: tomcat-user@jakarta.apache.org Subject: What to put into JAVA_HOME on Windows xp Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked. Thed tried to test a .jsp of my own- getting the error msg in the MS Internet-Explorer: === BEGIN of error Msg HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 46) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 95) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C ompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 95) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. === END of error Msg= == I set the environment entry of JAVA_HOME to C:\JDK1.4\AppServer\jdk\bin Is that correct? OK, nobody of you could know where I have my J2EE (1.4) : it is 'mounted' under: C:\JDK1.4\AppServer and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin Is my entry of the JAVA_HOME correct? Is there another error? Thanx in advance, Markus -- ,, 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse für Mail, Message, More +++ ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What to put into JAVA_HOME on Windows xp
Hi Jan and all Others, i changed the JAVA_HOME, but still facing the same problem: Perhaps JAVA_HOME does not point to the JDK How can I test what Tomcat tries to read when it calls the javac command? thanx in advance , Markus --- Ursprüngliche Nachricht --- Von: Jan Fredrik Fallsen [EMAIL PROTECTED] An: 'Tomcat Users List' tomcat-user@jakarta.apache.org, 'Arthur D'Alessandro' [EMAIL PROTECTED] Betreff: RE: What to put into JAVA_HOME on Windows xp Datum: Mon, 26 Sep 2005 10:50:49 +0200 your java home is C:\jsdk1\Àppserver\jdk -Original Message- From: Arthur D'Alessandro [mailto:[EMAIL PROTECTED] Sent: 26. september 2005 00:16 To: Tomcat Users List Subject: Re: What to put into JAVA_HOME on Windows xp Move it up one level, in your case: C:\JDK1.4\AppServer\jdk On 9/25/05, Markus Hapke [EMAIL PROTECTED] wrote: Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked. Thed tried to test a .jsp of my own- getting the error msg in the MS Internet-Explorer: === BEGIN of error Msg HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError( DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java :346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler (CompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. === END of error Msg= == I set the environment entry of JAVA_HOME to C:\JDK1.4\AppServer\jdk\bin Is that correct? OK, nobody of you could know where I have my J2EE (1.4) : it is 'mounted' under: C:\JDK1.4\AppServer and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin Is my entry of the JAVA_HOME correct? Is there another error? Thanx in advance, Markus -- ,, 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse für Mail, Message, More +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Art D'Alessandro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What to put into JAVA_HOME on Windows xp
On 9/28/05, Markus Hapke [EMAIL PROTECTED] wrote: Hi Jan and all Others, i changed the JAVA_HOME, but still facing the same problem: Perhaps JAVA_HOME does not point to the JDK How can I test what Tomcat tries to read when it calls the javac command? Edit startup.bat and put the following lines at the top @echo on echo %JAVA_HOME% It should point to C:\JDK1.4\AppServer\jdk thanx in advance , Markus --- Ursprüngliche Nachricht --- Von: Jan Fredrik Fallsen [EMAIL PROTECTED] An: 'Tomcat Users List' tomcat-user@jakarta.apache.org, 'Arthur D'Alessandro' [EMAIL PROTECTED] Betreff: RE: What to put into JAVA_HOME on Windows xp Datum: Mon, 26 Sep 2005 10:50:49 +0200 your java home is C:\jsdk1\Àppserver\jdk -Original Message- From: Arthur D'Alessandro [mailto:[EMAIL PROTECTED] Sent: 26. september 2005 00:16 To: Tomcat Users List Subject: Re: What to put into JAVA_HOME on Windows xp Move it up one level, in your case: C:\JDK1.4\AppServer\jdk On 9/25/05, Markus Hapke [EMAIL PROTECTED] wrote: Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked. Thed tried to test a .jsp of my own- getting the error msg in the MS Internet-Explorer: === BEGIN of error Msg HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError( DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java :346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler (CompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. === END of error Msg= == I set the environment entry of JAVA_HOME to C:\JDK1.4\AppServer\jdk\bin Is that correct? OK, nobody of you could know where I have my J2EE (1.4) : it is 'mounted' under: C:\JDK1.4\AppServer and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin Is my entry of the JAVA_HOME correct? Is there another error? Thanx in advance, Markus -- ,, 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse für Mail, Message, More +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Art D'Alessandro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- rgds Anto Paul
Re: Re: What to put into JAVA_HOME on Windows xp
We're sorry, you have reached an email address at YahooGropus, not YahooGroups. Your message has not been delivered to the Yahoo Group intended. Please re-send your email to the correct address. We apologize for the inconvenience. YahooGropus Staff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems setting up Webdav folder on Tomcat 5.5
On Monday 26 September 2005 19:32, David Goodenough wrote: On Monday 26 September 2005 16:51, David Goodenough wrote: I am trying to set up a webdav application on a machine running Tomcat 5.5. The effect I want to create is that anyone can use http://machine/app/folder to read files, but only those who have logged on should be able to use webdav to create, update or delete files from the folder. I tried to do this by copying the web.xml file from the webdav WEB-INF folder into the app/WEB-INF directory, and also creating a Context file in conf/Catalina/localhost/app.xml as I want to authenticate those who are having to log on against a database (using JDBCRealm). But having set all this up I have obviously got something messed up as in catalina.out it complains about a NullPointerException, and says the problem happened while processing the default web.xml, at line 5 row 56. Now I take it that this is actually NOT refering to the default web.xml in the conf directory, as it is only this application that is hit (the others including the webdav one initialise correctly). I assume it is actually refering to the one for this webapp. But what is odd is that line 5 is in the middle of a comment, which my xml editor says is quite correctly formed. It is a shame that when putting out such messages the real file name that it is processing is not included, and the line of text it is parsing is not included. The other thing that is odd is that the call stack trace suggests that it is not the web.xml file it is processing, but rather then context file. I assume this out because it talks about functions called:- org.apache.catalina.startup.ContextConfig.processContextConfig(ContextCon fi g.java:778) org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.jav a: 718) org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:974) If it is my context file, that does have something to parse at line 5, and it reads:- Context Realm classname=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.postgresql.Driver connectionURL=jdbc:postgresql:authority connectionName=david connectionPassword= userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=roles roleNameCol=role_name /Realm /Context and for the life of me I can not see what is wrong with line 5 of that - although that is the last line so perhaps it is just an error somewhere in the Realm tag. The Postgresql driver is in common/lib, the db exists and has those tables and columns in them. Any ideas? David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Well it would seem that my suspicions are correct, the problem is with the context file, not the web.xml file. If I comment out the Realm in the context file the problem goes away. I suspect that if it having problems loading one of the two classes mentioned, JDBCRealm or the JDBC driver. But I can not tell which. Both are in JARs in the server/lib directory. Any idea how I debug it. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Is no-one else using Realms in application contexts? My guess is that I am doing something simple wrong, but for the life of me I can not spot it. So I guess I should file a bug as Tomcat should not report that the error is in web.xml when it is a context file, and should not trap with a NullPointerException with no explanation. David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pointing to a folder outside tomcat webapps
I'd like pointing a foder outside webapps tomcat folder. I know that with Context path=/myPath docBase=c://myFolder reloadable=true/ in server.xml i can do it. I'd like to use that tag in META-INF/context.xmlwithout using server.xml. But It allows just one context tag on context.xml. So any idea? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pointing to a folder outside tomcat webapps
Look up allowLinking = true in google. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:42 To: tomcat-user Subject: pointing to a folder outside tomcat webapps I'd like pointing a foder outside webapps tomcat folder. I know that with Context path=/myPath docBase=c://myFolder reloadable=true/ in server.xml i can do it. I'd like to use that tag in META-INF/context.xmlwithout using server.xml. But It allows just one context tag on context.xml. So any idea? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedded Tomcat and shared objects...
Leon Rosenberg wrote: Aehm, without looking deeper into context initialization, just a short guess: what about making your configuration objects a singleton with public static CLASSNAME getInstance() or provide a factory for them? Because the class in question is created by Spring's application context. -- Darryl L. Pierce [EMAIL PROTECTED] Homepage: http://mcpierce.multiply.com/ Bury me next to my wife. Nothing too fancy... - Ulysses S. Grant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pointing to a folder outside tomcat webapps
I kwnow that. I want to use the file META-INF/context.xml inside the application for pointing to another resource. I do not want use server.xml! -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 10:47:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps Look up allowLinking = true in google. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:42 To: tomcat-user Subject: pointing to a folder outside tomcat webapps I'd like pointing a foder outside webapps tomcat folder. I know that with Context path=/myPath docBase=c://myFolder reloadable=true/ in server.xml i can do it. I'd like to use that tag in META-INF/context.xmlwithout using server.xml. But It allows just one context tag on context.xml. So any idea? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - 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]
how to turn off session cookies
One-liner: How do you turn session cookies off, server side? Hi! Nowadays it's illegal to use cookies on web sites in sweden, without informing the visitor that it's done and why, what cookie is etc. Since I don't have any use of a session nor am interested in adding a page saying we use cookies for no reason to the site in question, I'm (after googling) wondering: How do you turn session cookies off, server side? In Tomcat 3.3, this could be done as seen on http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#SessionId but I've failed to find out where this option has moved. Thanks in advance, Fredrik Wendt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pointing to a folder outside tomcat webapps
You can just place the a empty context xml in your $tomcat_home/conf directory. That's what we do and it works across all contexts... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:55 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps I kwnow that. I want to use the file META-INF/context.xml inside the application for pointing to another resource. I do not want use server.xml! -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 10:47:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps Look up allowLinking = true in google. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:42 To: tomcat-user Subject: pointing to a folder outside tomcat webapps I'd like pointing a foder outside webapps tomcat folder. I know that with Context path=/myPath docBase=c://myFolder reloadable=true/ in server.xml i can do it. I'd like to use that tag in META-INF/context.xmlwithout using server.xml. But It allows just one context tag on context.xml. So any idea? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - 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] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pointing to a folder outside tomcat webapps
OK, You place the context.xml inside $tomcat_home/conf. Contents of that file is something like this: !-- The contents of this file will be loaded for each web application -- Context allowLinking=true !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- !--Manager pathname= /-- /Context The allowLinking attribute defined this way allows all our application use symbolic links. Hope this helps. Arup -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 11:22 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps could u be more explicit please? I cannot understanding u -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 11:16:28 +0100 Subject : RE: pointing to a folder outside tomcat webapps You can just place the a empty context xml in your $tomcat_home/conf directory. That's what we do and it works across all contexts... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:55 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps I kwnow that. I want to use the file META-INF/context.xml inside the application for pointing to another resource. I do not want use server.xml! -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 10:47:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps Look up allowLinking = true in google. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:42 To: tomcat-user Subject: pointing to a folder outside tomcat webapps I'd like pointing a foder outside webapps tomcat folder. I know that with Context path=/myPath docBase=c://myFolder reloadable=true/ inserver.xml i can do it. I'd like to use that tag in META-INF/context.xmlwithout using server.xml. But It allows just one context tag on context.xml. So any idea? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - 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] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - 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] !-- The contents of this file will be loaded for each web application -- Context allowLinking=true !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- !-- Manager pathname= / -- /Context - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What to put into JAVA_HOME on Windows xp
Could you check if relative to your jdk directory there is a lib\tools.jar? This is where the class files for the javac compiler are located and this file is not found by tomcat at the expected location. Anyway, I recommend reinstalling the java development kit and using the default settings. Jilles Markus Hapke wrote: HI Ramnish, Remove bin from the JAVA_HOME. JAVA_HOME=C:\JDK1.4\AppServer\jdk I dit it, but that doesn't make it work too! I can reach the javac command from a MS-Command line, so the compiler is available. Why Tomcat can't see it? Thanx , Markus --- Ursprüngliche Nachricht --- Von: Ramnish Kalsi [EMAIL PROTECTED] An: Markus Hapke [EMAIL PROTECTED], tomcat-user@jakarta.apache.org Betreff: RE: What to put into JAVA_HOME on Windows xp Datum: Mon, 26 Sep 2005 18:19:24 +0100 Remove bin from the JAVA_HOME. JAVA_HOME=C:\JDK1.4\AppServer\jdk -ramnish. -Original Message- From: Markus Hapke [mailto:[EMAIL PROTECTED] Sent: 25 September 2005 21:27 To: tomcat-user@jakarta.apache.org Subject: What to put into JAVA_HOME on Windows xp Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked. Thed tried to test a .jsp of my own- getting the error msg in the MS Internet-Explorer: === BEGIN of error Msg HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 46) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 95) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C ompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 95) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. === END of error Msg= == I set the environment entry of JAVA_HOME to C:\JDK1.4\AppServer\jdk\bin Is that correct? OK, nobody of you could know where I have my J2EE (1.4) : it is 'mounted' under: C:\JDK1.4\AppServer and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin Is my entry of the JAVA_HOME correct? Is there another error? Thanx in advance, Markus -- ,, 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse für Mail, Message, More +++ ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What to put into JAVA_HOME on Windows xp
Hello All, now it works ! when runing tomcat_root\bin\startup.bat instead of tomcat_root\\bin\tomcat5w.exe //ES//Tomcat5 and then pressing START. For what the tomcat5w.exe should be used ? Markus --- Ursprüngliche Nachricht --- Von: Jilles van Gurp [EMAIL PROTECTED] An: Tomcat Users List tomcat-user@jakarta.apache.org Betreff: Re: What to put into JAVA_HOME on Windows xp Datum: Wed, 28 Sep 2005 12:41:05 +0200 Could you check if relative to your jdk directory there is a lib\tools.jar? This is where the class files for the javac compiler are located and this file is not found by tomcat at the expected location. Anyway, I recommend reinstalling the java development kit and using the default settings. Jilles Markus Hapke wrote: HI Ramnish, Remove bin from the JAVA_HOME. JAVA_HOME=C:\JDK1.4\AppServer\jdk I dit it, but that doesn't make it work too! I can reach the javac command from a MS-Command line, so the compiler is available. Why Tomcat can't see it? Thanx , Markus --- Ursprüngliche Nachricht --- Von: Ramnish Kalsi [EMAIL PROTECTED] An: Markus Hapke [EMAIL PROTECTED], tomcat-user@jakarta.apache.org Betreff: RE: What to put into JAVA_HOME on Windows xp Datum: Mon, 26 Sep 2005 18:19:24 +0100 Remove bin from the JAVA_HOME. JAVA_HOME=C:\JDK1.4\AppServer\jdk -ramnish. -Original Message- From: Markus Hapke [mailto:[EMAIL PROTECTED] Sent: 25 September 2005 21:27 To: tomcat-user@jakarta.apache.org Subject: What to put into JAVA_HOME on Windows xp Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked. Thed tried to test a .jsp of my own- getting the error msg in the MS Internet-Explorer: === BEGIN of error Msg HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 46) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 95) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(C ompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 11) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 95) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. === END of error Msg= == I set the environment entry of JAVA_HOME to C:\JDK1.4\AppServer\jdk\bin Is that correct? OK, nobody of you could know where I have my J2EE (1.4) : it is 'mounted' under: C:\JDK1.4\AppServer and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin Is my entry of the JAVA_HOME correct? Is there another error? Thanx in advance, Markus -- ,, 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse für Mail, Message, More +++ ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or
Re: how to turn off session cookies
On 9/28/05, Fredrik Wendt [EMAIL PROTECTED] wrote: One-liner: How do you turn session cookies off, server side? Context/ element has an attribute cookies. set it to false to turn off session cookies. See http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html Hi! Nowadays it's illegal to use cookies on web sites in sweden, without informing the visitor that it's done and why, what cookie is etc. Since I don't have any use of a session nor am interested in adding a page saying we use cookies for no reason to the site in question, I'm (after googling) wondering: How do you turn session cookies off, server side? In Tomcat 3.3, this could be done as seen on http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#SessionId but I've failed to find out where this option has moved. Thanks in advance, Fredrik Wendt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to turn off session cookies
Maybee OT, but is using URL rewriting considered as cookie? /Johan -Original Message- From: Anto Paul [mailto:[EMAIL PROTECTED] Sent: den 28 september 2005 13:12 To: Tomcat Users List Subject: Re: how to turn off session cookies On 9/28/05, Fredrik Wendt [EMAIL PROTECTED] wrote: One-liner: How do you turn session cookies off, server side? Context/ element has an attribute cookies. set it to false to turn off session cookies. See http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html Hi! Nowadays it's illegal to use cookies on web sites in sweden, without informing the visitor that it's done and why, what cookie is etc. Since I don't have any use of a session nor am interested in adding a page saying we use cookies for no reason to the site in question, I'm (after googling) wondering: How do you turn session cookies off, server side? In Tomcat 3.3, this could be done as seen on http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#SessionId but I've failed to find out where this option has moved. Thanks in advance, Fredrik Wendt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- rgds Anto Paul - 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: https to web server, http from proxy to tomcat
[EMAIL PROTECTED] said: We are currently using an nsapi plugin module for our proxy component. As far as I know, it does not support reverse-proxy setup. Since we are using the standard Sun One Web Server, I am not familiar with reverse proxy. For SUN ONE webserver you can download a reverse proxy plugin on SUN's website (http://www.sun.com/download/products.xml?id=3f567f91). It's not extremely hard to configure, but it does require manual edits in obj.conf and magnus.conf. Joost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: https to web server, http from proxy to tomcat
There is also a reverse proxy implemented as a webapp which can be used as its own webapp or easily embedded inyour own webapp. (Courtesy of the Google SoC) http://j2ep.sourceforge.net/ -Tim Joost de Heer wrote: [EMAIL PROTECTED] said: We are currently using an nsapi plugin module for our proxy component. As far as I know, it does not support reverse-proxy setup. Since we are using the standard Sun One Web Server, I am not familiar with reverse proxy. For SUN ONE webserver you can download a reverse proxy plugin on SUN's website (http://www.sun.com/download/products.xml?id=3f567f91). It's not extremely hard to configure, but it does require manual edits in obj.conf and magnus.conf. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: saving files in webapp folder from deletion?
Hello, Pham Tran Quoc Viet wrote: Create x outside of webapps and create a soft link within webapps that points to x. Then, within server.xml add the following lines: Context docBase=absolute path to x soft link path=link name allowLinking=true/ That's it. Everytime the soft link is hit, tomcat will follow the symbolic link get the appropriate requested file under x. Ok, but the tomcat 5 docs say that allowLinking should not be set to true on Windows systems. Although I'm actually using a Unix flavour as a production environment, this would pose problems for our development environments which are Windows-based. Apart from that, I dislike platform-specific solutions. Apart from that, wouldn't the symlinks be deleted when the webapp is undeployed by tomcat? And I couldn't put them into the war file to reappear after re-deployment, could I? -- ___ | | | knipp | Knipp Medien und Kommunikation GmbH --- Technologiepark Martin-Schmeisser-Weg 9 D-44227 Dortmund Dipl.-Inform. Thomas CorteFon: +49-231-9703-0 [EMAIL PROTECTED] Fax: +49-231-9703-200 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: saving files in webapp folder from deletion?
Read this thread lately. May be antiResourceLocking is what you are lokking for. It is an attribute of Context element. On 9/28/05, Thomas Corte [EMAIL PROTECTED] wrote: Hello, Pham Tran Quoc Viet wrote: Create x outside of webapps and create a soft link within webapps that points to x. Then, within server.xml add the following lines: Context docBase=absolute path to x soft link path=link name allowLinking=true/ That's it. Everytime the soft link is hit, tomcat will follow the symbolic link get the appropriate requested file under x. Ok, but the tomcat 5 docs say that allowLinking should not be set to true on Windows systems. Although I'm actually using a Unix flavour as a production environment, this would pose problems for our development environments which are Windows-based. Apart from that, I dislike platform-specific solutions. Apart from that, wouldn't the symlinks be deleted when the webapp is undeployed by tomcat? And I couldn't put them into the war file to reappear after re-deployment, could I? -- ___ | | | knipp | Knipp Medien und Kommunikation GmbH --- Technologiepark Martin-Schmeisser-Weg 9 D-44227 Dortmund Dipl.-Inform. Thomas CorteFon: +49-231-9703-0 [EMAIL PROTECTED] Fax: +49-231-9703-200 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- rgds Anto Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pointing to a folder outside tomcat webapps
my problem is that i do not want put anything of my application inside tomcat configuration files... Exists context.xml in META-INF that is specific for an application but I can define there just one context. I need more than one context. Hot to do it? -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 11:27:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps OK, You place the context.xml inside $tomcat_home/conf. Contents of that file is something like this: !-- The contents of this file will be loaded for each web application -- Context allowLinking=true !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- !--Manager pathname= /-- /Context The allowLinking attribute defined this way allows all our application use symbolic links. Hope this helps. Arup -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 11:22 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps could u be more explicit please? I cannot understanding u -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 11:16:28 +0100 Subject : RE: pointing to a folder outside tomcat webapps You can just place the a empty context xml in your $tomcat_home/conf directory. That's what we do and it works across all contexts... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:55 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps I kwnow that. I want to use the file META-INF/context.xml inside the application for pointing to another resource. I do not want use server.xml! -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 10:47:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps Look up allowLinking = true in google. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:42 To: tomcat-user Subject: pointing to a folder outside tomcat webapps I'd like pointing a foder outside webapps tomcat folder. I know that with Context path=/myPath docBase=c://myFolder reloadable=true/ inserver.xml i can do it. I'd like to use that tag in META-INF/context.xmlwithout using server.xml. But It allows just one context tag on context.xml. So any idea? Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - 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] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: saving files in webapp folder from deletion?
Hello, Anto Paul wrote: Read this thread lately. May be antiResourceLocking is what you are lokking for. I'm afraid not, since it is only useful to prevent files from being locked (to make sure they can be deleted on undeploy). Actually, I'm somewhat looking for the exact opposite, namely a way to *prevent* files in the web app folder from being deleted :-) Since I don't like multi-context solutions, I'll probably have to go for my initial idea of backup on undeploy and restore on deploy. -- Thomas Corte [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: saving files in webapp folder from deletion?
u should save all your file in a folder outside webapps using a context tag in server.xml. so when u deploy nobody will touch your saved files. -- Initial Header --- From : Thomas Corte [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 14:56:55 +0200 Subject : Re: saving files in webapp folder from deletion? Hello, Anto Paul wrote: Read this thread lately. May be antiResourceLocking is what you are lokking for. I'm afraid not, since it is only useful to prevent files from being locked (to make sure they can be deleted on undeploy). Actually, I'm somewhat looking for the exact opposite, namely a way to *prevent* files in the web app folder from being deleted :-) Since I don't like multi-context solutions, I'll probably have to go for my initial idea of backup on undeploy and restore on deploy. -- Thomas Corte [EMAIL PROTECTED] - 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]
Session sharing not working - Which is the best strategy?
We have a web-application that uses a implemented logging mechanism where the valid-user is stored in the session. Now there shall come another web-application that shall be used with the user that was authenticated before. I know that session sharing is not allowed but what else could I do?. Can you give me a suggestion how to help me out? Thanks for any advice! starki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session sharing not working - Which is the best strategy?
I have seen some forums in which the suggestion is to store the userid and session id in a database table upon leaving the first application and then retrieving that session_id for the same user upon entering the 2nd application. If you don't have this record in the database table then force then redirect them to a login page. Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED] 09/28/05 10:14 am We have a web-application that uses a implemented logging mechanism where the valid-user is stored in the session. Now there shall come another web-application that shall be used with the user that was authenticated before. I know that session sharing is not allowed but what else could I do?. Can you give me a suggestion how to help me out? Thanks for any advice! starki - 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]
Capturing User Passwords
I am trying to find a way of capturing a user's password so that I can have the user login to one of my web applications (which acts as a client), and pass it to a second application (which acts as the server). I know that I can retrieve the user from the ServletRequest using req.getUserPrincipal(). However, I do not know how I can retrieve the password. Can anyone offer any advice on whether this can be done and if so, the best way of doing it? [ I did attempt to use forms-based authentication and use a filter to capture the password whenever the j_security_check action was invoked. However, I read in another post that Tomcat does not allow filters to be placed on j_security_check. ] Once I have the password, I'd ideally be looking at converting it to a Credentials object, so that I could pass that to my second app, rather than passing the raw password. Does anyone know whether this can be achieved by using Tomcat's UserPasswordCredentials class? Also, to prevent the password been exposed in the URL posted from the login page, I'd also be looking to implement SSL. I presume that this will cause encryption problems. Does anyone have any advice about how I could work around this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pointing to a folder outside tomcat webapps
Using META-INF/context.xml, I don't think you can define other application. I might be wrong though but I seriously doubt if you can define other applications from another applications context.xml file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 13:53 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps my problem is that i do not want put anything of my application inside tomcat configuration files... Exists context.xml in META-INF that is specific for an application but I can define there just one context. I need more than one context. Hot to do it? -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 11:27:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps OK, You place the context.xml inside $tomcat_home/conf. Contents of that file is something like this: !-- The contents of this file will be loaded for each web application -- Context allowLinking=true !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- !--Manager pathname= /-- /Context The allowLinking attribute defined this way allows all our application use symbolic links. Hope this helps. Arup -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 11:22 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps could u be more explicit please? I cannot understanding u -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 11:16:28 +0100 Subject : RE: pointing to a folder outside tomcat webapps You can just place the a empty context xml in your $tomcat_home/conf directory. That's what we do and it works across all contexts... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:55 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps I kwnow that. I want to use the file META-INF/context.xml inside the application for pointing to another resource. I do not want use server.xml! -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 10:47:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps Look up allowLinking = true in google. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:42 To: tomcat-user Subject: pointing to a folder outside tomcat webapps I'd like pointing a foder outside webapps tomcat folder. I know that with Context path=/myPath docBase=c://myFolder reloadable=true/ inserver.xml i can do it. I'd like to use that tag in META-INF/context.xmlwithout using server.xml. But It allows just one context tag on context.xml. So any idea? Regards -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com -- -- - 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] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ How much free photo storage do you get?
Re: What to put into JAVA_HOME on Windows xp
== Date: Wed, 28 Sep 2005 12:47:07 +0200 (MEST) From: Markus Hapke [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: What to put into JAVA_HOME on Windows xp == Hello All, now it works ! when runing tomcat_root\bin\startup.bat instead of tomcat_root\\bin\tomcat5w.exe //ES//Tomcat5 and then pressing START. For what the tomcat5w.exe should be used ? Markus In tomcat bin directory there are several batchs that perform all the environment settings, THEN execute tomcat.exe... The startup is the first one of the chain... G. -- Giuseppe Briotti [EMAIL PROTECTED] Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Capturing User Passwords
== Date: Wed, 28 Sep 2005 14:29:04 +0100 From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: Capturing User Passwords == I am trying to find a way of capturing a user's password so that I can have the user login to one of my web applications (which acts as a client), and pass it to a second application (which acts as the server). It sounds like you are trying to implement a Single sign on... -- Giuseppe Briotti [EMAIL PROTECTED] Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Capturing User Passwords
Thanks - but I did try using single sign-on and got that working correctly with trial applications. However, I need to explicitly supply the password in the call to my second application. Again, any help would be greatly appreciated. -Original Message- From: Giuseppe Briotti [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 14:45 To: Tomcat Users List Subject: Re: Capturing User Passwords == Date: Wed, 28 Sep 2005 14:29:04 +0100 From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: Capturing User Passwords == I am trying to find a way of capturing a user's password so that I can have the user login to one of my web applications (which acts as a client), and pass it to a second application (which acts as the server). It sounds like you are trying to implement a Single sign on... -- Giuseppe Briotti [EMAIL PROTECTED] Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to the statement below or contact the sender. This communication is from Deloitte Touche LLP. Deloitte Touche LLP is a limited liability partnership registered in England and Wales with registered number OC303675. A list of members' names is available for inspection at Stonecutter Court, 1 Stonecutter Street, London EC4A 4TR, United Kingdom, the firm's principal place of business and registered office. Deloitte Touche LLP is authorised and regulated by the Financial Services Authority. This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title received in error to [EMAIL PROTECTED] then delete the email and destroy any copies of it. E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by e-mail is taken to accept the risks in doing so. When addressed to our clients, any opinions or advice contained in this e-mail and any attachments are subject to the terms and conditions expressed in the governing Deloitte Touche LLP client engagement letter. Opinions, conclusions and other information in this e-mail and any attachments which do not relate to the official business of the firm are neither given nor endorsed by it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: pointing to a folder outside tomcat webapps
That's why I ask u in this mailing list.Probably there is a way of settiming more META-INF/context.xml...Probably managing the application in module. Ant idea? -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 14:30:22 +0100 Subject : RE: pointing to a folder outside tomcat webapps Using META-INF/context.xml, I don't think you can define other application. I might be wrong though but I seriously doubt if you can define other applications from another applications context.xml file. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 13:53 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps my problem is that i do not want put anything of my application inside tomcat configuration files... Exists context.xml in META-INF that is specific for an application but I can define there just one context. I need more than one context. Hot to do it? -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 11:27:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps OK, You place the context.xml inside $tomcat_home/conf. Contents of that file is something like this: !-- The contents of this file will be loaded for each web application -- Context allowLinking=true !-- Default set of monitored resources -- WatchedResourceWEB-INF/web.xml/WatchedResource !-- Uncomment this to disable session persistence across Tomcat restarts -- !--Manager pathname= /-- /Context The allowLinking attribute defined this way allows all our application use symbolic links. Hope this helps. Arup -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 11:22 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps could u be more explicit please? I cannot understanding u -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 11:16:28 +0100 Subject : RE: pointing to a folder outside tomcat webapps You can just place the a empty context xml in your $tomcat_home/conf directory. That's what we do and it works across all contexts... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:55 To: tomcat-user Subject: RE: pointing to a folder outside tomcat webapps I kwnow that. I want to use the file META-INF/context.xml inside the application for pointing to another resource. I do not want use server.xml! -- Initial Header --- From : Arup Vidyerthy [EMAIL PROTECTED] To : Tomcat Users List tomcat-user@jakarta.apache.org Cc : Date : Wed, 28 Sep 2005 10:47:25 +0100 Subject : RE: pointing to a folder outside tomcat webapps Look up allowLinking = true in google. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 10:42 To: tomcat-user Subject: pointing to a folder outside tomcat webapps I'd like pointing a foder outside webapps tomcat folder. I know that with Context path=/myPath docBase=c://myFolder reloadable=true/ inserver.xml i can do it. I'd like to use that tag in META-INF/context.xmlwithout using server.xml. But It allows just one context tag on context.xml. So any idea? Regards -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com -- -- - 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] ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Multiple tomcat services?
Hi, I'm trying to install multiple tomcats on my machine, which works quite well except for one thing. When I'm installing the second instance of Tomcat, I get the following error: Failed to install Tomcat5 service. Check your settings and permissions. Ignore and continue anyway (not recommended)? I chose to ignore and continue. Tomcat then installs, but no service is added in windows services. If I go to the bin library of the second tomcat and press tomcat5w, it opens the _first_ instance's application. Is there a way to get two services going when I have multiple tomcats? The first instance is a tomcat 5.0 and the second is a tomcat 5.5.9. Any suggestions? Kind regards /Jens
RE: Multiple tomcat services?
Install it under a different name -Original Message- From: Jens Nordberg [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 15:13 To: tomcat-user@jakarta.apache.org Subject: Multiple tomcat services? Hi, I'm trying to install multiple tomcats on my machine, which works quite well except for one thing. When I'm installing the second instance of Tomcat, I get the following error: Failed to install Tomcat5 service. Check your settings and permissions. Ignore and continue anyway (not recommended)? I chose to ignore and continue. Tomcat then installs, but no service is added in windows services. If I go to the bin library of the second tomcat and press tomcat5w, it opens the _first_ instance's application. Is there a way to get two services going when I have multiple tomcats? The first instance is a tomcat 5.0 and the second is a tomcat 5.5.9. Any suggestions? Kind regards /Jens ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: saving files in webapp folder from deletion?
I think in the time you invested in this thread you could easily have written a servlet which delivers the data from anywhere, so you don't need to save it in the context. :-) regards Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple tomcat services?
How do you mean? The install program for Tomcat 5.5.9 doesn't allow me to change the name, or does it? As far as I can tell, I can only specify install directory, HTTP port, user name, password and jre. /Jens -Original Message- From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Sent: den 28 september 2005 16:20 To: 'Tomcat Users List' Subject: RE: Multiple tomcat services? Install it under a different name -Original Message- From: Jens Nordberg [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 15:13 To: tomcat-user@jakarta.apache.org Subject: Multiple tomcat services? Hi, I'm trying to install multiple tomcats on my machine, which works quite well except for one thing. When I'm installing the second instance of Tomcat, I get the following error: Failed to install Tomcat5 service. Check your settings and permissions. Ignore and continue anyway (not recommended)? I chose to ignore and continue. Tomcat then installs, but no service is added in windows services. If I go to the bin library of the second tomcat and press tomcat5w, it opens the _first_ instance's application. Is there a way to get two services going when I have multiple tomcats? The first instance is a tomcat 5.0 and the second is a tomcat 5.5.9. Any suggestions? Kind regards /Jens ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - 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: Multiple tomcat services?
Jens, Uncheck the 'Service' option while installing. Windows does not allow to have two services with same name. So, don't install as Service. Rgds, Hardik Tank --- Jens Nordberg [EMAIL PROTECTED] wrote: How do you mean? The install program for Tomcat 5.5.9 doesn't allow me to change the name, or does it? As far as I can tell, I can only specify install directory, HTTP port, user name, password and jre. /Jens -Original Message- From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Sent: den 28 september 2005 16:20 To: 'Tomcat Users List' Subject: RE: Multiple tomcat services? Install it under a different name -Original Message- From: Jens Nordberg [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 15:13 To: tomcat-user@jakarta.apache.org Subject: Multiple tomcat services? Hi, I'm trying to install multiple tomcats on my machine, which works quite well except for one thing. When I'm installing the second instance of Tomcat, I get the following error: Failed to install Tomcat5 service. Check your settings and permissions. Ignore and continue anyway (not recommended)? I chose to ignore and continue. Tomcat then installs, but no service is added in windows services. If I go to the bin library of the second tomcat and press tomcat5w, it opens the _first_ instance's application. Is there a way to get two services going when I have multiple tomcats? The first instance is a tomcat 5.0 and the second is a tomcat 5.5.9. Any suggestions? Kind regards /Jens ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - 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] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple tomcat services?
If you look at $tomcat_home/bin directory you should see a file call service.bat. Using that file you should be able to install a tomcat service under different names. -Original Message- From: Jens Nordberg [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 15:25 To: Tomcat Users List Subject: RE: Multiple tomcat services? How do you mean? The install program for Tomcat 5.5.9 doesn't allow me to change the name, or does it? As far as I can tell, I can only specify install directory, HTTP port, user name, password and jre. /Jens -Original Message- From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] Sent: den 28 september 2005 16:20 To: 'Tomcat Users List' Subject: RE: Multiple tomcat services? Install it under a different name -Original Message- From: Jens Nordberg [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 15:13 To: tomcat-user@jakarta.apache.org Subject: Multiple tomcat services? Hi, I'm trying to install multiple tomcats on my machine, which works quite well except for one thing. When I'm installing the second instance of Tomcat, I get the following error: Failed to install Tomcat5 service. Check your settings and permissions. Ignore and continue anyway (not recommended)? I chose to ignore and continue. Tomcat then installs, but no service is added in windows services. If I go to the bin library of the second tomcat and press tomcat5w, it opens the _first_ instance's application. Is there a way to get two services going when I have multiple tomcats? The first instance is a tomcat 5.0 and the second is a tomcat 5.5.9. Any suggestions? Kind regards /Jens ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - 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] ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Perl script from tomcat ( no apache ) on windows
Hi! How to run Perl script from tomcat ( no apache ) on windows? It is required for AW Stats, which uses perl for generating response. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedded Tomcat and shared objects...
still, spring can use the same factory. If not, use a container that can use factories :-) If nothing works, the hack would be: class MyObjectInstanceHolder{ private static MyObject instance; public set/getInstance... } ? regards leon On 9/28/05, Darryl L. Pierce [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: Aehm, without looking deeper into context initialization, just a short guess: what about making your configuration objects a singleton with public static CLASSNAME getInstance() or provide a factory for them? Because the class in question is created by Spring's application context. -- Darryl L. Pierce [EMAIL PROTECTED] Homepage: http://mcpierce.multiply.com/ Bury me next to my wife. Nothing too fancy... - Ulysses S. Grant - 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]
Vexing Problem with Tomcat connector
Hello, I have a website that I am migrating to a new server. Server is Redhat ES3 2.4.21-20.0.1.ELsmp. Server version: Apache/2.0.46 I have jakarta-tomcat-5.5.9 installed and working properly on the new server. It is perfectly accessible from the legacy web server. On the Website on the new server, access to jsp based pages give a 503 error. The main page, home.jsp, loads fine in the servlet if no page is given. http://webserver/PI/ The home.jsp spawns a 503 if is in the URL. http://webserver/PI/home.jsp I can successfully get images from the page from the tomcat instance. It does not like the .jsp extension. In the mod_jk log i can see the match made: [Wed Sep 28 10:29:14 2005] [18841:2816] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/PI/*' [Wed Sep 28 10:29:14 2005] [18841:2816] [debug] map_uri_to_worker::jk_uri_worker_map.c (475): Found a wildchar match worker3 - /PI/* However, in the apache access log is the 503. xxx.89.23.173 - - [28/Sep/2005:10:29:14 -0400] GET /PI/home.jsp HTTP/1.1 503 412 - Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 SESSIONID=128F9AD992A16BC3D3EB1ED0AD5549C1 I have watched in Ethereal as no traffic goes from the apache to the tomcat. I have tried using the loopback and local network address. I have tried adding a *.jsp directive to the mod_jk config for the servlet. Any help would be appreciated. I have a dent in my desk from hitting it with my forehead. Apache Config: #INSERT OF TOMCAT CONF PARAMETERS # Load mod_jk module # LoadModule jk_module modules/mod_jk.so LoadModule jk_module /etc/httpd/modules/mod_jk.so # Declare the module for IfModule directive #AddModule mod_jk.c # Where to find workers.properties JkWorkersFile /etc/httpd/conf/workers.properties # Where to put jk logs JkLogFile /var/log/httpd/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T # Send servlet for context /examples to worker named worker1 JkMount /examples/servlet/* worker1 JkMount /PI/* worker3 #JkMount /PI/*.jsp worker3 # Send JSPs for context /examples to worker named worker1 JkMount /examples/*.jsp worker1 JkMount /journals/*.jsp worker1 Worker Properties /etc/httpd/conf/workers.properties # Define some properties workers.apache_log=/var/log/httpd/ workers.tomcat_home=/usr/local/tomcat/jakarta-tomcat-5.5.9 workers.java_home=/usr/bin/java ps=/ # worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=172.20.1.19 worker.worker1.port=8009 # worker.list=worker2 # Set properties for worker2 (ajp13) worker.worker2.type=ajp13 worker.worker2.host=172.20.1.19 worker.worker2.port=10009 # worker.list=worker3 # Set properties for worker3 (ajp13) worker.worker3.type=ajp13 worker.worker3.host=127.0.0.1 worker.worker3.port=8099 # worker.list=worker4 # Set properties for worker4 (ajp13) worker.worker4.type=ajp13 worker.worker4.host=172.20.1.19 worker.worker4.port=8099 _ Tim Pickard CrossRef Systems Support Analyst and Administrator 40 Salem Street Lynnfield, MA 01940 tpickard at crossref dot org 781 295 0072 x27 __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Perl script from tomcat ( no apache ) on windows
Am Mittwoch, 28. September 2005 16:34 schrieb alebu: Hi! How to run Perl script from tomcat ( no apache ) on windows? It is required for AW Stats, which uses perl for generating response. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedded Tomcat and shared objects...
I have done something like this. The Factory and Singleton design patters work perfectly for this type of thing. If you create an abstraction layer, then there should be no problems On 9/28/05, Leon Rosenberg [EMAIL PROTECTED] wrote: still, spring can use the same factory. If not, use a container that can use factories :-) If nothing works, the hack would be: class MyObjectInstanceHolder{ private static MyObject instance; public set/getInstance... } ? regards leon On 9/28/05, Darryl L. Pierce [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: Aehm, without looking deeper into context initialization, just a short guess: what about making your configuration objects a singleton with public static CLASSNAME getInstance() or provide a factory for them? Because the class in question is created by Spring's application context. -- Darryl L. Pierce [EMAIL PROTECTED] Homepage: http://mcpierce.multiply.com/ Bury me next to my wife. Nothing too fancy... - Ulysses S. Grant - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
byte serving PDF with Tomcat 5.0.27
Hello all, I'm running Tomcat 5.0.27 on Linux, and need to know if this version of Tomcat supports byte serving and how to determine if it's working. If anyone can provide any help, I'd greatly appreciate it! Thank you, Shawn Maceno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can't see the my application (alovmap)
Hi everybody, i need help from you I am trying to install a webapp in Tomcat (AlovMap) , I have set up some others apps on it, but this time i dont know what is happening... i am using FreeBSD 4.11-STABLE with Tomcat 5.0.29 The application is a map server called Alov Map (http://alov.org) It works with a database ms access or mysql,etc. I dont know if it's necessary to have the database up, for having the webapp visible in tomcat? i have created the directory mapserv BUT i cannot see my publication, it is in $TOMCAT_HOME/webapps/mapserv I have done 1. Create a dir in [TOMCAT_HOME]/webapps. 2. Unzip the distribution zip file into this folder. 3. i have created in mysql the database, running the script .sql 4. i have copied the mm.(connector JDBC).jar into the WEB-INF/lib directory 5. i have restarted Tomcat. and go to : http://myhost:8080/mapserv/index.html and appears like nothing exists does not appears anything, this error : HTTP Status 404 - /mapserv/index.html -- *type* Status report *message* */mapserv/index.html* *description* *The requested resource (/mapserv/index.html) is not available.* -- Apache Tomcat/5.0.29 any hint? thank you
Re: Running Perl script from tomcat ( no apache ) on windows
alebu wrote: Hi! How to run Perl script from tomcat ( no apache ) on windows? It is required for AW Stats, which uses perl for generating response. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Simply use something like this in a jsp/servlet: Runtime rt = Runtime.getRuntime(); Process proc = rt.exec(cmd); proc.getInputStream() // std out proc.getErrorStream() // std err Where cmd is a String[] with at index 0 the path to the command, the path to perl in your case and the rest of the array the commandline options param=value, --someoption, There's also a variant of the exec method where you can set env variables, I think. This is all documented in the Java API of course. It might be that the default security manager settings in your appserver have a rule against executing native commands in which case you will need to tweak these settings. Good luck, Jilles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about tomcat startup ConcurrentModificationException
Hello Jilles So I have downloaded the mx4j-2.1.1.tar and untarred it, but since there is no exact match for jmx.jar in the mx4j distribution I zipinfo'd and sorted: the original tomcat/bin/jmx.tar (235 classes) mx4j.jar (285 classes) When diff'd, mostly a good match, but a couple of classes that are in jmx.jar are missing from mx4j.jar. I presume these are classes req'd by others in the package but are not called directly by tomcat. So you are suggesting that I replace the tomcat/bin/jmx.jar with the mx4j.jar ? If so, then I have a stupid question: when I do this replacement, should I rename the mx4j.jar to jmx.jar ? Maurice Jilles van Gurp wrote: The fix is to replace the mx4j jar file in the release (bin/jmx.jar) with the fixed version (latest 2.1.x) which has been available for a long time now from the mx4j project site. You might also search this mailinglist. This must be one of the more frequently raised topics. I know I found the right answer here half a year ago or so. I'd really appreciate a stable 5.0.x release with the fix. I've known about this bug for more than half a year now and I still encounter it at least once a week at customers. I then need to explain that it is not our product that is broken but tomcat and that it's a well known issue and it is easy to fix. Basically all our customers run into this issue. Lets face it, 5.0.28 is basically broken because of this easy to fix bug. People claim it rarely occurs (and consequently that it is perfectly acceptable to occasionally fail to launch with an obscure exception). Yet, I can't launch my webapp on an unpatched tomcat 5.0.28 unless I fix this first. Sometimes I forget on a clean install and then seconds later slap my forward. Just do a 5.0.28_01 with the fixed jar or finally move 5.0.30 to a stable release (I can't convince customers to install beta software) but please fix it one way or the other. Jilles Tim Funk wrote: Search bugzilla. There is a bug report about ConcurrentModificationException - it has to do with mx4j having a race condition. The bug describes a fix. -Tim Maurice Yarrow wrote: Hello Tomcat people When tomcat is restarted, it occasionally (1 in 25 times) gets the below exception. (tomcat 5.0.28, on Fedora Core 1) What is the significance of this? Thanks Maurice INFO: Starting Coyote HTTP/1.1 on http-8080 Sep 26, 2005 9:29:19 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Sep 26, 2005 9:29:19 AM org.apache.coyote.tomcat5.MapperListener init WARNING: Error registering contexts java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782) at java.util.HashMap$EntryIterator.next(HashMap.java:824) at java.util.HashMap.putAllForCreate(HashMap.java:424) at java.util.HashMap.clone(HashMap.java:656) at mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56) at mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:160 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: byte serving PDF with Tomcat 5.0.27
Sure, just set the content-type and stream some bytes. As far as I know this applies to all versions of tomcat too. Jilles Maceno, Shawn wrote: Hello all, I'm running Tomcat 5.0.27 on Linux, and need to know if this version of Tomcat supports byte serving and how to determine if it's working. If anyone can provide any help, I'd greatly appreciate it! Thank you, Shawn Maceno - 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: Flexible way of defining application variables in text format?
database. using props files you have to bounce the app to get changes to take effect unless you write your own properties loader that runs as a thread, or checks file timestamps, etc. imo, its all too messy, db based config is far superior now how exactly writing a thread which polls the db is less messy, than writing a thread that polls a file? regards leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to disable the internet DTD lookup in Tomcat ?
Hi, I've been trying to disable the DVD lookup in Tomcat. Even if this seems to be a common requirement, I was unable to find something related to it in the docs. Does anyone know how to disable it (or create a XML catalog to redirect a public ID to a local one? Thanks in advance, - Juan _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat as Non-Root under Linux listen for port 80
NoKideen wrote: is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 Ask your Linux admin to disable the privileged port nonsense, which only has value on a multiaccess server, and which alwasy undermines security by unnecessarily encouraging running server processes as root when they would be safer (e.g. if/when exploits are found) run as non-privileged users Example iptables rules which achieve port redirection: /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d 222.123.197.100 --dport 80 -j DNAT --to 222.123.197.100:8080 /sbin/iptables -A FORWARD -p tcp -i eth0 -d 222.123.197.100 --dport 8080 -j ACCEPT Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.8/113 - Release Date: 27/Sep/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PHP / JSP on Tomcat.
Hi! Is it a good Idea to have PHP enabled on tomcat ? As Tomcat is for Java/JSP. Sorry if the question is very basic. I am not too sure if running PHP is a good option on Tomcat. thanks, Lalit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: byte serving PDF with Tomcat 5.0.27
Thanks for the quick reply. I think I need a little more hand-holding on this one, not being the Tomcat genius... Can you provide some kind of example that shows where the content-type setting is and what it needs to be? Thanks again, Shawn Maceno On Wed, 2005-09-28 at 18:52 +0200, Jilles van Gurp wrote: Sure, just set the content-type and stream some bytes. As far as I know this applies to all versions of tomcat too. Jilles Maceno, Shawn wrote: Hello all, I'm running Tomcat 5.0.27 on Linux, and need to know if this version of Tomcat supports byte serving and how to determine if it's working. If anyone can provide any help, I'd greatly appreciate it! Thank you, Shawn Maceno - 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]
Virtual hosts and Threads
Hi All I have setup virtual hosts for 3 apps with virtual hosts config as follows. These virtual hosts are first handled by Apache and mod_jk. My apps have scheduler and automated mailing services. Host name=vhost.domain.com debug=0 appBase=deploy unpackWARs=true Aliaswww.vhost.domain.com/Alias Logger className=org.apache.catalina.logger.FileLogger directory=${jboss.server.home.dir}/log prefix=vhost_log1. suffix=.log timestamp=true/ Context path= docBase=${jboss.server.home.dir}/deploy/application.war debug=0 reloadable=true/ /Host This config is mailing the same mail 7 time. Further I noticed that there were 7 service started of the same kind. Querying the developer, he said that he had coded the apps to have the mail sent once every week. The mails are sent once every week but as said 7 copies of the same mail is delivered. The request for the app results in page not found if I follow the following config, even thought there is no error in startup. Context path=application docBase=${jboss.server.home.dir}/deploy/application.war debug=0 reloadable=true/ Can you guys have any idea on this and help me troubleshoot ??? Regards Thanks Mahesh S Kudva --- Robosoft Technologies - Partners in Product Development - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Disabling session cookies
Hello all, I'm trying to force a particular web application to use url-rewritting in place of session cookies to manage the session on Tomcat 5.0.28. I have, per the documentation, set the cookies=false attribute of the Context container for that application. However, the cookie is still getting set. If I set the same attribute (cookies=false) in the DefaultContext container in server.xml, I get the desired result. This would be great if there weren't other applications that relied on session cookies running on the same server. My question is, is this a bug or is Tomcat not designed to use different methods of maintaining session across different contexts? The existance of the attribute and the context level would seem to indicate this is possible. I've seen posts with the same problem in my searching but no resolutions. Thanks in advance for any suggestions or information. william - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PHP / JSP on Tomcat.
Lalit Batra wrote: Is it a good Idea to have PHP enabled on tomcat ? In my limited experience using the PHP4 servlet, some errors cause the whole JVM process to exit, so good idea depends on how badly you want to run PHP applications :-) Personally, I just run Apache on a different IP alongside Tomcat to handle the occasional LAMP-stack job... YMMV! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RemoteAddrValve not working for admin and manger apps
Hello: Sorry if this has been addressed already but I am having difficulty adding remote host valves to my manager and admin web apps in Tomcat 5.0.30 on Win2K . Adding a valve to manager.xml or simply uncommenting the example remote host valve for the admin web app in the admin.xml does not work. I restart the tomcat service after each xml configuration changes. I have used double and single quotes around the IP address. Is there any additional configuration required -maybe in the server.xml that has been ommitted from the documentation? Here is the context from my admin.xml Context path=/admin docBase=${catalina.home}/server/webapps/admin debug=0 privileged=true !-- Uncomment this Valve to limit access to the Admin app to localhost for obvious security reasons. Allow may be a comma-separated list of hosts (or even regular expressions). -- Valve className=org.apache.catalina.valves.RemoteAddrValve allow='127.0.0.1'/ Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_admin_log. suffix=.txt timestamp=true/ /Context Thanks
Realms and certificates
None of the standard realms do certificates properly. For example, o.a.c.authenticator.SSLAuthenticator.java does not check to see if a certificate has been revoked. The LDAP realm compares the presented certificate to the one in the LDAP which puts a burden on the LDAP to unpublish revoked certificates. This is also rather unnecessary because given the CA certifdicate and the OCSP address, any presented certificate can be authenticated properly. So I write my own Realm by extending RealmBase and modifying the public Principal authenticate(X509Certificate certs[]) method. I put this realm inside the Engine tag and commented out the userdatabase realm. But, so far as I can tell, my authenticate method is never called. Print statements (using the 5.5 log techniques) only appear from the start() method, never from authenticate(). And I can get in with revoked client certificates. Does anyone have an idea of what is happening? How can I debug this? Thanks, Jim Rome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: byte serving PDF with Tomcat 5.0.27
It's not so much a tomcat setting (it's not something you configure), as it is writing the correct type of servlet. I googled for [servlet binary content] and the first two links looked decent. -Original Message- From: Shawn Maceno [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 1:59 PM To: Tomcat Users List Subject: Re: byte serving PDF with Tomcat 5.0.27 Thanks for the quick reply. I think I need a little more hand-holding on this one, not being the Tomcat genius... Can you provide some kind of example that shows where the content-type setting is and what it needs to be? Thanks again, Shawn Maceno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: byte serving PDF with Tomcat 5.0.27
Am Mittwoch, 28. September 2005 20:58 schrieb Shawn Maceno: Thanks for the quick reply. I think I need a little more hand-holding on this one, not being the Tomcat genius... Can you provide some kind of example that shows where the content-type setting is and what it needs to be? Have a look at the iText homepage at http://www.lowagie.com/iText . This is a library for generating PDF files from Java. There is a step by step tutorial and one section is how to use iText in web applications. I think that's exactly what you're looking for. Even if you don't want to use iText, but the basic mechanisms are shown. HTH, Ralf. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: saving files in webapp folder from deletion?
Hi, Leon Rosenberg wrote: I think in the time you invested in this thread you could easily have written a servlet which delivers the data from anywhere, so you don't need to save it in the context. You are absolutely right, however I don't like to reinvent the wheel and therefore tend to look for existing solutions before introducing my own. Besides, due to the fact that the uploaded stuff represents the entire static content of the site, I have to be careful not to introduce performance penalties or security issues (e.g. by ../../... accesses). I'd also have to mimic Tomcats extension-to-mimetype mechanisms and other stuff, something that I'd like to circumvent. But maybe I'll go for such as servlet. Regards, -- Thomas Corte [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: saving files in webapp folder from deletion?
On 9/28/05, Thomas Corte [EMAIL PROTECTED] wrote: Hi, Leon Rosenberg wrote: I think in the time you invested in this thread you could easily have written a servlet which delivers the data from anywhere, so you don't need to save it in the context. You are absolutely right, however I don't like to reinvent the wheel and therefore tend to look for existing solutions before introducing my own. Sometimes reinventing the wheel is simplier and faster then bringing someone else's wheel to roll in your cart. :-) Regards Leon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Possible Security Bug
I have a _possible_ bug involving security in Tomcat 5.0.28. I dont see it in the bug database, although it may be described in a way that I didnt search for. I would prefer to send it privately in case its real. If thats not feasible, I will post it here. Or is there a way to put it in the database but mark it private? Can anyone advise? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manager webapp and virtual hosts
Mikolaj, Hi. Sorry to bother you but I saw this posting on the Tomcat list and was wondering if you were able to successfully set up what you describe? I have mod_jk working fine and I'm now trying to do exactly what you mentioned: my1.domain.com (apache + mod_jk) === tomcat.domain.com/webapp1 my2.domain.com (apache + mod_jk) === tomcat.domain.com/webapp2 So far I haven't had much success. If you've gained any insights that you can share with me, I'd be very grateful. Cheers, Dan On 8/25/05, Mikolaj Rydzewski [EMAIL PROTECTED] wrote: Hello, My configuration is very simple: tomcat listens on localhost with various apps in their contexts. Now I'd like to setup a virtual host for another one. Will it be possible to deploy/reload such application using manager webapp running on localhost? In other words: do I have to install separate manager webapp for each virtual host? And the second question is: is it possible to connect apache with virtual host + mod_jk + tomcat with webapp in it's context? I.e.: my1.domain.com (apache + mod_jk) === tomcat.domain.com/webapp1 my2.domain.com (apache + mod_jk) === tomcat.domain.com/webapp2 ? -- Mikolaj Rydzewski [EMAIL PROTECTED] Becomo S.A. tel. (12) 2927104 - 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: Possible Security Bug
John Caron wrote: I have a _possible_ bug involving security in Tomcat 5.0.28. I dont see it in the bug database, although it may be described in a way that I didnt search for. I would prefer to send it privately in case its real. If thats not feasible, I will post it here. Or is there a way to put it in the database but mark it private? Can anyone advise? Security bugs should be sent to [EMAIL PROTECTED] (who will send it on to the tomcat team). If you send it to me directly I'll take a look now. One other point, when sending a message on a new topic to the list, please don't reply to an old message and change the subject line. Thread aware mail clients still recognise your new message as part of the old thread. The correct process is to create a new message. Mark [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual hosts and Threads
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is behaviour that is frowned upon on this list. Frequent offenders will be removed from the list. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner Mahesh S Kudva wrote: Hi All I have setup virtual hosts for 3 apps with virtual hosts config as follows. These virtual hosts are first handled by Apache and mod_jk. My apps have scheduler and automated mailing services. Host name=vhost.domain.com debug=0 appBase=”deploy” unpackWARs=true Aliaswww.vhost.domain.com/Alias Logger className=org.apache.catalina.logger.FileLogger directory=${jboss.server.home.dir}/log prefix=vhost_log1. suffix=.log timestamp=true/ Context path= docBase=${jboss.server.home.dir}/deploy/application.war debug=0 reloadable=true/ /Host This config is mailing the same mail 7 time. Further I noticed that there were 7 service started of the same kind. Querying the developer, he said that he had coded the apps to have the mail sent once every week. The mails are sent once every week but as said 7 copies of the same mail is delivered. The request for the app results in page not found if I follow the following config, even thought there is no error in startup. Context path=application docBase=${jboss.server.home.dir}/deploy/application.war debug=0 reloadable=true/ Can you guys have any idea on this and help me troubleshoot ??? Regards Thanks Mahesh S Kudva --- Robosoft Technologies - Partners in Product Development - 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: Vexing Problem with Tomcat connector
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread. This makes it harder for other users to find relevant information when searching the lists. This is known as thread hijacking and is behaviour that is frowned upon on this list. Frequent offenders will be removed from the list. It should also be noted that many list subscribers automatically ignore any messages that hijack another thread. The correct procedure is to create a new message with a new subject. This will start a new thread. Mark tomcat-user-owner [EMAIL PROTECTED] wrote: Hello, I have a website that I am migrating to a new server. Server is Redhat ES3 2.4.21-20.0.1.ELsmp. Server version: Apache/2.0.46 I have jakarta-tomcat-5.5.9 installed and working properly on the new server. It is perfectly accessible from the legacy web server. On the Website on the new server, access to jsp based pages give a 503 error. The main page, home.jsp, loads fine in the servlet if no page is given. http://webserver/PI/ The home.jsp spawns a 503 if is in the URL. http://webserver/PI/home.jsp I can successfully get images from the page from the tomcat instance. It does not like the .jsp extension. In the mod_jk log i can see the match made: [Wed Sep 28 10:29:14 2005] [18841:2816] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/PI/*' [Wed Sep 28 10:29:14 2005] [18841:2816] [debug] map_uri_to_worker::jk_uri_worker_map.c (475): Found a wildchar match worker3 - /PI/* However, in the apache access log is the 503. xxx.89.23.173 - - [28/Sep/2005:10:29:14 -0400] GET /PI/home.jsp HTTP/1.1 503 412 - Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 SESSIONID=128F9AD992A16BC3D3EB1ED0AD5549C1 I have watched in Ethereal as no traffic goes from the apache to the tomcat. I have tried using the loopback and local network address. I have tried adding a *.jsp directive to the mod_jk config for the servlet. Any help would be appreciated. I have a dent in my desk from hitting it with my forehead. Apache Config: #INSERT OF TOMCAT CONF PARAMETERS # Load mod_jk module # LoadModule jk_module modules/mod_jk.so LoadModule jk_module /etc/httpd/modules/mod_jk.so # Declare the module for IfModule directive #AddModule mod_jk.c # Where to find workers.properties JkWorkersFile /etc/httpd/conf/workers.properties # Where to put jk logs JkLogFile /var/log/httpd/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel debug # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T # Send servlet for context /examples to worker named worker1 JkMount /examples/servlet/* worker1 JkMount /PI/* worker3 #JkMount /PI/*.jsp worker3 # Send JSPs for context /examples to worker named worker1 JkMount /examples/*.jsp worker1 JkMount /journals/*.jsp worker1 Worker Properties /etc/httpd/conf/workers.properties # Define some properties workers.apache_log=/var/log/httpd/ workers.tomcat_home=/usr/local/tomcat/jakarta-tomcat-5.5.9 workers.java_home=/usr/bin/java ps=/ # worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=172.20.1.19 worker.worker1.port=8009 # worker.list=worker2 # Set properties for worker2 (ajp13) worker.worker2.type=ajp13 worker.worker2.host=172.20.1.19 worker.worker2.port=10009 # worker.list=worker3 # Set properties for worker3 (ajp13) worker.worker3.type=ajp13 worker.worker3.host=127.0.0.1 worker.worker3.port=8099 # worker.list=worker4 # Set properties for worker4 (ajp13) worker.worker4.type=ajp13 worker.worker4.host=172.20.1.19 worker.worker4.port=8099 _ Tim Pickard CrossRef Systems Support Analyst and Administrator 40 Salem Street Lynnfield, MA 01940 tpickard at crossref dot org 781 295 0072 x27 __ - 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]
Session Attribute Management
Hi, all, In my application, a session attribute is needed to let the application function properly. So, I have a filter to verify whether this attribute is set or not in the session. The doFilter method of the filter is something like the following: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest hreq = (HttpServletRequest) request; logger.debug(Enter: + hreq.getRequestURL()); if (request instanceof HttpServletRequest) { logger.debug(instanceof); HttpSession session = hreq.getSession(false); // Check the session setting if (session != null) { logger.debug(session); if (session.getAttribute(myAttr) != null) { logger.debug(Attr set); // jump to the resource if it is set chain.doFilter(request, response); return; } } } // filterConfig.getServletContext().getRequestDispatcher( / + the_page).forward(request, response); return; } } After having an additonal segment of the application up, I find the the getSession(false) returns null for the requests of the first segment of application. When I click the first segment of the application, I am forwarded to the the_page, while I reach the right page on the second segment. There is not any architecture difference between these two segments. I use the Spring framework by the way. I don't think the framework has anything to do with the session management. What is the cause? Thanks very much for all your inputs in advance. Vernon __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat as Non-Root under Linux listen for port 80
NoKideen wrote: is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 Google is your friend: http://www.google.com/search?q=linux+port+80+non-root - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT: RE: Generic Types support in Tomcat?
Seak, Teng-Fong wrote: ... Well, after many many hours' search (seems like not a hot subject), I finally came to this mail archive. ... Well, my reply is a little off topic for this thread. But I followed through this thread of discussion, I just want to let you know that there is a now a better search tool for the technical discussions. Nabble has a large archive of many technical mailing lists, including for example, all Apache lists and Eclipse lists, check out All Apache: http://www.nabble.com/Apache-f90.html Tomcat: http://www.nabble.com/Tomcat-f303.html Eclipse: http://www.nabble.com/Eclipse-f2159.html Unlike a typical mailing list archive such as Gmane or mail-archive, where you can only search one list at a time, Nabble allows you to search all the lists within a project, for example, Tomcat has 2 lists, Eclipse has 30 lists, Apache has 300 lists. You don't have to go to each site to searrch each list, you can simply search from the Nabble software archive: http://www.nabble.com/Software-f94.html - then narrow the result by the projects. You can view the search result in the context of a thread of discussions instead of in an isolated post page. Even if you don't find an answer directly, you could at least find the people who have discussed the issue before, you can then reply or sent private emails to those users and hopefully they will respond like on this list. By the way, Nabble uses Apache Lucene for search, this means you have access to full set of query syntax such as wildcard search, fuzzy search, and grouping of search queries, etc. See this Lucense syntax page: http://lucene.apache.org/java/docs/queryparsersyntax.html You can design and enter a complex query string to pin-point your search on Nabble. In contrast, Google's search has to appeal to the non-technical majorities. -- Sent from the Tomcat - User forum at Nabble.com: http://www.nabble.com/RE%3A-Generic-Types-support-in-Tomcat--t334942.html#a987796
Re: Capturing User Passwords
You could modify the FormAuthenticator class and have it cache the password. I believe it's in the org.apache.catalina.authenticator package of the tomcat source. I did something similar to provide programmatic login, although I've somewhat abandoned that project. It's available at http://palpatine.infinitedata.net/~loucks/projects/pfa/ Context ... Valve className=com.company.MyPasswordCachingFormAuthenticator/ /Context Perry, Greg (UK - London) wrote: Thanks - but I did try using single sign-on and got that working correctly with trial applications. However, I need to explicitly supply the password in the call to my second application. Again, any help would be greatly appreciated. -Original Message- From: Giuseppe Briotti [mailto:[EMAIL PROTECTED] Sent: 28 September 2005 14:45 To: Tomcat Users List Subject: Re: Capturing User Passwords == Date: Wed, 28 Sep 2005 14:29:04 +0100 From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: Capturing User Passwords == I am trying to find a way of capturing a user's password so that I can have the user login to one of my web applications (which acts as a client), and pass it to a second application (which acts as the server). It sounds like you are trying to implement a Single sign on... -- Giuseppe Briotti [EMAIL PROTECTED] Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius. (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to the statement below or contact the sender. This communication is from Deloitte Touche LLP. Deloitte Touche LLP is a limited liability partnership registered in England and Wales with registered number OC303675. A list of members' names is available for inspection at Stonecutter Court, 1 Stonecutter Street, London EC4A 4TR, United Kingdom, the firm's principal place of business and registered office. Deloitte Touche LLP is authorised and regulated by the Financial Services Authority. This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title received in error to [EMAIL PROTECTED] then delete the email and destroy any copies of it. E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by e-mail is taken to accept the risks in doing so. When addressed to our clients, any opinions or advice contained in this e-mail and any attachments are subject to the terms and conditions expressed in the governing Deloitte Touche LLP client engagement letter. Opinions, conclusions and other information in this e-mail and any attachments which do not relate to the official business of the firm are neither given nor endorsed by it. - 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: Session Attribute Management
I already found the problem. It is about how a request shall be written in a JSP file: using c:url value=myRequest.html. Thanks --- Vernon [EMAIL PROTECTED] wrote: Hi, all, In my application, a session attribute is needed to let the application function properly. So, I have a filter to verify whether this attribute is set or not in the session. The doFilter method of the filter is something like the following: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest hreq = (HttpServletRequest) request; logger.debug(Enter: + hreq.getRequestURL()); if (request instanceof HttpServletRequest) { logger.debug(instanceof); HttpSession session = hreq.getSession(false); // Check the session setting if (session != null) { logger.debug(session); if (session.getAttribute(myAttr) != null) { logger.debug(Attr set); // jump to the resource if it is set chain.doFilter(request, response); return; } } } // filterConfig.getServletContext().getRequestDispatcher( / + the_page).forward(request, response); return; } } After having an additonal segment of the application up, I find the the getSession(false) returns null for the requests of the first segment of application. When I click the first segment of the application, I am forwarded to the the_page, while I reach the right page on the second segment. There is not any architecture difference between these two segments. I use the Spring framework by the way. I don't think the framework has anything to do with the session management. What is the cause? Thanks very much for all your inputs in advance. Vernon __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMX Method to check JDBC connection acivity?
Edmon, Did you get an answer to your question? I found your question quite interesting. I ran some tests and received the same error (RMI permission) as you. I used JConsole as well as looked at JMXProxy and could not determine if my datasource (in this case MySQL) was running or not. The informatio available via JMX was the same whether MySQL was started or not. I am wondering if creating your own MBean is the appropriate way to test the connection. Let me know how this comes out. - Andy Gordon Edmon Begoli [EMAIL PROTECTED] wrote: Is there a handy MBean in Tomcat that would allow me to do on demand check if the connection to the database is up? I've looked at DataSource but that one does not expose getConnection, and the one that requires username and password throws RMI permission exception. I would really like to have something simple as can connect or similar. -- Thank you, Edmon Begoli http://blogs.ittoolbox.com/eai/software - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
custom session manager
After using tomcat since the 3.x days, I have been very impressed with the amount of flexibility and configuration options that I have available to me. One part of the tomcat design that I do not believe is very flexible is the ability to set up a custom session manager. So maybe I am missing something, but how would I go about writing this for tomcat? I know I am being very vague, but how much work am I potentially signing myself up for here if I wanted to create a custom session manager? Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Flexible way of defining application variables in text format?
Leon Rosenberg [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: now how exactly writing a thread which polls the db is less messy, than writing a thread that polls a file? regards leon no need for threads with db. change the val in the db then the next time the page loads, the new value is there. one can get the val from the db however they wish (presentation layer, service, dao, etc) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Capturing User Passwords
Here is the code (this is for tomcat 4.1.x): if(log.isDebugEnabled()){ Principal principal = req.getUserPrincipal(); PropertyDescriptor[] pds; pds = PropertyUtils.getPropertyDescriptors(principal.getClass()); for(int i = 0; i pds.length; i++){ try { String name = pds[i].getName(); Object value = PropertyUtils.getProperty(principal, name); log.debug(pds. + name + = + value); } catch (Exception e) { e.printStackTrace(); } } } Larry On 9/28/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am trying to find a way of capturing a user's password so that I can have the user login to one of my web applications (which acts as a client), and pass it to a second application (which acts as the server). I know that I can retrieve the user from the ServletRequest using req.getUserPrincipal(). However, I do not know how I can retrieve the password. Can anyone offer any advice on whether this can be done and if so, the best way of doing it? [ I did attempt to use forms-based authentication and use a filter to capture the password whenever the j_security_check action was invoked. However, I read in another post that Tomcat does not allow filters to be placed on j_security_check. ] Once I have the password, I'd ideally be looking at converting it to a Credentials object, so that I could pass that to my second app, rather than passing the raw password. Does anyone know whether this can be achieved by using Tomcat's UserPasswordCredentials class? Also, to prevent the password been exposed in the URL posted from the login page, I'd also be looking to implement SSL. I presume that this will cause encryption problems. Does anyone have any advice about how I could work around this? - 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]
BASIC authentication SSO with a separate IIS application
I've been told our working application must coexist with other applications using BASIC authentication, the same domain name and a shared authentication store to achieve single sign on (SSO). Our application has been working fine without IIS or Apache sitting in front of it. The application is almost entirely dynamic so I didn't feel a need before. Now that we've thrown the switch on our QA tier the SSO is not working. The other application seems to generate a key to store the authentication in the browser of qa.ourserver.com, while our application generates a key of qa.ourserver.com:80. The browser then treats these as separate domains. I do not see anywhere in the config files where this is set. Q1: Can I configure Tomcat to not include the :80 at the end of the domain name? Q2: Should I configure Tomcat to run behind the same IIS the other application runs behind? I'm developing in Java and the other application is developed in C## and .net. Q3: If the BASIC authentication solution weren't already dictated, what would the preferred SSO solution be? Any additional insight is also appreciated. Thanks! -Steve-
Jsps
Hi, I have an Application which is J2EE Architecture and working with Resin 2.1.6 Now we are trying to bring up my application using Tomcat. What necessary modifications needs to be done in Tomcat web.xml file and server.xml Prem The information in this mail is confidential and is intended solely for the addressee. Access to this mail by anyone else is unauthorized. Any copying or further distribution beyond the original recipient is not intended and may be unlawful. The opinion expressed in this mail is that of the sender and does not necessarily reflect that of Titan.
Running Servlet in Tomcat
Hi all, I have compiled my servltet class and but hen I put the .class file into the webapps/ROOT/WEB-INF/classes folder And try to access it with http://hostname:port/servlet/servlet-name. Page not found error occurs. Where is the problem, please help Regards, Vilish -Original Message- From: Prema Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 September 2005 10:08 AM To: tomcat-user@jakarta.apache.org Subject: Jsps Hi, I have an Application which is J2EE Architecture and working with Resin 2.1.6 Now we are trying to bring up my application using Tomcat. What necessary modifications needs to be done in Tomcat web.xml file and server.xml Prem The information in this mail is confidential and is intended solely for the addressee. Access to this mail by anyone else is unauthorized. Any copying or further distribution beyond the original recipient is not intended and may be unlawful. The opinion expressed in this mail is that of the sender and does not necessarily reflect that of Titan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Servlet in Tomcat
Hi singh, try to put package declaration for the servlets and then redeploy.This may work. Regards, Sreekanth
Re: Re: Running Servlet in Tomcat
We're sorry, you have reached an email address at YahooGropus, not YahooGroups. Your message has not been delivered to the Yahoo Group intended. Please re-send your email to the correct address. We apologize for the inconvenience. YahooGropus Staff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session sharing not working - Which is the best strategy?
Hi all, frankly saying, i too have never tried this but we can keep some information stored in a cookie and then we can have the other web application browse through the cookies and find if the cookie is the intended one and process the applciation logic. Regards, Sreekanth
Re: Re: Running Servlet in Tomcat
Sorry, icouldn't get u.Please help Regards, Sreekanth
RE: Running Servlet in Tomcat
Hi Shashikant, I have done that. I have not used any package in my servlet. Can u describe the steps precisely to run the first servlet in tomcat thanks Regards, Vilish -Original Message- From: shashikant [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 September 2005 11:05 AM To: Singh, VilishKumar Subject: Running Servlet in Tomcat hi vilish, Check for the invoker servlet and its mapping in the tomcat/conf/web.xml file . Uncomment them and ur servlets will start working. hope this works for u. Regards Shashikant __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Webapp deploy on windows
Hi! For quite some time now we've had problems redeploying webapps on windows. The problem is that often, some .jar-files in the WEB-INF directory of a webapp is being in use by tomcat, and can therefore not be removed in order to hot-deploy this webapp without restarting tomcat. There are a few anto-locking features that can be enabled in context.xml, but these do not fix this problem entirely. The problem started occurring some time in the tomcat5 era (worked fine in tomcat v4 and lower). We have a system with ~70 webapps running, and we have a need to redeploy webapps on a daily basis. Because of this, we have had to schedule our deploys at nights and weekends just to avoid having to restart tomcat. We are also investigating running multiple servers with load balancing partly to resolve this problem. This has been a topic on the list several times for the past year or so, and is often discarded as file locking issues in windows by developers, therefore stating that nothing can/has to be fixed in tomcat. Is anyone working on the issues with the current tomcat version not being able to hotdeploy webapps on windows? Is this still regarded as a problem with windows rather than with tomcat? If so, how come it worked fine in tomcat 5.0, and how come sysinternals process explorer shows that tomcat5.exe has a file handle open to these affected jar-files? It seems to me that this is a problem of tomcat not closing its file handles properly. The cause is most likely windows, i agree on that, but something has to be done to make this work even on windows if tomcat still wants to have official support for windows. There must be some kind of workaround. I'm not trying to blame anyone for not fixing this issue, (well, maybe i'm laying some blame on those who thinks this is _not_ a tomcat issue..) however, i am really interested in having this bug fixed, and i am prepared to put some effort and time into it myself. To do this, though, i need the help of someone who knows more about this problem. So.. how much is known about this problem, and is there any work being done to resolve it as of now? Kind regards Joakim Ahlén - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]