SSL
I'm trying to implement SSL on win98 for my project and hope to get some useful links on how to create a certificate from this mailing list.Any recommendation? Thanks
RE: SSL
There are many users in the list keep bombarding the mailing list w/o properly doing homework first please do RTFM first ! -Original Message- From: Law Kim Soon [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 8:21 AM To: [EMAIL PROTECTED] Subject: SSL I'm trying to implement SSL on win98 for my project and hope to get some useful links on how to create a certificate from this mailing list.Any recommendation? Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat, threads and garbagecleaner: A question
Duarte: Your inactive threads, or any other unreferenced objects will be, eventually, garbage collected. Are you sure that your thread actually completes (e.g. falls out the end of 'run()') ? Are you certain that you have no hidden references to your objects - perhaps stored in your session? Are your objects hanging on to constrained resources too long? (eg. database connections, input streams, ...) If every page hit launches a new thread, you are building in a platform specific limit to the number of concurrent requests your server can handle. Perhaps you should 'pool' these threads, or simply 'schedule' the code your thread to be run by some sort of thread scheduler. Here's a couple of things that you can do to narrow down the problem: - add some simple logging in the finalize method of each 'suspect' class. This will tell you when your objects are garbage collected. - add logging to the end of your 'run' methods. This will show you when your threads actually 'stop'. - Write a servlet that lists all ThreadGroups and Threads starting at the 'top' ThreadGroup (null parent). This will show you what threads are active at the time your servlet is run. - 'Debug' your webapp, setting break points in appropriate places. Good luck Tom Drake - Original Message - From: Duarte Loreto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 01, 2002 5:45 PM Subject: Tomcat, threads and garbagecleaner: A question |Hello! | | I have a JSP page that instantiates an object. This instantiates another | one, as a thread. The thread is created and started on the same inline, and | I have no pointer to the thread. | | My question is: when this thread finishes it's run(), does it get | garbagecleaned? The object that referenced it was created by a JSP page that | was already delivered to the client, so it should be, right? | | I'm asking this as I have a server that, after some usage, starts to get | slow and then completly freezes, needing a restart. I suspect that there is | a memory leak somewhere, and this seems the most probable place. | | If your answer is the thread gets garbagecleaned, so look elsewhere for | your problem, I would appreciate help on how to analyse memory usage. I'm | clueless on this. | | I'm using tomcat 3.2.3 and I run it on UNIX, with JDK1.3. If needed be, I | can put it to run on a Windows, if you tell me that THE tool to check for | the problem is windows-based | | I appreciate your help. If you think that this question shouldn't be posted | here but rather on the devel list, please notify me. | | Duarte HappyGuy Loreto | | Don't worry, be happy! | | | _ | Send and receive Hotmail on your mobile device: http://mobile.msn.com | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
can anyone help
Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at http://www.talk21.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
can anyone help
Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at http://www.talk21.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: can anyone help
You have tomcat in the wrong directory. Here is where tomcat expects to find itself: C:\jakarta-tomcat-4.0.1 Try reinstalling first. But dont forget to delete tomcat registry entries. Then reboot. L Marcus - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 7:23 AM Subject: can anyone help Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at http://www.talk21.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: problem with multiple application on Tomcat
Puneet: All you need to do is to package each set of classes (and other resources) as a seperate web application. The tomcat docs provide plenty of information about how to do this. The 'simplest' way to create a web-application is to construct a directory structure (under the jakarta-tomcat-4.0/webapps directory) that contains all of your context's files (html, jsp, gif, jpg, etc...). Either place your classes in context/WEB-INF/classes or place your 'jar' file in context/WEB-INF/lib. You can then jar up the whole mess into a WAR file. Read the tomcat docs about deploying web-applications in the form of WAR files. No other configuration should be required unless your application has the need for it. Tomcat 4 allows you to add new web-applications at any time. It also lets you re-deploy (update) existing web-applications. I think you'll find all the details you need in the tomcat documentation. Good Luck. Tom Drake - Original Message - From: puneet sachar [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Tom Drake [EMAIL PROTECTED] Sent: Tuesday, January 01, 2002 11:53 AM Subject: problem with multiple application on Tomcat | i got your answers | | but sir tell me onr simple thing | u have one server running ok | | and 3 classes A.java placed some where and thoes files | correspond to different clients | | is it possible at runtime i change the classpath | acording to my liking with suit the particular client | | is it possible | | i'm also sending u a word attachment where i had 3 | sloutions for them | now go through them all and mail me and tell me whatz | exactly be done to get solutions | | regards | Puneet | | __ | Do You Yahoo!? | Send your FREE holiday greetings online! | http://greetings.yahoo.com | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: can anyone help
This is such an apparently common problem - and there's those who just give up in frustration - that I wonder whether the developers could find some way of making TC's operation independent of the install directory. (I'll attribute MS's success to their making their products relatively fool-proof - even idiot-proof!) Arnold Shore Who Finally Got It Working in Annapolis, MD USA -Original Message- From: lmarcus [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 7:39 AM To: Tomcat Users List Subject: Re: can anyone help You have tomcat in the wrong directory. Here is where tomcat expects to find itself: C:\jakarta-tomcat-4.0.1 Try reinstalling first. But dont forget to delete tomcat registry entries. Then reboot. L Marcus - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 7:23 AM Subject: can anyone help Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at http://www.talk21.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Servlet visibility in Apache-Tomcat
Hi all ! I use Apache 1.3.22 and Tomcat 4.0.1 with the WARP connector mod_webapp (W2k pro and JDK 1.3.1) I have a little problem: When I request the URL http://localhost/servlet/myservlet?param1=value1param2=value2 to apache I get the 404 Page Not Found. Nevertheless, when I request the same to Tomcat (at port 8080, Stand-alone mode configuration) it's work fine (myservlet is in %CATALINA_HOME%/classes directory). I think Apache search the servlet folder in his htdocs and obviously don't found it. Why the mapping /servlet/* of Tomcat default web.xml (in the %CATALINA_HOME%/conf) not work? I just want to execute my servlet from Apache. Thanks in advance. Marcelo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat servlet output
if you are working in linux try to send the log file to any terminal, for example /dev/tty9 and after you'll see all the System.out.println pressing Alt+F9, any linux person knows that, use the terminals for logs my friend. Regards and happy new year, Guido. -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 01, 2002 12:07 PM To: Tomcat Users List Subject: Re: tomcat servlet output That will look ugly even though it's for the test purpose. Try use the log file. You will more than likely need them in the production environment unless that is not your preference and no necessary. Pae At 05:13 PM 12/31/2001 -0800, you wrote: My servlets in Tomcat works just fine, but I was wondering where does the 'System.out.println(bla bla...)' goes when the servelet is executed. I would like to use this to debug my servlet. thanks, Sanjeev In my case (Win 2K), System.out.println goes to the Catalina console window that's spawned when Tomcat is started. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC for mySQL
yes, check the postgreSQL installation inside /var/lib/pgsql or /user/lib/pgsql you will see two jar files, get the one that finishs with *2.jar, is the JDBC Version 2.0 for postgreSQL and read the postgreSQL specification for that. Guido. -Original Message- From: Simon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 01, 2002 2:44 PM To: Tomcat Users List Subject: JDBC for mySQL Sorry, this goes a little out of topic. Are there JDBC driver for MySQL and postgres? Any these drivers work with tomcat? Simon. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: SSL
You don't have to be that crude, remember everybody here were stupid at the very beginning, including myself, the rigth answer is to read the SSL how-to inside the tomcat documentation, it is only few pages and is very easy to understand, I recommend you to read the hold manual, cause you need to learn first about connectors, tags/tags inside xml files and so on. Regards, Guido. -Original Message- From: Lai Kok Cheong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:15 AM To: Tomcat Users List Subject: RE: SSL There are many users in the list keep bombarding the mailing list w/o properly doing homework first please do RTFM first ! -Original Message- From: Law Kim Soon [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 8:21 AM To: [EMAIL PROTECTED] Subject: SSL I'm trying to implement SSL on win98 for my project and hope to get some useful links on how to create a certificate from this mailing list.Any recommendation? Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.01, IIS and JSPs
Hi, Daniel, You wrote: I've written a little program that allows Tomcat 4.01 to be used with IIS. do you mean a kind of redirector? Is it different from the known isapi_redirect.dll that comes with the Tomcat 3.3 distribution? As you might already know: that isapi_redirect.dll works with Tomcat 4.0.1, too. It integrates IIS and Tomcat using an ajp13-connector. See this tutorial: http://www.vacodi.com/howto/tomcat/iisnt/index.html Unfortunately the 3.3.-redirector doesn't function with an inprocess worker (only with an ajp13). Secondly it works as a global filter within IIS which means that the IIS-log-file only contains references to the mere .dll and not to the actual JSP/servlet resources. Would be nice if your program could do inprocessing and complete logging on the IIS-side. By the way: isn't there a redirector for Tomcat 4.0.1 being developed within the Jakarta project (like for the Tomcat versions 3.X)? Perhaps you could join? Havn't seen your sourceforge project entry yet. ;-) bestWISHES Ingo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: tomcat servlet output
But if I want to write in a log file, how I do it? I need to modify server.xml or web.xml? Which lines I must append to this configuration files? Thanks in advance and HAPPY NEW YEAR TOO !!! Marcelo - Original Message - From: Guido Medina [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 5:07 AM Subject: RE: tomcat servlet output if you are working in linux try to send the log file to any terminal, for example /dev/tty9 and after you'll see all the System.out.println pressing Alt+F9, any linux person knows that, use the terminals for logs my friend. Regards and happy new year, Guido. -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 01, 2002 12:07 PM To: Tomcat Users List Subject: Re: tomcat servlet output That will look ugly even though it's for the test purpose. Try use the log file. You will more than likely need them in the production environment unless that is not your preference and no necessary. Pae At 05:13 PM 12/31/2001 -0800, you wrote: My servlets in Tomcat works just fine, but I was wondering where does the 'System.out.println(bla bla...)' goes when the servelet is executed. I would like to use this to debug my servlet. thanks, Sanjeev In my case (Win 2K), System.out.println goes to the Catalina console window that's spawned when Tomcat is started. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat servlet output
check inside server.xml, it is one logger, duplicate it, put one to a file and a second to a terminal. -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 2:25 PM To: Tomcat Users List Subject: Re: tomcat servlet output But if I want to write in a log file, how I do it? I need to modify server.xml or web.xml? Which lines I must append to this configuration files? Thanks in advance and HAPPY NEW YEAR TOO !!! Marcelo - Original Message - From: Guido Medina [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 5:07 AM Subject: RE: tomcat servlet output if you are working in linux try to send the log file to any terminal, for example /dev/tty9 and after you'll see all the System.out.println pressing Alt+F9, any linux person knows that, use the terminals for logs my friend. Regards and happy new year, Guido. -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 01, 2002 12:07 PM To: Tomcat Users List Subject: Re: tomcat servlet output That will look ugly even though it's for the test purpose. Try use the log file. You will more than likely need them in the production environment unless that is not your preference and no necessary. Pae At 05:13 PM 12/31/2001 -0800, you wrote: My servlets in Tomcat works just fine, but I was wondering where does the 'System.out.println(bla bla...)' goes when the servelet is executed. I would like to use this to debug my servlet. thanks, Sanjeev In my case (Win 2K), System.out.println goes to the Catalina console window that's spawned when Tomcat is started. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to logout
Hi! I have understood that logging out the current user should be done by calling session.invalidate() .. however, this does not seem to work: the session is emptied, but for instance request.getRemoteUser() will still return the same user as before invalidation.. Is this a Tomcat bug or have I misunderstood something here? I'm using Tomcat 4.0.1 and HTTP basic authenticationg without SSL. Thanks in advance. -juha- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3: ThreadPool bug (IS IT SAFE FOR PRODUCTION USE???)
If it helps, the bug of maxThreads, etc. being reset in the start() method has been fixed for Tomcat 3.3.1 and it available in the nightly 3.3 build. Cheers, Larry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 31, 2001 12:44 AM To: Tomcat Users List Subject: Re: Tomcat 3.3: ThreadPool bug (IS IT SAFE FOR PRODUCTION USE???) Thanks for your reply Jeff :-) I am using it behind the Apache Web server (ajp1.3) and am having serious problems to keep the service alive (not to mention the poor performance) The Tomcat is increasing the number of threads when under the load and inevitable finishes with ThreadPool giving up. The code in the ThreadPool is really not okay as it does not provide any way of tuning the pools and definetly does not provide any solution when running out of available Threads :-( By the way, do you have any experience with the load-balancing under ajp1.3 ... up to now I have observed only that one blocked Tomcat is stalling the whole ajp1.3 load-balancing for the rest of the gang (I have 4 Solaris machine each configured with identical application). Also browsing a bit thrue the internet I have found quite a few articles about Solaris and Threads in JVM ... mostly confusing me if not giving me very bad feeling in stomach ... any comments about the stability of the Tomcat3.3/JDK1.3.1_02/Solaris8 ??? Thanks in advance Drasko Jeff Kilbride [EMAIL PROTECTED] on 31.12.2001 06:34:42 Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: Re: Tomcat 3.3: ThreadPool bug (IS IT SAFE FOR PRODUCTION USE???) Are you using Tomcat standalone or with Apache? If standalone, then yes, I would recommend using the latest version of Tomcat 4.x. If you're using Apache, I would stick with 3.3 until the mod_jk code is fully implemented with the 4.x versions. Thanks, --jeff - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, December 29, 2001 2:09 PM Subject: Tomcat 3.3: ThreadPool bug (IS IT SAFE FOR PRODUCTION USE???) Hi there, I am trying to deploy our production service on the Tomcat 3.3 platform (Solaris8, JDK 1.3.1) but am very often facing the instability problems. Somehow, the ThreadPool just runs out of steam and blocks Connectors from receiving any more requests. Looking into the source code, I have noticed some very interesting constructions in the ThreadPool class. Namely, the setters for the maxThreads, maxSpareThreads and minSpareThreads are having very little influence as the start() method is resseting the values to the default constants ?!?! public ThreadPool() { maxThreads = MAX_THREADS; maxSpareThreads = MAX_SPARE_THREADS; minSpareThreads = MIN_SPARE_THREADS; currentThreadCount = 0; currentThreadsBusy = 0; stopThePool = false; } public synchronized void start() { stopThePool=false; currentThreadCount = 0; currentThreadsBusy = 0; maxThreads = MAX_THREADS; maxSpareThreads = MAX_SPARE_THREADS; minSpareThreads = MIN_SPARE_THREADS; adjustLimits(); openThreads(minSpareThreads); monitor = new MonitorRunnable(this); } Also, the situation when there are no more available Threads in the pool is being handled in a special way which JUST BLOCKS IN THE INFINITE LOOP : -((( Is the code of the Tomcat4 equaly immature or there is a fair chance to role a productiv system on top of it? Thanks in advance for any comments Drasko Kokic -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Advanced Java Developer Linux Administrator Available...
Title: Advanced Java Developer Linux Administrator Available... Hi, I have been for a while answering/asking questions in this list, the subject of this mail is not technical, is personal-professional, I'm living in Dominican Republic, I am a litle up set about his place, Java here is like the water in the Sahara, the same as Linux, I attached my Curriculum Vitae in this Email, any interesting offer ?, Don't tell me to try inside www.deja.com, I already did it. Thanks a lot for your time answers, Guido. Guido.doc Description: MS-Word document -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Problems with Tomcat3.3 and IIS5.0
This would seem to be a permission problem on the IIS 5.0 side. The howto document mentions some changes to the IIS configuration but doesn't address this topic in general. What appears in IIS's access log and isapi_redirect.dll's log file for the request? Cheers, Larry -Original Message- From: Santiago Planet García [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 27, 2001 7:02 AM To: [EMAIL PROTECTED] Subject: Problems with Tomcat3.3 and IIS5.0 I'm trying to install Tomcat 3.3 to work with IIS 5.0, over Windows 2000 Server, and I'm doing the steps specifieds on http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html but I'm not obtaining any good results. The error that I obtain is: HTTP 401.3 - Access denied by ACL on resource when accessing to http://localhost/examples/jsp/index.html However if I access to http://localhost:8080/examples/jsp/index.html the error not appears. How can I resolve this problem? Thank you very much. Happy New Year! __ _ SANTI PLANET GARCIA [EMAIL PROTECTED] http://www.salleURL.edu/~si05993 Departament de Comunicacions i Teoria del Senyal Enginyeria La Salle -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Very basic problem
Hello All, I have a very basic problem. I try to an java application under DOS (Windows operating system is windows 2000 server). I got error: java.lang.NoClassDefFoundError: test. The application is a sample from text book, very simple: class test { public static void main(String args[]) { System.out.println(Hello, World!); } } I run it by java test. I installed jdk1.3, and setup the CLASSPATH point to d:\jdk1.3;d:\jdk1.3\bin; what do I missed ? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Very basic problem
the PATH should point to d:\jdk1.3\bin and CLASSPATH to d:\jdk1.3\jre\lib\rt.jar -Message d'origine- De: Jack Li [SMTP:[EMAIL PROTECTED]] Date: mercredi 2 janvier 2002 16:26 À:'[EMAIL PROTECTED]' Objet:Very basic problem Hello All, I have a very basic problem. I try to an java application under DOS (Windows operating system is windows 2000 server). I got error: java.lang.NoClassDefFoundError: test. The application is a sample from text book, very simple: class test { public static void main(String args[]) { System.out.println(Hello, World!); } } I run it by java test. I installed jdk1.3, and setup the CLASSPATH point to d:\jdk1.3;d:\jdk1.3\bin; what do I missed ? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] --Interscan- (on the network) email-body was scanned and no virus found --Traite par ISVW--- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Very basic problem
you have to include JAVA_HOME in your autoexec.bat file If the problem is not solved just say java in dos promt and see what comes - Original Message - From: Jack Li [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 8:55 PM Subject: Very basic problem Hello All, I have a very basic problem. I try to an java application under DOS (Windows operating system is windows 2000 server). I got error: java.lang.NoClassDefFoundError: test. The application is a sample from text book, very simple: class test { public static void main(String args[]) { System.out.println(Hello, World!); } } I run it by java test. I installed jdk1.3, and setup the CLASSPATH point to d:\jdk1.3;d:\jdk1.3\bin; what do I missed ? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: How to logout
the remote user is http protocol specific. It does not use anything in the users session. If you want to log out a user who has used basic auth you need to send them a page with a status of not authorised. The browser will then get the message that the user is 'logged out' Hope this helps ! Of course basic auth isn't very secure as the users username/password gets passed in the clear on every transfer... D [EMAIL PROTECTED] wrote: Hi! I have understood that logging out the current user should be done by calling session.invalidate() .. however, this does not seem to work: the session is emptied, but for instance request.getRemoteUser() will still return the same user as before invalidation.. Is this a Tomcat bug or have I misunderstood something here? I'm using Tomcat 4.0.1 and HTTP basic authenticationg without SSL. Thanks in advance. -juha- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Very basic problem
In the memory of my first java lines I will reply to this out of subject question. Firstly, You should have the current directory in your CLASSPATH. Secondly you should put a capital to your class name and your file (to be clean) class Test { pubic static void main(String[] args){ System.out.println(Hello World); } } then you launch it with : java -classpath . Test Arnaud -Message d'origine- De: Jack Li [SMTP:[EMAIL PROTECTED]] Date: mercredi 2 janvier 2002 16:26 À:'[EMAIL PROTECTED]' Objet:Very basic problem Hello All, I have a very basic problem. I try to an java application under DOS (Windows operating system is windows 2000 server). I got error: java.lang.NoClassDefFoundError: test. The application is a sample from text book, very simple: class test { public static void main(String args[]) { System.out.println(Hello, World!); } } I run it by java test. I installed jdk1.3, and setup the CLASSPATH point to d:\jdk1.3;d:\jdk1.3\bin; what do I missed ? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Very basic problem
This question should be asked on a Java forum, but here is your answer: Add . to the beginning of your classpath: CLASSPATH=.;d:\jdk1.3;d:\jdk1.3\bin; This tells Java to look in the current directory for classes. Jim -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:26 AM To: '[EMAIL PROTECTED]' Subject: Very basic problem Hello All, I have a very basic problem. I try to an java application under DOS (Windows operating system is windows 2000 server). I got error: java.lang.NoClassDefFoundError: test. The application is a sample from text book, very simple: class test { public static void main(String args[]) { System.out.println(Hello, World!); } } I run it by java test. I installed jdk1.3, and setup the CLASSPATH point to d:\jdk1.3;d:\jdk1.3\bin; what do I missed ? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Posted content length exceeds limit
Hi all, I am using a servlet to post data to my server. the html page I am using looks like: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML//EN html head title/title /head body form action=http://myserver/myAlias/servlet/myServlet/; target=resultat method=POST ENCTYPE=multipart/form-data id : input type=text name=idbr File : input type=file name=databr input type=submit nameOK /form /body /html On my server, I have Apache 1-3-20, Tomcat 3-2-2, and add-in of O'Reilly to manage multipart request. Depending on the size of the file, the request return an error: java.io.IOException: Posted content length of 2800901 exceeds limit of 1048576 Where is defined this limitation and how can I modifie it ?? Thanks in advance. Seb. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Very basic problem
Also, I think you are confusing CLASSPATH with PATH. PATH is used by DOS to determine where the executables are e.g. java.exe CLASSPATH is used by Java to determine where class files (or jar files) are In your case the CLASSPATH should only contain the directory containing your compiled class file. Do not confuse yourself by putting d:\jdk1.3;d:\jdk1.3\bin; on your classpath. Most people do not set the environment variable CLASSPATH at all since this will be different for every application you write. I would set JAVA_HOME to d:\jdk1.3 and then use the command line as follows (assuming you are in the directory where your class file is): %JAVA_HOME%\bin\java -cp . test Note - -cp replaces -classpath in JDK1.3 Using JAVA_HOME like this allows you to save cmd/bat files that will work even if you move to a new version of Java - just change JAVA_HOME. Pete -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: 02 January 2002 15:38 To: Tomcat Users List Subject: RE: Very basic problem This question should be asked on a Java forum, but here is your answer: Add . to the beginning of your classpath: CLASSPATH=.;d:\jdk1.3;d:\jdk1.3\bin; This tells Java to look in the current directory for classes. Jim -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:26 AM To: '[EMAIL PROTECTED]' Subject: Very basic problem Hello All, I have a very basic problem. I try to an java application under DOS (Windows operating system is windows 2000 server). I got error: java.lang.NoClassDefFoundError: test. The application is a sample from text book, very simple: class test { public static void main(String args[]) { System.out.println(Hello, World!); } } I run it by java test. I installed jdk1.3, and setup the CLASSPATH point to d:\jdk1.3;d:\jdk1.3\bin; what do I missed ? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Very basic problem
Thanks for all the quick responses. It works now. What I did is to put .; and d:\jdk1.3\jre\lib\rt.jar in CLASSPATH. Jack -Original Message- From: DESBOIS Sébastien [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 10:29 AM To: Tomcat Users List Subject: RE: Very basic problem the PATH should point to d:\jdk1.3\bin and CLASSPATH to d:\jdk1.3\jre\lib\rt.jar -Message d'origine- De: Jack Li [SMTP:[EMAIL PROTECTED]] Date: mercredi 2 janvier 2002 16:26 À:'[EMAIL PROTECTED]' Objet:Very basic problem Hello All, I have a very basic problem. I try to an java application under DOS (Windows operating system is windows 2000 server). I got error: java.lang.NoClassDefFoundError: test. The application is a sample from text book, very simple: class test { public static void main(String args[]) { System.out.println(Hello, World!); } } I run it by java test. I installed jdk1.3, and setup the CLASSPATH point to d:\jdk1.3;d:\jdk1.3\bin; what do I missed ? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problem with iso-8859-2 charset
Hi, In Your mail sent Wednesday, January 02, 2002 I wrote: MK I'm using Tomcat 3.3 on Linux Debian unstable system. Everything was MK fine until I made an upgrade of the distribution. Now all iso-8859-2 MK chars are returned as two-byte values (Unicode?), and I can see MK question marks and squares instead of letters. Does anyone have an MK idea what can it be? Configuration problem? Same jsp pages worked fine MK before the upgrade. I found some new interesting information about this behavior: First, in case described above, if I choose Encoding-UTF-8 in my browser everything looks fine. That means, that Tomcat(?) converts chars from iso-8859-2 in .jsp file to unicode on the server output. So setting the page charset to utf-8 in meta should work. Second, I found, that if I use a bean:message .../ tag to insert text from properties file and the text contains polish characters entered in unicode (like \u0105) then the encoding on the output is back iso-8859-2, so there is conversion, but in this case from Unicode to iso-8859-2 (browser is set to iso-8859-2). So the problem is partially solved, because I can choose one of these solutions to get desirable result. But I'm just curious - what can be the cause of that? -- Best regards, Maciej -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
TQ
Special thanks to Mr Guido Medina for ur kindness and not to forget Mr Lai Kok Cheong and Mr Micael Padraig Og for ur reply.
configuring tomcat
hi is there another way for configuring tomcat than directly editing the server.xml file. is there not a graphical tool like in jrun? thanks, frank E-Mail for everyone! http://www.bluemail.ch/ powered by Bluewin! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat with Apache
I am going to run an entire site in java (jsp or velocity) and I currently have apache 1.3.* connected to tomcat 4.0.1 with the warp connector. Works great. Great concept. But... Do I really need Apache? I am not going to have any html. All the pages on the site will be java. Is tomcat a good enough server to take a heavily traficked site? I would say that Apache would handle the images, but we use a 3rd party (mirror image) for that. So should I use Apache or not? Thanks in advance. Charlie Harvey -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
client-auth tag in Connector config in server.xml, for SSL
Hi (I write with some trepidation in light of the 'SSL' exchange this morning :-)), I am currently trying to set up Tomcat 3.2.4 to directly serve content using https: I am an SSL-novice, but I believe that I've successfully followed the Tomcat-SSL howto - I have installed jsse, rebuilt Tomcat 3.2.4, and created and installed my own certificate (just for testing) using jsse. I see an SSL-connector running on port 8443 when Tomcat comes up. Here is behaviour that's been puzzling me, and my question: The suggested SSL Connector section for server.xml stated in the SSL-howto's web.xml snippet has a Parameter name=clientAuth value=true tag inside it. BUT, when I follow this advice, I find that the following (standard) URL - https://localhost:8443/index.html gives document not found error (404? 400?). I WAS expecting it to return the usual Tomcat welcome screen. If I _change_ the tag to have clientAuth parameter set to false, then the document is fetched OK at the above URL, (well, the browser first complains a little at first that my certificate is not issued by a valid provider, but that's something I can solve). I have looked through documentation I have, the discussion archives and the source code for Tomcat, trying to understand the behavior of the clientAuth parameter for a connector. So far, I'm missing what I need. I assume it's requiring the client to authenticate somehow (and blocking the server, in my case), but I don't know how to actually set up an authenticating client (in the way this server wants it). Is this information that you have to supply in the POST parameters? Q1 Can someone point me to the right documentation specifying this type of client authentication? (Really sorry if it's in front of my face.) Q2 Also, can anyone tell me if the behavior I'm seeing (no documents served unless clientAuth=false) is reasonable, or have I created a flawed build of Tomcat? Thanks, Vivek Iyer
BadTargetObjectURI Error
I am getting the above error returned by the SOAP server when I try to use the GetQuote method in the StockQuote soap sample. I have read a number of discussions about this and have tried to remedy it by including the soap-2_0 directory in the tomcat classpath so that the sample classes can be found. THis was to no avail. I'd appreciate any help with this. My classpath settings are below. set CP=%CATALINA_HOME%\common\lib\xerces.jar;%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar;e:\soap-2_0\;%CATALINA_HOME%\common\lib\soap.jar if %JSSE_HOME% == goto noJsse set CP=%CP%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar :noJsse set CLASSPATH=%CP%;%CLASSPATH% Thanks again Caroline -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: can anyone help
Hi L, I have reinstalled tomcat in C:\jakarta-tomcat-4.0.1 however it is still not working do you have anyone other suggestions?? thanks liakim You have tomcat in the wrong directory. Here is where tomcat expects to find itself: C:\jakarta-tomcat-4.0.1 Try reinstalling first. But dont forget to delete tomcat registry entries. Then reboot. L Marcus - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 7:23 AM Subject: can anyone help Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com'http://www.talk21.com/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] talk21 your FREE portable and private address on the net at http://www.talk21.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JDBC Realm not working with NT service
hello, my tomcat 3.3 application works fine as a stand-alone application using JDBC Realm authentication. When i run it as an NT service using the supplied jk_nt_service tool.. the authentication fails with the message below. For some reason it is not sending the user to the database, although it does correctly get the user name in the error message (not last line below). Anyone else have this problem? thanks Gareth = 2002-01-02 11:28:56 - JDBCRealm: There was an SQLException while in checkConnection: {0} - java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '\'. at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:320) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:199) at org.apache.tomcat.modules.aaa.JDBCRealm.checkConnection(Unknown Source) at org.apache.tomcat.modules.aaa.JDBCRealm.getCredentials(Unknown Source) at org.apache.tomcat.modules.aaa.RealmBase.checkPassword(Unknown Source) at org.apache.tomcat.modules.aaa.RealmBase.authenticate(Unknown Source) at org.apache.tomcat.core.Request.getRemoteUser(Unknown Source) at org.apache.tomcat.modules.aaa.AccessInterceptor.authorize(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) 2002-01-02 11:28:56 - JDBCRealm: Authentication unsuccessful for user lloydg __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Realm not working with NT service
copy the jsse 1.0.2 jar files inside C:\Program Files\JavaSoft\JRE\lib\Ext that's it... -Original Message- From: gman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: JDBC Realm not working with NT service hello, my tomcat 3.3 application works fine as a stand-alone application using JDBC Realm authentication. When i run it as an NT service using the supplied jk_nt_service tool.. the authentication fails with the message below. For some reason it is not sending the user to the database, although it does correctly get the user name in the error message (not last line below). Anyone else have this problem? thanks Gareth = 2002-01-02 11:28:56 - JDBCRealm: There was an SQLException while in checkConnection: {0} - java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '\'. at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:320) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:199) at org.apache.tomcat.modules.aaa.JDBCRealm.checkConnection(Unknown Source) at org.apache.tomcat.modules.aaa.JDBCRealm.getCredentials(Unknown Source) at org.apache.tomcat.modules.aaa.RealmBase.checkPassword(Unknown Source) at org.apache.tomcat.modules.aaa.RealmBase.authenticate(Unknown Source) at org.apache.tomcat.core.Request.getRemoteUser(Unknown Source) at org.apache.tomcat.modules.aaa.AccessInterceptor.authorize(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) 2002-01-02 11:28:56 - JDBCRealm: Authentication unsuccessful for user lloydg __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: can anyone help
can your win98 resolve 'localhost'? try adding localhost to your hosts file. I think this was a previously discussed tc/win98 issue. you can search the archives for more detail. I'm not using win98 so I don't remeber exactly. Charlie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 12:08 PM To: [EMAIL PROTECTED] Subject: Re: can anyone help Hi L, I have reinstalled tomcat in C:\jakarta-tomcat-4.0.1 however it is still not working do you have anyone other suggestions?? thanks liakim You have tomcat in the wrong directory. Here is where tomcat expects to find itself: C:\jakarta-tomcat-4.0.1 Try reinstalling first. But dont forget to delete tomcat registry entries. Then reboot. L Marcus - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 7:23 AM Subject: can anyone help Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.t alk21.com'http://www.talk21.com/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] talk21 your FREE portable and private address on the net at http://www.talk21.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: configuring tomcat
On Wed, 2 Jan 2002 [EMAIL PROTECTED] wrote: Date: Wed, 2 Jan 2002 17:28:27 +0100 From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: configuring tomcat hi is there another way for configuring tomcat than directly editing the server.xml file. is there not a graphical tool like in jrun? An administrative tool for doing this (in Tomcat 4) is in the process of being created, but it's not real close to being done yet. In the Tomcat 4 source tree, check out the contents of the webapps/admin subdirectory. thanks, frank Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Realm not working with NT service
i tried this, also put them in the jdk/lib that is my JAVA_HOME, but i get the same problem. Did you run into the same problem and solve it with that jar? thanks G --- Guido Medina [EMAIL PROTECTED] wrote: copy the jsse 1.0.2 jar files inside C:\Program Files\JavaSoft\JRE\lib\Ext that's it... -Original Message- From: gman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: JDBC Realm not working with NT service hello, my tomcat 3.3 application works fine as a stand-alone application using JDBC Realm authentication. When i run it as an NT service using the supplied jk_nt_service tool.. the authentication fails with the message below. For some reason it is not sending the user to the database, although it does correctly get the user name in the error message (not last line below). Anyone else have this problem? thanks Gareth = 2002-01-02 11:28:56 - JDBCRealm: There was an SQLException while in checkConnection: {0} - java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '\'. at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:320) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:199) at org.apache.tomcat.modules.aaa.JDBCRealm.checkConnection(Unknown Source) at org.apache.tomcat.modules.aaa.JDBCRealm.getCredentials(Unknown Source) at org.apache.tomcat.modules.aaa.RealmBase.checkPassword(Unknown Source) at org.apache.tomcat.modules.aaa.RealmBase.authenticate(Unknown Source) at org.apache.tomcat.core.Request.getRemoteUser(Unknown Source) at org.apache.tomcat.modules.aaa.AccessInterceptor.authorize(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) 2002-01-02 11:28:56 - JDBCRealm: Authentication unsuccessful for user lloydg __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: configuring tomcat
There also is a Webmin module available (on the page http://webmin.thirdpartymodules.com/?page=Servers For Jakarta-Tomcat. It may do what you need. Haven't looked into it myself though. Matt Soffen - Web Intranet Developer http://www.iso-ne.com/ == Boss - My boss says we need some eunuch programmers. Dilbert- I think he means UNIX and I already know UNIX. Boss - Well, if the company nurse comes by, tell her I said never mind. - Dilbert - == -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 12:35 PM To: Tomcat Users List Subject: Re: configuring tomcat On Wed, 2 Jan 2002 [EMAIL PROTECTED] wrote: Date: Wed, 2 Jan 2002 17:28:27 +0100 From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: configuring tomcat hi is there another way for configuring tomcat than directly editing the server.xml file. is there not a graphical tool like in jrun? An administrative tool for doing this (in Tomcat 4) is in the process of being created, but it's not real close to being done yet. In the Tomcat 4 source tree, check out the contents of the webapps/admin subdirectory. thanks, frank Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: RE: can anyone help
it can find localhost only it I start PWS can your win98 resolve 'localhost'? try adding localhost to your hosts file. I think this was a previously discussed tc/win98 issue. you can search the archives for more detail. I'm not using win98 so I don't remeber exactly. Charlie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 12:08 PM To: [EMAIL PROTECTED] Subject: Re: can anyone help Hi L, I have reinstalled tomcat in C:\jakarta-tomcat-4.0.1 however it is still not working do you have anyone other suggestions?? thanks liakim You have tomcat in the wrong directory. Here is where tomcat expects to find itself: C:\jakarta-tomcat-4.0.1 Try reinstalling first. But dont forget to delete tomcat registry entries. Then reboot. L Marcus - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 7:23 AM Subject: can anyone help Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.com/redirect.html?http://www.t'http://talk21.btopenworld.com/redirect.html?http://www.t/a alk21.com'a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com'http://www.talk21.com/a/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] talk21 your FREE portable and private address on the net at a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com'http://www.talk21.com/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] talk21 your FREE portable and private address on the net at http://www.talk21.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
classloader caching resources in 4.0?
Hi all, Has anyone seen this problem I describe below? Tomcat 4 seems to be caching resouce files the way it caches classes, requiring a restart of the application every time I change a properties file. Tomcat 3 (and other servlet engines) did not behave this way- every time I did a getResourceAsStream it would re-open the file. Is this new behavior correct or a bug? Thanks for any help! -Richard - Original Message - I have a .properties file that I use for my application configuration that I keep in WEB-INF/classes. I use getClass().getResourceAsStream(/myfile.properties) from within a bean to load the properties into a static hashtable, and I have a control servlet that can tell the bean to reload the file. This just allows me to edit the properties without having to start and stop the application (which was a more painful process pre-Catalina). Now that I've switched from 3.2.3 to 4.0.1, what I'm seeing is that my changes to the properties file are not being picked up when I reset my bean. I've traced through everything, and determined that my subsequent calls to getResourceAsStream are still opening the original file, even though I've modified and saved it. Its as if the classloader is treating the resource as a class, and it is loading it once and keeping it around, so I need to reload the application to reload the resource. This was not the behavior under 3.x, so my question is, is this proper behavior in 4.x, and if so, is there a workaround? Thanks for any replies! Best regards, Richard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Very basic problem
Go to the directory where your test.class file is created . Make sure that the test.class file is present Type java test in that directory. Do you still get the error message ? Thanks Anshu Pal -Original Message- From: amol [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 10:22 AM To: Tomcat Users List Subject: Re: Very basic problem you have to include JAVA_HOME in your autoexec.bat file If the problem is not solved just say java in dos promt and see what comes - Original Message - From: Jack Li [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 8:55 PM Subject: Very basic problem Hello All, I have a very basic problem. I try to an java application under DOS (Windows operating system is windows 2000 server). I got error: java.lang.NoClassDefFoundError: test. The application is a sample from text book, very simple: class test { public static void main(String args[]) { System.out.println(Hello, World!); } } I run it by java test. I installed jdk1.3, and setup the CLASSPATH point to d:\jdk1.3;d:\jdk1.3\bin; what do I missed ? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Statistics for Tomcat
Performance will vary widely depending on your servlets and jsp's. We need more information before we could even begin to start giving you any information. For example: Question: We have servlets that tend to run 5-10 seconds each call, and want to support 500 concurrent requests at a time. what kind of architecture will support this? Answer: need more cpu usage information. For example, the servlets may take 5-10 seconds, but may take up 0% cpu because it's waiting on some external resource, like a database call. Or, the servlets may take up 100% cpu. If the former case, then a single machine running tomcat would suffice. if the latter, then you would need 1 cpu per user! Also, you need to clarify between concurrent users and concurrent requests. users are not 100% active. Our model here at work is a user will click on something once every 30-60 seconds, and be idle the rest of the time. Therefore, a 10 second servlet being run every 30-60 seconds represents a 10/40-10/70 = 25-14% duty cycle of cpu usage. Performance is a wily beast, and must be handled on a case-by-case basis, but there are some other things that may be relevant. For example, apache in front of tomcat has some weird default limitations: Apache by default (on unixes) is compiled for a maximum of 256 connections at a time. If you have servlets that are taking 10 seconds to complete, this means you need to be very careful how many connections you can handle at a time! Given a set of users running a fixed 25% duty cycle (connections are active for 10 out of every 40 seconds) that means that for 256 connections (assuming no connections for GIFs or other included content like frames) Apache can handle a maximum of 256 / 25% = 1024 users. IMPORTANT: This is a huge generalization, and only specifies a maximum, given that users are 100% consistent and there's no variability in system response time (read: a unrealistic, performance lab, static load condition). Real world performance will likely be lower, especially if you need additional cpu power for SSL encryption! - Kevin -Original Message- From: Mrutyunjay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 1:47 AM To: [EMAIL PROTECTED] Subject: Statistics for Tomcat Hi I want to know where can I find the information regarding the performance statistics of Tomcat, based on which I can decide upon what deployment architecture to be employed for my project Thanks Mrutyunjay
RE: Tomcat 3.3: How can I make the mod_jk.conf-auto file have differe nt DirectoryIndex
With the default configuration, i.e. forwardAll=true, there won't be any Directory blocks in the generated mod_jk.conf. If you set forwardAll=false on the ApacheConfig entry in the server.xml, then you will get the Directory blocks, which will include a DirectoryIndex directive derived from the welcome-file-list in the corresponding web.xml. Cheers, Larry -Original Message- From: Soffen, Matthew [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 3:49 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.3: How can I make the mod_jk.conf-auto file have differe nt DirectoryIndex I've been reading the documentation on the Jakarta Site and I've searched the archives to no avail. I have it automatically generate my include file for Apache (/usr/sbin/dtomcat start -jkconf) I'm trying to change it so that when generating the Directory blocks for my servlets it would output DirectoryIndex index.jsp index.html index.htm index.php instead of DirectoryIndex index.jsp index.html index.htm Is there any configuration parameter to do this, or is there a way to tell it to not generate the DirectoryIndex configuration parameter (thus relying DirectoryIndex in the httpd.conf file) ? I'm running on a RH 7.2 system using the 3.3 RPM's. Matt Soffen - Web Intranet Developer http://www.iso-ne.com/ == Boss - My boss says we need some eunuch programmers. Dilbert- I think he means UNIX and I already know UNIX. Boss - Well, if the company nurse comes by, tell her I said never mind. - Dilbert - == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
tomcat Sloutions
hi Tom now listen for that question i have make a small solutions guide me what is good and what u feel is the right way u know the question what i was asking here it again Plz all u devloper just look at it To the technical team Tomcat , Sir I have a problem, I'm using tomcat server 3.3 , now I have 3 different application rather one application witrh different version Say for client A I have some classes that is version 1.0 For client B I have some classes that is version 2.0 which have might have exactly same classes that is present in version 1.o or modified classes as required by client B and some extra classes And for Client C I have version 3.0 which again might have same classes or modified classes . Now I problem is I have to run that application on same tomcat server but I want different application only respond to their classes Is it I have to add 3 different JVM for different for different classes or different Servlets context for different classes and how would I add 3 different JVM in one container. If u doesn't follow my question please take this case study As I mention I have 3 different applications running on my tomcat each have same class A And Class A for client A prints in client A For Class A for client B prints in client B And For Class A for client C prints in client C And suppose if class A is called by any one of client which is print.. {According to me the class, which is set in class path, is to be printed and I want classes should respond to respective classes} Please Sir I 'm stuck because of this problem looking forward for your suggestions here are the solutions under this i have my comments here it goes Scenario Stand-alone HTTP based application and web server, multiple applications having same class name. Solutions 1)Follow the package rule where different application lies in different package/folder and by using the method InetAddress.getByName(ServletRequest.getRemoteAddr()) forward the request to corresponding client folder. Vineet's Argument :- if there are 3 classes named by A for 3 different client under one http server and having output as printing client name on console class A { A() { System.out.println(InetAddress.getByName(ServletRequest.getRemoteAddr()); } } Choosing the class path at runtime to after the client has send the request to the server is not possible unless u have your own batch file chose.bat which will choose the jvm for the client/ context for a client to pick that particular servlets A.class mention in the folder for that client . So at the first request when client contact the server call a java program that will run that batch file using Runtime class Runtime r=Runtime.getRuntime(); Process p=r.exec(/choose.bat); ** In case of windows the server already started on a autoexec.bat to run more batch file on current batch file, then we don't have to mention a classpath in autoexec and it will decide once the client sends request. But I really have some doubt in this technique, anyways just let me know if you think this goanna work, then I'll concentrate more on this logic or trick or something near like that . *** 2)Place different application under different Folder (don't write any new package name) Just add the concept of virtual host Like provide the client A with virtual host as www.clientA.com Similarly provide client B with www.clientB.com And client C with www.clientC.com A Host component represents a virtual host that is running in an instance of Catalina, possibly in conjunction with many other virtual hosts. Each virtual host can be running one or more web applications, each represented by a Context component. In order for a client, such as a web browser, to successfully send a request to a web application running in a particular virtual host, the client must specify a hostname that is mapped, in the Domain Name Service (DNS) to the server that Catalina is running on, and a port number on which you have defined a Connector to be listening. And just add few changes in server.xml file under conf/server.xml as Host name=localhost debug=0 appBase=webapps where appBase is The application base directory for this virtual host. This is the pathname of a directory that may contain web applications to be executed in this virtual host. Name is The host name of this virtual host. This name must match the name submitted on the Host: header in incoming requests. This attribute is required, and must be unique among the virtual hosts running in this servlet container. Root is Boolean attribute stating whether calls to ServletContext.getContext() on web applications running in this virtual host should allow one application to gain access to the ServletContext of another. Set to false to disallow such access. This can be done
tomcat Sloutions
hi Tom now listen for that question i have make a small solutions guide me what is good and what u feel is the right way u know the question what i was asking here it again Plz all u devloper just look at it To the technical team Tomcat , Sir I have a problem, I'm using tomcat server 3.3 , now I have 3 different application rather one application witrh different version Say for client A I have some classes that is version 1.0 For client B I have some classes that is version 2.0 which have might have exactly same classes that is present in version 1.o or modified classes as required by client B and some extra classes And for Client C I have version 3.0 which again might have same classes or modified classes . Now I problem is I have to run that application on same tomcat server but I want different application only respond to their classes Is it I have to add 3 different JVM for different for different classes or different Servlets context for different classes and how would I add 3 different JVM in one container. If u doesn't follow my question please take this case study As I mention I have 3 different applications running on my tomcat each have same class A And Class A for client A prints in client A For Class A for client B prints in client B And For Class A for client C prints in client C And suppose if class A is called by any one of client which is print.. {According to me the class, which is set in class path, is to be printed and I want classes should respond to respective classes} Please Sir I 'm stuck because of this problem looking forward for your suggestions here are the solutions under this i have my comments here it goes Scenario Stand-alone HTTP based application and web server, multiple applications having same class name. Solutions 1)Follow the package rule where different application lies in different package/folder and by using the method InetAddress.getByName(ServletRequest.getRemoteAddr()) forward the request to corresponding client folder. Vineet's Argument :- if there are 3 classes named by A for 3 different client under one http server and having output as printing client name on console class A { A() { System.out.println(InetAddress.getByName(ServletRequest.getRemoteAddr()); } } Choosing the class path at runtime to after the client has send the request to the server is not possible unless u have your own batch file chose.bat which will choose the jvm for the client/ context for a client to pick that particular servlets A.class mention in the folder for that client . So at the first request when client contact the server call a java program that will run that batch file using Runtime class Runtime r=Runtime.getRuntime(); Process p=r.exec(/choose.bat); ** In case of windows the server already started on a autoexec.bat to run more batch file on current batch file, then we don't have to mention a classpath in autoexec and it will decide once the client sends request. But I really have some doubt in this technique, anyways just let me know if you think this goanna work, then I'll concentrate more on this logic or trick or something near like that . *** 2)Place different application under different Folder (don't write any new package name) Just add the concept of virtual host Like provide the client A with virtual host as www.clientA.com Similarly provide client B with www.clientB.com And client C with www.clientC.com A Host component represents a virtual host that is running in an instance of Catalina, possibly in conjunction with many other virtual hosts. Each virtual host can be running one or more web applications, each represented by a Context component. In order for a client, such as a web browser, to successfully send a request to a web application running in a particular virtual host, the client must specify a hostname that is mapped, in the Domain Name Service (DNS) to the server that Catalina is running on, and a port number on which you have defined a Connector to be listening. And just add few changes in server.xml file under conf/server.xml as Host name=localhost debug=0 appBase=webapps where appBase is The application base directory for this virtual host. This is the pathname of a directory that may contain web applications to be executed in this virtual host. Name is The host name of this virtual host. This name must match the name submitted on the Host: header in incoming requests. This attribute is required, and must be unique among the virtual hosts running in this servlet container. Root is Boolean attribute stating whether calls to ServletContext.getContext() on web applications running in this virtual host should allow one application to gain access to the ServletContext of another. Set to false to disallow such access. This can be done
tomcat Sloutions
hi Tom now listen for that question i have make a small solutions guide me what is good and what u feel is the right way u know the question what i was asking here it again Plz all u devloper just look at it To the technical team Tomcat , Sir I have a problem, I'm using tomcat server 3.3 , now I have 3 different application rather one application witrh different version Say for client A I have some classes that is version 1.0 For client B I have some classes that is version 2.0 which have might have exactly same classes that is present in version 1.o or modified classes as required by client B and some extra classes And for Client C I have version 3.0 which again might have same classes or modified classes . Now I problem is I have to run that application on same tomcat server but I want different application only respond to their classes Is it I have to add 3 different JVM for different for different classes or different Servlets context for different classes and how would I add 3 different JVM in one container. If u doesn't follow my question please take this case study As I mention I have 3 different applications running on my tomcat each have same class A And Class A for client A prints in client A For Class A for client B prints in client B And For Class A for client C prints in client C And suppose if class A is called by any one of client which is print.. {According to me the class, which is set in class path, is to be printed and I want classes should respond to respective classes} Please Sir I 'm stuck because of this problem looking forward for your suggestions here are the solutions under this i have my comments here it goes Scenario Stand-alone HTTP based application and web server, multiple applications having same class name. Solutions 1)Follow the package rule where different application lies in different package/folder and by using the method InetAddress.getByName(ServletRequest.getRemoteAddr()) forward the request to corresponding client folder. Vineet's Argument :- if there are 3 classes named by A for 3 different client under one http server and having output as printing client name on console class A { A() { System.out.println(InetAddress.getByName(ServletRequest.getRemoteAddr()); } } Choosing the class path at runtime to after the client has send the request to the server is not possible unless u have your own batch file chose.bat which will choose the jvm for the client/ context for a client to pick that particular servlets A.class mention in the folder for that client . So at the first request when client contact the server call a java program that will run that batch file using Runtime class Runtime r=Runtime.getRuntime(); Process p=r.exec(/choose.bat); ** In case of windows the server already started on a autoexec.bat to run more batch file on current batch file, then we don't have to mention a classpath in autoexec and it will decide once the client sends request. But I really have some doubt in this technique, anyways just let me know if you think this goanna work, then I'll concentrate more on this logic or trick or something near like that . *** 2)Place different application under different Folder (don't write any new package name) Just add the concept of virtual host Like provide the client A with virtual host as www.clientA.com Similarly provide client B with www.clientB.com And client C with www.clientC.com A Host component represents a virtual host that is running in an instance of Catalina, possibly in conjunction with many other virtual hosts. Each virtual host can be running one or more web applications, each represented by a Context component. In order for a client, such as a web browser, to successfully send a request to a web application running in a particular virtual host, the client must specify a hostname that is mapped, in the Domain Name Service (DNS) to the server that Catalina is running on, and a port number on which you have defined a Connector to be listening. And just add few changes in server.xml file under conf/server.xml as Host name=localhost debug=0 appBase=webapps where appBase is The application base directory for this virtual host. This is the pathname of a directory that may contain web applications to be executed in this virtual host. Name is The host name of this virtual host. This name must match the name submitted on the Host: header in incoming requests. This attribute is required, and must be unique among the virtual hosts running in this servlet container. Root is Boolean attribute stating whether calls to ServletContext.getContext() on web applications running in this virtual host should allow one application to gain access to the ServletContext of another. Set to false to disallow such access. This can be done
tomcat Sloutions
hi Tom now listen for that question i have make a small solutions guide me what is good and what u feel is the right way u know the question what i was asking here it again Plz all u devloper just look at it To the technical team Tomcat , Sir I have a problem, I'm using tomcat server 3.3 , now I have 3 different application rather one application witrh different version Say for client A I have some classes that is version 1.0 For client B I have some classes that is version 2.0 which have might have exactly same classes that is present in version 1.o or modified classes as required by client B and some extra classes And for Client C I have version 3.0 which again might have same classes or modified classes . Now I problem is I have to run that application on same tomcat server but I want different application only respond to their classes Is it I have to add 3 different JVM for different for different classes or different Servlets context for different classes and how would I add 3 different JVM in one container. If u doesn't follow my question please take this case study As I mention I have 3 different applications running on my tomcat each have same class A And Class A for client A prints in client A For Class A for client B prints in client B And For Class A for client C prints in client C And suppose if class A is called by any one of client which is print.. {According to me the class, which is set in class path, is to be printed and I want classes should respond to respective classes} Please Sir I 'm stuck because of this problem looking forward for your suggestions here are the solutions under this i have my comments here it goes Scenario Stand-alone HTTP based application and web server, multiple applications having same class name. Solutions 1)Follow the package rule where different application lies in different package/folder and by using the method InetAddress.getByName(ServletRequest.getRemoteAddr()) forward the request to corresponding client folder. Vineet's Argument :- if there are 3 classes named by A for 3 different client under one http server and having output as printing client name on console class A { A() { System.out.println(InetAddress.getByName(ServletRequest.getRemoteAddr()); } } Choosing the class path at runtime to after the client has send the request to the server is not possible unless u have your own batch file chose.bat which will choose the jvm for the client/ context for a client to pick that particular servlets A.class mention in the folder for that client . So at the first request when client contact the server call a java program that will run that batch file using Runtime class Runtime r=Runtime.getRuntime(); Process p=r.exec(/choose.bat); ** In case of windows the server already started on a autoexec.bat to run more batch file on current batch file, then we don't have to mention a classpath in autoexec and it will decide once the client sends request. But I really have some doubt in this technique, anyways just let me know if you think this goanna work, then I'll concentrate more on this logic or trick or something near like that . *** 2)Place different application under different Folder (don't write any new package name) Just add the concept of virtual host Like provide the client A with virtual host as www.clientA.com Similarly provide client B with www.clientB.com And client C with www.clientC.com A Host component represents a virtual host that is running in an instance of Catalina, possibly in conjunction with many other virtual hosts. Each virtual host can be running one or more web applications, each represented by a Context component. In order for a client, such as a web browser, to successfully send a request to a web application running in a particular virtual host, the client must specify a hostname that is mapped, in the Domain Name Service (DNS) to the server that Catalina is running on, and a port number on which you have defined a Connector to be listening. And just add few changes in server.xml file under conf/server.xml as Host name=localhost debug=0 appBase=webapps where appBase is The application base directory for this virtual host. This is the pathname of a directory that may contain web applications to be executed in this virtual host. Name is The host name of this virtual host. This name must match the name submitted on the Host: header in incoming requests. This attribute is required, and must be unique among the virtual hosts running in this servlet container. Root is Boolean attribute stating whether calls to ServletContext.getContext() on web applications running in this virtual host should allow one application to gain access to the ServletContext of another. Set to false to disallow such access. This can be done
Re: Very basic problem
Hi, Please setup the following: Environment Variable Name: CLASSPATH = .;E:\jdk1.2.2\lib\dt.jar;E:\jdk1.2.2\lib\tools.jar;E:\jdk1.2.2\jre\lib\rt.ja r; PATH = .;E:\jdk1.2.2\bin; You seem to have set the classpath wrongly and you haven't mentioned anything about the path... The above should help you... Regards. - Original Message - From: Jack Li [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 8:55 PM Subject: Very basic problem Hello All, I have a very basic problem. I try to an java application under DOS (Windows operating system is windows 2000 server). I got error: java.lang.NoClassDefFoundError: test. The application is a sample from text book, very simple: class test { public static void main(String args[]) { System.out.println(Hello, World!); } } I run it by java test. I installed jdk1.3, and setup the CLASSPATH point to d:\jdk1.3;d:\jdk1.3\bin; what do I missed ? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Servlet running twice at the same moment.
Hello, I don't know why this is happening, but... It seems like whenever I run a single servlet, there are times it will run twice. As in, this... I have a login page. The user logs in. In my out log, it will show me that I have logged in twice... But in other instances, it'll show me that I have logged in once. Although this isn't a big deal, this does concern me. I have another servlet that creates a text file, but this text file will sometimes have the same information TWICE. I am running Tomcat 4.0.1, with jdk 1.31_01, running on Windows 2000. I also run the same instance on a Windows NT 4 server. Same in both places. The problem started about two weeks ago. I have no clue where to look or start. Thanks to anyone who might be able to help ... ...Robin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problem with tomcat 4.0, SSL and Apache SOAP
Hi, (a) I installed tomcat and am able to all examples. (b) I installed Apache-SOAP v2.2. And, I was able to run http://localhost:8080/soap/servlet/rpcrouter succesfully But, after setting up SSL (as mentioned in the documentation), I am unable to start tomcat through the Start Apache option in program groups... I however can start tomcat by running catalina run from the tomcat's bin folder ! I get the following error while starting through the apache program group: Exception during startup processing java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: jav ax/net/ServerSocketFactory at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java, Compiled Code) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java, Com piled Code) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91 ) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java, Comp iled Code) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML Validator.java, Compiled Code) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen tScanner.java, Compiled Code) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp atch(XMLDocumentScanner.java, Compiled Code) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS canner.java, Compiled Code) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:290) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java, Compiled C ode) Can someone tell me what is happening? Regards, Creso
Re: Servlet running twice at the same moment.
Are you using IE browser ? I have experienced exactly the same if I use IE - NS is doing fine :-) Robin Lee [EMAIL PROTECTED] on 02.01.2002 20:00:57 Please respond to Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Servlet running twice at the same moment. Hello, I don't know why this is happening, but... It seems like whenever I run a single servlet, there are times it will run twice. As in, this... I have a login page. The user logs in. In my out log, it will show me that I have logged in twice... But in other instances, it'll show me that I have logged in once. Although this isn't a big deal, this does concern me. I have another servlet that creates a text file, but this text file will sometimes have the same information TWICE. I am running Tomcat 4.0.1, with jdk 1.31_01, running on Windows 2000. I also run the same instance on a Windows NT 4 server. Same in both places. The problem started about two weeks ago. I have no clue where to look or start. Thanks to anyone who might be able to help ... ...Robin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Servlet running twice at the same moment.
At 12:00 PM 1/2/02 -0700, you wrote: Hello, I don't know why this is happening, but... It seems like whenever I run a single servlet, there are times it will run twice. As in, this... ...Robin Robin, there is no way to have any clue why this is happening without seeing the code. Micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3: How can I make the mod_jk.conf-auto file have different DirectoryIndex
Thank you so very much. I knew it had to be a fairly simple method but I wasn't able to find it in the documentation. Is it in there and I'm just blind ? Matt -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 1:20 PM To: 'Tomcat Users List' Cc: '[EMAIL PROTECTED]' Subject: RE: Tomcat 3.3: How can I make the mod_jk.conf-auto file have dif fere nt DirectoryIndex With the default configuration, i.e. forwardAll=true, there won't be any Directory blocks in the generated mod_jk.conf. If you set forwardAll=false on the ApacheConfig entry in the server.xml, then you will get the Directory blocks, which will include a DirectoryIndex directive derived from the welcome-file-list in the corresponding web.xml. Cheers, Larry -Original Message- From: Soffen, Matthew [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 3:49 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.3: How can I make the mod_jk.conf-auto file have differe nt DirectoryIndex I've been reading the documentation on the Jakarta Site and I've searched the archives to no avail. I have it automatically generate my include file for Apache (/usr/sbin/dtomcat start -jkconf) I'm trying to change it so that when generating the Directory blocks for my servlets it would output DirectoryIndex index.jsp index.html index.htm index.php instead of DirectoryIndex index.jsp index.html index.htm Is there any configuration parameter to do this, or is there a way to tell it to not generate the DirectoryIndex configuration parameter (thus relying DirectoryIndex in the httpd.conf file) ? I'm running on a RH 7.2 system using the 3.3 RPM's. Matt Soffen - Web Intranet Developer http://www.iso-ne.com/ == Boss - My boss says we need some eunuch programmers. Dilbert- I think he means UNIX and I already know UNIX. Boss - Well, if the company nurse comes by, tell her I said never mind. - Dilbert - == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Servlet running twice at the same moment.
Yes, I am using IE.. I've noticed though with NS, especially the older browsers, the pages don't even load. It does load in the newest NS though... - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 11:59 AM Subject: Re: Servlet running twice at the same moment. Are you using IE browser ? I have experienced exactly the same if I use IE - NS is doing fine :-) Robin Lee [EMAIL PROTECTED] on 02.01.2002 20:00:57 Please respond to Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Servlet running twice at the same moment. Hello, I don't know why this is happening, but... It seems like whenever I run a single servlet, there are times it will run twice. As in, this... I have a login page. The user logs in. In my out log, it will show me that I have logged in twice... But in other instances, it'll show me that I have logged in once. Although this isn't a big deal, this does concern me. I have another servlet that creates a text file, but this text file will sometimes have the same information TWICE. I am running Tomcat 4.0.1, with jdk 1.31_01, running on Windows 2000. I also run the same instance on a Windows NT 4 server. Same in both places. The problem started about two weeks ago. I have no clue where to look or start. Thanks to anyone who might be able to help ... ...Robin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Servlet running twice at the same moment.
Well, that depends on which code you would like to see? The login code is pretty basic... Here's is my validateLoginServlet... I am using a type4 jdbc driver (thinweb.tds driver). import Common.dbfiles.*; import java.io.*; import java.util.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class ValidateLoginServlet extends HttpServlet { public void service(HttpServletRequest req, HttpServletResponse res) throws IOException { String errorCode = ; try { // get a connection Class c = Class.forName(com.thinweb.tds.Driver); Connection dbConn = DriverManager.getConnection(jdbc:twtds:sqlserver://[removed];user=[removed] ;password=[removed];TDS=7.0); // instantiate data objects DBCustomersSet customersSet = new DBCustomersSet(dbConn,Customers); //DBCustomers customers = new DBCustomers(); // Now set the where clause to get the member (using setFilter) customersSet.setFilter(LoginID=' + req.getParameter(LoginID) + '); Vector customersQuery = customersSet.query(); //Create a session. HttpSession session = req.getSession(true); //Now let's see if any records were returned. if (customersQuery != null !customersQuery.isEmpty()) { customersSet.firstRecord(); //DBCustomers cust = (DBCustomers) custSet.record(); DBCustomers theCustomer = (DBCustomers) customersSet.record(); //DBCustomers theCustomer = (DBCustomers)customersQuery.elementAt(0); //Now we want to check the password. if (theCustomer.getPassword().equals(req.getParameter(Password))) { session.setAttribute(theCustomer,theCustomer); errorCode = 0; System.out.println(UserID: + theCustomer.getLoginID() + has logged in.); customersSet.userLoggedIn(); } else { //Wrong password, set the errorCode to 1. errorCode = 1; } } else { //Not found, set the errorCode to 2. errorCode = 2; } session.setAttribute(errorCode,errorCode); //System.out.println(ValidateLoginServlet errorCode: + errorCode); dbConn.close(); } catch (SQLException sqle) { System.out.println(Sql Exception: + sqle); } catch (ClassNotFoundException cnfe) { System.out.println(cnfe); } catch (ArrayIndexOutOfBoundsException aioobe) { System.out.println(aioobe); } } } In this case, it shows userid has logged in. At times it will do it just once, but other times it will do it twice... Did i add something in here that shouldn't be? Thanks. - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 11:50 AM Subject: Re: Servlet running twice at the same moment. At 12:00 PM 1/2/02 -0700, you wrote: Hello, I don't know why this is happening, but... It seems like whenever I run a single servlet, there are times it will run twice. As in, this... ...Robin Robin, there is no way to have any clue why this is happening without seeing the code. Micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 3.2.1 and virtual domains
Hi, I'm trying to set up a virtual domain with tomcat v3.2.1. If I add a Context it works just fine and tomcat adds what it needs to mod_jk.conf-auto and then I include that in httpd.conf. What's not working is when I try Host like this: Host name=virtualdomain.com Alias name=www.virtualdomain.com Context path= docBase=/path/to/files/ /Alias /Host Nothing is added in mod_jk.conf-auto, just the contexts I added outside Host. So my 'fix' was to create a index.html with, htmlhead meta http-equiv=refresh \ content=0;url=http://virtualdomain.com/context/index.jsp; /head/html and a context in server.xml, Context path/context docBase=/path/to/files/ crossContext=true debug=0 reloadable=false trusted=false /Context Any idea? I'm not used to tomcat (just hosting this) so if you guys need more information just ask. Thanks in advance. -- Giovanni P. Tirloni [EMAIL PROTECTED] BS2 Sistemas para Internet Ltda. +55 44 263 6300 (work) Network Administrator +55 44 9112 0693 (mobile) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Servlet running twice at the same moment.
Glad someone brought this up. Seems as though some of my jsp pages are being executed twice. It doesn't seem to send information to the browser twice, but it is causing havoc on my logic. I can see System.outs being executed twice and any logic / methods are being executed twice. In my case it seems as though the jsp:forward is in some way causing the behavior. If anyone else has run across this situation, I would definitely like to know what is going on and how to resolve this issue. I'm also using IE 5.x, tomcat 3.2.x and linux. If code is needed, I'll have to send tomorrow. Thanks in advance kb Robin Lee tech_supportTo: Tomcat Users List [EMAIL PROTECTED] @uls.comcc: Subject: Re: Servlet running twice at the same moment. 01/02/02 11:12 AM Please respond to Tomcat Users List Well, that depends on which code you would like to see? The login code is pretty basic... Here's is my validateLoginServlet... I am using a type4 jdbc driver (thinweb.tds driver). import Common.dbfiles.*; import java.io.*; import java.util.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class ValidateLoginServlet extends HttpServlet { public void service(HttpServletRequest req, HttpServletResponse res) throws IOException { String errorCode = ; try { // get a connection Class c = Class.forName(com.thinweb.tds.Driver); Connection dbConn = DriverManager.getConnection(jdbc:twtds:sqlserver://[removed];user =[removed] ;password=[removed];TDS=7.0); // instantiate data objects DBCustomersSet customersSet = new DBCustomersSet(dbConn,Customers); //DBCustomers customers = new DBCustomers(); // Now set the where clause to get the member (using setFilter) customersSet.setFilter(LoginID=' + req.getParameter(LoginID) + '); Vector customersQuery = customersSet.query(); //Create a session. HttpSession session = req.getSession(true); //Now let's see if any records were returned. if (customersQuery != null !customersQuery.isEmpty()) { customersSet.firstRecord(); //DBCustomers cust = (DBCustomers) custSet.record(); DBCustomers theCustomer = (DBCustomers) customersSet.record(); //DBCustomers theCustomer = (DBCustomers)customersQuery.elementAt(0); //Now we want to check the password. if (theCustomer.getPassword().equals(req.getParameter(Password))) { session.setAttribute(theCustomer,theCustomer); errorCode = 0; System.out.println(UserID: + theCustomer.getLoginID() + has logged in.); customersSet.userLoggedIn(); } else { //Wrong password, set the errorCode to 1. errorCode = 1; } } else { //Not found, set the errorCode to 2. errorCode = 2; } session.setAttribute(errorCode,errorCode); //System.out.println(ValidateLoginServlet errorCode: + errorCode); dbConn.close(); } catch (SQLException sqle) { System.out.println(Sql Exception: + sqle); } catch (ClassNotFoundException cnfe) { System.out.println(cnfe); } catch (ArrayIndexOutOfBoundsException aioobe) { System.out.println(aioobe); } } } In this case, it shows userid has logged in. At times it will do it just once, but other times it will do it twice... Did i add something in here that shouldn't be? Thanks. - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002
Re: Servlet running twice at the same moment.
Ahh, so at least i'm not the only one having this problem... The problem also occurs on my text filestream... How interesting... So, now we know of at least TWO instances that this is happening.. IE5.5 on TC4.0.1 and JDK131_01.. (Windows NT4 2000) IE5.x on TC3.2.x and (which jdk are you using?) (Linux) - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 12:29 PM Subject: Re: Servlet running twice at the same moment. Glad someone brought this up. Seems as though some of my jsp pages are being executed twice. It doesn't seem to send information to the browser twice, but it is causing havoc on my logic. I can see System.outs being executed twice and any logic / methods are being executed twice. In my case it seems as though the jsp:forward is in some way causing the behavior. If anyone else has run across this situation, I would definitely like to know what is going on and how to resolve this issue. I'm also using IE 5.x, tomcat 3.2.x and linux. If code is needed, I'll have to send tomorrow. Thanks in advance kb Robin Lee tech_supportTo: Tomcat Users List [EMAIL PROTECTED] @uls.comcc: Subject: Re: Servlet running twice at the same moment. 01/02/02 11:12 AM Please respond to Tomcat Users List Well, that depends on which code you would like to see? The login code is pretty basic... Here's is my validateLoginServlet... I am using a type4 jdbc driver (thinweb.tds driver). import Common.dbfiles.*; import java.io.*; import java.util.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class ValidateLoginServlet extends HttpServlet { public void service(HttpServletRequest req, HttpServletResponse res) throws IOException { String errorCode = ; try { // get a connection Class c = Class.forName(com.thinweb.tds.Driver); Connection dbConn = DriverManager.getConnection(jdbc:twtds:sqlserver://[removed];user =[removed] ;password=[removed];TDS=7.0); // instantiate data objects DBCustomersSet customersSet = new DBCustomersSet(dbConn,Customers); //DBCustomers customers = new DBCustomers(); // Now set the where clause to get the member (using setFilter) customersSet.setFilter(LoginID=' + req.getParameter(LoginID) + '); Vector customersQuery = customersSet.query(); //Create a session. HttpSession session = req.getSession(true); //Now let's see if any records were returned. if (customersQuery != null !customersQuery.isEmpty()) { customersSet.firstRecord(); //DBCustomers cust = (DBCustomers) custSet.record(); DBCustomers theCustomer = (DBCustomers) customersSet.record(); //DBCustomers theCustomer = (DBCustomers)customersQuery.elementAt(0); //Now we want to check the password. if (theCustomer.getPassword().equals(req.getParameter(Password))) { session.setAttribute(theCustomer,theCustomer); errorCode = 0; System.out.println(UserID: + theCustomer.getLoginID() + has logged in.); customersSet.userLoggedIn(); } else { //Wrong password, set the errorCode to 1. errorCode = 1; } } else { //Not found, set the errorCode to 2. errorCode = 2; } session.setAttribute(errorCode,errorCode); //System.out.println(ValidateLoginServlet errorCode: + errorCode); dbConn.close(); } catch (SQLException sqle) { System.out.println(Sql Exception: + sqle); } catch (ClassNotFoundException cnfe) { System.out.println(cnfe); } catch (ArrayIndexOutOfBoundsException aioobe) { System.out.println(aioobe); } } } In this case, it shows userid has logged in. At times it will do it just once, but other times it will do it twice... Did i add something in here that shouldn't be? Thanks. - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 11:50 AM Subject: Re: Servlet running twice at the same moment. At 12:00 PM 1/2/02 -0700, you wrote: Hello, I don't know why this is happening, but... It seems like whenever I run a single servlet, there are times it will run twice. As in, this... ...Robin Robin, there is no way to have any clue why this is happening without seeing the code. Micael -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED]
Tomcat3.3 on Solaris8
Hi there, I am still having a problem where my tomcat installation is slowly getting inresponsive ... the number of threads is slightly getting higher and the response time gets longer and longer untill it stops responding compleatly. Has anybody else have some similar experiences with Tomcat3.3 on Solaris8 (WinNT4 gives no problems !!!) Recently I have read about some bugs that JDK1.3.1_01 has on the Solaris8 platforrm and by upgrading to the JDK1.3.1_02 the whole stability of the Tomcat and performance of my Servlet applications became much better. Is there some good reading which could help me find out what needs to be tuned up?! Regards, Drasko -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.2.1 and virtual domains
I don't believe that Tomcat 3.2.x supports including virtual host information in the auto-generated mod_jk.conf-auto. However, if you want to give it a try, Tomcat 3.3 does. For details, see: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#context_addcust If you try it, be sure to use Tomcat 3.3's mod_jk and set noRoot=false on the ApacheConfig element in the server.xml since you are trying to serve a root context on the virtual site. Cheers, Larry -Original Message- From: Giovanni P. Tirloni [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 2:34 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.1 and virtual domains Hi, I'm trying to set up a virtual domain with tomcat v3.2.1. If I add a Context it works just fine and tomcat adds what it needs to mod_jk.conf-auto and then I include that in httpd.conf. What's not working is when I try Host like this: Host name=virtualdomain.com Alias name=www.virtualdomain.com Context path= docBase=/path/to/files/ /Alias /Host Nothing is added in mod_jk.conf-auto, just the contexts I added outside Host. So my 'fix' was to create a index.html with, htmlhead meta http-equiv=refresh \ content=0;url=http://virtualdomain.com/context/index.jsp; /head/html and a context in server.xml, Context path/context docBase=/path/to/files/ crossContext=true debug=0 reloadable=false trusted=false /Context Any idea? I'm not used to tomcat (just hosting this) so if you guys need more information just ask. Thanks in advance. -- Giovanni P. Tirloni [EMAIL PROTECTED] BS2 Sistemas para Internet Ltda. +55 44 263 6300 (work) Network Administrator +55 44 9112 0693 (mobile) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.01, IIS and JSPs
G'day Ingo, the problem with redirectors is that is requires an IIS plugin and my client is not to happy about that. IIS is unstable enough without adding another point of failure. The approch I have taken has the added bonus that none of the Tomcat config files need to be changed. The admins I am dealing with find messing with anything like this just too scary. If there isn't a GUI for it then they go into a corner and gibber ;) as for logging, here is a section of one of my log files 21:16:47 127.0.0.1 POST /matters/login.jsp 200 21:16:47 127.0.0.1 GET /matters/matter.htm 200 21:16:52 127.0.0.1 POST /matters/login.jsp 200 21:16:52 127.0.0.1 GET /matters/loginfailed.htm 304 21:18:46 127.0.0.1 GET /matters/matter.htm 200 21:18:51 127.0.0.1 POST /matters/login.jsp 200 21:18:53 127.0.0.1 GET /matters/logout.jsp 200 21:18:53 127.0.0.1 GET /matters/matter.htm 200 the sourceforge project has been approved, now I've just got to get the files up there which I should be able to do some time today. Daniel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Problem with iso-8859-2 charset
This sounds very much like a known problem with using Jikes to compile jsp pages under Tomcat 3.3. The work-around is to use javac. For more information, see: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5353 Hi, In Your mail sent Wednesday, January 02, 2002 I wrote: MK I'm using Tomcat 3.3 on Linux Debian unstable system. Everything was MK fine until I made an upgrade of the distribution. Now all iso-8859-2 MK chars are returned as two-byte values (Unicode?), and I can see MK question marks and squares instead of letters. Does anyone have an MK idea what can it be? Configuration problem? Same jsp pages worked fine MK before the upgrade. I found some new interesting information about this behavior: First, in case described above, if I choose Encoding-UTF-8 in my browser everything looks fine. That means, that Tomcat(?) converts chars from iso-8859-2 in .jsp file to unicode on the server output. So setting the page charset to utf-8 in meta should work. Second, I found, that if I use a bean:message .../ tag to insert text from properties file and the text contains polish characters entered in unicode (like \u0105) then the encoding on the output is back iso-8859-2, so there is conversion, but in this case from Unicode to iso-8859-2 (browser is set to iso-8859-2). So the problem is partially solved, because I can choose one of these solutions to get desirable result. But I'm just curious - what can be the cause of that? -- Best regards, Maciej -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
passing a file to a servlet (fopservlet) file not found error
Hi, total tomcat newbie question: I'm trying to pass a file to a servlet (FopServlet). The instructions say, go to a URL like this: http://localhost:8080/fop/fop?fo=/pathtofile/test.fo Tomcat returns: javax.servlet.ServletException: /pathtofile/test.fo (The system cannot find the path specified) at FopServlet.doGet(FopServlet.java:78) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) The servlet source code has FileInputStream file = new FileInputStream(foParam); I put the test.fo file in every tomcat sub-directory I thought might work and called it replacing pathtofile with every path combination might work. Still, I get a file not found error. So, there must be something that I'm not understanding correctly. Why can't my servlet find the file? I am running tomcat standalone, out of the box. Apache Tomcat/4.0.1 Here is how I configured the system: server.xml Service name=Tomcat-Standalone Engine name=Standalone defaultHost=localhost debug=0 Host name=localhost debug=0 appBase=webapps unpackWARs=true Context path= docBase=ROOT debug=0/ Context path=/fop docBase=fop debug=0 reloadable=true privileged=false/ C:\jakarta-tomcat-4.0.1\webapps\fop\WEB-INF\web.xml web-app servlet servlet-nameFop/servlet-name servlet-classFopServlet/servlet-class /servlet servlet-mapping servlet-name Fop /servlet-name url-pattern /fop /url-pattern /servlet-mapping /web-app Chuck Paussa -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
help: installing plug-ins that can run java servlets and jsp (java server pages
Dear Friends I am using a remote web server of following specs on Linux machine: --- Server Name:Apache 1.3.12 Server Type:StandAlone Mode Pre-Installed Apache Modules: · mod_access· mod_cgi· mod_mime · mod_actions· mod_dir· mod_negotiation · mod_alias· mod_env· mod_setenvif · mod_asis· mod_imap· mod_so · mod_auth· mod_include · mod_autoindex· mod_log_config - could any one kindly help me in installing plug-ins that can run java servlets and jsp (java server pages) on the above mentioned server, I have checked http://jakarta.apache.org/ but nothing is clear to me that how and what should I install etc. please write in simple style as I am new to java technology. Thanks you very much in advance Best regards Mansoor -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: passing a file to a servlet (fopservlet) file not found error
When tomcat looks for your FO file, (by default) it looks for it in the bin directory. Either try fully qualifying your fo file name or put a copy of the fo file in your bin directory (tomcat location/bin). - Original Message - From: Chuck Paussa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 2:40 PM Subject: passing a file to a servlet (fopservlet) file not found error Hi, total tomcat newbie question: I'm trying to pass a file to a servlet (FopServlet). The instructions say, go to a URL like this: http://localhost:8080/fop/fop?fo=/pathtofile/test.fo Tomcat returns: javax.servlet.ServletException: /pathtofile/test.fo (The system cannot find the path specified) at FopServlet.doGet(FopServlet.java:78) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) The servlet source code has FileInputStream file = new FileInputStream(foParam); I put the test.fo file in every tomcat sub-directory I thought might work and called it replacing pathtofile with every path combination might work. Still, I get a file not found error. So, there must be something that I'm not understanding correctly. Why can't my servlet find the file? I am running tomcat standalone, out of the box. Apache Tomcat/4.0.1 Here is how I configured the system: server.xml Service name=Tomcat-Standalone Engine name=Standalone defaultHost=localhost debug=0 Host name=localhost debug=0 appBase=webapps unpackWARs=true Context path= docBase=ROOT debug=0/ Context path=/fop docBase=fop debug=0 reloadable=true privileged=false/ C:\jakarta-tomcat-4.0.1\webapps\fop\WEB-INF\web.xml web-app servlet servlet-nameFop/servlet-name servlet-classFopServlet/servlet-class /servlet servlet-mapping servlet-name Fop /servlet-name url-pattern /fop /url-pattern /servlet-mapping /web-app Chuck Paussa -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Integrating catalina(Tomcat) and apache
Hello, I am trying to integrate catalina and apache on Redhat 6.1 server using what they call Warp connector. Tomcat and Apache both work nice and fine if they have to work independently. In order to integrate I took following steps. 1. put mod_webapp.so in modules directory 2. put follwing lines in httpd.conf LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples Similarly I made changes in server.xml. However when I tried to restart apache I got following error Syntax error on line 1188 of /etc/httpd/conf/httpd.conf Invalid command 'WebAppDeploy' perhaps mis-spelled or defined my a module not included in the server configuration. Do you have any clue, what is wrong am I doing? any help will be highly appreciated. Thank you. Santos __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Integrating catalina(Tomcat) and apache
The binaries for the linux version of WebApp are compiled for RH 7.1 I think. To make them work in a 6.x version of RedHat, you will need to download the source an compile it. You also need to make sure that you Apache distro supports DSO modules. Denny Santos Jha wrote: Hello, I am trying to integrate catalina and apache on Redhat 6.1 server using what they call Warp connector. Tomcat and Apache both work nice and fine if they have to work independently. In order to integrate I took following steps. 1. put mod_webapp.so in modules directory 2. put follwing lines in httpd.conf LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples Similarly I made changes in server.xml. However when I tried to restart apache I got following error Syntax error on line 1188 of /etc/httpd/conf/httpd.conf Invalid command 'WebAppDeploy' perhaps mis-spelled or defined my a module not included in the server configuration. Do you have any clue, what is wrong am I doing? any help will be highly appreciated. Thank you. Santos __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
jsp compilation problem, Timeout too quick
I was trying to regenerate and compile all the JSPs I had to make sure everything is up-to-date. I am now finding a different behavior. I am chaining to my JSPs from my servlet, running under Redhat 7.1, Apache, Tomcat 3.24, using AJP13. What I am finding is that rather than waiting for the JSP to compile and return output, the user is quickly ( ~ 1 sec) returned to an Apache error page. If I press Refresh enough times, the page will properly show. Is there some sort of timeout setting I'm missing in Tomcat or Apache that was introduced post 3.23? Whn I was running 3.23, I didn't have this problem. Thanks in Advance. jchuang -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: passing a file to a servlet (fopservlet) file not found error
Excellent, Thank you Chuck John M. Corro wrote: When tomcat looks for your FO file, (by default) it looks for it in the bin directory. Either try fully qualifying your fo file name or put a copy of the fo file in your bin directory (tomcat location/bin). - Original Message - From: Chuck Paussa [EMAIL PROTECTED] Hi, total tomcat newbie question: I'm trying to pass a file to a servlet (FopServlet). The instructions say, go to a URL like this: http://localhost:8080/fop/fop?fo=/pathtofile/test.fo Tomcat returns: javax.servlet.ServletException: /pathtofile/test.fo (The system cannot -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0 as a service
I'm sure this question has been asked and answered numerous times, but How would I install Tomcat 4.0 as a service. I tried using 3.xx's jk_nt_service.exe and included a modified wrapper.properties file to no avail, the jvm.stderr reads: java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat Exception in thread main Somebody must have come across this, Thank you.
Re: Tomcat 4.0 as a service
See http://www.vgalleries.com/misc/catalina_as_nt_service.shtml -Richard - Original Message - From: Frank Diakovasilis [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 11:01 PM Subject: Tomcat 4.0 as a service I'm sure this question has been asked and answered numerous times, but How would I install Tomcat 4.0 as a service. I tried using 3.xx's jk_nt_service.exe and included a modified wrapper.properties file to no avail, the jvm.stderr reads: java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat Exception in thread main Somebody must have come across this, Thank you. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
help installing Apache plug-ins that can run java servlets and jsp (java server pages)
[EMAIL PROTECTED] Dear Friends I am using a remote web server of following specs on Linux machine: --- Server Name: 1.3.12 Server Type:StandAlone Mode Pre-Installed Apache Modules: · mod_access· mod_cgi· mod_mime · mod_actions· mod_dir· mod_negotiation · mod_alias· mod_env· mod_setenvif · mod_asis· mod_imap· mod_so · mod_auth· mod_include · mod_autoindex· mod_log_config - could any one kindly help me in installing plug-ins that can run java servlets and jsp (java server pages) on the above mentioned server, I have checked http://jakarta.apache.org/ but nothing is clear to me that how and what should I install etc. please write in simple style as I am new to java technology. Thanks you very much in advance Best regards Mansoor [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
tomcat-apache win32 integration problem with 100% CPU utilization
I'm having problems integrating Tomcat with Apache in my development environment using win2000Pro. I following the directions to add libapr.dll and mod_webapp.so to C:\Program Files\Apache Group\Apache\modules and add the following lines to httpd.conf: LoadModule webapp_module modules/mod_webapp.so ... AddModule mod_webapp.c ... WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples/ Both Tomcat and Apache start up fine. I can browse directly to http://localhost/examples/jsp/num/numguess.jsp and play that number guessing game fine. The integration appears fine for that. But when I browse to a URL within the examples application that has an image, my CPU becomes 100% allocated and my computer practically grinds to a halt. For example, it can't deal with http://jeffp-desktop/examples/jsp/index.html which contains images. I have to stop and restart Tomcat for my computer to get my CPU utilization under control. Has anybody experienced anything like this in integrating Tomcat and Apache? I must be missing some configuration step Thanks in advanced. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0.1, explicit context, bug 4829?
I think I'm hitting the situation described in bug 4829, and wanted to confirm and see if anyone knows more status than what's in bugzilla. I also wasn't sure whether this should be a tomact-dev post instead. War files in the webapps directory expand fine at startup when the underlying subdirectory does not exist and Tomcat is using the DefaultContext stuff in server.xml. However, with Tomcat stopped, if the underlying subdirectory is deleted, and a Context entry for the war is added to server.xml, and Tomcat is restarted, the war does not get expanded (even though the owning Host in server.xml has unpackWARs=true). The context runs fine directly from the war. Here's specifics: WAR name is Cis.war, deployed in CATALINA_HOME\webapps. server.xml has these lines added: Context path=/Cis docBase=Cis.war override=true reloadable =true Logger className=org.apache.catalina.logger.FileLogger prefix=Cis. suffix=.log timestamp=true/ /Context The doc and a couple of the bug reports indicate that this is known behavior covered by 4829 and a couple of its dups. 4829 is REOPENED status, does anyone know if this behavior is planned to be changed and if so what the proposed behavior is? I'd also be interested in what others think the behavior oughta be... For us the current behavior is fine for production deploys where we don't typically care too much if the war is expanded because we do release-based pushes of changes anyway. But in a development environment it is nice to be able to copy over individual classes/web resources from time to time, and still redploy a new war from time to time too, all without having to tweak server.xml. Thanks in advance for any info... -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Realm not working with NT service
De: gman [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 2 de enero de 2002 18:16 my tomcat 3.3 application works fine as a stand-alone application using JDBC Realm authentication. When i run it as an NT service using the supplied jk_nt_service tool.. the authentication fails with the message below. For some reason it is not sending the When tomcat runs from command line ( or by double clicking startup.bat ), it uses the logged in user ( it seems your are using same kind of nt or 2000) as the user for every other access from that program and thus being able to use all the facilities of the deskop, and particularly the registry.. Normally a service runs owned by user system that by default is not a desktop user ( whatever name MS has for this i dont recall), that is does not have access to every resource in the machine that needs autentication , such as the registry, or network access.. So the solution is to change the user of the service to anyone with desktop access, you can try first with Administrator, and later when you see it working create a dedicated user, with lower rights, for the task of owning and running tomcat.. Saludos , Ignacio J. Ortega -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Realm not working with NT service
De: gman [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 2 de enero de 2002 18:16 java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '\'. Uhh, and you are using the JDBC-ODBC Bridge from microsoft, this not the best for your hair ;).., try to use a REAL jdbc driver (MS has one class4 JDBC driver for SQLServer), JDBC-ODBC bridge is not intended to be used in production apps, it's not thread safe.. Saludos , Ignacio J. Ortega -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Issues with class loaders and jsp:include in Tomcat 3.3
We are using Tomcat 3.3 Final. Having a curious problem on certain jsp pages that try to dynamically load classes located in a jar in the WEB-INF/lib area of the web application. The apparent differential is the use of jsp:include tags within the page. The details are as follows: Using Weblogic 5.1 sp9 trying to a do a naming lookup inside a tag. If the page containing the tag also has a jsp:include then the lookup fails. Get a class not def error when trying to setup the initial context, cannot find weblogic.jndi.WLInitialContextFactory. This class in located in a jar in WEB-INF/lib. If the jsp:include is removed from the page the class is found and the naming lookup succeeds. Also, if the class has already been loaded within the app, by another page without a jsp:include or by a servlet, then pages with the jsp:include will work. Ie, this only seems to be a problem with the initial load of the class by the web application class loader in combination with the include tag. Only diffs in the generated page code are the expected pageContext.include pieces. I would guess the problem lays somewhere in that direction. Using a static include directive vs the include tag does make the problem go away and may be our workaround for now. However, would prefer to use the tag. Would appreciate any insight. Thanks. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: TomCat RPM's
Donald, The rpm builds two files in /usr/bin -- tomcat4 and tomcatd. To start or stop Tomcat, just use tomcat4 start or tomcat4 stop. One other issue with the RPM is that it su's to the tomcat4 user, but the var/tomcat4 directory is owned by root. The tomcat4 user needs at least write access to the logs directory. Finally, the default port is 8180 and not 8080 with the rpm. Other than that, the rpm worked fine. Based on my experience, I put together my own documentation -- some of this is specific to our AJUG (Atlanta Java User Group) site. If you are interested, check out: http://www.ajug.org/howto/tomcat4.html Cindy Jeness Donald Lee wrote: I went to http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/rpms/ downloaded tomcat4-4.0.1-1.noarch.rpm installed using rpm -iv tomcat4-4.0.1-1.noarch.rpm everything appeared to be going ok until I came to the part in the doc file I found called running.txt execute shell command: $CATALINA_HOME/bin/startup.sh That didn't work. It turns out my Tomcat installation went to /var/tomcat4 which is where I set $CATALINA_HOME to. I looked in the $CATALINA_HOME/bin directory and to my surprise, there was no startup.sh, only a bootstrap.jar. I searched my whole system for a startup.sh and could not find one, so I decided that something was dreadfully wrong, and went back to the tomcat site. I went into http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/ this time and downloaded jakarta-tomcat-4.0.1.zip I unpacked it and it created it's own directory of jakarta-tomcat-4.0.1. I basically cut and pasted the contents of that directory into my /var/tomcat4 directory and over wrote all directories and files. I then ran $CATALINA_HOME/bin/startup.sh and tested my installation with http://localhost:8080 and all appears to be well.I have a question, when I installed the rpm it created a directory etc/tomcat4/conf/tomcat4.conf. As this was not part of my list of installation procedures, can I assume that this directory/file is not needed? I was wondering if I could safely delete this directory or is something left out of the running.txt file? Can anybody tell me what the purpose of the rpms are if they do not properly install tomcat? Thanks, and God Bless and have a happy new year! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat RPM's
Great, I am glad that there are RPMs for tomcat, It just looks like all available documentation is for a manual unpacking of the binaries. I may need to remove what I have done and re-install from scratch but right now it appears to be working good. If you have any documentation that is geared for the RPM distribution I would appreciate a copy. Thanks -Original Message- From: cj [mailto:cj]On Behalf Of Cynthia Jeness Sent: Wednesday, January 02, 2002 8:32 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: TomCat RPM's Donald, The rpm builds two files in /usr/bin -- tomcat4 and tomcatd. To start or stop Tomcat, just use tomcat4 start or tomcat4 stop. One other issue with the RPM is that it su's to the tomcat4 user, but the var/tomcat4 directory is owned by root. The tomcat4 user needs at least write access to the logs directory. Finally, the default port is 8180 and not 8080 with the rpm. Other than that, the rpm worked fine. Based on my experience, I put together my own documentation -- some of this is specific to our AJUG (Atlanta Java User Group) site. If you are interested, check out: http://www.ajug.org/howto/tomcat4.html Cindy Jeness Donald Lee wrote: I went to http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/rpms/ downloaded tomcat4-4.0.1-1.noarch.rpm installed using rpm -iv tomcat4-4.0.1-1.noarch.rpm everything appeared to be going ok until I came to the part in the doc file I found called running.txt execute shell command: $CATALINA_HOME/bin/startup.sh That didn't work. It turns out my Tomcat installation went to /var/tomcat4 which is where I set $CATALINA_HOME to. I looked in the $CATALINA_HOME/bin directory and to my surprise, there was no startup.sh, only a bootstrap.jar. I searched my whole system for a startup.sh and could not find one, so I decided that something was dreadfully wrong, and went back to the tomcat site. I went into http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/ this time and downloaded jakarta-tomcat-4.0.1.zip I unpacked it and it created it's own directory of jakarta-tomcat-4.0.1. I basically cut and pasted the contents of that directory into my /var/tomcat4 directory and over wrote all directories and files. I then ran $CATALINA_HOME/bin/startup.sh and tested my installation with http://localhost:8080 and all appears to be well.I have a question, when I installed the rpm it created a directory etc/tomcat4/conf/tomcat4.conf. As this was not part of my list of installation procedures, can I assume that this directory/file is not needed? I was wondering if I could safely delete this directory or is something left out of the running.txt file? Can anybody tell me what the purpose of the rpms are if they do not properly install tomcat? Thanks, and God Bless and have a happy new year! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Posted content length exceeds limit
Seb, To use the Oreilly package, you are suppose to purchase Jason's Hunter's Java Servlet Programming book. It explains the package in detail. When you create the multipart request object, you should be definining the maximum size there Robert Jackson -Original Message- From: DESBOIS Sébastien [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:41 AM To: [EMAIL PROTECTED] Subject: Posted content length exceeds limit Hi all, I am using a servlet to post data to my server. the html page I am using looks like: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML//EN html head title/title /head body form action=http://myserver/myAlias/servlet/myServlet/; target=resultat method=POST ENCTYPE=multipart/form-data id : input type=text name=idbr File : input type=file name=databr input type=submit nameOK /form /body /html On my server, I have Apache 1-3-20, Tomcat 3-2-2, and add-in of O'Reilly to manage multipart request. Depending on the size of the file, the request return an error: java.io.IOException: Posted content length of 2800901 exceeds limit of 1048576 Where is defined this limitation and how can I modifie it ?? Thanks in advance. Seb. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.01, IIS and JSPs
G'day All, I have uploaded the IIS+Tomcat+JSP stuff to sourceforge. It can be downloaded from https://sourceforge.net/projects/warpconduit/ The source is in CVS. Daniel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: jsp compilation problem, Timeout too quick
Did you just upgrade to ajp13? I just noticed this problem when upgrading from 3.2.1 and ajp12 as well. I'm thinking there might be some kind of setting we can change... see the thread about needing to refresh jsp page around 5 times - Original Message - From: James Chuang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 3:23 PM Subject: jsp compilation problem, Timeout too quick I was trying to regenerate and compile all the JSPs I had to make sure everything is up-to-date. I am now finding a different behavior. I am chaining to my JSPs from my servlet, running under Redhat 7.1, Apache, Tomcat 3.24, using AJP13. What I am finding is that rather than waiting for the JSP to compile and return output, the user is quickly ( ~ 1 sec) returned to an Apache error page. If I press Refresh enough times, the page will properly show. Is there some sort of timeout setting I'm missing in Tomcat or Apache that was introduced post 3.23? Whn I was running 3.23, I didn't have this problem. Thanks in Advance. jchuang -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Servlets Q. Way to invoke method upon dropped socket?
Ok, This is a bit of a servlet question vs. Tomcat, although I suppose Tomcat (4.0) could have special support for such a feature. Is there a way to have a method invoked upon loss of the HTTP socket? (Where the method invoked is in a servlet, jsp, or listener class even) So, if a user closes his browser window, and the socket gets closed, I really want to do some cleanup without having to try to do it later by looking at a session attribute. Thanks, Cameron Elliott -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Ok, I read the book. destroy()
So, how do I write a destroy() in JSP? ??? Thanks Cameron -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 7:42 PM To: Tomcat Users List Subject: Servlets Q. Way to invoke method upon dropped socket? Ok, This is a bit of a servlet question vs. Tomcat, although I suppose Tomcat (4.0) could have special support for such a feature. Is there a way to have a method invoked upon loss of the HTTP socket? (Where the method invoked is in a servlet, jsp, or listener class even) So, if a user closes his browser window, and the socket gets closed, I really want to do some cleanup without having to try to do it later by looking at a session attribute. Thanks, Cameron Elliott -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
jspDestroy()... Thanks!
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 7:47 PM To: Tomcat Users List Subject: Ok, I read the book. destroy() So, how do I write a destroy() in JSP? ??? Thanks Cameron -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 7:42 PM To: Tomcat Users List Subject: Servlets Q. Way to invoke method upon dropped socket? Ok, This is a bit of a servlet question vs. Tomcat, although I suppose Tomcat (4.0) could have special support for such a feature. Is there a way to have a method invoked upon loss of the HTTP socket? (Where the method invoked is in a servlet, jsp, or listener class even) So, if a user closes his browser window, and the socket gets closed, I really want to do some cleanup without having to try to do it later by looking at a session attribute. Thanks, Cameron Elliott -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to include across contexts/webapps?
Hi, I have what seems like (and probably is) a very simple problem, but I haven't been able to find a solution. Any help/hints would be appreciated. I'm trying to build a website in a typical sort of way, with headers and footers isolated and %@include%'ed into the actual pages. However, now I'd like to modularize somewhat and decompose parts of the site into their own projects/contexts, while still having each project share common headers and footers. Unfortunately, %@include% is relative to the current context, so I haven't been able to figure out a good way to share the header/footer information across each of the contexts/apps. Is there a canonical way of doing something like this? TIA, Daishi -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
java.lang.IllegalStateException: getOutputStream() has already been called for this response while attempting a download
Hello tomcat-user-faq, i'm pretty new to mailing list so i hope you'll forgive me if i made some mistake. As in subject the question is about troubles in downloading from a database. My configuration is: Tomcat running stand-alone MySql as database mm.mysql-2.0.7 as jdbc driver windows as o.s. JspSmartUpload as upload-download package The very headhache is that i wrote a jsp looking for a document in a table and downloading it. The jsp works fine untill 30/12/2001 then it started returning the following dump A Servlet Exception Has Occurred java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java:686) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:127) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:158) at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:176) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:198) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193) at org.apache.jsp.download$jsp._jspService(download$jsp.java:232) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1005) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098) at java.lang.Thread.run(Unknown Source) I tryed every thing to figure out the cause of this, but even enclosing the whole jsp in a try-catch i could not get more info. So i clean out as much code as i could and i reach a point: the first of the following code excerpt worked for some time (now it doesn't work too) and the second didn't work why? %@ page import=java.sql.* % %@ page import=com.jspsmart.upload.* % jsp:useBean id=mySmartUpload scope=page class=com.jspsmart.upload.SmartUpload / % String URL = jdbc:mysql://localhost/xxx; Class.forName(org.gjt.mm.mysql.Driver); Connection db = DriverManager.getConnection (URL,xx,xxx); Statement stmt=db.createStatement (ResultSet.TYPE_FORWARD_ONLY ,ResultSet.CONCUR_UPDATABLE); ResultSet rs; String SQL; rs = stmt.executeQuery (SELECT contenuto FROM documenti); rs.last(); mySmartUpload.initialize(pageContext); mySmartUpload.downloadField(rs,contenuto,text,name); % %@ page
Resource References for DataSources
I have configured the sybase jdbc 2.0 driver to work with tomcat as a resource. Unfortunately, there is no true pooling (min, max, timeout) feature and I need to wrap it with a real pooler. The JBoss pooler works in other servlet containers but I can't figure out how to get it to work here. I have tried various combinations of DataSources, parameter names and values to no avail. I either get null or throw a tyrex exception (when type != javax.sql.DataSource). The JBossPooler impelements DataSource, Referenceable and ObjectFactory so I though I would be able to just plug it in. I saw one posting where a person loaded and registered the connections in their own servlet but that seems to defeat the purpose. server.xml !-- works but doesn't support min/max -- Resource name=jdbc/test auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/test parameter namedriverClassName/name valuecom.sybase.jdbc2.jdbc.SybDataSource/value /parameter parameter namedriverName/name valuejdbc:sybase:Tds:192.168.0.15:1498/telestaff/value /parameter parameter nameuser/name valuedba/value /parameter parameter namepassword/name valuesql/value /parameter /ResourceParams !-- doesn't work (returns null on lookup) -- Resource name=jdbc/webdemo auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/webdemo parameter namedriverClassName/name valueorg.jboss.pool.jdbc.JDBCPoolDataSource/value /parameter parameter namepoolName/name valuejdbc/webdemo/value /parameter parameter nameJDBCURL/name valuejdbc:sybase:Tds:192.168.1.11:1498/telestaff/value /parameter parameter nameJDBCUser/name valuedba/value /parameter parameter nameJDBCPassword/name valuesql/value /parameter parameter nameminSize/name value1/value /parameter parameter namemaxSize/name value2/value /parameter /ResourceParams web.xml resource-ref res-ref-namejdbc/test/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejdbc/webdemo/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref When I do a ctx.lookup I see a ResourceRef but when I to a ctx.lookup I get a null. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]