Extension Handlers
Hi, I am making a web-based application needed to do the following: 1. I have a set of resources 2. These resources are to be handled internall by a handler which will manage the resources - which may have mata-data tags.3.The summary of these resource, viz, mata-data and the location on the server will be kept in an "xml" file4. There is a jsp which shall provide access to these resources.5. The jsp will first authenticate the user and then provide permission-controlled access This is how I proceeded:1. Createdthe handler for all the extensions that I need to handle through the jsp (in WEB-INF/web.xml)2. So, all the resources that are being accessed are first handled by this jsp for authentication3. Now, there's a problem. Suppose the URL denotes a ".dat" file and I need to stream it through the Windows Media Player, I will give the URL of the file something as embed src="http://localhost:8080/resrouces/datfiles/file.dat"... ...4. Isn't that a problem - a recursive, never-ending loop. The ".dat" will again be asked to be handled by the jsp. Any way out?Gaurav Vaish--Senior Undergraduate,Department of Electrical Engineering,Indian Institute of Technology,Kanpur, INDIA - 208016Home URL: http://www.iitk.ac.in/ee/btech/gvaishCalendar: http://calendar.yahoo.com/mastergauravAlternate E-Mail: [EMAIL PROTECTED]Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year!http://personal.mail.yahoo.com/
Re: apache tomcat as services under Linux
if you want to use redhat's system an easier way to do it would be to use chkconfig which will do all this for you (once you have the /etc/rc.d/init.d/tomcat and apache scripts). cheers dim On Tue, 26 Jun 2001 17:27, Antoni Reus wrote: Hi, The scripts should be named apache ant tomcat and should be in /etc/rc.d/init.d/ then you should make a symbolic link to them in /etc/rc.d/rc3.d/ in the case that you start your box in the runlevel 3 (note that if when you start your box it runs the X windows you are in run level 5, and you should change rc3.d/ for rc5.d/. The links should be called S96tomcat and S97apache (I was wrong in my first post, yes tomcat should be run first). Saludos, -- Antoni Reus - Original Message - From: Pier Paolo Bortone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 22, 2001 5:29 PM Subject: Re: apache tomcat as services under Linux OK, I have created 2 different scripts, one for apache and one for tomcat. These scripts works fine if I call them manualli: ./S97apache start or ./S96tomcat start or ./K15 But if I restart Linux, when it is up both the tomcat and apache processes are not up. I have tried to examine the /var/log/boot.log but I don't found nothing about. Why?? :-((( Pier Paolo. - Original Message - From: Antoni Reus [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 4:47 PM Subject: Re: apache tomcat as services under Linux Hi, You should create a script with something like and put it on /etc/rc.d/init.d/ cut here--- #!/bin/sh # Set this as you have it in your sistem APACHE_HOME=/usr/local/apache TOMCAT_HOME=/usr/local/jakarta/tomcat # Test apachectl if [ ! -x $APACHE_HOME/bin/apachectl ] then echo apachectl not found exit fi # Test tomcat.sh if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ] then echo tomcat not found exit fi case $1 in start) ## Start services $APACHE_HOME/bin/apachectl start $TOMCAT_HOME/bin/startup.sh ;; stop) $TOMCAT_HOME/bin/shutdown.sh $APACHE_HOME/bin/apachectl stop ;; esac -cut here -- name it apache-tomcat and give it execution permissions with chmod u+x apache-tomcat Then with control-panel you can link it to the run-level 3 or you can make it directly with # Start in run level 3 cd /etc/rc.d/rc3.d ln -s ../init.d/apache-tomcat S99apache-tomcat # Stop cd ../rc0.d ln -s ../init.d/apache-tomcat K11apache-tomcat Saludos, -- Antoni Reus - Original Message - From: Pier Paolo Bortone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 2:15 PM Subject: apache tomcat as services under Linux Hi, I need to start to use apache tomcat in a production environment, thus I need to start them as services. I'm using RedHat 7.1, someone knows which scripts I have to put in rc3.d. Thanks for your time. Pier Paolo.
Re: apache tomcat as services under Linux
I've done something similar to get tomcat starting / stopping automatically under SuSE Linux. The basics work, but I think I have a CLASSPATH problem that stops me using JDBC authentication if I start tomcat this way (stopping then re-starting manually fixes it). I haven't had time to look much at it yet - but has anyone else seen anything like it? Mark - Original Message - From: Dmitri Colebatch [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Antoni Reus [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 11:11 PM Subject: Re: apache tomcat as services under Linux if you want to use redhat's system an easier way to do it would be to use chkconfig which will do all this for you (once you have the /etc/rc.d/init.d/tomcat and apache scripts). cheers dim On Tue, 26 Jun 2001 17:27, Antoni Reus wrote: Hi, The scripts should be named apache ant tomcat and should be in /etc/rc.d/init.d/ then you should make a symbolic link to them in /etc/rc.d/rc3.d/ in the case that you start your box in the runlevel 3 (note that if when you start your box it runs the X windows you are in run level 5, and you should change rc3.d/ for rc5.d/. The links should be called S96tomcat and S97apache (I was wrong in my first post, yes tomcat should be run first). Saludos, -- Antoni Reus - Original Message - From: Pier Paolo Bortone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 22, 2001 5:29 PM Subject: Re: apache tomcat as services under Linux OK, I have created 2 different scripts, one for apache and one for tomcat. These scripts works fine if I call them manualli: ./S97apache start or ./S96tomcat start or ./K15 But if I restart Linux, when it is up both the tomcat and apache processes are not up. I have tried to examine the /var/log/boot.log but I don't found nothing about. Why?? :-((( Pier Paolo. - Original Message - From: Antoni Reus [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 4:47 PM Subject: Re: apache tomcat as services under Linux Hi, You should create a script with something like and put it on /etc/rc.d/init.d/ cut here--- #!/bin/sh # Set this as you have it in your sistem APACHE_HOME=/usr/local/apache TOMCAT_HOME=/usr/local/jakarta/tomcat # Test apachectl if [ ! -x $APACHE_HOME/bin/apachectl ] then echo apachectl not found exit fi # Test tomcat.sh if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ] then echo tomcat not found exit fi case $1 in start) ## Start services $APACHE_HOME/bin/apachectl start $TOMCAT_HOME/bin/startup.sh ;; stop) $TOMCAT_HOME/bin/shutdown.sh $APACHE_HOME/bin/apachectl stop ;; esac -cut here -- name it apache-tomcat and give it execution permissions with chmod u+x apache-tomcat Then with control-panel you can link it to the run-level 3 or you can make it directly with # Start in run level 3 cd /etc/rc.d/rc3.d ln -s ../init.d/apache-tomcat S99apache-tomcat # Stop cd ../rc0.d ln -s ../init.d/apache-tomcat K11apache-tomcat Saludos, -- Antoni Reus - Original Message - From: Pier Paolo Bortone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 2:15 PM Subject: apache tomcat as services under Linux Hi, I need to start to use apache tomcat in a production environment, thus I need to start them as services. I'm using RedHat 7.1, someone knows which scripts I have to put in rc3.d. Thanks for your time. Pier Paolo.
RE: getServletContext()
Hi, getAttribute returns a java.lang.Object so you have to cast it to java.sql.Connection. You will also need to import java.sql. %@ page import=java.sql.* % ... % Connection Conn = (Connection)getServletContext().getAttribute(dbConnection); % Make sure dbConnection isn't null when you set the attribute, cause that would be another problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. Juni 2001 21:06 To: [EMAIL PROTECTED] Subject: getServletContext() Hi, I have a problem I have been trying to solve for a very long time. I first have a initialization servlet set by load_on_startup tag. In this servlet I create a database connection and pass it to the ServletContext like this. getServletContext().setAttribute(dbConnection,dbConnection); Now the problem is how do I retrieve it from a jsp page. From by research, reading through books it shows how to get an attribute using : jsp:useBean action. However this is done if Beans/Objects are put into the setAttribute. In my case it is a database connection object. How do I retrieve this from a jsp page??? I tried (in a jsp page); % Connection connection = getServletContext().getAttribute(dbConnection); % but this returns a null. Connection never gets set.. If someone can help me please..
tomcat on a home machine???
Hello I have linux installed at home and have only a modem connecting me to the internet through a local service provider. My questions are: Is it possible for me to install and use tomcat without a permenant connection. If it is possible what files would need to be configured to allow me to do so. What url would I need to call to access tomcat's homepage. Apologies if this question has been asked b4. T:Irvine
Re: tomcat on a home machine???
yah you can, read faq file related to tomcat, all things would be clear. Thanks - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 1:38 PM Subject: tomcat on a home machine??? Hello I have linux installed at home and have only a modem connecting me to the internet through a local service provider. My questions are: Is it possible for me to install and use tomcat without a permenant connection. If it is possible what files would need to be configured to allow me to do so. What url would I need to call to access tomcat's homepage. Apologies if this question has been asked b4. T:Irvine
Adding Servlets to TOMCAT 3.2
Hi, I'm trying to install new servlets under WEBAPPS directory in TOMCAT 3.2 (expecifically in the /services directory). I'm getting the next message when I start TOMCAT after adding the directory with the files. 2001-06-27 10:10:44 - Ctx( /services ): Mapping with unregistered servlet servletToJsp Anybody know what does it mean? Why this message don't appear in the other Context? If this one is an error, How can avoid it? Thanks in advance for all Regards, Jose -Mensaje original- De: Stefan Neumann [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 27 de junio de 2001 9:26 Para: [EMAIL PROTECTED] Asunto: RE: getServletContext() Hi, getAttribute returns a java.lang.Object so you have to cast it to java.sql.Connection. You will also need to import java.sql. %@ page import=java.sql.* % ... % Connection Conn = (Connection)getServletContext().getAttribute(dbConnection); % Make sure dbConnection isn't null when you set the attribute, cause that would be another problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. Juni 2001 21:06 To: [EMAIL PROTECTED] Subject: getServletContext() Hi, I have a problem I have been trying to solve for a very long time. I first have a initialization servlet set by load_on_startup tag. In this servlet I create a database connection and pass it to the ServletContext like this. getServletContext().setAttribute(dbConnection,dbConnection); Now the problem is how do I retrieve it from a jsp page. From by research, reading through books it shows how to get an attribute using : jsp:useBean action. However this is done if Beans/Objects are put into the setAttribute. In my case it is a database connection object. How do I retrieve this from a jsp page??? I tried (in a jsp page); % Connection connection = getServletContext().getAttribute(dbConnection); % but this returns a null. Connection never gets set.. If someone can help me please..
How to configure jsp-engine (JspServlet)
Hi, I wanna use Tomcat's jsp-engine from other web-server(Jigsaw) per request redirection to the servlet JspServlet. Generally, it works - a temporary java-file is created in the scratch directory I specify as a parameter but it is not compiled and and thus not executed. As test, I tried to redirect jsp-request from Jigsaw to my dummy-servlet and it has worked, so all I need ist to configure Tomcat's JspServlet correctly. Does anybody know which parameters for JspServlet I have to set? I set already scratchdir but it is not sufficient. Anyway, tomcat does nothing special to serve a jsp-request, it forward it to the JspServlet, or? Mit freundlichen Grüßen Christian Schildt Diplom-Betriebswirt (FH) Softwaredeveloper Phone: 089/89013023 Mailto: [EMAIL PROTECTED] ELAXY AG Gutenbergstr. 5 D-82178 Puchheim bei München Phone: +089/8901300 Fax: +089/89013089 www.elaxy.com
AW: Adding Servlets to TOMCAT 3.2
Hi, this means that you have a servlet-mapping rule in your web.xml but you didnot define the servlet-name before. !-- This defines the servlet-name for later use -- servlet servlet-nameMyName/servlet-name servlet-classcom.name.MyClass/servlet-class /servlet !-- This defines a servlet-mapping -- servlet-mapping servlet-nameMyName/servlet-name url-pattern/MyPattern/url-pattern /servlet-mapping regards, tom -Ursprüngliche Nachricht- Von: Valerdi Tormo, Jose [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 27. Juni 2001 10:12 An: [EMAIL PROTECTED] Betreff: Adding Servlets to TOMCAT 3.2 Hi, I'm trying to install new servlets under WEBAPPS directory in TOMCAT 3.2 (expecifically in the /services directory). I'm getting the next message when I start TOMCAT after adding the directory with the files. 2001-06-27 10:10:44 - Ctx( /services ): Mapping with unregistered servlet servletToJsp Anybody know what does it mean? Why this message don't appear in the other Context? If this one is an error, How can avoid it? Thanks in advance for all Regards, Jose -Mensaje original- De: Stefan Neumann [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 27 de junio de 2001 9:26 Para: [EMAIL PROTECTED] Asunto: RE: getServletContext() Hi, getAttribute returns a java.lang.Object so you have to cast it to java.sql.Connection. You will also need to import java.sql. %@ page import=java.sql.* % ... % Connection Conn = (Connection)getServletContext().getAttribute(dbConnection); % Make sure dbConnection isn't null when you set the attribute, cause that would be another problem. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. Juni 2001 21:06 To: [EMAIL PROTECTED] Subject: getServletContext() Hi, I have a problem I have been trying to solve for a very long time. I first have a initialization servlet set by load_on_startup tag. In this servlet I create a database connection and pass it to the ServletContext like this. getServletContext().setAttribute(dbConnection,dbConnection); Now the problem is how do I retrieve it from a jsp page. From by research, reading through books it shows how to get an attribute using : jsp:useBean action. However this is done if Beans/Objects are put into the setAttribute. In my case it is a database connection object. How do I retrieve this from a jsp page??? I tried (in a jsp page); % Connection connection = getServletContext().getAttribute(dbConnection); % but this returns a null. Connection never gets set.. If someone can help me please..
Re: autoexec.bat
Hi, click right on your MS-DOS-icon -- environment -- memory -- set it to e.g. 4096 this should resolve your memory problem. HtH Peter Luc Juggery wrote: Hello, i've downloaded tomcat 3.2.2 but i got trouble starting it up . Well, i'm not really familiar with all of this in fact, i got the following error OUT OF ENVIRONNEMENT SPACE and i'm also told that there is something wrong with my CLASSPATH. I use Windows 98, i have the following directory in my c drive :c:/jdk1.2 and c:/jakarta-tomcat-3.2.2 Could anyone tell me what should be my autoexec.bat file ? i've just wrote something like this : C:\PROGRA~1\NETWOR~1\MCAFEE~1\SCAN.EXE C:\ @IF ERRORLEVEL 1 PAUSE @echo off SET PATH=c:\jdk1.2\bin;c:\jdk1.2\lib;c:\jakarta-tomcat-3.2.2\lib SET %TOMCAT_HOME%=c:\jakarta-tomcat-3.2.2 SET CLASSPATH=c:\jdk1.2\lib\tools.jar;%TOMCAT-HOME\lib\servlet.jar;c:\jakarta-tomcat-3.2.2\webapps\greeting SET JAVA_HOME=c:\jdk1.2 which doesn't work (well, not really a surprise :-) ) as i'm sure there are some big mistakes in it Thanks a lot, Luc ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com
RE: tomcat on a home machine???
This is a network issue more than a software issue. The Tomcat installation is no different with permanent or dialup connections, however your IP address will likely change every time you dial (as most ISP's use DHCP). Thus it will be impossible to resolve a domain name to the IP address of your server from the public internet, as it will change every time you dial. You will still be able to access your home page on your local machine (http://localhost:8080/ by default) but it will only be accessible on the Net by using http://xxx.xxx.xxx.xxx:8080/ where the x's are whatever dynamic IP address you have been assigned that time. Of course, if your ISP offers you a fixed IP address, you can get a domain to resolve to that fixed address and your problems are solved. Obviously, the server will only be available to the public when you are dialled up. Cheers, - James Radvan Websphere Analyst/Architect London, UK [EMAIL PROTECTED] +44 7990 624899 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 27 June 2001 09:08 To: [EMAIL PROTECTED] Subject: tomcat on a home machine??? Click here to visit the Argos home page http://www.argos.co.uk The information contained in this message or any of its attachments may be privileged and confidential, and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you are not the addressee, any disclosure, reproduction, distribution, dissemination or use of this communication is not authorised. If you have received this message in error, please advise the sender by using the reply facility in your e-mail software. All messages sent and received by Argos Ltd are monitored for virus, high risk file extensions, and inappropriate content. As a result users should be aware that mail may be accessed.
RE: problem with TOMCAT+APACHE+JETSPEED
Why wasting your time try that stuff.. download from blueoxygen.linuxindonesia.com/project/cimande I set up tomcat 3.22 + jetspeed 1.3a2 + cocoon 1.82+ cimande 0.1a1 you can add the .conf for apache. and it has run. I install apache using nusphere. I configure JAVA_HOME and TOMCAT_HOME in c:\JDK1.3 and c:\tomcat322 Frans --- Emir Alikadic (ADNOC IST) [EMAIL PROTECTED] wrote: To permanently set your environment variables on WinNT 4.0, open System from Control Panel, click on Environment tab. In the Variable box, enter variable name (e.g. TOMCAT_HOME) and in the Value box enter the path to Tomcat installation folder (e.g. C:\jakarta-tomcat-3.2.1). Click Set button and the new env var should now appear in the lower portion of that window. To change any existing env vars, simply click on it, change the value, click Set and that's it. To delete, click on var and click Delete. Regards, Emir Alikadic -Original Message- From: Sumit Ranjan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 25, 2001 08:46 To: [EMAIL PROTECTED] Subject: problem with TOMCAT+APACHE+JETSPEED hi there ! i was trying for tomcat 4.0b1 on apache on a stand-alone m/c(Windows NT). there are teo problems that i am facing 1) the JAVA_HOME , TOMCAT_HOME variables are to be filled each time my system boots up 2) if anyone has tried using Jetspeed-1.3 a1... i tried to run jetspeed but the mail server does not recognize my request , i.e. when i reach the browser with url http://localhost:8080/jetspeed/ i get the login page allright , but when i enter my new user id and press enter it takes me to the next screen (the secret code one !) and asks me to check my mail...but no mail has come till date... can anyone...help me out in this. thanx in anticipation. Sumit Ranjan 2861722 Ext:219 __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
AW: tomcat on a home machine???
Thus it will be impossible to resolve a domain name to the IP address of your server from the public internet, as it will change every time you dial. yes, it is possible with services like http://www.dyndns.com. -nico
Loadbalancing revisited
Hello, i´ve browsed through the archive, but i didn´t come up with something useful to me, so i´ll try here. I´d like to do loadbalancing between 2 different tomcats, on two different maschines. This is the layout of the maschines: Host 1: tomcat 3.2.1, apache Host 2: tomcat 3.2.1, apache Now there´s a round robin dns of the name host wich alters between Host1 and Host2 so that the users get on of the two maschines. Now, i wanted to load balance those tomcats and i thought the following workers.properties files would do the trick: Host1: workers.tomcat_home=/usr/local/jakarta-tomcat-3.2.1 workers.java_home=/usr/local/java/jdk1.2.2/ ps=/ worker.list=loadbalancer worker.a01.port=8007 worker.a01.host=Host1 worker.a01.type=ajp12 worker.a01.lbfactor=1 worker.a02.port=8007 worker.a02.host=Host2 worker.a02.type=ajp12 worker.a02.lbfactor=0.001 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=a01,a02 and Host2 resp.: workers.tomcat_home=/usr/local/jakarta-tomcat-3.2.1 workers.java_home=/usr/local/java/jdk1.2.2/ ps=/ worker.list=loadbalancer worker.a01.port=8007 worker.a01.host=Host1 worker.a01.type=ajp12 worker.a01.lbfactor=0.001 worker.a02.port=8007 worker.a02.host=Host2 worker.a02.type=ajp12 worker.a02.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=a01,a02 When i configure Netscape to always ask me before accepting a cookie, i always get a session that is bound to Host1, although i connect to Host2 (say via it´s ip address). Can anybody tell me what´s wrong with this setup? Thanks, Stephan begin:vcard n:Budach;Stephan tel;cell:+49179 108 57 09 tel;fax:+4940 4321 1114 tel;work:+4940 4321 1353 x-mozilla-html:FALSE url:http://www.jvm.de org:Jung von Matt Werbeagentur;IT F+E Support adr:;;Glashüttenstr. 38;Hamburg;;20357;Deutschland version:2.1 email;internet:[EMAIL PROTECTED] x-mozilla-cpt:;1 fn:Stephan Budach end:vcard
RE: tomcat on a home machine???
I stand corrected - I had no idea such a service existed. clever. - James Radvan Websphere Analyst/Architect London, UK [EMAIL PROTECTED] +44 7990 624899 -Original Message- From: Nico Wieland [mailto:[EMAIL PROTECTED]] Sent: 27 June 2001 11:05 To: [EMAIL PROTECTED] Subject: AW: tomcat on a home machine??? yes, it is possible with services like http://www.dyndns.com. Click here to visit the Argos home page http://www.argos.co.uk The information contained in this message or any of its attachments may be privileged and confidential, and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you are not the addressee, any disclosure, reproduction, distribution, dissemination or use of this communication is not authorised. If you have received this message in error, please advise the sender by using the reply facility in your e-mail software. All messages sent and received by Argos Ltd are monitored for virus, high risk file extensions, and inappropriate content. As a result users should be aware that mail may be accessed.
RE: web.xml not working
give that one a try: url-pattern/story/*/url-pattern using SERVERNAME/sampleapp/story -Original Message- From: Erin Lester [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. Juni 2001 16:25 To: [EMAIL PROTECTED] Subject: web.xml not working I have created a web application as per the Servlet API specs and deployed it into the webapps directory of Tomcat in a directory called 'sampleapp.' The only way that I am able to access the webapp's servlet (which is in sampleapp/WEB-INF/classes) is by the url 'SERVERADDRESS/sampleapp/servlet/SERVLETNAME' and this is only when I don't have a web.xml file in the WEB-INF directory. When I place the web.xml file that I created (using to the documents on the Sun and Jakarta sites) I am unable to find my servlet. The servlet mapping in the web.xml file looks like this: servlet servlet-nameStoryGeneratorServlet/servlet-name servlet-classStoryGenerator/servlet-class /servlet servlet-mapping servlet-nameStoryGeneratorServlet/servlet-name url-pattern/story/url-pattern /servlet-mapping I tried using the urls 'SERVERNAME/sampleapp/servlet/story' and 'SERVERNAME/sampleapp/story' I also tried to install the J2EE sample 'petstore' web application but had problems accessing the servlets with it too. I am able to get to the jsps and static files okay. Does anyone know what I am doing wrong? Thanks! Erin PS - I'm using Tomcat 3.2 with Apache 1.3 on Sun 2.7
Session problem with netscape-6.01
Hi, I use tomcat-3.2.2 and every request seems to use (create) a new session from netscape-6.01. I don't have this problem with either netscape-4.76 or IE-5. Do you know whether this is a netscape problem? -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Str. 16 70565 Stuttgart Tel: +49-711-7221873 Fax: +49-711-7221835
RE: Apache won't start with Tomcat
Did u build your apache from source or used an RPM ? if you had build apache from source the build it again with --enable-module=so option. The apache which you have does not support Dynamic Loading of Objects. (DSO support). hth, Shuklix -Original Message- From: Tim O'Neil [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 12:00 AM To: [EMAIL PROTECTED] Subject: Re: Apache won't start with Tomcat Might help to have the section of the conf file that the error is talking about... At 11:24 AM 6/26/2001, you wrote: Greetings: I have recently upgraded to Apache 1.3.14 with Tomcat 3.2.2. When I attempt to start Apache, I get the following error message: Syntax error on line 1 of /usr/local/jakarta-tomcat-3.2.2/conf/tomcat-apache.conf: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl start: httpd could not be started Being a novice at this, I would appreciate any and all comments. Thanks! Greg Ferrara
RE: Obtaining mod_jk.so
1) read tomcat docs. (mod_jk HOW TO with tomcat). 2) go to apache.org, search and it is there for download. 3) build it using apxs which comes with apache. Shuklix -Original Message- From: Mike Korotun [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 9:05 PM To: [EMAIL PROTECTED] Subject: Obtaining mod_jk.so Hi, All!! How can I obtain the mod_jk.so? Please, advice. Thanx. = Best Regards, Mike Korotun Masiona Group , Software Developer --Magic Internet Solutions-- __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
OT: Example using session bean in servlet like jsp
Can anyone point me to an example of using a bean w/ a servlet similar to the way a bean can be used with jsp pages? I'm not ready to implement EJBs or an EJB container yet. = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Interesting tips on JDC re: Servlet Filters
For those not on the JDC Tips list there is a interesting issue that was just sent out last night regarding * Improving Code Reuse With Servlet Filters * Using Filters To Modify The Server's Response The first one is an intro and the second tip is a interesting little extension that some users might find interesting. Those interested can check it out at http://developer.java.sun.com/ --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: Completely frustrated with NoClassDefFoundError...
When you compiled you should have produced a number of files, several of the form Validate$Number.class - these are the files you need to copy over to the WEB-INF/classes/main directory. If Tomcat couldn't find the Query class it would have told you so, but it can't find the anonymous class definitions. Randy -Original Message- From: [ .--- --- -. / -... --- .-- . -. ] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 8:06 PM To: [EMAIL PROTECTED] Subject: RE: Completely frustrated with NoClassDefFoundError... Randy Layman: It would seem that you haven't copied anonymous class #5 in Validate over. The actual class it can't find is main.Validate$5, the $ indicates an inner class. I believe that the 5 indicates the fifth anonymous (class without a name) class. Thanks for the help in diagnosing the output. You're right, when I comment out some code, the number changes based on which anonymous class it is. My main.Validate class does create an anonymous inner class of a Query object, found and imported from a file Query.class in the database package. Here's my dir structure: /WEB-INF /classes /database Query.class /main Validate.class Basic calling code in Validate.class looks like: return new Query() { private int getResults() { try { execute(); return userValue; } catch( SQLException sqle ) { return -1; } } }.getResults(); At the beginning of Validate.class, I do have import database.Query; declared. Do I need some special imports for other non-JDK packages? Is there something else I need to put into Meta-Inf that tells Tomcat where to find these other packages? [I assumed since everything was .class files under the /classes directory, it would all fall perfectly into place]. I can't believe I'm so stuck on this. - John - Original message starting it all: Environment: I've got Tomcat 3.2.2 under IIS 5 as an NT in-process with JavaService and am using JDK1.3. I installed the JavaService with the hotspot option, rather than the classic option. I compile everything under JBuilder 4 on another machine, also using JDK1.3. Tried creating both a /streamer directory under webapps, and also putting it in another directory and adding a context in server.xml. Tomcat service starts up and runs non-bean JSPs just fine. However, anytime I try and use a bean in a JSP [jsp:useBean id=validator class=main.Validate scope=request /], I get a 500 error. The file webapps/streamer/WEB-INF/classes/main/Validate.class DOES exist, the line package main; is appropriately in the source code, and I've made sure both the class declaraction and the methods in the bean are public. Strange thing is that I could have sworn this all worked when I tested Tomcat out - perhaps this was before I installed JavaService? Even stranger, when I open up jasper.log, it says Classpath according to the servlet engine is: E:\tomcat\webapps\streamer\WEB-INF\classes among other things. So, Tomcat's classpath seems right, my .class file in the right package, I've rechecked case-sensitivity at least two dozen times, why can't it see this or any other .class file? ANY help on this would be greatly appreciated, I'm tearing my limbs off here. Full error message underneath my signature. Thanks in advance. - John --- Error: 500 Location: /streamer/authenticate.jsp Internal Servlet Error: javax.servlet.ServletException: main/Validate$5 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper .java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro cessConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:501) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: main/Validate$5 at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at java.beans.Beans.instantiate(Beans.java:207) at java.beans.Beans.instantiate(Beans.java:51) at
Make file for Solaris
Hi, I am getting the following error when attempting to create nsapi_redirector.so. make:*** No rule to make target 'jk_ajp12_worker.o', needed by 'nsapi_redirector.so'. Stop I am using jakarta-tomcat-3.2.2 and Netscape Enterprise Server 3.6. Any help Thx Sankar
Re: una pregunta
Vc precisa configurar uma variavel JAVA_HOME no seu autoexec.bat dessa maneira , por exemplo: set JAVA_HOME=c:\jdk13 um abraco Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: alvaro pinto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 6:55 PM Subject: una pregunta Buenas tardes, quisiera saber como puedo usar el jakarta-tomcat para windows98 , porque cuando lo ejecuto me sale un mensaje en em ms-dos : You must set java-home to point at your java development kit installations ese es el mensaje que sale , es por eso que quiesiera que me ayuden con ese problema. gracias _ Do You Yahoo!? Obtenga su dirección de correo-e gratis @yahoo.com en http://correo.espanol.yahoo.com
Re: una pregunta
Bueno, increible la cantidad de personas que hablan español en la lista, de haber sabido nunca hubiera escrito en ingles. BTW, I also need to know something about that RFC cause I've been facing some problems with IE5. regards. Never had any problems up until now for the past three years Kris --- Tim O'Neil [EMAIL PROTECTED] wrote: Jann; That reminds me, would you just happen to know of an RFC that describes the proper convention for file names and paths? Or some definitive proof that IE breaks the standard with regard to file names? At 03:14 PM 6/26/2001, you wrote: NO NO! DON'T use spaces in Java Home -- it could cause problems down the road if you must, use set JAVA_HOME=d:\progra~1\jdk1.3.0_02 -Original Message- From: Krishna Muthyala [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 3:02 PM To: [EMAIL PROTECTED] Subject: Re: una pregunta perdon mi si mi espanol esta mal hace 4 anos wue no hablaba espanol(no soy un espanol o latino)usted tiene que poner classpath para java en su autoexec.bat de systema, y tam bien en tomcat.bat pon un linea asi set JAVA_HOME=d:\program files\jdk1.3.0_02 or cualquier buena suerte Kris --- alvaro pinto [EMAIL PROTECTED] wrote: Buenas tardes, quisiera saber como puedo usar el jakarta-tomcat para windows98 , porque cuando lo ejecuto me sale un mensaje en em ms-dos : You must set java-home to point at your java development kit installations ese es el mensaje que sale , es por eso que quiesiera que me ayuden con ese problema. gracias _ Do You Yahoo!? Obtenga su dirección de correo-e gratis @yahoo.com en http://correo.espanol.yahoo.com __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: AW: tomcat on a home machine???
He's running linux. He can run his own nameserver for his internal network (even if it's only one machine). He can also setup an ip-alias to one of the safe addresses (I use 192.168.xxx.xxx) and names like yyy.home.jay. Just to run Tomcat you don't need the full internet, though it helps to pretend... :) Since he's stated he doesn't want to run it as an outside server, this should do everything he wants. Thus it will be impossible to resolve a domain name to the IP address of your server from the public internet, as it will change every time you dial. yes, it is possible with services like http://www.dyndns.com. -- D. Jay Newman ! For the pleasure and the profit it derives [EMAIL PROTECTED] ! I arrange things, like furniture, and http://www.sprucegrove.com/~jay/ ! daffodils, and ...lives. -- Hello Dolly
Re: tomcat on a home machine???
I should add that I wanted to know if it is possible to install and use tomcat for test purposes. That is to develop and test programs at home and not make them available on the internet - not at least from my home machine. You can install Tomcat on a home machine. There doesn't need to be any connection to the internet other than to download all the stuff you need (Tomcat, Java, that sort of thing). I have Tomcat installed on a linux machine at home without any problems. Setup could be easier, but its not a difficult task either. I created a startup script for rc.d/init.d so that it would startup automatically. Good luck. I believe the license allows you to do pretty much whatever you want with Tomcat. -- D. Jay Newman ! For the pleasure and the profit it derives [EMAIL PROTECTED] ! I arrange things, like furniture, and http://www.sprucegrove.com/~jay/ ! daffodils, and ...lives. -- Hello Dolly
Re: una pregunta
si yo tambien hablo espanol. Naci en Ecuador. -alex --- Martin Mauri [EMAIL PROTECTED] wrote: Bueno, increible la cantidad de personas que hablan español en la lista, de haber sabido nunca hubiera escrito en ingles. BTW, I also need to know something about that RFC cause I've been facing some problems with IE5. regards. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: una pregunta
Si muchos mas de los que parece.. :) Si quereis hablar de Java en Español.. http://es.egroups.com/group/JugAnd http://es.egroups.com/group/JavaSpain Saludos , Ignacio J. Ortega -Mensaje original- De: alex chang [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 27 de junio de 2001 15:23 Para: [EMAIL PROTECTED] Asunto: Re: una pregunta si yo tambien hablo espanol. Naci en Ecuador. -alex --- Martin Mauri [EMAIL PROTECTED] wrote: Bueno, increible la cantidad de personas que hablan español en la lista, de haber sabido nunca hubiera escrito en ingles. BTW, I also need to know something about that RFC cause I've been facing some problems with IE5. regards. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Tomcat won't start with j2sdk 1.3.1 Linux
I have been using xerces with 1.3.1 albeit on WinNT and have no problems with it. You have to make sure in your tomcat.properties, wrapper.properties and tomcat.bat, you mention xerces.jar on the top where ever you configure the library files for example in tomcat.properties wrapper.classpath=c:\tomcat\lib\xerces.jar; wrapper.classpath= the xerces.jar needs to load up in the context first and everything should work Goodluck Kris --- pete [EMAIL PROTECTED] wrote: I get this. It sucks. The issue, for me at least, stems from the fact that i am running a Struts project, and i need to override the jaxp.jar classes with xerces parser classes. I previously did this by putting a jar named 0xerces.jar in the lib/ folder of my tomcat install, which worked fine, since those classes loaded before the ones specified in jaxp.jar. This worked great with IBM's JDK1.3.0 - never used Sun's 1.2.2 on Linux. However, since 'upgrading' to Sun's JDK1.3.1 with Hotspot, the JVM segfaults when tomcat starts up, giving the same error you describe. I'm not sure why this happens, but maybe 1.3.1 doesn't like having its classes overridden. There are 2 ways around this - invoke the JVM with the '-classic' switch, thus disabling the JIT, or to remove 0xerces.jar from lib/, which breaks my Struts projects. The third solution is not to use the JDK1.3.1 at all, and stick with the IBM JDK, which is my current course of action. Hope this helps, and i hope you find a better solution than i did. -Pete __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Threads in TOMCAT 3.2
Hi, Anybody knows if it's posible encrease the number of threads with TOMCAT 3.2. I'm doing some performance testing and when I try to execute more that 100 request simultaneously I get the the error ... 2001-06-27 03:01:18 - ThreadPool: Pool exhausted with 100 threads. It's posible define the ThreadPool varible? Where is it? Thanks in advance and best regards, Jose
SERVLET : transform XSL+XML -OUTPUT = blank page
Greetings, I made a servlet where I try to produce a result to output stream of the response object that came from a transformation of XML + XSL. But, I just get a blank page in output...!? I put the same piece of code that exists in doGet() of my servlet in a isolated test class [but redirecting the output to a file]. I ran it and it works ok... Why my servlet doesn't give nothing to my client?? I put my code below. My servlet runs in the root / of my context. In my servlet, if I put a println of a string, i will saw the string, but just the string... thanks, Pedro Salazar --- SAMPLE ISOLATED --- ... Source xmlSource = null; Source xslSource = null; xmlSource = new javax.xml.transform.stream.StreamSource(login.xml); xslSource = new javax.xml.transform.stream.StreamSource(login.xsl); TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(xslSource); transformer.transform(xmlSource, new StreamResult(new java.io.FileOutputStream(login.out))); ... --- SERVLET doGet() --- ... Source xmlSource = null; Source xslSource = null; PrintWriter out = null; xmlSource = new StreamSource ( getServletContext().getResourceAsStream(/WEB-INF/classes/login.xml)); xslSource = new javax.xml.transform.stream.StreamSource ( getServletContext().getResourceAsStream(/WEB-INF/classes/login.xsl)); Transformer transformer = tFactory.newTransformer(xslSource); response.setContentType(text/html; charset=UTF-8); out = response.getWriter(); transformer.transform(xmlSource, new StreamResult(out)); //out.println(OK); ...
Re: tomcat on a home machine???
On Wed, 27 Jun 2001 [EMAIL PROTECTED] wrote: I should add that I wanted to know if it is possible to install and use tomcat for test purposes. That is to develop and test programs at home and not make them available on the internet - not at least from my home machine. [ ... ] Well then you should be able to use localhost as the machine name in the URL regardless of whether your machine is connected to the network. On Wed, 27 Jun 2001, Charan Kishore Singla wrote: yah you can, read faq file related to tomcat, all things would be clear. Thanks - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 1:38 PM Subject: tomcat on a home machine??? Hello I have linux installed at home and have only a modem connecting me to the internet through a local service provider. My questions are: Is it possible for me to install and use tomcat without a permenant connection. If it is possible what files would need to be configured to allow me to do so. What url would I need to call to access tomcat's homepage. Apologies if this question has been asked b4. T:Irvine Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: una pregunta
Title: RE: una pregunta Mucha gente habla español, INCREIBLE ... Saludos a Todos !!! -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 8:30 AM To: '[EMAIL PROTECTED]' Subject: RE: una pregunta Si muchos mas de los que parece.. :) Si quereis hablar de Java en Español.. http://es.egroups.com/group/JugAnd http://es.egroups.com/group/JavaSpain Saludos , Ignacio J. Ortega -Mensaje original- De: alex chang [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 27 de junio de 2001 15:23 Para: [EMAIL PROTECTED] Asunto: Re: una pregunta si yo tambien hablo espanol. Naci en Ecuador. -alex --- Martin Mauri [EMAIL PROTECTED] wrote: Bueno, increible la cantidad de personas que hablan español en la lista, de haber sabido nunca hubiera escrito en ingles. BTW, I also need to know something about that RFC cause I've been facing some problems with IE5. regards. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Writing an xml document back
Hi, where can I find the documentation of the XML parser delivered with tomcat and how can I write data back to a xml file? Zsolt -- Zsolt Koppany Intland GmbH www.intland.com Schulze-Delitzsch-Str. 16 70565 Stuttgart Tel: +49-711-7221873 Fax: +49-711-7221835
OT: Mucha gente habla español, era: Re: una pregunta
Pues yo tambien. Saludos -- Antoni Reus - Original Message - From: Julio Cesar Perez Jerez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 3:42 PM Subject: RE: una pregunta Mucha gente habla español, INCREIBLE ... Saludos a Todos !!! -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 8:30 AM To: '[EMAIL PROTECTED]' Subject: RE: una pregunta Si muchos mas de los que parece.. :) Si quereis hablar de Java en Español.. http://es.egroups.com/group/JugAnd http://es.egroups.com/group/JavaSpain Saludos , Ignacio J. Ortega -Mensaje original- De: alex chang [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 27 de junio de 2001 15:23 Para: [EMAIL PROTECTED] Asunto: Re: una pregunta si yo tambien hablo espanol. Naci en Ecuador. -alex --- Martin Mauri [EMAIL PROTECTED] wrote: Bueno, increible la cantidad de personas que hablan español en la lista, de haber sabido nunca hubiera escrito en ingles. BTW, I also need to know something about that RFC cause I've been facing some problems with IE5. regards. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
WML pages served by tomcat
Any ideas about how to serve WML pages from Tomcat? I have placed index.wml and wml12.dtd in the webapps/ROOT directory, and conceivably I should be able to access it via the Nokia WML Toolkit browser on http://localhost/index.wml . However when I do, I get the error trace content type text/plain is not supported I have entered in conf/web.xml: mime-mapping extension wml /extension mime-type text/vnd.wap.wml /mime-type /mime-mapping but this makes no difference. wtf? - James Radvan Websphere Analyst/Architect London, UK [EMAIL PROTECTED] +44 7990 624899 Click here to visit the Argos home page http://www.argos.co.uk The information contained in this message or any of its attachments may be privileged and confidential, and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you are not the addressee, any disclosure, reproduction, distribution, dissemination or use of this communication is not authorised. If you have received this message in error, please advise the sender by using the reply facility in your e-mail software. All messages sent and received by Argos Ltd are monitored for virus, high risk file extensions, and inappropriate content. As a result users should be aware that mail may be accessed.
IIS tomcat and transparent logins
When I was using IIS/NT for my authentication users could login into the server using a link that looked something like this http://username:[EMAIL PROTECTED]/sdfsdf/ http://username:[EMAIL PROTECTED]/sdfsdf/ Is there anyway to do this in tomcat. Really what I am trying to accomplish, is move a user from one of my company's web site to another site ( they are on two different systems) without having to have a double login. I searched through the archives but wasn't able to find anything on this topic. Any suggestions are appreciated? Zach Hensley ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender by email, delete and destroy this message and its attachments. **
Re: una pregunta
Title: RE: una pregunta Gracias !!hahah [] Daniel ___Daniel de Almeida AlvaresSantos - SP - Brasil[EMAIL PROTECTED] - Original Message - From: Julio Cesar Perez Jerez To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 11:42 AM Subject: RE: una pregunta Mucha gente habla español, INCREIBLE ... Saludos a Todos !!! -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 8:30 AM To: '[EMAIL PROTECTED]' Subject: RE: una pregunta Si muchos mas de los que parece.. :) Si quereis hablar de Java en Español.. http://es.egroups.com/group/JugAnd http://es.egroups.com/group/JavaSpain Saludos , Ignacio J. Ortega -Mensaje original- De: alex chang [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 27 de junio de 2001 15:23 Para: [EMAIL PROTECTED] Asunto: Re: una pregunta si yo tambien hablo espanol. Naci en Ecuador. -alex --- Martin Mauri [EMAIL PROTECTED] wrote: Bueno, increible la cantidad de personas que hablan español en la lista, de haber sabido nunca hubiera escrito en ingles. BTW, I also need to know something about that RFC cause I've been facing some problems with IE5. regards. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: Tomcat 4 and apache. How to make them work together?
Krishna, Thanks a lot for your help. Unfortunately the tomcat 4 version(catalina) doen not use the same schema than tomcat 3 for configuration. I found some documentation and I will try to see if it works. Any way if it doesn't work I will install the older one. Thank you again, Alejandro Arredondo P.S. I like you name a lot --- Krishna Muthyala [EMAIL PROTECTED] wrote: All you have to do is the following include this line at the end of https.conf in apache/conf include path_to_tomcat/tomcat/conf/tomcat-apache.conf and then do the following in tomcat.conf uncomment the line based on which platform you are in # Tell Apache on win32 to load the Apache JServ communication module LoadModule jserv_module modules/ApacheModuleJServ.dll # Tell Apache on Unix to load the Apache JServ communication module # For shared object builds only!!! # @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so #LoadModule jserv_module libexec/mod_jserv.so if its nt you have to get the .dll and place it in apche/modules folder and if unix etc i think u are fine.check to see if the above is present in your modules folder. you are set to go dude Kris --- Jann VanOver [EMAIL PROTECTED] wrote: Did you check the tomcat user guide? -Original Message- From: Alejandro Arredondo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 7:31 AM To: [EMAIL PROTECTED] Subject: Tomcat 4 and apache. How to make them work together? I have installed Tomcat 4 configured it and it works fine. Now I want it to work with apache together. Where can I find info on how to configure them? Thanks in advance, Alejandro Arredondo _ Free E-mail --- http://letodesigns.mail.everyone.net Letodesigns Programming Free e-mail 6MB limit http://letodesigns.8k.com __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ _ Free E-mail --- http://letodesigns.mail.everyone.net Letodesigns Programming Free e-mail 6MB limit http://letodesigns.8k.com
running on 80 as user
Can I run Tomcat as standalone on port 80, as a user instead of as root? Thanks.
Disable a used java bean
Hello, I have a java bean used in jsp and the bean has application scope. I need to disable it without rebooting Tomcat. Thanks, Jack Li
RE: running on 80 as user
No, ports below 1000 are well-known ports. Administrator privilege is required to open a connection on one of these well-known ports. You therefore require root privileges to run tomcat on port 80. -Original Message- From: T [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 5:24 PM To: [EMAIL PROTECTED] Subject: running on 80 as user Can I run Tomcat as standalone on port 80, as a user instead of as root? Thanks.
Re: Tomcat won't start with j2sdk 1.3.1 Linux
Switching to IBM's JDK 1.3 solved my problem of the HttpConnectionHandler not being able to start. Thank you! I was using Sun's JDK 1.3.0_02 and my problem arose when I upgraded to Sun's JDK1.3.1 Thanks again! - Original Message - From: pete [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 0:58 Subject: Re: Tomcat won't start with j2sdk 1.3.1 Linux I get this. It sucks. The issue, for me at least, stems from the fact that i am running a Struts project, and i need to override the jaxp.jar classes with xerces parser classes. I previously did this by putting a jar named 0xerces.jar in the lib/ folder of my tomcat install, which worked fine, since those classes loaded before the ones specified in jaxp.jar. This worked great with IBM's JDK1.3.0 - never used Sun's 1.2.2 on Linux. However, since 'upgrading' to Sun's JDK1.3.1 with Hotspot, the JVM segfaults when tomcat starts up, giving the same error you describe. I'm not sure why this happens, but maybe 1.3.1 doesn't like having its classes overridden. There are 2 ways around this - invoke the JVM with the '-classic' switch, thus disabling the JIT, or to remove 0xerces.jar from lib/, which breaks my Struts projects. The third solution is not to use the JDK1.3.1 at all, and stick with the IBM JDK, which is my current course of action. Hope this helps, and i hope you find a better solution than i did. -Pete
Re: SERVLET : transform XSL+XML -OUTPUT = blank page
Doesn't getServletContext().getResourceAsStream (/WEB-INF/classes/login.xml)); have to be getServletContext().getResourceAsStream(/login.xml)); ? - fs |+--- || Pedro Salazar| || pedro-b-salazar@ptin| || ovacao.pt | || | || 06/27/2001 10:34 AM | || Please respond to| || tomcat-user | || | |+--- | | | | To: [EMAIL PROTECTED] | | cc: (bcc: Fernando Salazar/CAM/Lotus) | | Subject: SERVLET : transform XSL+XML -OUTPUT = blank page | | Greetings, I made a servlet where I try to produce a result to output stream of the response object that came from a transformation of XML + XSL. But, I just get a blank page in output...!? I put the same piece of code that exists in doGet() of my servlet in a isolated test class [but redirecting the output to a file]. I ran it and it works ok... Why my servlet doesn't give nothing to my client?? I put my code below. My servlet runs in the root / of my context. In my servlet, if I put a println of a string, i will saw the string, but just the string... thanks, Pedro Salazar --- SAMPLE ISOLATED --- ... Source xmlSource = null; Source xslSource = null; xmlSource = new javax.xml.transform.stream.StreamSource(login.xml); xslSource = new javax.xml.transform.stream.StreamSource(login.xsl); TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(xslSource); transformer.transform(xmlSource, new StreamResult(new java.io.FileOutputStream(login.out))); ... --- SERVLET doGet() --- ... Source xmlSource = null; Source xslSource = null; PrintWriter out = null; xmlSource = new StreamSource ( getServletContext().getResourceAsStream(/WEB-INF/classes/login.xml)); xslSource = new javax.xml.transform.stream.StreamSource ( getServletContext().getResourceAsStream(/WEB-INF/classes/login.xsl)); Transformer transformer = tFactory.newTransformer(xslSource); response.setContentType(text/html; charset=UTF-8); out = response.getWriter(); transformer.transform(xmlSource, new StreamResult(out)); //out.println(OK); ...
Re: OT: Mucha gente habla español,era: Re: una pregunta
i és de Mallorca (exactament de La Vila) Antoni Reus wrote: Pues yo tambien. Saludos -- Antoni Reus - Original Message - From: Julio Cesar Perez Jerez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 3:42 PM Subject: RE: una pregunta Mucha gente habla español, INCREIBLE ... Saludos a Todos !!! -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 8:30 AM To: '[EMAIL PROTECTED]' Subject: RE: una pregunta Si muchos mas de los que parece.. :) Si quereis hablar de Java en Español.. http://es.egroups.com/group/JugAnd http://es.egroups.com/group/JavaSpain Saludos , Ignacio J. Ortega -Mensaje original- De: alex chang [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 27 de junio de 2001 15:23 Para: [EMAIL PROTECTED] Asunto: Re: una pregunta si yo tambien hablo espanol. Naci en Ecuador. -alex --- Martin Mauri [EMAIL PROTECTED] wrote: Bueno, increible la cantidad de personas que hablan español en la lista, de haber sabido nunca hubiera escrito en ingles. BTW, I also need to know something about that RFC cause I've been facing some problems with IE5. regards. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: tomcat on a home machine???
You need a java jdk and tomcat. Have a look at this page for setup info on windows2000 and linux. http://www.onjava.com/pub/a/onjava/2001/03/29/tomcat.html Then goto http://localhost:8080/ once tomcat is running. Simon [EMAIL PROTECTED] wrote: I should add that I wanted to know if it is possible to install and use tomcat for test purposes. That is to develop and test programs at home and not make them available on the internet - not at least from my home machine. T:Irvine ps which faq did you mean - there seem to be so many. I'll A keep searching though. On Wed, 27 Jun 2001, Charan Kishore Singla wrote: yah you can, read faq file related to tomcat, all things would be clear. Thanks - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 1:38 PM Subject: tomcat on a home machine??? Hello I have linux installed at home and have only a modem connecting me to the internet through a local service provider. My questions are: Is it possible for me to install and use tomcat without a permenant connection. If it is possible what files would need to be configured to allow me to do so. What url would I need to call to access tomcat's homepage. Apologies if this question has been asked b4. T:Irvine
Managing non http requests
I'm checking the feasibility of building a 'message server' based on Tomcat that will receive messages (xml or other format) from clients, route them to a backend system and send the response. 1. There maybe situations that the application response to the http request should be sent to a different url or maybe even using non http protocol (asynchronous mode). How should I handle this case so that the client will receive an immediate response and disconnect while the thread continues to process the request? 2. I will also accept request from MQ and other non http channels. Is there a way to enjoy Tomact services like thread pooling for those requests? Should I package them in http and resend to the web server? Thanks Zvi Bruckner
several tomcat instances running at the same time
Hi!! I have a little problem. I have Tomcat 3.1 installed on SUN 1, near to 200 users use the application. This causes that the application becomes very slow (Is a WEB GIS). I have just one Tomcat instance running on sun system.I believe that maybe if turn on another instance next to the current one, the speed could improve. Is it correct and possible? How I can have several instances running at the same time? Regards. Aprovechando que hay mucha gente que habla español, va la versión en español. Hola Tengo un pequeño problema. Tengo instalado Tomcat 3.1 en Sun 1, 200 usuarios aproximadamente utilizan la aplicación. Esto provoca que la aplicación sea muy lenta (es un sistema de información geografica para Internet). Tengo solamente una instancia de Tomcat corriendo en el sistema. Creo que si corro otra instancia de Tomcat, la velocidad mejorará. ¿Es correcto y posible esto? ¿Como puedo tener varias instancias de Tomcat corriendo al mismo tiempo. Gracias!! PD. como se podran dar cuenta, soy uno mas de la comunidad de habla hispana.
RE: Managing non http requests
I'm checking the feasibility of building a 'message server' based on Tomcat that will receive messages (xml or other format) from clients, route them to a backend system and send the response. 1. There maybe situations that the application response to the http request should be sent to a different url or maybe even using non http protocol (asynchronous mode). How should I handle this case so that the client will receive an immediate response and disconnect while the thread continues to process the request? 2. I will also accept request from MQ and other non http channels. Is there a way to enjoy Tomact services like thread pooling for those requests? Should I package them in http and resend to the web server? If I am following you correctly a RequestInterceptor could be used for this. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: una pregunta
existem brasileiros neta lista? legal eu sou do brasil :) On Wed, 27 Jun 2001, Daniel de Almeida Alvares wrote: Vc precisa configurar uma variavel JAVA_HOME no seu autoexec.bat dessa maneira , por exemplo: set JAVA_HOME=c:\jdk13 um abraco Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: alvaro pinto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 6:55 PM Subject: una pregunta Buenas tardes, quisiera saber como puedo usar el jakarta-tomcat para windows98 , porque cuando lo ejecuto me sale un mensaje en em ms-dos : You must set java-home to point at your java development kit installations ese es el mensaje que sale , es por eso que quiesiera que me ayuden con ese problema. gracias _ Do You Yahoo!? Obtenga su dirección de correo-e gratis @yahoo.com en http://correo.espanol.yahoo.com
Re: una pregunta
poderiamos formas uma lista de tomcat para quem fala portugues o que acham? On Wed, 27 Jun 2001, Daniel de Almeida Alvares wrote: Vc precisa configurar uma variavel JAVA_HOME no seu autoexec.bat dessa maneira , por exemplo: set JAVA_HOME=c:\jdk13 um abraco Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: alvaro pinto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 6:55 PM Subject: una pregunta Buenas tardes, quisiera saber como puedo usar el jakarta-tomcat para windows98 , porque cuando lo ejecuto me sale un mensaje en em ms-dos : You must set java-home to point at your java development kit installations ese es el mensaje que sale , es por eso que quiesiera que me ayuden con ese problema. gracias _ Do You Yahoo!? Obtenga su dirección de correo-e gratis @yahoo.com en http://correo.espanol.yahoo.com
RE: IIS tomcat and transparent logins
When I was using IIS/NT for my authentication users could login into the server using a link that looked something like this http://username:[EMAIL PROTECTED]/sdfsdf/ http://username:[EMAIL PROTECTED]/sdfsdf/ Is there anyway to do this in tomcat. Really what I am trying to accomplish, is move a user from one of my company's web site to another site ( they are on two different systems) without having to have a double login. I searched through the archives but wasn't able to find anything on this topic. Any suggestions are appreciated? NTLM Auth is one way to do this(without passing the auth credentials in the plain text url). I've been working on writing up a NTLMRealm for a while but am having a rough time with getting the MFC stuff to cooperate. If anyone's had better luck with this let me know. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: OT: Mucha gente hablaespañol, era: Re: una pregunta
Y yo tambien pero solamente un poquito. Aprendi en collegio antes de diez años. --- To design, to implement, to maintain, and not to kluge. Tomeu BennàssarTo: [EMAIL PROTECTED] tomeub@ipc4.cc: uib.es Subject: Re: OT: Mucha gente habla español, era: Re: unapregunta 06/27/01 11:50 AM Please respond to tomcat-user i és de Mallorca (exactament de La Vila) Antoni Reus wrote: Pues yo tambien. Saludos -- Antoni Reus - Original Message - From: Julio Cesar Perez Jerez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 3:42 PM Subject: RE: una pregunta Mucha gente habla español, INCREIBLE ... Saludos a Todos !!! -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 8:30 AM To: '[EMAIL PROTECTED]' Subject: RE: una pregunta Si muchos mas de los que parece.. :) Si quereis hablar de Java en Español.. http://es.egroups.com/group/JugAnd http://es.egroups.com/group/JavaSpain Saludos , Ignacio J. Ortega -Mensaje original- De: alex chang [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 27 de junio de 2001 15:23 Para: [EMAIL PROTECTED] Asunto: Re: una pregunta si yo tambien hablo espanol. Naci en Ecuador. -alex --- Martin Mauri [EMAIL PROTECTED] wrote: Bueno, increible la cantidad de personas que hablan español en la lista, de haber sabido nunca hubiera escrito en ingles. BTW, I also need to know something about that RFC cause I've been facing some problems with IE5. regards. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: ServerSocket exception (HPUX)
Positive :) Actually, I may have found the answer outside the list; Haven't verified it yet, but it seems to be a likely solution. Just in case anyone else runs into this, here's the pointer I was given: Yes, we have found a solution for the problem. We installed the HP-UX Patches PHNE_22397, PHKL_22840 and PHNE_22566. Additionaly, we installed all patches required for java 1.3: http://www.hp.com/products1/unix/java/infolibrary/patches.html Regards, Levi Cook -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 6:02 AM To: Cook, Levi Subject: RE: ServerSocket exception (HPUX) r u sure there is no other server socket running at port 8080 ? Shuklix -Original Message- From: Cook, Levi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 3:28 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: ServerSocket exception (HPUX) Searching the mail-archive, I found the following message, which describes my problem exactly: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg 23066.html Unfortunately, I cannot find a corresponding solution :( Has anyone else encountered this problem?? Does anyone have any possible solutions?? Here's some reference info. on my system config. just in case it helps.. I've tried both VM's listed below but each has equivalant results. ships@gvtrns04[/opt/ships]:/opt/java1.2/jre/bin/java -version java version 1.2.2.08 HotSpot VM (1.0.1fcs, mixed mode, PA2.0 build 1.2.2.08-01/03/29-PA_RISC2.0) ships@gvtrns04[/opt/ships]:/opt/java1.3/jre/bin/java -version java version JavaVM-1.3.0.00 Java(TM) 2 Runtime Environment, Standard Edition (build jinteg:11/28/00-11:08) HotSpot VM (build 1.0.1fcs jinteg:11/28/00-13:54 PA2.0, mixed mode) ships@gvtrns04[/opt/ships]:uname -all HP-UX gvtrns04 B.11.00 U 9000/800 117901517 unlimited-user license ships@gvtrns04[/opt/ships]:echo $JAVA_HOME /opt/java1.2/jre ships@gvtrns04[/opt/ships]:tomcat run Guessing TOMCAT_HOME from tomcat.sh to ./jakarta-tomcat-3.2.2/bin/.. Setting TOMCAT_HOME to ./jakarta-tomcat-3.2.2/bin/.. Using classpath: ./jakarta-tomcat-3.2.2/bin/../lib/ant.jar:./jakarta-tomcat-3.2 .2/bin/../lib/ jasper.jar:./jakarta-tomcat-3.2.2/bin/../lib/jaxp.jar:./jakart a-tomcat-3.2.2 /bin/../lib/parser.jar:./jakarta-tomcat-3.2.2/bin/../lib/servl et.jar:./jakar ta-tomcat-3.2.2/bin/../lib/test:./jakarta-tomcat-3.2.2/bin/../ lib/webserver. jar 2001-06-26 04:40:58 - ContextManager: Adding context Ctx( /examples ) 2001-06-26 04:40:58 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-06-26 04:40:58 - ContextManager: Adding context Ctx( ) 2001-06-26 04:40:58 - ContextManager: Adding context Ctx( /test ) 2001-06-26 04:40:59 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-06-26 04:40:59 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 2001-06-26 04:41:04 - PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception: java.net.SocketException: Socket closed - java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:418) at java.net.ServerSocket.implAccept(ServerSocket.java:240) at java.net.ServerSocket.accept(ServerSocket.java:224) at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcp Endpoint.java: 286) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:402) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:501) at java.lang.Thread.run(Thread.java:479) 2001-06-26 04:41:07 - PoolTcpEndpoint: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception: java.net.SocketException: No buffer space available - java.net.SocketException: No buffer space available at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:418) at java.net.ServerSocket.implAccept(ServerSocket.java:240) at java.net.ServerSocket.accept(ServerSocket.java:224) at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcp Endpoint.java: 286) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:402) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:501) at java.lang.Thread.run(Thread.java:479) Any feedback is greatly appreciated Levi Cook Consultant Greenbrier Russel, Inc. 8383 Greenway Blvd., Suite 200 Middleton, WI 53562 email: [EMAIL PROTECTED] web : www.gr.com
Re: running on 80 as user
At 08:23 AM 6/27/2001, you wrote: Can I run Tomcat as standalone on port 80, as a user instead of as root? Thanks. No, regular users aren't supposed to have access to any ports below 1024 on a unix machine. Which is posix standard. Before you mention it apache (and netscape and etc) can do it because they run a native administrative process that runs under root.
Re: tomcat on a home machine???
At 06:18 AM 6/27/2001, you wrote: Good luck. Thanks I may need it :) All you really need is to make sure your local hosts table has an entry for localhost. If you can enter a url of 127.0.0.1 and get what you expect to see then you can map it to localhost in the table. If not, then your network layer would seem to be hosed.
SSL with Verisign key
I have Tomcat 3.2 , Java 2 SDK 1.3, andJSSE 1.0.2. I have Tomcat running successfully with the test SSL certificate generated with the following instructions; http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Security7.html Now I'm ready to get Tomcat running in a production environment with SSL usingmy Verisign Certificate, but I cant seem to find the proper instructions/steps that need to be taken to achieve this goal. PLEASE, if anyone has been able to get this working, I really need Step bye Step instructions. Please respond to; [EMAIL PROTECTED] Thanks in advance
Re: una pregunta
eu nao falo portugues, mas minha ex-namorada (is) portuguesa, e tambem (studied) 3 semesters em college. =) --- applein [EMAIL PROTECTED] wrote: existem brasileiros neta lista? legal eu sou do brasil :) On Wed, 27 Jun 2001, Daniel de Almeida Alvares wrote: Vc precisa configurar uma variavel JAVA_HOME no seu autoexec.bat dessa maneira , por exemplo: set JAVA_HOME=c:\jdk13 um abraco Daniel __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: una pregunta
sim, eu quero falar mehlor tambem. :) --- applein [EMAIL PROTECTED] wrote: poderiamos formas uma lista de tomcat para quem fala portugues o que acham? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: una pregunta
por mim ok ! ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: alex chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 2:00 PM Subject: Re: una pregunta sim, eu quero falar mehlor tambem. :) --- applein [EMAIL PROTECTED] wrote: poderiamos formas uma lista de tomcat para quem fala portugues o que acham? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
removing a tomcat worker
Hello all, Is there any way to remove a tomcat worker from a load balancing pool, without restarting tomcat or at least adjust it weight? This would come in very handy when working on one of our servers. Basically I'm looking for a way to tell a worker to stop accepting new sessions, and finish it's current workload. Then when it's done I can update the site without any session loss. I am using apache 1.3.19 tomcat 3.2.1 on Solaris 2.8 Thanks in advance -James -Original Message- From: Mario Vera [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 2:03 PM To: TOMCAT Subject: Workers in tomcat ¿Necesito Apache forzosamente para poder utilizar los workers de Tomcat y tener varias instancias de tomcat al mismo tiempo? Saludos!! Do I need Apache unavoidably to be able to use the workers of Tomcat and to have several tomcat instances at the same time? Regards
Re: SERVLET : transform XSL+XML -OUTPUT = blank page
Pedro Salazar wrote: Greetings, I made a servlet where I try to produce a result to output stream of the response object that came from a transformation of XML + XSL. But, I just get a blank page in output...!? I put the same piece of code that exists in doGet() of my servlet in a isolated test class [but redirecting the output to a file]. I ran it and it works ok... Why my servlet doesn't give nothing to my client?? I put my code below. My servlet runs in the root / of my context. In my servlet, if I put a println of a string, i will saw the string, but just the string... I just solve my problem... but before,... [remember] -I haven't no exception in servlet, just a blank page; -my isolated class test worked just fine with the output expected; [my test] -I put my classpath in my isolated class test exactly with the same classpath as tomcat gets when it starts. [result] - An exception occurred: javax.xml.transform.TransformerConfigurationException: Namespace not supported by SAXParser [why...] Why there is no exception in servlet? I just don't know!?! [What I did...] -I edited my tomcat.sh script I just after the definition of CLASSPATH, I redefined the CLASSPATH with xerces.jar (the one that came with xalan) in the beginning and the rest after. [what happened...] -Works ok... [conclusions...] -Why there is no exception in servlet since in any exception I write in log and I write to outputstream of response??? -What is the conflict jar of tomcat with xerces.jar, since when I use xerces it works just fine. thanks, Pedro Salazar
How to specify a startup servlet for an application (CONTEXT)?
I need to load couple xml files into memory and store them in ServletContext when my application starts. I created a servlet to do that, but I can't figure out how to make this servlet run automatically whem the app starts. Is there smthg in server.xml that I can define to run this servlet? Please help! Julia Kuznetsov
Re: How to specify a startup servlet for an application (CONTEXT)?
On Wed, 27 Jun 2001, Julia Kuznetsov wrote: I need to load couple xml files into memory and store them in ServletContext when my application starts. I created a servlet to do that, but I can't figure out how to make this servlet run automatically whem the app starts. Is there smthg in server.xml that I can define to run this servlet? If I understand you right, you can put a load-on-startup tag in the servlet definition tag in the context's web.xml file to take care of this. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Re: una pregunta
Eu no falo portugues, eu sou do Argentina. existem brasileiros neta lista? legal eu sou do brasil :) On Wed, 27 Jun 2001, Daniel de Almeida Alvares wrote: Vc precisa configurar uma variavel JAVA_HOME no seu autoexec.bat dessa maneira , por exemplo: set JAVA_HOME=c:\jdk13 um abraco Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: alvaro pinto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 6:55 PM Subject: una pregunta Buenas tardes, quisiera saber como puedo usar el jakarta-tomcat para windows98 , porque cuando lo ejecuto me sale un mensaje en em ms-dos : You must set java-home to point at your java development kit installations ese es el mensaje que sale , es por eso que quiesiera que me ayuden con ese problema. gracias _ Do You Yahoo!? Obtenga su dirección de correo-e gratis @yahoo.com en http://correo.espanol.yahoo.com
Re: How to specify a startup servlet for an application (CONTEXT)?
If you want a servlet to init as part of your web app then you should define it in your web app's WEB-INF/web.xml file with the following syntax: web-app servlet servlet-nameput your servlet's name here/servlet-name servlet-classservlet.class.name.here/servlet-class init-param param-namenameOfParamMappingToMutatorOnServlet/param-name param-valueput the value of the parameter here/param-value /init-param /servlet etc., ... I believe that this will result in the execution of the servlet's init() method. Incidentally, mutator is synonymous for setter (e.g., setFoo( String val)) if that's unclear. You can also have any number of init-param elements. Evan --- To design, to implement, to maintain, and not to kluge. Julia Kuznetsov julia_kuznetsov@modusTo: [EMAIL PROTECTED] media.comcc: Subject: How to specify a startup servlet for an application 06/27/01 01:34 PM (CONTEXT)? Please respond to tomcat-user I need to load couple xml files into memory and store them in ServletContext when my application starts. I created a servlet to do that, but I can't figure out how to make this servlet run automatically whem the app starts. Is there smthg in server.xml that I can define to run this servlet? Please help! Julia Kuznetsov
RE: una pregunta
Don't be too ignorant eh? The web IS international you know! :) translation: I don't speak Portuguese, I'm from Argentina Regards, Paulo -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 1:55 PM To: [EMAIL PROTECTED] Subject: Re: una pregunta On Wed, 27 Jun 2001, Martin Mauri wrote: Eu no falo portugues, eu sou do Argentina. Hey, I'm trying to learn Chinese, anybody want to help me out with that? :-) existem brasileiros neta lista? legal eu sou do brasil :) On Wed, 27 Jun 2001, Daniel de Almeida Alvares wrote: Vc precisa configurar uma variavel JAVA_HOME no seu autoexec.bat dessa maneira , por exemplo: set JAVA_HOME=c:\jdk13 um abraco Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: alvaro pinto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 6:55 PM Subject: una pregunta Buenas tardes, quisiera saber como puedo usar el jakarta-tomcat para windows98 , porque cuando lo ejecuto me sale un mensaje en em ms-dos : You must set java-home to point at your java development kit installations ese es el mensaje que sale , es por eso que quiesiera que me ayuden con ese problema. gracias _ Do You Yahoo!? Obtenga su dirección de correo-e gratis @yahoo.com en http://correo.espanol.yahoo.com Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Re: una pregunta
hahaha. I'd help. But only my mom understand my horribly American-accented cantonese! -alex --- Milt Epstein [EMAIL PROTECTED] wrote: On Wed, 27 Jun 2001, Martin Mauri wrote: Hey, I'm trying to learn Chinese, anybody want to help me out with that? :-) __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: una pregunta
Ni hao ma? :) On Wed, 27 Jun 2001, Martin Mauri wrote: Eu no falo portugues, eu sou do Argentina. Hey, I'm trying to learn Chinese, anybody want to help me out with that? :-) existem brasileiros neta lista? legal eu sou do brasil :) On Wed, 27 Jun 2001, Daniel de Almeida Alvares wrote: Vc precisa configurar uma variavel JAVA_HOME no seu autoexec.bat dessa maneira , por exemplo: set JAVA_HOME=c:\jdk13 um abraco Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: alvaro pinto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 6:55 PM Subject: una pregunta Buenas tardes, quisiera saber como puedo usar el jakarta-tomcat para windows98 , porque cuando lo ejecuto me sale un mensaje en em ms-dos : You must set java-home to point at your java development kit installations ese es el mensaje que sale , es por eso que quiesiera que me ayuden con ese problema. gracias _ Do You Yahoo!? Obtenga su dirección de correo-e gratis @yahoo.com en http://correo.espanol.yahoo.com Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
load balancing workers admin tool
Hey all, Are there any tomcat administration modules in the works or do i have to build my own? Specifically, I'm thinking about managing multiple JVM's/workers for load balancing. I'd also like to be able to manage contexts in a more secure manner than the current /admin context allows... I know that most of this stuff is pretty simple administration of XML or properties files but the server itself is in a 24x7 environment and can't be taken down/restarted. Any administration would have to be a live change. Any information about an easy way to do these kind of things would be much appreciated. I've been using the Tomcat environment and doing basic configurations for a while now, but I'm a newbie at being an admin. Thanks for reading, -michael
Re: una pregunta
Eu falo portugues tb, Rio de Janeiro :-) - Original Message - From: Daniel de Almeida Alvares [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 2:11 PM Subject: Re: una pregunta por mim ok ! ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: alex chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 2:00 PM Subject: Re: una pregunta sim, eu quero falar mehlor tambem. :) --- applein [EMAIL PROTECTED] wrote: poderiamos formas uma lista de tomcat para quem fala portugues o que acham? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
tag isnt allowed to be on 2 lines, while it is allowed that way on orion
Hello, I just wanted to say that i may not use the following taglib in my jsp page: tagfoo/tag While this is allowed inside orion, is this a bug of tomcat of from orion? -- Eduard Witteveen Systeem Ontwikkelaar NOS Internet, Mediacentrum Kamer 203 +31(0)356773059 http://www.omroep.nl/ Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal
Re: una pregunta
At 10:55 AM 6/27/2001, you wrote: On Wed, 27 Jun 2001, Martin Mauri wrote: Eu no falo portugues, eu sou do Argentina. Hey, I'm trying to learn Chinese, anybody want to help me out with that? :-) I know how to say thank you in Cantonese. That's it. And that I learned from a movie. Not much help. Want the name of the movie?
Re: una pregunta
Martin Mauri wrote: Ni hao ma? :) SPEAK FINNISH OR DIE!
Re: una pregunta
What's cantonese? And how do you say thank you? I know how to say thank you in Cantonese. That's it. And that I learned from a movie. Not much help. Want the name of the movie?
RE: una pregunta
Sou mais um. -Original Message- From: Gustavo Rios [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 1:14 PM To: [EMAIL PROTECTED]; Daniel de Almeida Alvares Subject: Re: una pregunta Eu falo portugues tb, Rio de Janeiro :-) - Original Message - From: Daniel de Almeida Alvares [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 2:11 PM Subject: Re: una pregunta por mim ok ! ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: alex chang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 2:00 PM Subject: Re: una pregunta sim, eu quero falar mehlor tambem. :) --- applein [EMAIL PROTECTED] wrote: poderiamos formas uma lista de tomcat para quem fala portugues o que acham? __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: SSL with Verisign key
Hi, look at http://www.comu.de/docs/tomcat_ssl.htm maybe it helps ! Yours Wolfgang Mutter Am Mittwoch, 27. Juni 2001 18:53 schrieben Sie: I have Tomcat 3.2 , Java 2 SDK 1.3, and JSSE 1.0.2. I have Tomcat running successfully with the test SSL certificate generated with the following instructions; http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Security7.html http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Security7.html Now I'm ready to get Tomcat running in a production environment with SSL using my Verisign Certificate, but I cant seem to find the proper instructions/steps that need to be taken to achieve this goal. PLEASE, if anyone has been able to get this working, I really need Step bye Step instructions. Please respond to; [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Thanks in advance Content-Type: text/html; charset=iso-8859-1; name=Anhang: 1 Content-Transfer-Encoding: 7bit Content-Description: -- mfg Wolfgang Mutter Computer Mutter GmbH
Where can I set Session timeout length?
Where can I set my session timeout length? I can't seem to find anything in server.xml or any other documentation. Also, does anyone know the default timeout length? Brandon
RE: Where can I set Session timeout length?
web.xml it is in the servlet specification on http://java.sun.com Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 11:40 AM To: [EMAIL PROTECTED] Subject: Where can I set Session timeout length? Where can I set my session timeout length? I can't seem to find anything in server.xml or any other documentation. Also, does anyone know the default timeout length? Brandon
Re: una pregunta
At 11:29 AM 6/27/2001, you wrote: What's cantonese? And how do you say thank you? I know how to say thank you in Cantonese. That's it. And that I learned from a movie. Not much help. Want the name of the movie? Cantonese, the language spoken in Canton. I think its the dialect they speak in Hong Kong, as opposed to the mandarin that is the offical dialect supposedly. You know how many dialects there are? Like ten or more I think. The one word I know, thank you, is shi-shi.
Re: several tomcat instances running at the same time
On Wed, 27 Jun 2001, Mario Vera wrote: Hi!! I have a little problem. I have Tomcat 3.1 installed on SUN 1, near to 200 users use the application. This causes that the application becomes very slow (Is a WEB GIS). I have just one Tomcat instance running on sun system. I believe that maybe if turn on another instance next to the current one, the speed could improve. Is it correct and possible? It's worth trying it. I think it that 2 instances perform better than one, especially if you have enough memory. But that's just a guess. How I can have several instances running at the same time? You have to start each instance with an own server.xml file (use the -f parameter). Example: server1.xml and server2.xml. You have to set the ports of your connectors also differently for each instance (e.g. ajp12 connector of server 1 to 8007 and of server 2 8009) in their server xml file. The next thing you have to do (I don't think that you want that your user connect to 2 different ports) is to set up an apache http server, wich directs jsp or servlet request to server1 or server2. This is done using the apache module mod_jk. This is also described in some of the how-to's. Take a look for further information here: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/index.html Bye, Peter. -- Mag. Peter Hrastnik tele.ring Telekom Service GmbH A-1030 Wien, Hainburgerstr. 33 Tel.: +43/1/931012/3277, Mobil: +43/650/6503277 Regards. Aprovechando que hay mucha gente que habla español, va la versión en español. Hola Tengo un pequeño problema. Tengo instalado Tomcat 3.1 en Sun 1, 200 usuarios aproximadamente utilizan la aplicación. Esto provoca que la aplicación sea muy lenta (es un sistema de información geografica para Internet). Tengo solamente una instancia de Tomcat corriendo en el sistema. Creo que si corro otra instancia de Tomcat, la velocidad mejorará. ¿Es correcto y posible esto? ¿Como puedo tener varias instancias de Tomcat corriendo al mismo tiempo. Gracias!! PD. como se podran dar cuenta, soy uno mas de la comunidad de habla hispana.
Re: una pregunta
On Wed, Jun 27, 2001 at 03:29:27PM -0300, Martin Mauri wrote: What's cantonese? And how do you say thank you? I know how to say thank you in Cantonese. That's it. And that I learned from a movie. Not much help. Want the name of the movie? Cantonese is a dialect of Chinese, most prominently associated with Hong Kong. (It's the language spoken in virtually all movies out of Hong Kong.) Thank you can be translated as either do-jeh or m-goi. m.
RE: Where can I set Session timeout length?
That's right on track for what I am looking for. I am not using separate webapps though, does anyone know of a place I can put that to make that the default timeout length for every virtual host I have? Thank you for our help! Brandon -Original Message- From: Michael E. Locasto [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 1:47 PM To: Brandon Cruz Subject: Re: Where can I set Session timeout length? In your web.xml file for a specific context or web application, you can include the following: session-config session-timeout30/session-timeout!-- 30 minutes -- /session-config I don't know the default time out length for a session. This is a fix that applies to each web app - I don't know if this directive will work in server.xml On Wed, 27 Jun 2001, Brandon Cruz wrote: Where can I set my session timeout length? I can't seem to find anything in server.xml or any other documentation. Also, does anyone know the default timeout length? Brandon
Re: una pregunta
On Wed, 27 Jun 2001, Martin Mauri wrote: Ni hao ma? :) Hen hao! On Wed, 27 Jun 2001, Martin Mauri wrote: Eu no falo portugues, eu sou do Argentina. Hey, I'm trying to learn Chinese, anybody want to help me out with that? :-) existem brasileiros neta lista? legal eu sou do brasil :) On Wed, 27 Jun 2001, Daniel de Almeida Alvares wrote: Vc precisa configurar uma variavel JAVA_HOME no seu autoexec.bat dessa maneira , por exemplo: set JAVA_HOME=c:\jdk13 um abraco Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] - Original Message - From: alvaro pinto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 6:55 PM Subject: una pregunta Buenas tardes, quisiera saber como puedo usar el jakarta-tomcat para windows98 , porque cuando lo ejecuto me sale un mensaje en em ms-dos : You must set java-home to point at your java development kit installations ese es el mensaje que sale , es por eso que quiesiera que me ayuden con ese problema. gracias Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Re: una pregunta
Milt Epstein wrote: On Wed, 27 Jun 2001, Martin Mauri wrote: Ni hao ma? :) Hen hao! [...] hahahahaha :-) Ge Wei Di Xiong Men, Jin Tie Fa Gong Zi! every brother, today get salary! null null null, null
Re: SSL with Verisign key
Try this from Jan Labanowski . http://www.ccl.net/cca/software/UNIX/apache/ anil
Re: una pregunta
Cantonese is usually spoken by the uneducated, Madirin is spoken by the educated. Cantonese is the more informal dialect, Madirin the more formal. Listen to someone speak Cantonese, then listen to someone speak Madirin- you'll be able to tell right away which one's which. Something I learned at a very young age- you say do-jeh when someone gives you something (as in a gift), and you say m-goi when someone does something for you (as in a waiter bringing you food). --- Michael Carmack [EMAIL PROTECTED] wrote: On Wed, Jun 27, 2001 at 03:29:27PM -0300, Martin Mauri wrote: What's cantonese? And how do you say thank you? I know how to say thank you in Cantonese. That's it. And that I learned from a movie. Not much help. Want the name of the movie? Cantonese is a dialect of Chinese, most prominently associated with Hong Kong. (It's the language spoken in virtually all movies out of Hong Kong.) Thank you can be translated as either do-jeh or m-goi. m. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: una pregunta
On Wed, 27 Jun 2001, Tim O'Neil wrote: At 11:29 AM 6/27/2001, you wrote: What's cantonese? And how do you say thank you? I know how to say thank you in Cantonese. That's it. And that I learned from a movie. Not much help. Want the name of the movie? Cantonese, the language spoken in Canton. I think its the dialect they speak in Hong Kong, as opposed to the mandarin that is the offical dialect supposedly. To add a little more info: Canton is a city in southern China, and yes, Cantonese is what is spoken in Hong Kong. Mandarin is the official language of China, and is spoken all over Mainland China and Taiwan. Canton is called Guang-zhou in Mandarin, and Cantonese Guang-zhou-hua. Mandarin is called Zhong-guo-hua (China is Zhong-guo), Zhong-wen, Guo-yu (in Mainland China), and/or Han-yu (in Taiwan). (I may not have this 100% correct, and I'm sure there're lots of connotations of the different terms that I'm unaware of.) But Cantonese and Mandarin are pretty well understood terms. These romanizations of Chinese words are using the Pinyin romanization system, which is the official one used in Mainland China. Pinyin uses certain letters and letter combinations to represent the sounds of Mandarin, so it may be hard to pronounce words written in Pinyin if you are not familiar with it. For example, zh is kind of like dg as in knowledge or j as in joe (j is used to represent a slightly different sound). (I won't even get into tones :-). You know how many dialects there are? Like ten or more I think. The I think there are a lot more than ten. And there may not be agreement about whether they're different dialects or different languages. one word I know, thank you, is shi-shi. That sounds like thank you in Mandarin, which is written xie-xie in Pinyin (x is pronounced like sh; sh is used for a slightly different sound). I believe thank you in Mandarin is as someone else posted (m-goi or do-jeh). Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Re: una pregunta
On Wed, 27 Jun 2001, alex chang wrote: Cantonese is usually spoken by the uneducated, Madirin is spoken by the educated. Cantonese is the more informal dialect, Madirin the Wow, I think you are going to offend a lot of people saying that. And I don't think it is correct. They are simply different languages, spoken in different places. (And it's Mandarin.) more formal. Listen to someone speak Cantonese, then listen to someone speak Madirin- you'll be able to tell right away which one's which. Of course! They're different languages, they sound quite different. For example, their tonal systems are different -- Mandarin has four tones, and I believe Cantonese has nine. Wow, this is really getting off-topic! Sorry. Something I learned at a very young age- you say do-jeh when someone gives you something (as in a gift), and you say m-goi when someone does something for you (as in a waiter bringing you food). --- Michael Carmack [EMAIL PROTECTED] wrote: On Wed, Jun 27, 2001 at 03:29:27PM -0300, Martin Mauri wrote: What's cantonese? And how do you say thank you? I know how to say thank you in Cantonese. That's it. And that I learned from a movie. Not much help. Want the name of the movie? Cantonese is a dialect of Chinese, most prominently associated with Hong Kong. (It's the language spoken in virtually all movies out of Hong Kong.) Thank you can be translated as either do-jeh or m-goi. m. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
AW: URI Rewritng using Apache/mod_ssl..the old story
Hi guys, i have been following this subject around for a while. In the 3.2.2 final version of Tomcat URL rewritting also does not work in standalone mode (port 80). This seems really, really strange ... I wonder what these programmers are doing. Have you heard about a solution ? Tassilo -Ursprungliche Nachricht- Von: Wolle [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 30. Mai 2001 08:50 An: tomcatDev; tomcatUser Betreff: URI Rewritng using Apache/mod_ssl..the old story I have just installed TC3.2.2 final, and URI Rewiting won't work over mod_ssl and apache. without ssl it works fine, also. I have set the TOMCAT_HOME and the JAVA_HOME... but it won't work Or isn't it fixed on TC3.2.2 ?? When I install the two external classes from jdk jsse.jar and jnet.jar in tomcat/lib and start it with an environment variable like bleow (old bug #578 walkaround) it will work. The only thing that's gone is that I don't have to patch the HttpServletResponseFacade.java file out of tomcat/lib/webserver.jar... I've indeed tested this behavior with the standard class to test the sessiontracking whoch comes with tomcat. Greetings and thanks for inconvenience, Michael plz wrote back Marc Saegesser wrote: A change very similar to what you propose for HttpServletResponseFacade.java was already made for Tomcat 3.2.2b4. There are two conditions that I know of where URL rewritting won't work. If you using AJP12 and an SSL port other than 443 then Tomcat won't be told that the connection is secure and will think that that the URL scheme is HTTP not HTTPS. HttpServletResponseFacade checks that the scheme of the URL to be encoded and the scheme of the current request are the same. To encode an HTTPS url you must be on an HTTPS request. [Note: I'm sure I really understand this requirement, but its been this way for a long time.] So the two ways I know of for URL rewriting to fail are if you using AJP12 and SSL on something other than 443 or if your encoding an HTTPS URL during an HTTP request. Are either of these true for your case? To help diagnose this, could you access the SnoopServlet that comes with Tomcat via your SSL connection and post the results. This page will indicate whether Tomcat thinks the request is secure or not, and if it thinks the URL scheme is HTTPS. Thanks, we'll get this worked out. -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 5:19 AM To: [EMAIL PROTECTED]; GOMEZ Henri Subject: Re: TC 3.2.2b4 URI Rewriting with mod_ssl Hello, sorry I just wake up ;-) Wolle wrote: GOMEZ Henri wrote: That is a known Bug ,see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=578 Marc has said, that he has fixed in the current release TC3.2.2b4, but it won't work. What should I describe now ? The workaround was Fixed by costin in TC 3.3 since 01/04/22 11:56:03 so I have all these things in TC3.2.2b4, fill it be insert in TC3.2.2 final ? not fill - new sentence so I have to do all these things in TC3.2.2b4, will it be completly insert in TC3.2.2 final ? 1. install the jnet.jar and jsse.jar in the ROMCAT/lib dir. 2.set the TOMCAT_OPTS =-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol 3. Modify the HttpServletResponseFacade.java: retrieving revision 1.6.2.3 diff -u -r1.6.2.3 HttpServletResponseFacade.java --- src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java 2001/03/06 17:38:13 1.6.2.3 +++ src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java 2001/03/20 13:29:41 @@ -353,10 +353,14 @@ return (false); if (!request.getServerName().equalsIgnoreCase(url.getHost())) return (false); -// Set the URL port to HTTP default if not available before comparing +// Set the URL port to protocol default if not available before comparing int urlPort = url.getPort(); if (urlPort == -1) { -urlPort = 80; +if(http.equalsIgnoreCase(url.getProtocol())) { +urlPort = 80; +} else if (https.equalsIgnoreCase(url.getProtocol())) { +urlPort = 443; +} } if (request.getServerPort() != urlPort) return (false); That code need to be commited in 3.2.2b4 only this, or the other two step also ? only this, or the other two steps also ? I have made this with TC3.2.2b2 and TC3.2.2b3, and this works. Then it doesn't matter if you use the ajp12 or ajp13 Protocol (I have read that this is important to use ajp13) You need ajp13 to get some SSL web-server vars. so please help, You provide a patch which may be included in tomcat and must be reviewed by Marc for approval but It
Re: una pregunta
I hope not! I'm Cantonese myself. I had a feeling Madarin was spelled with an a. You know a lot more about the language than I do. I tried going to school for it but it was so difficult. My last post on this, promise. -alex --- Milt Epstein [EMAIL PROTECTED] wrote: On Wed, 27 Jun 2001, alex chang wrote: Cantonese is usually spoken by the uneducated, Madirin is spoken by the educated. Cantonese is the more informal dialect, Madirin the Wow, I think you are going to offend a lot of people saying that. And I don't think it is correct. They are simply different languages, spoken in different places. (And it's Mandarin.) more formal. Listen to someone speak Cantonese, then listen to someone speak Madirin- you'll be able to tell right away which one's which. Of course! They're different languages, they sound quite different. For example, their tonal systems are different -- Mandarin has four tones, and I believe Cantonese has nine. Wow, this is really getting off-topic! Sorry. Something I learned at a very young age- you say do-jeh when someone gives you something (as in a gift), and you say m-goi when someone does something for you (as in a waiter bringing you food). --- Michael Carmack [EMAIL PROTECTED] wrote: On Wed, Jun 27, 2001 at 03:29:27PM -0300, Martin Mauri wrote: What's cantonese? And how do you say thank you? I know how to say thank you in Cantonese. That's it. And that I learned from a movie. Not much help. Want the name of the movie? Cantonese is a dialect of Chinese, most prominently associated with Hong Kong. (It's the language spoken in virtually all movies out of Hong Kong.) Thank you can be translated as either do-jeh or m-goi. m. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Tomcat won't start with j2sdk 1.3.1 Linux
We've been using Sun's JDK 1.3.1 on Linux for a while now. Currently we use Tomcat 3.2.1 and xerces version 1.3.0. It seemed to work fine on RedHat 6.1 but on 7.1 there was a link that missing. I think I experienced the same seg fault issue that is referred to below. If this is the problem it can be fixed by doing the following as root: cd /lib/i686 The required link is libpthread.so. If it isn't there then create it: ln -s libpthread.so.0 libpthread.so Then run: /sbin/ldconfig This fixed the problem with regards to running 1.3.1 on RedHat Linux 7.1. Hope this helps. P. On Wed, 27 Jun 2001 11:33:37 -0400 Jeffrey Lam [EMAIL PROTECTED] wrote: JL Switching to IBM's JDK 1.3 solved my problem of the HttpConnectionHandler not JL being able to start. Thank you! JL JL I was using Sun's JDK 1.3.0_02 and my problem arose when I upgraded to Sun's JL JDK1.3.1 JL JL Thanks again! JL JL - Original Message - JL From: pete [EMAIL PROTECTED] JL To: [EMAIL PROTECTED] JL Cc: [EMAIL PROTECTED] JL Sent: Wednesday, June 27, 2001 0:58 JL Subject: Re: Tomcat won't start with j2sdk 1.3.1 Linux JL JL JL I get this. It sucks. JL JL The issue, for me at least, stems from the fact that i am running a JL Struts project, and i need to override the jaxp.jar classes with xerces JL parser classes. JL JL I previously did this by putting a jar named 0xerces.jar in the lib/ JL folder of my tomcat install, which worked fine, since those classes JL loaded before the ones specified in jaxp.jar. JL JL This worked great with IBM's JDK1.3.0 - never used Sun's 1.2.2 on Linux. JL JL However, since 'upgrading' to Sun's JDK1.3.1 with Hotspot, the JVM JL segfaults when tomcat starts up, giving the same error you describe. JL JL I'm not sure why this happens, but maybe 1.3.1 doesn't like having its JL classes overridden. JL JL There are 2 ways around this - invoke the JVM with the '-classic' JL switch, thus disabling the JIT, or to remove 0xerces.jar from lib/, JL which breaks my Struts projects. JL JL The third solution is not to use the JDK1.3.1 at all, and stick with the JL IBM JDK, which is my current course of action. JL JL Hope this helps, and i hope you find a better solution than i did. JL JL -Pete JL JL JL JL
Relative file path
Is there a way to use relative file path (ex. examples/docs/test.xml) when accessing(reading etc.) it from servlet rather then absolute (ex. D:\smthg\app\docs\test.xml) path. Ex. : I have web app examples that mapped to d:\smthg\app. My file test.xml is in d:\smthg\app\docs. Can I access it using examples/docs/test.xml? If yes, how? Right now it's translating it to Tomcat bin dir: D:\jakarta-tomcat-3.2.2\bin\examples\docs\test.xml Sorry, I'm new to Appache-Tomcat world...
Re: Relative file path
Julia Kuznetsov wrote: Is there a way to use relative file path (ex. examples/docs/test.xml) when accessing(reading etc.) it from servlet rather then absolute (ex. D:\smthg\app\docs\test.xml) path. Ex. : I have web app examples that mapped to d:\smthg\app. My file test.xml is in d:\smthg\app\docs. Can I access it using examples/docs/test.xml? If yes, how? Right now it's translating it to Tomcat bin dir: D:\jakarta-tomcat-3.2.2\bin\examples\docs\test.xml Sorry, I'm new to Appache-Tomcat world... Hi :-) you can put testApp.properties in myapp/WEB-INF/, and use the following relative path to access it: InputStream is = this.getServletContext(). getResourceAsStream(/WEB-INF/testApp.properties); (normally), you also can put testApp.properties is in myapp/WEB-INF/classes, and use the following relative path to access it: - InputStream is = this.getClass(). getResourceAsStream(testApp.properties); - InputStream is = Thread.currentThread().getContextClassLoader(). getResourceAsStream(testApp.properties); Bo June 27, 2001
Re: una pregunta (yi ge wen ti)
On Wed, 27 Jun 2001, alex chang wrote: I hope not! I'm Cantonese myself. I had a feeling Madarin was spelled with an a. You know a lot more about the language than I do. I tried going to school for it but it was so difficult. Well, I don't claim to know all the ins and outs of the cultural/social issues here, but what I wrote was based on my understanding of things (like whether someone speaks Cantonese or Mandarin is more a geographic question than a socioeconomic one). --- Milt Epstein [EMAIL PROTECTED] wrote: On Wed, 27 Jun 2001, alex chang wrote: Cantonese is usually spoken by the uneducated, Madirin is spoken by the educated. Cantonese is the more informal dialect, Madirin the Wow, I think you are going to offend a lot of people saying that. And I don't think it is correct. They are simply different languages, spoken in different places. (And it's Mandarin.) more formal. Listen to someone speak Cantonese, then listen to someone speak Madirin- you'll be able to tell right away which one's which. Of course! They're different languages, they sound quite different. For example, their tonal systems are different -- Mandarin has four tones, and I believe Cantonese has nine. Wow, this is really getting off-topic! Sorry. Something I learned at a very young age- you say do-jeh when someone gives you something (as in a gift), and you say m-goi when someone does something for you (as in a waiter bringing you food). --- Michael Carmack [EMAIL PROTECTED] wrote: On Wed, Jun 27, 2001 at 03:29:27PM -0300, Martin Mauri wrote: What's cantonese? And how do you say thank you? I know how to say thank you in Cantonese. That's it. And that I learned from a movie. Not much help. Want the name of the movie? Cantonese is a dialect of Chinese, most prominently associated with Hong Kong. (It's the language spoken in virtually all movies out of Hong Kong.) Thank you can be translated as either do-jeh or m-goi. m. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Re: una pregunta
At 12:36 PM 6/27/2001, you wrote: That sounds like thank you in Mandarin, Well, there you have it. It simply doesn't pay to try to learn Chinese from watching Jackie Chan movies.
TOMCAT SUCKS
Hi guys, I really think that TOMCAT SUCKS so bad. I'm not against the open source community but this is why I think that TOMCAT sucks: 1. The documentation for Tomcat is so bad and it covers only the basic server installation. HELL - usually for production purposes people have load balancers, virtual hosts, etc. 2. Virtual hosting for Tomcat is almost impossible - especially if you have a load balancer in front of the web server. 3. The integration with apache (using mod_jk) sucks. It slows down the productivity of the web server with at least 1000% 4. And guess what is the hell you have to go through if your virtual hosts have different servlets mappings. You waste time and you know - time is money. 5. And what if you have a problem that is not in the documentation (99% of the problem with Tomcat are not even mentioned in the documentation)? I guess the only way is to post in the mailing list. And guess what happens if nobody has experienced this problem before? You have to start wasting your time again. I really think that TOMCAT is OK for testing purposes. Trust me - for complex configurations it sucks. If you want to use a good production application server - take a look at WebLogic, Resin, Allaire JRun, etc. Nick
Re: TOMCAT SUCKS
At 01:53 PM 6/27/2001, Nick wrote: Hi guys, I really think that TOMCAT SUCKS so bad. I'm not against the open source community but this is why I think that TOMCAT sucks: 1. The documentation for Tomcat is so bad and it covers only the basic server installation. HELL - usually for production purposes people have load balancers, virtual hosts, etc. The open source community doesn't have the resources necessary to dedicate a team to maintaining documentation. 2. Virtual hosting for Tomcat is almost impossible - especially if you have a load balancer in front of the web server. In my opinion you shouldn't be using tomcat as your web server. 3. The integration with apache (using mod_jk) sucks. It slows down the productivity of the web server with at least 1000% Not even close to true. You must have one f'd up system. 4. And guess what is the hell you have to go through if your virtual hosts have different servlets mappings. You waste time and you know - time is money. Again, use Apache with tomcat. 5. And what if you have a problem that is not in the documentation (99% of the problem with Tomcat are not even mentioned in the documentation)? I guess the only way is to post in the mailing list. And guess what happens if nobody has experienced this problem before? You have to start wasting your time again. See point 1. I really think that TOMCAT is OK for testing purposes. Trust me - for complex configurations it sucks. If you want to use a good production application server - take a look at WebLogic, Resin, Allaire JRun, etc. Ha ha ha ha... how can you say JRun is a good production server with a strait face? If they spent more time working on the code than using it by taking all the flat file editing you need to do to configure it (like any product of this type) and putting it all into a ridiculous gui that doesn't make that configuring any easier they might shock me by having a real product on their hands. And don't get me started on the rest of those.
RE: TOMCAT SUCKS
Well, funnily enough I've just done some stress testing with our web app against Apache Tomcat and Apache Resin. With 100 concurrent connections Resin locked up the server (a Solaris 8 Ultra 10) because the mod_caucho uses precess forking which ran out of space. mod_jk, on the other hand, with the thread pool set to 500, handled the load no problem. So I'm interested in your comments. Please supply any figures you have - I (and a very large credit card issuer) would be grateful. Jon -Original Message- From: Nick Stoianov [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 09:54 To: [EMAIL PROTECTED] Subject: TOMCAT SUCKS Hi guys, I really think that TOMCAT SUCKS so bad. I'm not against the open source community but this is why I think that TOMCAT sucks: 1. The documentation for Tomcat is so bad and it covers only the basic server installation. HELL - usually for production purposes people have load balancers, virtual hosts, etc. 2. Virtual hosting for Tomcat is almost impossible - especially if you have a load balancer in front of the web server. 3. The integration with apache (using mod_jk) sucks. It slows down the productivity of the web server with at least 1000% 4. And guess what is the hell you have to go through if your virtual hosts have different servlets mappings. You waste time and you know - time is money. 5. And what if you have a problem that is not in the documentation (99% of the problem with Tomcat are not even mentioned in the documentation)? I guess the only way is to post in the mailing list. And guess what happens if nobody has experienced this problem before? You have to start wasting your time again. I really think that TOMCAT is OK for testing purposes. Trust me - for complex configurations it sucks. If you want to use a good production application server - take a look at WebLogic, Resin, Allaire JRun, etc. Nick