????
I have downloaded Tomcat 3.2.1 and also jdk 3.1. I use IIS so i had to connect Tomcat to it. But it doesn't work, i can open the jsp-file but i don't see the result. And in the log file of IIS i don't see him trying to connect to Tomcat. Abd the part about the Jakarta NT Service i don't fully under- stand, Can you be a little bit more specific?(i'm a first time user of tomcat) Yours sincerely, A newbee
Help required
Hello everybody, I am trying to configure Tomcat with IIS5.0 on Windows2000 prof. I followed the document Tomcat IIS How To.. But when i restart the IIS the jakarta filter does not show the green up arrow. As well as when i run Tomcat with bin\startup it gives me the error as The system cannot find the batch label specified - startServer What is the problem? Thanx in advance Rajesh
Simple Question
Do i need DNS in order to use Virtul Hosts ?
Netscape Web Server and Tomcat
Hi, after some problems i have sucessfully build a nsapi_redirector.so for the solaris platform. The Download Section offers only redirectors for Win32 and linux. Can i upload the binary for solaris to the Download section? With this file and some modifications to the obj.conf you can tell the iplanet Web Server to redirect servlet requests to Tomcat. Masiar -- Sent through GMX FreeMail - http://www.gmx.net
RE: Using JDBCRealms
Do you have any logs? Which URL are trying? Which is your context directoy struct ? TIA Saludos , Ignacio J. Ortega -Mensaje original- De: William Kaufman [mailto:[EMAIL PROTECTED]] Enviado el: martes 20 de marzo de 2001 1:11 Para: '[EMAIL PROTECTED]' Asunto: Using JDBCRealms (I posted this before, but I haven't seen any responses. I've added some more information.) (Tomcat version 3.2.1.) I'm trying to use JDBCRealm to manage access to some static files. Is there any documentation for that? I've successfully configured authorization in web.xml: security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/help/*/url-pattern user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint http-methodGET/http-method http-methodPUT/http-method http-methodPOST/http-method http-methodDELETE/http-method /web-resource-collection auth-constraint role-nameViquityUser/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameViquity/realm-name /login-config But I can't seem to get JDBCRealm (or my own subclass of that) to get called. I've added, RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@localhost:1521:adb" connectionName="metax" connectionPassword="tiger" userTable="contacts" userNameCol="username" userCredCol="password" userRoleTable="user_roles" roleNameCol="role" / to my conf\server.xml, and commented out the SimpleRealm interceptor. JDBCRealm is on my classpath--"javap" can print it. And that JDBC connection works fine outside of Tomcat, so it's not a JDBC issue. Near as I can figure, Tomcat isn't even loading the class. Is there some debugging I can turn on in Tomcat to see what's going wrong? -- Bill K.
Re: Simple Question
Amir, Yes, unless you configure it in the hosts file: - on unix: /etc/hosts - on Windoze: c:\winnt\system32\drivers\etc\hosts regards, Kenneth Westelinck From: "Amir Nuri" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: "Tomcat-User" [EMAIL PROTECTED] Subject: Simple Question Date: Tue, 20 Mar 2001 13:06:40 +0200 Do i need DNS in order to use Virtul Hosts ? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: NEW_LOADER in m1 tomcat.sh
The README files in the lib, lib/common and lib/shared directories are ambiguous. They certainly give the impression that lib still has the same function as lib/common, there is no lib/container directory, and lib/README is downright confusing. A bit of m2 seems to have crept into the descriptions. Does it mean to say: Tomcat uses a hierarchy of class loaders: /lib JARSs (and classes ?) visible loaded by ??? /container /common /apps (is this /apps or /shared?) JARs (and classes?) JARs (and classes?) JARs (etc) visible only to visible to both the visible only to tomcat (the container (tomcat) webapps container) webapps Can someone who knows fill in the blanks and put the modified version in lib/README? A side question: Is it generally desirable to include lines like # The following line prohibits users from directly accessing META-INF # Location "/admin/META-INF/" AllowOverride None deny from all /Location in the description of contexts in mod_jk.conf? Peter GOMEZ Henri wrote: Can someone please tell me more about this change in the tomcat.sh startup script? It looks like jars in TOMCAT_HOME/lib are no longer geting added to the classpath- is this the new model? In my project I like to deploy the jars directly to TOMCAT_HOME/lib where they will be found when Tomcat starts up. If someone knows what I should do under the "NEW_LOADER" approach let me know. The new loader schema split the jar in 3 categories : 1) container only (ie only used by tomcat) TOMCAT_HOME/lib/container 2) application only (only needed by webapps) TOMCAT_HOME/lib/apps 3) common (used by webapps and tomcat) TOMCAT_HOME/lib/common -- Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest "Lord, to whom shall we go?"
RE: NEW_LOADER in m1 tomcat.sh
True the readme is false, I'll correct it ASAP. Si la fortune vient en dormant, a n'empche pas les emmerdements de venir au rveil. -- Pierre Dac -Original Message- From: Peter B. West [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 7:49 AM To: [EMAIL PROTECTED] Subject: Re: NEW_LOADER in m1 tomcat.sh The README files in the lib, lib/common and lib/shared directories are ambiguous. They certainly give the impression that lib still has the same function as lib/common, there is no lib/container directory, and lib/README is downright confusing. A bit of m2 seems to have crept into the descriptions. Does it mean to say: Tomcat uses a hierarchy of class loaders: /lib JARSs (and classes ?) visible loaded by ??? /container /common /apps (is this /apps or /shared?) JARs (and classes?) JARs (and classes?) JARs (etc) visible only to visible to both the visible only to tomcat (the container (tomcat) webapps container) webapps Can someone who knows fill in the blanks and put the modified version in lib/README? A side question: Is it generally desirable to include lines like # The following line prohibits users from directly accessing META-INF # Location "/admin/META-INF/" AllowOverride None deny from all /Location in the description of contexts in mod_jk.conf? Peter GOMEZ Henri wrote: Can someone please tell me more about this change in the tomcat.sh startup script? It looks like jars in TOMCAT_HOME/lib are no longer geting added to the classpath- is this the new model? In my project I like to deploy the jars directly to TOMCAT_HOME/lib where they will be found when Tomcat starts up. If someone knows what I should do under the "NEW_LOADER" approach let me know. The new loader schema split the jar in 3 categories : 1) container only (ie only used by tomcat) TOMCAT_HOME/lib/container 2) application only (only needed by webapps) TOMCAT_HOME/lib/apps 3) common (used by webapps and tomcat) TOMCAT_HOME/lib/common -- Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest "Lord, to whom shall we go?"
Re: tomcat-jakarta and Solaris 2.7?
Yes, I am... Anybody here using tomcat-jakarta with Solaris 2.7? Thanks C.M. Rahman Network Engineer CCS Internet 13740 Research Blvd. Suite O-4 Austin, TX 78758 [EMAIL PROTECTED]
Re: Simple Question
No, but then all your users should have appropriate records in files hosts - Original Message - From: "Amir Nuri" [EMAIL PROTECTED] To: "Tomcat-User" [EMAIL PROTECTED] Sent: Tuesday, March 20, 2001 1:06 PM Subject: Simple Question Do i need DNS in order to use Virtul Hosts ?
Re: tomcat-jakarta and Solaris 2.7?
Me To... Masiar Yes, I am... Anybody here using tomcat-jakarta with Solaris 2.7? Thanks C.M. Rahman Network Engineer CCS Internet 13740 Research Blvd. Suite O-4 Austin, TX 78758 [EMAIL PROTECTED] -- Sent through GMX FreeMail - http://www.gmx.net
Re: welcome-file problem
On Mon, 19 Mar 2001, Martin Mauri wrote: [ ... ] Here's a guess (an educated one, since I had similar problems :-): You're not specifying appropriate directives in the tomcat/apache conf file to tell apache to pass that URL to tomcat. Hence, apache is handling that URL (and it's only tomcat knows about the welcome file). If you're using mod_jserv, these are ApJservMount directives; if you're using mod_jk, I don't know, but I'd guess they're ApJKMount directives. Anyway, look at the documentation for this conf file on the tomcat web site. Dear Milt, perhaps your theory is right, but take a look at this: I've renamed my file worksheet.html to worksheet.jsp and I've got the jsp extension redirected to Tomcat. but it doesn't work at all :( any idea? What is the URL you are trying? And where is the worksheet.jsp file located? Is worksheet the app/context name? Those JkMount's may tell apache to forward to tomcat all *.jsp URL's, but I'm not sure they're telling apache to forward to tomcat everything for that context. And it is the context for which the welcome-file is specified. The URL is: http://myhost:myport/worksheet/ and so worksheet is the context name, but the welcome page is worksheet.jsp and it's inside the directory worksheet. thanks. Martin my welcome looks like this: welcome-file-list welcome-fileworksheet.jsp/welcome-file /welcome-file-list and my mod_jk.conf looks like this: # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /worksheet/servlet/* ajp12 JkMount /worksheet/*.jsp ajp12 Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Tomcat and IIS
Hi, My name is Ilanit Miron, I work at NextNine LTD I visit your site http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-iis-howto.htm l In order to configure the IIS to work with tomcat over windows2000 for our application. I configured the IIS to work with tomcat by Configuring the ISAPI Redirector only. I configured the IIS to work SSL with all the steps required I tried a simple html file, using https://... It worked great. But our application is based on servlets and I use The tomcat application as the servlet Engine. I wrote a simple servlet and I can still activate it by using http://localhost:8080/servlet/servlet1.MyServlet But not with https://... I'd be very appreciate your help Thanks in advanced Ilanit Miron RD NextNine Ltd. 10 Ben-Gurion St. Ramat-Gan 52573, Israel Web: http://www.nextnine.com E-mail: [EMAIL PROTECTED] Tel: +972-3-6123995 Ext 203 Fax: +972-3-6123996
Re: Closing ResultSet and Statement?
I'm not sure, but I think that you don't close a ResultSet, you only close the connection, in fact, you can even close the connection and still work with your ResultSet. Think of ResultSet like a normal class with an interator that allows you to go forward and backward. sincerely, Zenon Farias Braga F. From: "Mick Sullivan" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Closing ResultSet and Statement? Date: Mon, 19 Mar 2001 20:48:31 - Hi Does anyone know how to close a ResultSet? Heres my code: public String getName() throws Exception { Statement statement = connection.createStatement(); int myInt = 1; ResultSet rs = statement.executeQuery("SELECT Name"+ " FROM nameAddress" + " WHERE ID = ("+ myInt + ")"); rs.next(); String myString = rs.getString("Name"); //change the resultSet to a string //so it can be used by the jsp page return myString; } Any help at all would be much appreciated Thanks in advance, Mick _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: TomCat - MySql
Hello java4dinman, Monday, March 19, 2001, 1:44:20 PM, you wrote: jic Hi jic I m trying to acces MySql database thru Servlets in Tomcat. But the jic same file runs in java public static void main application.. jic The error is jic Unable to load driver. jic java.sql.SQLException: General Error: Connection refused: connect jic at org.gjt.mm.mysql.Connection.init(Connection.java) jic at org.gjt.mm.mysql.Driver.connect(Driver.java) jic at java.sql.DriverManager.getConnection jic (DriverManager.java:517) jic at java.sql.DriverManager.getConnection jic (DriverManager.java:199) jic at IDSTest2.doGet(IDSTest2.java:28) jic at javax.servlet.http.HttpServlet.service jic (HttpServlet.java:740) jic at javax.servlet.http.HttpServlet.service jic (HttpServlet.java:853) jic Please let me know wger I am going wrong.. jic DINMAN jic Enjoy being an Indyan at http://www.indya.com Your exception is very clear. Unable to load driver. All you need is to put your driver classfiles in the classpath either WEB-INF/classes - in case unpacked classes or WEB-INF/lib - in case of jar -- Andrey Myatlyuk - 212.269.4156 - 11 Broadway, Suite 700 - New York, NY 10004 www.oneworldinc.com
Stopping tomcat - v3.3 on Unix
Please help When I run the script to stop tomcat it says: FileNotFoundException: ../ajp12.id I guess its looking for this file to get the process id. How can I configure tomcat to write this file to a specific location (ie the users local area, as each developer has there own instance of tomcat) on startup to avoid this problem?? many thanks, Uresh. -Original Message- From: Darrell Porter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 2:19 PM To: '[EMAIL PROTECTED]' Subject: RE: Simple Question In a multiuser environment, it is much easier to implement DNS (utilizing BIND) than managing hosts files. -Original Message- From: Amir Nuri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 3:07 AM To: Tomcat-User Subject: Simple Question Do i need DNS in order to use Virtul Hosts ? The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorised. If you are not an intended recipient, you must not read, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of The Capital Markets Company. http://www.capco.com ***
first jsp own test failed
Hi! I'm working on windows NT station with jakarta-tomcat! i have tested the samples ! but when i try mine it fails: i have cretaed a directory called search that i've put in webapps directory then created two subdirectories one called Web-inf and the other jsp, i've put the test1.jsp in jsp directory and the class file "searching.class" in a subdirectory called classes within web-inf! the test1.jsp looke like : jsp:usebean id="search" class="Searching" scope="request"/ jsp:setProperty name="search" property="Query" value="kaoutar"/ html head titlesearch/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /head body bgcolor="#FF" form name="form1" method="get" p input type="text" name="key_word" value="kaoutar" input type="Submit" name="Submit" value="Search" /p /form H2 value=jsp:getProperty name="search" property="Query"/ /H2 /body /html The error is : Error: 500 Location: /search/jsp/test1.jsp Internal Servlet Error: javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386) NB: i skipped the setproperty and all the stuff... _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
native threads under Linux
Hi Folks I am running Tomcat-3.3-m2 under Linux. I get about 50 java processes when Tomcat is running. The number of processes keeps increasing. Is this a bug or I am doing some thing wrong. Even if those processes do not take up any resources they do not look good when you do a "ps". Any help or information will be gladly accepted. An email to [EMAIL PROTECTED] would be appreciated. Thanks Joseph Rajkumar
Newbie Group
There was a discussion a while ago about starting a Tomcat newbie group. Anyone know where that ended up?
RE: Closing ResultSet and Statement?
ResultSets can and should be closed. They are not like normal classes with an iterator. ResultSets are created by Statements. Statements can and should be closed. When a statement is reused, it will close the resultset (if not closed already) that it previously supplied in order to get the new results. When a statement is closed it will close the resultset it created. The number of simultaneous open statements for a given connection can be (and is) limited - the oracle limit is about 50 by default. Statements are created by Connections. If you close the connection it closes the statement which closes the resultset. Regards, Paul -Original Message- From: Zenon Braga F. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 9:49 AM To: [EMAIL PROTECTED] Subject: Re: Closing ResultSet and Statement? I'm not sure, but I think that you don't close a ResultSet, you only close the connection, in fact, you can even close the connection and still work with your ResultSet. Think of ResultSet like a normal class with an interator that allows you to go forward and backward. sincerely, Zenon Farias Braga F. From: "Mick Sullivan" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Closing ResultSet and Statement? Date: Mon, 19 Mar 2001 20:48:31 - Hi Does anyone know how to close a ResultSet? Heres my code: public String getName() throws Exception { Statement statement = connection.createStatement(); int myInt = 1; ResultSet rs = statement.executeQuery("SELECT Name"+ " FROM nameAddress" + " WHERE ID = ("+ myInt + ")"); rs.next(); String myString = rs.getString("Name"); //change the resultSet to a string //so it can be used by the jsp page return myString; } Any help at all would be much appreciated Thanks in advance, Mick _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: tomcat-jakarta and Solaris 2.7?
I use Apache and Tomcat on Solaris 8. George --- Masiar Ighani [EMAIL PROTECTED] wrote: Me To... Masiar Yes, I am... Anybody here using tomcat-jakarta with Solaris 2.7? Thanks C.M. Rahman Network Engineer CCS Internet 13740 Research Blvd. Suite O-4 Austin, TX 78758 [EMAIL PROTECTED] -- Sent through GMX FreeMail - http://www.gmx.net __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: Load Balancing and JkMount
You need to set JkMount to point at your load balanced worker (i.e. JkMount /*.jsp lb) and in your workers.properties use the following as an example: worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.Xajp13.port=8013 worker.Xajp13.host=localhost worker.Xajp13.type=ajp13 worker.Xajp13.lbfactor=1 worker.Yajp13.port=8009 worker.Yajp13.host=host2 worker.Yajp13.type=ajp13 worker.Yajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13, Xajp13, Yajp13 Dave [EMAIL PROTECTED] -Original Message- From: Amir Nuri [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 07:23 To: Tomcat-User Subject: Load Balancing and JkMount All the examples and archive messages that I have seen so far talk about load balancing using either multiple JVM's or Multiple Connector Directives with different port numbers and corrosponding workers in the workers.properties file. But they all use different Mount Points for each worker ! However my need is to Load Balance a *SINGLE MOUNT POINT* ( A single Virtual Apache Host corrosponding to a Host (context) in server.xml ) i.e I want http://ww.mysite.com/*.jsp to be load balanced by 4 worker threads. I am currently using 4 JkMount Directives, and the server is up and running. i.e JkMount /*.jsp ajp13 JkMount /*.jsp Xajp13 JkMount /*.jsp Yajp13 JkMount /*.jsp Zajp13 Also if I name the workers ajp13a , ajp13b and ajp13c, apache does not start and gives me an error saying that it cannot find the workers file !!! Anyway, my question are :- 1. Is this the right way to have a single mount point load balanced ? 2. If so, is it a good idea to run the tomcat instances in the same JVM ? Or should I run multiple tomcat/JVM instances on the same / different servers ?
Re: TomCat - MySql
Well, it looks to me like your connection is being refused. A connection refused usually means that there is nothing listening on the port your trying to connect to. BTW: have you checked to make sure the database is up and running? You have provided very littler information about your setup, so it's really hard to pindown an answer because there is no way for me to tell which possibilities are in the ballpark and which are out in left field. But I'll take a stab at guessing what the problem might be. My wild guess is that your driver url is wrong. You say it ran fine in an application version of your code, but did the url point to "localhost" or did you declare the fully qualified hostname? In the case is the former, are you executing your servlet on the same host as you were the application? If you've specified "localhost" but now you're running on a different machine than before, you'll need to declare the fully qualified hostname in the url. For example, let's assume that your original standalone application was running on the machine "george.somewhere.com" and that you were accessing a MySQL database running on host on foo as "localhost". But also, let us assume that your servlet container, and thus your servlet, is running on host "gracie.somewhere.com". If your driver url points to "localhost" you will get a connection refused when your servlet tries to connect to the database. The reason for that is that localhost always resolves to address 127.0.0.1 which is an address that refers to the machine on which you are currently running. Therefore, a driver url pointing to localhost of gracie.somewhere.com will attempt to connect to a database running on gracie.somewhere.com, and if there is none, you'll get a connection refused. In order to access the database which is actually running on "george.somewhere.com", you will need to specify that hostname in the driver url, and not "localhost". -- Rob --On Monday, March 19, 2001 10:44:20 AM -0800 [EMAIL PROTECTED] wrote: Hi I m trying to acces MySql database thru Servlets in Tomcat. But the same file runs in java public static void main application.. The error is Unable to load driver. java.sql.SQLException: General Error: Connection refused: connect at org.gjt.mm.mysql.Connection.init(Connection.java) at org.gjt.mm.mysql.Driver.connect(Driver.java) at java.sql.DriverManager.getConnection (DriverManager.java:517) at java.sql.DriverManager.getConnection (DriverManager.java:199) at IDSTest2.doGet(IDSTest2.java:28) at javax.servlet.http.HttpServlet.service (HttpServlet.java:740) at javax.servlet.http.HttpServlet.service (HttpServlet.java:853) Please let me know wger I am going wrong.. DINMAN Enjoy being an Indyan at http://www.indya.com _ _ _ _ __ _ _ _ _ /\_\_\_\_\/\_\ /\_\_\_\_\_\ /\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT, /\/_/__\/_/ __/\/_//\/_/ PROFUNDUM VIDITUR /\/_/_/_/_/ /\_\ /\/_//\/_/ /\/_/ \/_/ /\/_/_/\/_//\/_/ (Whatever is said in Latin \/_/ \/_/ \/_/_/_/_/ \/_/ appears profound) Rob Tanner McMinnville, Oregon [EMAIL PROTECTED]
encoding session info on .htm urls (why like .jsp?)
I pretty much have to assume this has been covered, but I haven't noticed comments on it, so please forgive me if this is another dead horse --- linux 7 (mps - not sure which kernel) apache 1.3.12 (or 14) Neowebscript_mod 3.3 tomcat 3.2.1 -- note: virtual host's root is a context Problem: URLEncoder places ;jsessionid=... on .htm which causes the .htm page not to be found demo of problem: http://216.62.183.108/jsp/jspBeanTest/urlEncodingTest.jsp DO NOT ACCEPT THE SESSION COOKIE I notice jsessionid info is added to url's for .htm (and .html) in the same way it is added to .jsp urls (using standard URLEncoder) (i.e. ...htm;jsessionid=... instead of, say, ...htm?jsessionid=...) I'm not exactly sure of the conditions under which this will occur but am guessing that it happens when the .htm url is in a tomcat context. (yes?) It causes links which result in the html page not being found - at least when the Neowebscript mod is in use (not sure about plain apache). I can adjust an encoding bean to compensate for this but is this an intentional thing? -- or is there something else that I need to configure so that html url's are handled differently than jsp urls in the URLEncoder? -- Wishing you an "OOBA OOBA" 21st Century!! Horace...once known as "Kicker" :-) Horace Vallas hav.Software http://www.hav.com/ P.O. Box 354 [EMAIL PROTECTED] Richmond, Tx. 77406-0354 voice: 281-341-5035 USAfax: 281-341-5087 Thawte Web Of Trust Notary in SW Houston, Tx. http://www.hav.com/?content=/thawteWOTnotary.htm ...drop by and chat if I'm online http://www.hav.com/chat/ === === === === === === === === === === What is a Vet? ... He is the barroom loudmouth, dumber than five wooden planks, whose overgrown frat-boy behavior is outweighed a hundred times in the cosmic scales by four hours of exquisite bravery near the 38th parallel. ... - Unknown S/MIME Cryptographic Signature
Re: Newbie Group
Arafat Mohamed wrote: There was a discussion a while ago about starting a Tomcat newbie group. Anyone know where that ended up? There is a newbie discussion running at www.javaranch.com - pick the "saloon" option. -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2
RE: Tomcat Ant and JDK
You should use the a libX11 from the same distribution in which you are installing JDK. There can be glibc version differences between versions of the same distribution. Just copy from Slackware 7.1 XFree-libs package, instead of 7.0. HTH -Mensaje original- De: Juan Alberto Cirez [SMTP:[EMAIL PROTECTED]] Enviado el: martes 20 de marzo de 2001 16:56 Para: [EMAIL PROTECTED] Asunto: Tomcat Ant and JDK Importancia: Alta Hello there to all. I have recently complied Tomcat, Ant, and JDK and all went well. I did this on a P200 running slackware 7.0 Kernel 2.2.13. While building ant I rant into a little problem concerning libX11.so.6. Instead of installing all the X11 libs I just copied this file from another system running Xwindows. I had to create a link to libX11.so.6.2. After doing this all went well and apache, tomcat, ant, and JDK are working nicely. This was a test run on a private server so I could get more familiar with the whole process. Once I was confident I could reproduce the setup on a public server, I tried to do the same thing. I ran into the same problem with libX11.so.6. This time it was on a system running slackware 7.1 and kernel 2.2.18. I copied the same library from the Xwindows system (The Xwindows system runs slackware 7.0) but go another error instead: BUG IN DYNAMIC LINKER ld.so: dynamic-link.h: 57: elf_get_dynamic_info: Assertion "! "bad dynamic tag"' failed! What's going on. I tried ant v1.3 and v1.2 and it gives me the same error...Help!!! --- Juan Alberto Cirez - Chief Creative Officer [EMAIL PROTECTED] - [EMAIL PROTECTED] -- hip2linux Professional Services, Inc.--- - Fortalezza VPN/Firewall - Commandante Remote Network Management - Network Security - Intranet Extranet Management --- www.hip2linux.com www.micanno.com www.dominicanarmy.com www.basementsuite.com www.micanno.com www.fortalezza.com --- Sunny and Beautiful Vancouver, Canada. ---
RE: native threads under Linux
Threads in Linux appear as processes in "ps" and "top". You surely have 50 threads, not 50 processes. Anyway, the way the kernel handles both isn't very very different. Regards -Mensaje original- De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Enviado el: martes 20 de marzo de 2001 17:08 Para: [EMAIL PROTECTED] Asunto: native threads under Linux Hi Folks I am running Tomcat-3.3-m2 under Linux. I get about 50 java processes when Tomcat is running. The number of processes keeps increasing. Is this a bug or I am doing some thing wrong. Even if those processes do not take up any resources they do not look good when you do a "ps". Any help or information will be gladly accepted. An email to [EMAIL PROTECTED] would be appreciated. Thanks Joseph Rajkumar
Re: TOMCAT + APACHE + WINNT = PAIN
Miles Poindexter wrote: Tomcat + Apache + RedHat Linux = 5 minute painless install and configure :^) (Mac OS X was 5 minutes too . . .) hee hee . . . . - miles ^ I'm not sure how that helps answer his question? If you don't have something constructive to say why don't you help by keeping list traffic down. Arif: You didn't say what configuration steps you've completed. Do you have your apache--tomcat dll installed? Have you configured workers? is tomcat standalone working properly with the jsps? You will need to do the above make sure tomcat works alone and then configure your workers and your apache conf to point certain file extensions to the workers via JkMount. If none of that sounds familiar then you need to go read the howto On Monday, March 19, 2001, at 10:28 PM, Arif Tayebali wrote: Follow programmers - Whats up? BTW, im on NT4, Apache1.3, Tomcat3.2 I had a question regarding the Tomcat config files...are you familiar with these files? If so, do i need to keep all my jsp files within the webapps dir or can i place the jsp files anywhere I choose to? For example, if I placed a jsp file anywheresay, F:\mydir\ (which is mapped to Apache as a root dir) would Apache be able to communicate to Tomcat that it has received a jsp file and to handle as it wishes? or do I need to move some tomcat dirs over to F:\mydir\ and place my jsp files within webapps? Do u have any insight... Thanx in advance. Arif Tayebali (562) 424-7899 Ext.150 [EMAIL PROTECTED]
Tomcat3.2 and IIS-help
Hi, I am trying to install Tomcat with IIS...I thought I followed the instructions correctly, and my virtual directory looks fine (ie does have the upward green arrow), but when I restart IIS and look at the ISAPI filters, it says that it fails to load isapi_redirect.dll. I tried downloading the zipped dll but it didn't make a difference. Any ideas--I am getting the 404 error when I try the example in the instructions. Thanks. Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
Tomcat Ant and JDK
Hello there to all. I have recently complied Tomcat, Ant, and JDK and all went well. I did this on a P200 running slackware 7.0 Kernel 2.2.13. While building ant I rant into a little problem concerning libX11.so.6. Instead of installing all the X11 libs I just copied this file from another system running Xwindows. I had to create a link to libX11.so.6.2. After doing this all went well and apache, tomcat, ant, and JDK are working nicely. This was a test run on a private server so I could get more familiar with the whole process. Once I was confident I could reproduce the setup on a public server, I tried to do the same thing. I ran into the same problem with libX11.so.6. This time it was on a system running slackware 7.1 and kernel 2.2.18. I copied the same library from the Xwindows system (The Xwindows system runs slackware 7.0) but go another error instead: BUG IN DYNAMIC LINKER ld.so: dynamic-link.h: 57: elf_get_dynamic_info: Assertion "! "bad dynamic tag"' failed! What's going on. I tried ant v1.3 and v1.2 and it gives me the same error...Help!!! --- Juan Alberto Cirez - Chief Creative Officer [EMAIL PROTECTED] - [EMAIL PROTECTED] -- hip2linux Professional Services, Inc.--- - Fortalezza VPN/Firewall - Commandante Remote Network Management - Network Security - Intranet Extranet Management --- www.hip2linux.com www.micanno.com www.dominicanarmy.com www.basementsuite.com www.micanno.com www.fortalezza.com --- Sunny and Beautiful Vancouver, Canada. ---
Change path of the jakarta-tomcat on Windows NT
I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil.
RE: Simple Question
In a multiuser environment, it is much easier to implement DNS (utilizing BIND) than managing hosts files. -Original Message- From: Amir Nuri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 3:07 AM To: Tomcat-User Subject: Simple Question Do i need DNS in order to use Virtul Hosts ?
Running Tomcat on Windows...
When I try to start and run Tomcat, I receive a "FATAL:java.net.BindException" error. I am using Tomcat 3.2.1, JDK 1.2.2 and JRE 1.1.7 on Windows 2000 Professional. The actual steps and output are: TOMCAT_HOME\bin tomcat start This opens another command prompt window with the output of: 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /examples ) 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( ) 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /test ) 2001-03-20 08:45:54 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-03-20 08:45:54 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then enter: TOMCAT_HOME\bin tomcat run I receive the following output: Including all jars in E:\tomcat\lib in your CLASSPATH. Using CLASSPATH: E:\tomcat\classes;E:\tomcat\lib\ant.jar;E:\tomcat\lib\jasper.jar; E:\tomcat\lib\jaxp.jar;E:\tomcat\lib\parser.jar;E:\tomcat\lib\servlet.jar; E:\tomcat\lib\webserver.jar;F:\Oracle\Ora81\orb\classes\yoj.jar; F:\Oracle\Ora81\orb\classes\share.zip;;C:\Program Files\JDK\jdk1.2.2\lib\tools.jar 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /example 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( ) 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address in use: bind java.net.BindException: Address in use: bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:398) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.create(DefaultServerSocketF actory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java, Compiled Code) at org.apache.tomcat.core.ContextManager.start(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:20 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Has anyoneever experienced this and if so, how do I get by this? Any and all help is much appreciated. Jason Sardano Northern Geomantics 146 Second Street Hallowell, Maine 04347 Ph:(207)623-9226 Fax:(207)623-9229 http://www.northgeo.com
JDBC driver MS SQL Server 7.0
Hi, where can I find jdbc driver for MS SQL server? Thanks, Jack Li
RE: Help required
IIS and Tomcat do work together. Have you hooked up the isapi filter as isapi_redirect.dll? Followed all the steps in the "Tomcat IIS HowTo.htm"? I was having some problems and I just went back and carefully redid my steps and it was working last time I checked. I still don't know how to add contexts because no one will answer my question on it, but hey, I'm just doing minor stuff for now so I'm just pointing to the Tomcat examples directory for stuff and winging it. :) good luck! -Original Message-From: Rajesh Jumde [mailto:[EMAIL PROTECTED]]Sent: Monday, March 19, 2001 9:16 PMTo: [EMAIL PROTECTED]Subject: Help requiredHello there, In the document Tomcat IIs How To has a statement called The IIS redirector is not part of the "official" build of Jakarta, You can obtain the code and binaries needed for it by accessing http://jakarta.apache.org/builds/tomcat/release/v3.1_beta_1/bin/win32/i386/. The redirector related file is isapi_redirect.dll. in the INSTALLATION para. but when i tried the given url it gives me the error as HTTP 404 page not found. I want to test whether IIS works on Tomcat or not, so can you pls suggest me that what should be done to configure Tomcat to IIS. where from i will get all the installation files for Tomcat and how to configure it.. Thanx and Regards, Rajesh
Re: tomcat 4 and class.ForName(...)
On Tue, 20 Mar 2001 [EMAIL PROTECTED] wrote: Hi, I'm trying to figure out why Tomcat won't find my JDBC driver. When it runs, it gives me an exception: sys-package-mgr*: processing new jar, '/home/mddevel/MD8/packages/jakarta-tomcat-4.0/webapps/servlets/WEB-INF/lib/md8.jar' *sys-package-mgr*: processing new jar, '/home/mddevel/MD8/packages/jakarta-tomcat-4.0/webapps/servlets/WEB-INF/lib/jython.jar' java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.init(Compiled Code) at java.lang.Exception.init(Compiled Code) at java.lang.ClassNotFoundException.init(Compiled Code) at org.apache.catalina.loader.StandardClassLoader.loadClass(Compiled Code) at org.apache.catalina.loader.StandardClassLoader.loadClass(Compiled Cod Now I know for a fact that my jdbc driver is in my WEB-INF/lib directory, so why can't it find it? -- Well, I typed the above message up and about ready to hit send when it occurred to me what might be the problem. The name of the compressed file for oracle is classes12.zip. I changed the name to classes12.jar and everything works fine now. I figured I would report this as a bug and so maybe this could be fixed in future versions. Plus, I have seen other questions on the news group relating to this. It's not really a bug -- the Servlet Specification is clear that only JAR files are loaded from "/WEB-INF/lib". Tomcat 4.0 follows this same philosophy when building class paths from "$TOMCAT_HOME/lib" directories. Chris Craig McClanahan
RE: TOMCAT + APACHE + WINNT = PAIN
Look down below for my comments! Arif: You didn't say what configuration steps you've completed. Do you have your apache--tomcat dll installed? yes, i have installed mod_jk.dll Have you configured workers? i have configured the workers.properties file is tomcat standalone working properly with the jsps? I have Apache on Port80 and Tomcat on Port84. Im using the apj13 protocol and everything works great. However, I have to keep my jsps within the home to Tomcat dir\examples\ dir or else my jsps are not recognized. Is there a way I can configure Tomcat so that I can place my jsps in some other dir say, N:\mydir for jsps\ instead of the home to Tomcat dir\examples\ dir. I doubt I can because the jsps must be kept under the \examples\ dir where Tomcat actually resides. I have tried to configure the docBase attribute in the context element in the server.xml file however, it led to no where. In order to use N:\my dir for jsps\ dir I think I have to have install Tomcat in N:\, configure Tomcat there and then run my jsps from the N:\Tomcat\examples\ dir. Am I right or am I wrong? You tell me! Any help is greatly appreciated. Thanx in advance On Monday, March 19, 2001, at 10:28 PM, Arif Tayebali wrote: Fellow programmers - Whats up? BTW, im on NT4, Apache1.3, Tomcat3.2 I had a question regarding the Tomcat config files...are you familiar with these files? If so, do i need to keep all my jsp files within the webapps dir or can i place the jsp files anywhere I choose to? For example, if I placed a jsp file anywheresay, F:\mydir\ (which is mapped to Apache as a root dir) would Apache be able to communicate to Tomcat that it has received a jsp file and to handle as it wishes? or do I need to move some tomcat dirs over to F:\mydir\ and place my jsp files within webapps? Do u have any insight... Thanx in advance. Arif Tayebali (562) 424-7899 Ext.150 [EMAIL PROTECTED]
RE: working with jakarta NT service
I have installed jdk1.3 and have tomcat running as a service: hom to tomcat\doc\NT-Service-howto.html check out that file for install instructions. Try upgrading to jdk1.3! cya -Original Message- From: Jones Borralho Gama [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 9:12 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: working with jakarta NT service Importance: High Hello, I'm talking from Brazil, I have a problem and I really appreciate if you can help. I'm using jakarta-tomcat-3.2.1 and jdk1.1.8 in my computer and I'd like to create a jakarta NT service and executes it in the background as an NT service. I install the "jk_nt_service" point to wrapper.properties file but the service is created but it's impossible to start. What can I do? Could you help me? When I try to startup the service, the NT show "error 2140" Thank's and sorry because my English is not good. Jones
RE: Change path of the jakarta-tomcat on Windows NT
I m having the same problem...look into the threads that have my name: "Arif Tayebali" for more info! -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: Change path of the jakarta-tomcat on Windows NT I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil.
RE: Tomcat encoding
Parameters _ought_ to be encoded in the page's encoding. Are you using Netscape 4.x? I've been told that that version always returns strings encoded in the OS's encoding (i.e., usually 8859/P1), and there's no fix or work-around for that,... -- Bill K. -Original Message- From: Pavel Sigarteu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 12:11 AM To: [EMAIL PROTECTED] Subject: Tomcat encoding Hello, My name is Pavel Sigarteu, I work for Infopulse Romania. We want to create a site that supports local character set ( ISO-8859-2 ). and we have a problem. We have tested with 2 pages and a database. The first page displays a form and the second page inserts the content of the form in the DB and displays the content available in the DB. If we set the encoding in the pages to ISO-8859-2 (%@page contentType="text/html; charset=ISO-8859-2"%) the pages will display correctly the characters from the DB. The problem appears wrhen reading the properties from the Request. It sims like the strings returned from request come encoded in ISO-8859-1 and to be able to display them correctly or to insert them in the DB we need to convert them to ISO-8859-2. Is this normal? Are we doing something wrong? (I hope so ... because it will be kinda ugly to convert every string from the request :( Plese tell me if there is a way to correctly specify the encoding to be used. Thank you, Pavel
RE: Off topic - Object Relational design
You'll find a few here: http://www.cetus-links.org/oo_db_systems_3.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 7:51 AM To: [EMAIL PROTECTED] Subject: Off topic - Object Relational design Dear all, can anyone recommend books or papers discussing object relational design. Thanks Manmeet __ Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/
RE: Using JDBCRealms
Do you have any logs? Nothing useful. Is there some debugging flag(s) I can turn on for this? Which URL are trying? On my local machine: http://localhost:8089/help/AboutVqt.htm . The password dialog does come up, but it only tests the tomcat-users.xml file, not the JDBCRealm database table. Which is your context directoy struct ? ...\tomcat\webapps\ROOT\ WEB-INF\ web.xml help\ AboutVqt.htm plus the usual Tomcat demo stuff. -- Bill K. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 3:11 AM To: '[EMAIL PROTECTED]' Subject: RE: Using JDBCRealms Do you have any logs? Which URL are trying? Which is your context directoy struct ? TIA Saludos , Ignacio J. Ortega -Mensaje original- De: William Kaufman [mailto:[EMAIL PROTECTED]] Enviado el: martes 20 de marzo de 2001 1:11 Para: '[EMAIL PROTECTED]' Asunto: Using JDBCRealms (I posted this before, but I haven't seen any responses. I've added some more information.) (Tomcat version 3.2.1.) I'm trying to use JDBCRealm to manage access to some static files. Is there any documentation for that? I've successfully configured authorization in web.xml: security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/help/*/url-pattern user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint http-methodGET/http-method http-methodPUT/http-method http-methodPOST/http-method http-methodDELETE/http-method /web-resource-collection auth-constraint role-nameViquityUser/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameViquity/realm-name /login-config But I can't seem to get JDBCRealm (or my own subclass of that) to get called. I've added, RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@localhost:1521:adb" connectionName="metax" connectionPassword="tiger" userTable="contacts" userNameCol="username" userCredCol="password" userRoleTable="user_roles" roleNameCol="role" / to my conf\server.xml, and commented out the SimpleRealm interceptor. JDBCRealm is on my classpath--"javap" can print it. And that JDBC connection works fine outside of Tomcat, so it's not a JDBC issue. Near as I can figure, Tomcat isn't even loading the class. Is there some debugging I can turn on in Tomcat to see what's going wrong? -- Bill K.
RE: Running Tomcat on Windows...
Your problem is that you are starting Tomcat twice. The second time Tomcat starts something is already using the ports that it wants to use (namely the first instance of Tomcat). In short, you don't need to start it twice. Randy -Original Message- From: Jason Sardano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 12:37 PM To: [EMAIL PROTECTED] Subject: Running Tomcat on Windows... When I try to start and run Tomcat, I receive a "FATAL:java.net.BindException" error. I am using Tomcat 3.2.1, JDK 1.2.2 and JRE 1.1.7 on Windows 2000 Professional. The actual steps and output are: TOMCAT_HOME\bin tomcat start This opens another command prompt window with the output of: 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /examples ) 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( ) 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /test ) 2001-03-20 08:45:54 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-03-20 08:45:54 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then enter: TOMCAT_HOME\bin tomcat run I receive the following output: Including all jars in E:\tomcat\lib in your CLASSPATH. Using CLASSPATH: E:\tomcat\classes;E:\tomcat\lib\ant.jar;E:\tomcat\lib\jasper.jar; E:\tomcat\lib\jaxp.jar;E:\tomcat\lib\parser.jar;E:\tomcat\lib\ servlet.jar; E:\tomcat\lib\webserver.jar;F:\Oracle\Ora81\orb\classes\yoj.jar; F:\Oracle\Ora81\orb\classes\share.zip;;C:\Program Files\JDK\jdk1.2.2\lib\tools.jar 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /example 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( ) 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address in use: bind java.net.BindException: Address in use: bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:398) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.create(Defaul tServerSocketF actory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTc pEndpoint.java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnec tor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.start(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:20 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Has anyoneever experienced this and if so, how do I get by this? Any and all help is much appreciated. Jason Sardano Northern Geomantics 146 Second Street Hallowell, Maine 04347 Ph:(207)623-9226 Fax:(207)623-9229 http://www.northgeo.com
RE: working with jakarta NT service
Make sure Tomcat and the JDK are installed on a local disk and not on a network drive. -Original Message- From: Jones Borralho Gama [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 17:12 To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: working with jakarta NT service Importance: High Hello, I'm talking from Brazil, I have a problem and I really appreciate if you can help. I'm using jakarta-tomcat-3.2.1 and jdk1.1.8 in my computer and I'd like to create a jakarta NT service and executes it in the background as an NT service. I install the "jk_nt_service" point to wrapper.properties file but the service is created but it's impossible to start. What can I do? Could you help me? When I try to startup the service, the NT show "error 2140" Thank's and sorry because my English is not good. Jones
ajpv12 to ajpv13
Has anyone used the ajpv13 protocol for winnt4 w/ Tomcat3.2 + mod_jk, I'm having troubling making Tomcat recognize that protocol. Its seems that Tomcat 3.2 is using the originalajpv12 protocol and doesnt want to switch. I read the howto on doingthe switchfrom ajp12 to ajp13but the instructions seems vague. Has any1 tried this b4? Thanx in advance. Arif Tayebali (562) 424-7899 Ext.150 [EMAIL PROTECTED]
RE: Change path of the jakarta-tomcat on Windows NT
see Server.xml: Context path="/examples" docBase="webapps/examples" crossContext="false" debug="0" reloadable="true" /Context --- Arif Tayebali [EMAIL PROTECTED] wrote: I m having the same problem...look into the threads that have my name: "Arif Tayebali" for more info! -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: Change path of the jakarta-tomcat on Windows NT I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: JDBC driver MS SQL Server 7.0
Sun maintains a web serachable database of drivers and driver vendors. Most of the drivers are commercial and there are a few open source. The URL is: http://industry.java.sun.com/products/jdbc/drivers --On Tuesday, March 20, 2001 12:38:09 PM -0500 Jack Li [EMAIL PROTECTED] wrote: Hi, where can I find jdbc driver for MS SQL server? Thanks, Jack Li _ _ _ _ __ _ _ _ _ /\_\_\_\_\/\_\ /\_\_\_\_\_\ /\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT, /\/_/__\/_/ __/\/_//\/_/ PROFUNDUM VIDITUR /\/_/_/_/_/ /\_\ /\/_//\/_/ /\/_/ \/_/ /\/_/_/\/_//\/_/ (Whatever is said in Latin \/_/ \/_/ \/_/_/_/_/ \/_/ appears profound) Rob Tanner McMinnville, Oregon [EMAIL PROTECTED]
RE: Using JDBCRealms
Did you delete or comment the SimpleRealm Interceptor? If not this can be the problem.. Saludos , Ignacio J. Ortega -Mensaje original- De: William Kaufman [mailto:[EMAIL PROTECTED]] Enviado el: martes 20 de marzo de 2001 19:46 Para: '[EMAIL PROTECTED]' Asunto: RE: Using JDBCRealms Do you have any logs? Nothing useful. Is there some debugging flag(s) I can turn on for this? Which URL are trying? On my local machine: http://localhost:8089/help/AboutVqt.htm . The password dialog does come up, but it only tests the tomcat-users.xml file, not the JDBCRealm database table. Which is your context directoy struct ? ...\tomcat\webapps\ROOT\ WEB-INF\ web.xml help\ AboutVqt.htm plus the usual Tomcat demo stuff. -- Bill K. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 3:11 AM To: '[EMAIL PROTECTED]' Subject: RE: Using JDBCRealms Do you have any logs? Which URL are trying? Which is your context directoy struct ? TIA Saludos , Ignacio J. Ortega -Mensaje original- De: William Kaufman [mailto:[EMAIL PROTECTED]] Enviado el: martes 20 de marzo de 2001 1:11 Para: '[EMAIL PROTECTED]' Asunto: Using JDBCRealms (I posted this before, but I haven't seen any responses. I've added some more information.) (Tomcat version 3.2.1.) I'm trying to use JDBCRealm to manage access to some static files. Is there any documentation for that? I've successfully configured authorization in web.xml: security-constraint web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/help/*/url-pattern user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint http-methodGET/http-method http-methodPUT/http-method http-methodPOST/http-method http-methodDELETE/http-method /web-resource-collection auth-constraint role-nameViquityUser/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameViquity/realm-name /login-config But I can't seem to get JDBCRealm (or my own subclass of that) to get called. I've added, RequestInterceptor className="org.apache.tomcat.request.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@localhost:1521:adb" connectionName="metax" connectionPassword="tiger" userTable="contacts" userNameCol="username" userCredCol="password" userRoleTable="user_roles" roleNameCol="role" / to my conf\server.xml, and commented out the SimpleRealm interceptor. JDBCRealm is on my classpath--"javap" can print it. And that JDBC connection works fine outside of Tomcat, so it's not a JDBC issue. Near as I can figure, Tomcat isn't even loading the class. Is there some debugging I can turn on in Tomcat to see what's going wrong? -- Bill K.
Re: welcome-file problem
On Tue, 20 Mar 2001, Martin Mauri wrote: On Mon, 19 Mar 2001, Martin Mauri wrote: [ ... ] Here's a guess (an educated one, since I had similar problems :-): You're not specifying appropriate directives in the tomcat/apache conf file to tell apache to pass that URL to tomcat. Hence, apache is handling that URL (and it's only tomcat knows about the welcome file). If you're using mod_jserv, these are ApJservMount directives; if you're using mod_jk, I don't know, but I'd guess they're ApJKMount directives. Anyway, look at the documentation for this conf file on the tomcat web site. Dear Milt, perhaps your theory is right, but take a look at this: I've renamed my file worksheet.html to worksheet.jsp and I've got the jsp extension redirected to Tomcat. but it doesn't work at all :( any idea? What is the URL you are trying? And where is the worksheet.jsp file located? Is worksheet the app/context name? Those JkMount's may tell apache to forward to tomcat all *.jsp URL's, but I'm not sure they're telling apache to forward to tomcat everything for that context. And it is the context for which the welcome-file is specified. The URL is: http://myhost:myport/worksheet/ and so worksheet is the context name, but the welcome page is worksheet.jsp and it's inside the directory worksheet. OK. That seems fine to me. Now, I'm using mod_jserv, not mod_jk, and I have things like the following in my apache/tomcat conf file: Alias /blah /path/to/tomcat/webapps/blah ApJServMount /blah/servlet /blah which I got based on the sample provided. I also added ApJServMount /blah /blah which wasn't in the sample but which seems to allow me to do some things I want. As I understand it, these ApJServMount's, tell apache (and/or tomcat) what the context is for URL's passed to tomcat. The ApJKMount directives you have don't seem to be doing that, they just indicate what the protocol is. I'm wondering if this could be (part of) the problem. Because it seems like the URL you're using wouldn't be matched by either of the ApJKMount directives shown below. my welcome looks like this: welcome-file-list welcome-fileworksheet.jsp/welcome-file /welcome-file-list and my mod_jk.conf looks like this: # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /worksheet/servlet/* ajp12 JkMount /worksheet/*.jsp ajp12 Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: servlet prefix problem
I'm facing the same problem...haven't figured it out and dont think anyone else has either. This topic is quite an old topic, I can only wonder why no one has addressed it. -Original Message- From: Yang,Chun [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 11:20 AM To: '[EMAIL PROTECTED]' Subject: servlet prefix problem Hello all, I don't seem to be able to change the prefix for accessing servlets. The default servlet prefix is "/servlet/" and according to the instructions/coments in server.xml, this prefix can be adjusted. So I tried changing the following lines in server.xml RequestInterceptor className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/foo/bar/servlets/" / I made sure there is a slash at the beginning and the end of the prefix. Somehow it doesn't work. When I looked at the generated mod_jk_conf-auto file, I noticed the JkMount directive is still directing everything in /servlet/* to ajp12. I would assume by changing the prefix in server.xml, there would be a JkMount directive for /foo/bar/servlets/* to ajp12. What have I done wrong and what am I missing here ? Thanks.
RE: servlet prefix problem
On Tue, 20 Mar 2001, Arif Tayebali wrote: I'm facing the same problem...haven't figured it out and dont think anyone else has either. This topic is quite an old topic, I can only wonder why no one has addressed it. -Original Message- From: Yang,Chun [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 11:20 AM To: '[EMAIL PROTECTED]' Subject: servlet prefix problem Hello all, I don't seem to be able to change the prefix for accessing servlets. The default servlet prefix is "/servlet/" and according to the instructions/coments in server.xml, this prefix can be adjusted. So I tried changing the following lines in server.xml RequestInterceptor className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/foo/bar/servlets/" / I made sure there is a slash at the beginning and the end of the prefix. Somehow it doesn't work. When I looked at the generated mod_jk_conf-auto file, I noticed the JkMount directive is still directing everything in /servlet/* to ajp12. I would assume by changing the prefix in server.xml, there would be a JkMount directive for /foo/bar/servlets/* to ajp12. What have I done wrong and what am I missing here ? It's a bug in the code that generates mod_jk_conf-auto, which is currently assuming the prefix never changes. Could you please report this to the bug tracking system so that it gets addressed: http://nagoya.apache.org/bugzilla/ As a work around, I would suggest not trying to use mod_jk_conf-auto directly -- just use it as a model for the commands that you actually include into httpd.conf. Then, you can make the corresponding changes by hand. Thanks. Craig McClanahan
RE: Change path of the jakarta-tomcat on Windows NT
where have u installed tomcat? where r u storing ur context (html, css, jsp) files? -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: RES: Change path of the jakarta-tomcat on Windows NT i'm new in the list, can you aswer me how did you can solve the problem? -Mensagem original- De: Arif Tayebali [mailto:[EMAIL PROTECTED]] Enviada em: terça-feira, 20 de março de 2001 15:11 Para: '[EMAIL PROTECTED]' Assunto: RE: Change path of the jakarta-tomcat on Windows NT Prioridade: Alta I m having the same problem...look into the threads that have my name: "Arif Tayebali" for more info! -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: Change path of the jakarta-tomcat on Windows NT I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil.
jasper in another container
Has anyone gotten Jasper to run in another container? I'm getting a missing resource bundle during init of org.apache.jasper.servlet.JspServlet: java.lang.Error: Fatal Error: missing resource bundle: org.apache.jasper.resources.messages_en_US at org.apache.jasper.Constants.initResources(Constants.java:216) at org.apache.jasper.Constants.getString(Constants.java:233) at org.apache.jasper.compiler.MyEntityResolver.resolveEntity(JspUtil.java:436) at org.apache.crimson.parser.ExternalEntity.getInputSource(ExternalEntity.java: 88) at org.apache.crimson.parser.Parser2.pushReader(Parser2.java:2981) at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2716) at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1149) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:1 73) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:62) at org.apache.jasper.compiler.JspUtil.parseXMLDocJaxp(JspUtil.java:218) at org.apache.jasper.compiler.JspUtil.parseXMLDoc(JspUtil.java:198) at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa che.java:157) at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:1 37) at org.apache.jasper.EmbededServletOptions.init(EmbededServletOptions.java:33 8) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:255) the classloader which loaded the JspServlet class should be able to find the messages.properties file, and that file does exist. I've also manually stuck an _en_US version there to no avail. I've aso tried exploding the jasper.jar, and the same result occurrs. I noticed that right after the initialization of the mesage resources the JspServlet mucks around with parentClassloader - i was wondering if anyone could shed light on that. I'm running of Win 2000. thanks, TIm Julien
Help on how to set the idle session timeout
Hi, I know that we can set the session timeout in web.xml. But it specifies how long the user can have valid session no matter the user keeps sending the requests. Correct? If so, how about the idle session timeout? By meaning that, if the user does not send any request for certain time period (let say 30 minutes), we would disable the session. Does anyone know how to configure? Thanks, Connie
RE: tomcat-jakarta and Solaris 2.7?
I am! -Original Message- From: C.M. Rahman (jr.) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 6:14 AM To: [EMAIL PROTECTED] Subject: tomcat-jakarta and Solaris 2.7? Anybody here using tomcat-jakarta with Solaris 2.7? Thanks C.M. Rahman Network Engineer CCS Internet 13740 Research Blvd. Suite O-4 Austin, TX 78758 [EMAIL PROTECTED]
RE: Change path of the jakarta-tomcat on Windows NT
Look down below for comments: -Original Message- From: Tom Horn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 11:54 AM To: [EMAIL PROTECTED] Subject: RE: Change path of the jakarta-tomcat on Windows NT see Server.xml: Context path="/examples" docBase="webapps/examples" crossContext="false" debug="0" reloadable="true" /Context when you I try to config this element's docBase attribute to say N:\my dir\ the change is not being implemented. --- Arif Tayebali [EMAIL PROTECTED] wrote: I m having the same problem...look into the threads that have my name: "Arif Tayebali" for more info! -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: Change path of the jakarta-tomcat on Windows NT I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: Help on how to set the idle session timeout
On Tue, 20 Mar 2001, Connie Chan wrote: Hi, I know that we can set the session timeout in web.xml. But it specifies how long the user can have valid session no matter the user keeps sending the requests. Correct? If so, how about the idle session timeout? By meaning that, if the user does not send any request for certain time period (let say 30 minutes), we would disable the session. Does anyone know how to configure? The timeout you specify in web.xml is *not* the maximum duration of the session. Instead, it is the maximum duration *between* requests, which sounds like exactly what you are asking for. Thanks, Connie Craig McClanahan
Re: JDBC driver MS SQL Server 7.0
jturbo.com - Original Message - From: "Jack Li" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 20, 2001 6:38 PM Subject: JDBC driver MS SQL Server 7.0 Hi, where can I find jdbc driver for MS SQL server? Thanks, Jack Li
RE: Change path of the jakarta-tomcat on Windows NT
In server.xml, you'll see a structure similar to Context path="/examples" docBase="webapps/examples" crossContext="false" debug="0" reloadable="true" /Context If you want it to be in http://localhost/otherpath then change or add a context to server.xml such that Context path="/otherpath" docBase="webapps/otherpath" crossContext="false" debug="9" reloadable="true" /Context I believe you also need to change uriworkermap.properties so that your ajp12 or ajp13 worker maps the context so add the line: /otherpath/*=ajp12 to your tomcat/conf/uriworkermap.properties file. I hope this helps... Darrell -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: Change path of the jakarta-tomcat on Windows NT I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil.
RE: Change path of the jakarta-tomcat on Windows NT
Hello Everyone, i have another question about the same subject i could access my jsp pages in http://localhost/examples/jsp/myFolder (No Problem) i could access my servlet in http://localhost/examples/servlet (No Problem) but if i want to access a servlet from a jsp page i could only do it by including my servlet in my jsp page .I can't forward or submit a form to a servlet. does anyone know why? or what should i change in the configuration file thanks -Original Message- From: Tom Horn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 2:54 PM To: [EMAIL PROTECTED] Subject: RE: Change path of the jakarta-tomcat on Windows NT see Server.xml: Context path="/examples" docBase="webapps/examples" crossContext="false" debug="0" reloadable="true" /Context --- Arif Tayebali [EMAIL PROTECTED] wrote: I m having the same problem...look into the threads that have my name: "Arif Tayebali" for more info! -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: Change path of the jakarta-tomcat on Windows NT I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Please Help--can't set up
I re-installed tomcat from scratch. tomcat_home and java_home are set up, keys in Apache Software Foundation\Jakarta Isapi Redirector\1.0 are as suggested in the IIS how-to. I am logging at c:\jakarta-tomcat\logs\isapi.log with error level. I get the 404 error but the part that completely puzzles me is the fact that the isapi.log file from above never gets created. Please give some advice--this is very frustrating and someone must have done it right, Also, how do I check that "the "/examples" context works correcly if you access Tomcat directly." Thanks I Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
RES: Change path of the jakarta-tomcat on Windows NT
i'm new in the list, can you aswer me how did you can solve the problem? -Mensagem original- De: Arif Tayebali [mailto:[EMAIL PROTECTED]] Enviada em: terça-feira, 20 de março de 2001 15:11 Para: '[EMAIL PROTECTED]' Assunto: RE: Change path of the jakarta-tomcat on Windows NT Prioridade: Alta I m having the same problem...look into the threads that have my name: "Arif Tayebali" for more info! -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: Change path of the jakarta-tomcat on Windows NT I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil.
Please, Desperate for Help!
Hi, I'm in desperate need of help and any that you can provide is sincerely appreciated. I've configured Apache to force a basic authentication for one of my Tomcat contexts. My problem is that when the DirectoryIndex is set for to retrieve an index.jsp I get a HTTP 500 errror. When serving a regular index.html everything works perfectly. The Apache directives follow: DirectoryIndex index.jsp index.html Location "/piccare" AuthName "PIC-CARE Secure Area" AuthType Basic AuthUserFile C:/Apache/security/password.file AuthGroupFile C:/Apache/security/group.file require group picUser AllowOverride AuthConfig Options FollowSymlinks Order allow,deny Allow from all /Location include my_mod_jk.conf --This is my_mod_jk.conf-- # # Auto configuration for the /piccare context starts. # # # The following line makes apache aware of the location of the /piccare context # Alias /piccare "C:/Apache/tomcat/webapps/piccare" Directory "C:/Apache/tomcat/webapps/piccare" Options Indexes FollowSymLinks /Directory # # The following line mounts all JSP files and the /servlet/ uri to tomcat # JkMount /piccare/servlet/* ajp13 JkMount /piccare/*.jsp ajp13 # # The following line prohibits users from directly accessing WEB-INF # Location "/piccare/WEB-INF/" AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory "C:/Apache/tomcat/webapps/piccare/WEB-INF/" AllowOverride None deny from all /Directory # # The following line prohibits users from directly accessing META-INF # Location "/piccare/META-INF/" AllowOverride None deny from all /Location # # Use Directory too. On Windows, Location doesn't work unless case matches # Directory "C:/Apache/tomcat/webapps/piccare/META-INF/" AllowOverride None deny from all /Directory ### # Auto configuration for the /piccare context ends. ### --This is the log file output from mod_jk:-- [jk_connect.c (108)]: Into jk_open_socket [jk_connect.c (115)]: jk_open_socket, try to connect socket = 464 [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 61 [jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process. [jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done Thanks in advance, Bryon Bean [EMAIL PROTECTED]
Tomcat 4.0 b1 and VAJ
Hello !! I am trying to set Tomcat 4.0 b1 in VAJ 3.5 I did it with Tomcat 3.1, it was rather simple that time. I had imported src's and there was 5 jar files in the lib directory, I had added them to class path of the class StartTomcat which was available from the IBM's VADD site. Now with the Tomcat 4.0 b1, there are so many jar files in several directories, ok startup class is change to CATALINA, but I am getting class not founds errors. MyProblem : I can run the TOMCAT 4.0 b1 as standalone, it means that all the classed needed are inside the tomcat. But why I VAJ lots of xml related classes are missing. Do I have to put some more classes/jar files into VAJ. currenlty its .\; lib\jasper.jar; lib\jaxp.jar; lib\namingfactory.jar; lib\crimson.jar; bin\bootstrap.jar; bin\jndi.jar; bin\servlet.jar; server\catalina.jar; server\crimson.jar; server\jakarta-regexp-1.2.jar; server\jaxp.jar; server\warp.jar; May be somebody has a step by step guide for doing this. thanks, /uma shanker [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Servlets and Xml??
How do one pass XML data as a single stream via HTTP?? I am having problems with Parsing and Executing the Handlers. Encoding a String Object using URLEncoder.encode() and using URLConnection Object to Post this stream. The Parser does't like the first line itself. Sometimes, the xml file is parsed and nothing happens to the handlers. Means none of the stored procedures are executed. Looks like only first two lines of the XML file is parsed. Any thoughts!! Encoding,passing xml streams through Tomcat and Servlets?? Thanks
RES: Change path of the jakarta-tomcat on Windows NT
Yes i installed tomcat at directory c:\jakarta-tomcat my context files where are e:\websites\mysite []'s Thanks -Mensagem original- De: Arif Tayebali [mailto:[EMAIL PROTECTED]] Enviada em: terça-feira, 20 de março de 2001 18:15 Para: '[EMAIL PROTECTED]' Assunto: RE: Change path of the jakarta-tomcat on Windows NT Prioridade: Alta where have u installed tomcat? where r u storing ur context (html, css, jsp) files? -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: RES: Change path of the jakarta-tomcat on Windows NT i'm new in the list, can you aswer me how did you can solve the problem? -Mensagem original- De: Arif Tayebali [mailto:[EMAIL PROTECTED]] Enviada em: terça-feira, 20 de março de 2001 15:11 Para: '[EMAIL PROTECTED]' Assunto: RE: Change path of the jakarta-tomcat on Windows NT Prioridade: Alta I m having the same problem...look into the threads that have my name: "Arif Tayebali" for more info! -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: Change path of the jakarta-tomcat on Windows NT I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil.
RE: How to get rs.last() supported by Tomcat
I still don't know what causes the problem. I had the same codes in a stand alone java program and compiled the program at DOS prompt successfully. Then why tomcat gave me the error? Jack -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 12:33 PM To: [EMAIL PROTECTED] Subject: How to get rs.last() supported by Tomcat My problem is to make some JDBC 2.0 API calls such as rs.last(). I have Tomcat 3.2.1 and JDK 1.3 installed. Source codes are below. Please help. Jack Li - %@ page import="java.sql.*"% % Connection con = null; try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("jdbc:odbc:internetdb", "", ""); Statement st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); ResultSet rs = st.executeQuery("Select * from HRExt"); rs.last(); out.println(rs.getRow()); rs.close(); con.close(); } catch(SQLException e){ System.err.println(e.getMessage()); } catch(Exception e){ System.err.println(e.getMessage()); } out.println("Hello World"); % -
RE: Re[2]: Using Apache/Tomcat in high-traffic site
Title: RE: Re[2]: Using Apache/Tomcat in high-traffic site Im assuming the BigIP will be setup to do session-based balancing. So basically you have an external interface visable to the global internet this IP would be the IP that clients would connect to. The internal interfaces would hit your servers. When somebody first tries to reach the website, the BigIP (or any other session-based load balancer) creates a tunnel for that entire session, and tunnels that clients request to the same box until that session disappears. -Original Message- From: Shinta Tjio [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 11:35 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]'; Tim Sullivan; [EMAIL PROTECTED] Subject: RE: Re[2]: Using Apache/Tomcat in high-traffic site We are also in the process of setting an environment like this. I'm curious about your comment in the first paragraph. Assuming the environment is: the loadbalancer is load balancing Apache, there are many Apache running mod_jk, the mod_jk is loadbalancing many Tomcat behind the Apache. I'm not familiar with BigIP, Steve, does it forward requests of the same sessions to the same Apache? If your loadbalancer can't be configured to send requests of the same sessions to the same Apache (Gavin's first question), I don't think mod_jk will solve this. Unless you want to just have one Apache, and let it be the load balancer essentially. Which of course, in our environment, this is not a scalable solution. shinta -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 5:36 AM To: '[EMAIL PROTECTED]'; Tim Sullivan; [EMAIL PROTECTED] Subject: Re[2]: Using Apache/Tomcat in high-traffic site I'm just putting together a prototype on the Internet using Tomcat, we've got two Linux boxes and load is spread over the two hosts using a BigIP load-balancer. The mod_jk config is ok when you understand whats going on, local and remote Tomcat instances aren't specially distinguished apart from having a different IP address. mod_jk handles the sticky session part so going in on different web servers each time is fine. mod_jk could do with better documentation in this regard and its very easy to configure it so that it does absolutely nothing and logs no errors whatsoever ! Direct all contexts to the load balancer worker not the ajp13 workers and have the load balancer worker spread things out. I'm interested in your experience of heap sizes, in my prototype I've ignored it, how would I know if I'm near - do you have a feel for how much memory you need per session (assuming application doesn't store much data in the session). SteveQ. __ Reply Separator _ Subject: RE: Using Apache/Tomcat in high-traffic site Author: Tim Sullivan [EMAIL PROTECTED] at Internet-po Date: 16/03/01 11:24 Hello Gavin, I am considering doing the same thing on almost the same hardware (e4500 + e1). Did you end up finding any performance examples or otherwise for this? If so, could you forward it my way? Thanks in advance, -Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 12:55 PM To: [EMAIL PROTECTED] Subject: Using Apache/Tomcat in high-traffic site Hi, I am looking to use Apache and Tomcat in my company's production web site. Before I can convince management that this is a good idea I need some information so I am confident. If anyone can help I'll be very grateful. First of all I'll give you a picture of the overall architecture that I want to create: 1) For fault-tolerance and scaleability we want to have several instances of Apache running over a number of machines. These will be load balanced by a pair of Cisco Local Director boxes, because we already own a couple of them. From a brief look through the operating manual on Cisco's web site I get the impression that Local Director cannot support sticky load-balancing. Please correct me if I'm wrong. 2) We will run several instances of Tomcat (version 3.2.1 most likely) on our back-end servers. These are a couple of Sun E1s with 32 processors each. These are partitioned up into domains, so that we end up with 12 processors on each machine dedicated to running Tomcat. Each domain has 2GB of RAM. There are other domains dedicated to databases, etc... 3) Each instance of Apache will be using mod_jk in a sticky load-balanced configuration. Every instance of Apache (and so mod_jk) will have workers defined for every instance of Tomcat on both E1s. In other words, a Tomcat instance may receive a request from any instance of Apache. The things I need to know :) 1) Each request to our site
Re: Help on how to set the idle session timeout
Connie Chan wrote: Hi, I know that we can set the session timeout in web.xml. But it specifies how long the user can have valid session no matter the user keeps sending the requests. Correct? If so, how about the idle session timeout? By meaning that, if the user does not send any request for certain time period (let say 30 minutes), we would disable the session. Does anyone know how to configure? Thanks, Connie the session-timeout is the idle time out.. I dont' believe there is any timeout for a session that has continuous access.
Re: Help on how to set the idle session timeout
On Tue, 20 Mar 2001, Connie Chan wrote: Hi, I know that we can set the session timeout in web.xml. But it specifies how long the user can have valid session no matter the user keeps sending the requests. Correct? If so, how about the idle session timeout? By meaning that, if the user does not send any request for certain time period (let say 30 minutes), we would disable the session. Does anyone know how to configure? No, that's not correct. The session timeout you set in web.xml is the idle session timeout. This can be set programmatically as well via HttpSession.getMaxInactiveInterval()). (According to the spec, the setting in the web.xml file is in minutes, the argument to getMaxInactiveInterval() is in seconds.) Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: Please Help--can't set up
what url are you trying to hit? -Original Message-From: Yana [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 20, 2001 2:02 PMTo: [EMAIL PROTECTED]Subject: Please Help--can't set up I re-installed tomcat from scratch. tomcat_home and java_home are set up, keys in Apache Software Foundation\Jakarta Isapi Redirector\1.0 are as suggested in the IIS how-to. I am logging at c:\jakarta-tomcat\logs\isapi.log with error level. I get the 404 error but the part that completely puzzles me is the fact that the isapi.log file from above never gets created. Please give some advice--this is very frustrating and someone must have done it right, Also, how do I check that "the "/examples" context works correcly if you access Tomcat directly." Thanks I Do You Yahoo!?Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
Re: Change path of the jakarta-tomcat on Windows NT
Georges Boutros wrote: Hello Everyone, i have another question about the same subject i could access my jsp pages in http://localhost/examples/jsp/myFolder (No Problem) i could access my servlet in http://localhost/examples/servlet (No Problem) but if i want to access a servlet from a jsp page i could only do it by including my servlet in my jsp page .I can't forward or submit a form to a servlet. does anyone know why? or what should i change in the configuration file thanks If you are submiting a form to a servlet this has nothing to do with JSP servlet ineraction the client's browser is responsible for submiting to the correct location. Check the action on your form and make sure it is a valid URL to a working servlet..
RE: Change path of the jakarta-tomcat on Windows NT
and you tried http://localhost:8080/examples/jsp/index.html? -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 2:15 PM To: [EMAIL PROTECTED] Subject: RES: Change path of the jakarta-tomcat on Windows NT Yes i installed tomcat at directory c:\jakarta-tomcat my context files where are e:\websites\mysite []'s Thanks -Mensagem original- De: Arif Tayebali [mailto:[EMAIL PROTECTED]] Enviada em: terça-feira, 20 de março de 2001 18:15 Para: '[EMAIL PROTECTED]' Assunto: RE: Change path of the jakarta-tomcat on Windows NT Prioridade: Alta where have u installed tomcat? where r u storing ur context (html, css, jsp) files? -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: RES: Change path of the jakarta-tomcat on Windows NT i'm new in the list, can you aswer me how did you can solve the problem? -Mensagem original- De: Arif Tayebali [mailto:[EMAIL PROTECTED]] Enviada em: terça-feira, 20 de março de 2001 15:11 Para: '[EMAIL PROTECTED]' Assunto: RE: Change path of the jakarta-tomcat on Windows NT Prioridade: Alta I m having the same problem...look into the threads that have my name: "Arif Tayebali" for more info! -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: Change path of the jakarta-tomcat on Windows NT I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil.
RE: Change path of the jakarta-tomcat on Windows NT
excuse that last reply, I was referring to another problem... :) -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 2:15 PM To: [EMAIL PROTECTED] Subject: RES: Change path of the jakarta-tomcat on Windows NT Yes i installed tomcat at directory c:\jakarta-tomcat my context files where are e:\websites\mysite []'s Thanks -Mensagem original- De: Arif Tayebali [mailto:[EMAIL PROTECTED]] Enviada em: terça-feira, 20 de março de 2001 18:15 Para: '[EMAIL PROTECTED]' Assunto: RE: Change path of the jakarta-tomcat on Windows NT Prioridade: Alta where have u installed tomcat? where r u storing ur context (html, css, jsp) files? -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: RES: Change path of the jakarta-tomcat on Windows NT i'm new in the list, can you aswer me how did you can solve the problem? -Mensagem original- De: Arif Tayebali [mailto:[EMAIL PROTECTED]] Enviada em: terça-feira, 20 de março de 2001 15:11 Para: '[EMAIL PROTECTED]' Assunto: RE: Change path of the jakarta-tomcat on Windows NT Prioridade: Alta I m having the same problem...look into the threads that have my name: "Arif Tayebali" for more info! -Original Message- From: Fabricio Costa [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: Change path of the jakarta-tomcat on Windows NT I installed jakarta-tomcat in my windows NT server and i run the .JSP pages with the path http://localhost/examples/ I want to know how to i can run .JSP pages with another path, for example http://localhost/otherpath. Thanks Fabricio Costa Brazil.
RE: Change path of the jakarta-tomcat on Windows NT
yes, if there's errors in your servlet you may not get many or any messages. -Original Message- From: Steve Ruby [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 3:03 PM To: [EMAIL PROTECTED] Subject: Re: Change path of the jakarta-tomcat on Windows NT Georges Boutros wrote: Hello Everyone, i have another question about the same subject i could access my jsp pages in http://localhost/examples/jsp/myFolder (No Problem) i could access my servlet in http://localhost/examples/servlet (No Problem) but if i want to access a servlet from a jsp page i could only do it by including my servlet in my jsp page .I can't forward or submit a form to a servlet. does anyone know why? or what should i change in the configuration file thanks If you are submiting a form to a servlet this has nothing to do with JSP servlet ineraction the client's browser is responsible for submiting to the correct location. Check the action on your form and make sure it is a valid URL to a working servlet..
jvm crashes when running tomcat-apache
Hi! I am running apache 1.3.12 with mod_jk that lets tomcat handle all jsp and servlets. Tomcat and apache are on separate solaris 2.7 machines. I'm using java 1.3. When the load on the webserver increases the jvm crashes and I get the following error message. # Error happened during: scavenge # # Error ID: 4F533F534F4C415249530E435050079A 01 # # Problematic Thread: prio=5 tid=0x91bd8 nid=0x4 runnable I have tried with setting the heap size to 256 MB but that didn't help. Has anybody experienced the same problem? Is there a workaround for this problem? // joakim Hellstrom
Re: Load Balancing and JkMount
I've not tried this, but don't you replace the workers in the in the workers list in the workers.properties file with the "lb" worker, and then add all of the workers you want load-balanced to the load-balancer list? email me back if you don't understand my suggestion and I'll look into the files a bit and give you a more exact answer. On Tue, 20 Mar 2001, Amir Nuri wrote: All the examples and archive messages that I have seen so far talk about load balancing using either multiple JVM's or Multiple Connector Directives with different port numbers and corrosponding workers in the workers.properties file. But they all use different Mount Points for each worker ! However my need is to Load Balance a *SINGLE MOUNT POINT* ( A single Virtual Apache Host corrosponding to a Host (context) in server.xml ) i.e I want http://ww.mysite.com/*.jsp to be load balanced by 4 worker threads. I am currently using 4 JkMount Directives, and the server is up and running. i.e JkMount /*.jsp ajp13 JkMount /*.jsp Xajp13 JkMount /*.jsp Yajp13 JkMount /*.jsp Zajp13 Also if I name the workers ajp13a , ajp13b and ajp13c, apache does not start and gives me an error saying that it cannot find the workers file !!! Anyway, my question are :- 1. Is this the right way to have a single mount point load balanced ? 2. If so, is it a good idea to run the tomcat instances in the same JVM ? Or should I run multiple tomcat/JVM instances on the same / different servers ?
server.xml
Is there a dtd for the file server.xml or some detailed explanation on this file ? I'm using Tomcat 3.2.1 Thank-you
.
The Internet's Finest and Most Reliable Bulk Email Provider! Since 1996, Tech Data Technologies has provided bulk email service to thousands of well-satisfied customers. We offer the most competitive prices in the industry, made possible by our high percentage of repeat business. We have the most advanced, direct email technology, employed by only a knowledgeable few in the world. We have over 160 million active email addresses, increasing our list at the rate of half a million to one million a month. We will put your product or service instantly and directly into the hands of millions of prospects! You will have instant, guaranteed results, something no other form of marketing can claim. Our turn around time is a remarkable 24 hours. Our email addresses are sorted by country, state, city and target. Your marketing campaign will speed with pinpoint accuracy to your desired audience! Call us for a free consultation at 323 876 6148 [U.S.A.]. For a limited time, take advantage of our special -- Three million general U.S. emails for just $600 per million! We include, at no cost, a bullet proof email address for 30 days, a $400 value! BULK EMAIL PRICES 750,000$562 1,200,000$720 1,600,000$960 3,000,000$1,500 3,000,000+ ...PLEASE CALL FOR A QUOTE Best of ALL, Tech Data Services can be used as a 100% TAX WRITE OFF for your Business! DON'T WAIT! LET TECH DATA TECHNOLOGIES BE YOUR PARTNER!! Under Bill s.1618 TITLE III passed by the 105th U.S. Congress this letter is not considered "spam" as long as we include: 1) contact information and, 2) the way to be removed from future mailings (see below).To Remove Yourself From This List: Please email [EMAIL PROTECTED] with the email address that you would like removed and the word REMOVE in the subject heading.
log4j and tomcat
Hello I have recently started playing with log4j. Does anybody know if it can be used with Tomcat? I have a a JSP app running on tomcat that has several beans and classes and was wondering if I could use log4j as a logging tool J _ http://calendar.yahoo.com.au - Yahoo! Calendar - Access your appointments and meetings online.
RE: Please Help--can't set up
I was trying http://localhost/examples/jsp/index.htmlas it is in the how-to file. However, I found out that if I explicitly specify port 8080 it wortks. Do I have to explicitly name the port? I thought that's the default one? Thanks. Dianne Cree [EMAIL PROTECTED] wrote: what url are you trying to hit? -Original Message-From: Yana [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 20, 2001 2:02 PMTo: [EMAIL PROTECTED]Subject: Please Help--can't set up I re-installed tomcat from scratch. tomcat_home and java_home are set up, keys in Apache Software Foundation\Jakarta Isapi Redirector\1.0 are as suggested in the IIS how-to. I am logging at c:\jakarta-tomcat\logs\isapi.log with error level. I get the 404 error but the part that completely puzzles me is the fact that the isapi.log file from above never gets created. Please give some advice--this is very frustrating and someone must have done it right, Also, how do I check that "the "/examples" context works correcly if you access Tomcat directly." Thanks I Do You Yahoo!?Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
Re: log4j and tomcat
Yes it can. You might want to consider creating a log4j.properties file to hold your log4j configuration. Have that file in your WEB-INF/classes dir and tomcat would automatically pick it up. HTH. Anuj. teh j wrote: I have recently started playing with log4j. Does anybody know if it can be used with Tomcat? I have a a JSP app running on tomcat that has several beans and classes and was wondering if I could use log4j as a logging tool
RE: Please Help--can't set up
The default port in your browser is 80; Tomcat's port (as specified in the Connector tag in your server.xml) is probably set to 8080. So, you can either specify the port on the browser every time; or change it in server.xml once and restart Tomcat. -- Bill K. -Original Message-From: Yana [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 20, 2001 4:13 PMTo: [EMAIL PROTECTED]Subject: RE: Please Help--can't set up I was trying http://localhost/examples/jsp/index.htmlas it is in the how-to file. However, I found out that if I explicitly specify port 8080 it wortks. Do I have to explicitly name the port? I thought that's the default one? Thanks. Dianne Cree [EMAIL PROTECTED] wrote: what url are you trying to hit? -Original Message-From: Yana [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 20, 2001 2:02 PMTo: [EMAIL PROTECTED]Subject: Please Help--can't set up I re-installed tomcat from scratch. tomcat_home and java_home are set up, keys in Apache Software Foundation\Jakarta Isapi Redirector\1.0 are as suggested in the IIS how-to. I am logging at c:\jakarta-tomcat\logs\isapi.log with error level. I get the 404 error but the part that completely puzzles me is the fact that the isapi.log file from above never gets created. Please give some advice--this is very frustrating and someone must have done it right, Also, how do I check that "the "/examples" context works correcly if you access Tomcat directly." Thanks I Do You Yahoo!?Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail. Do You Yahoo!?Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail.
RE: Help required
Open tomcat/bin/startup.bat with your favorite editor and do a search on :startServer and see if it is there. If not, that is your problem. If it is there, you may be running command.com and not cmd.exe when executing startup.bat Always use cmd.exe to execute the tomcat scripts. Darrell -Original Message-From: Rajesh Jumde [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 20, 2001 1:56 AMTo: [EMAIL PROTECTED]Subject: Help requiredHello everybody, I am trying to configure Tomcat with IIS5.0 on Windows2000 prof. I followed the document Tomcat IIS How To.. But when i restart the IIS the jakarta filter does not show the green up arrow. As well as when i run Tomcat with bin\startup it gives me the error as The system cannot find the batch label specified - startServer What is the problem? Thanx in advance Rajesh
Re: Apache/Tomcat sendRedirect rpoblem
"Shay Gabay, Nice-Eye" [EMAIL PROTECTED] wrote: I'm having a problem, when a jsp page calls request.sendRedirect to redirect to another page, all of the contents of the page doing the redirect (starting somewhere in the middle) are output before the contents of the target page. Wrong mail list. Forwarding to tomcat-user... _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
PLEASE READ LIST ADMINISTRATORS (original subject was . )
PLEASE READ LIST ADMINISTRATORS Is there anyway you can stomp this garbage? By U.S. laws, this may not be considered spam, but I didn't ask to be put on this companies mailing list, yet they (spammers in general) seem to have targeted yet another public forum for intelligent exchange of ideas. Thanks Scott - Original Message - From: [EMAIL PROTECTED] Sent: Tuesday, March 20, 2001 2:33 PM Subject: . The Internet's Finest and Most Reliable Bulk Email Provider! Since 1996, Tech Data Technologies has provided bulk email service to thousands of well-satisfied customers. We offer the most competitive prices in the industry, made possible by our high percentage of repeat business. We have the most advanced, direct email technology, employed by only a knowledgeable few in the world. We have over 160 million active email addresses, increasing our list at the rate of half a million to one million a month. We will put your product or service instantly and directly into the hands of millions of prospects! You will have instant, guaranteed results, something no other form of marketing can claim. Our turn around time is a remarkable 24 hours. Our email addresses are sorted by country, state, city and target. Your marketing campaign will speed with pinpoint accuracy to your desired audience! Call us for a free consultation at 323 876 6148 [U.S.A.]. For a limited time, take advantage of our special -- Three million general U.S. emails for just $600 per million! We include, at no cost, a bullet proof email address for 30 days, a $400 value! BULK EMAIL PRICES 750,000$562 1,200,000$720 1,600,000$960 3,000,000$1,500 3,000,000+ ...PLEASE CALL FOR A QUOTE Best of ALL, Tech Data Services can be used as a 100% TAX WRITE OFF for your Business! DON'T WAIT! LET TECH DATA TECHNOLOGIES BE YOUR PARTNER!! Under Bill s.1618 TITLE III passed by the 105th U.S. Congress this letter is not considered "spam" as long as we include: 1) contact information and, 2) the way to be removed from future mailings (see below).To Remove Yourself From This List: Please email [EMAIL PROTECTED] with the email address that you would like removed and the word REMOVE in the subject heading.
This is only a test
Testing ___ Do You Yahoo!? Enva mensajes instantneos y recibe alertas de correo con Yahoo! Messenger - http://messenger.yahoo.es
RE: PLEASE READ LIST ADMINISTRATORS (original subject was . )
That spam shit is more foul than ur new born eating swine! -Original Message- From: Scott Barr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 4:40 PM To: [EMAIL PROTECTED] Subject: PLEASE READ LIST ADMINISTRATORS (original subject was . ) Importance: High PLEASE READ LIST ADMINISTRATORS Is there anyway you can stomp this garbage? By U.S. laws, this may not be considered spam, but I didn't ask to be put on this companies mailing list, yet they (spammers in general) seem to have targeted yet another public forum for intelligent exchange of ideas. Thanks Scott - Original Message - From: [EMAIL PROTECTED] Sent: Tuesday, March 20, 2001 2:33 PM Subject: . The Internet's Finest and Most Reliable Bulk Email Provider! Since 1996, Tech Data Technologies has provided bulk email service to thousands of well-satisfied customers. We offer the most competitive prices in the industry, made possible by our high percentage of repeat business. We have the most advanced, direct email technology, employed by only a knowledgeable few in the world. We have over 160 million active email addresses, increasing our list at the rate of half a million to one million a month. We will put your product or service instantly and directly into the hands of millions of prospects! You will have instant, guaranteed results, something no other form of marketing can claim. Our turn around time is a remarkable 24 hours. Our email addresses are sorted by country, state, city and target. Your marketing campaign will speed with pinpoint accuracy to your desired audience! Call us for a free consultation at 323 876 6148 [U.S.A.]. For a limited time, take advantage of our special -- Three million general U.S. emails for just $600 per million! We include, at no cost, a bullet proof email address for 30 days, a $400 value! BULK EMAIL PRICES 750,000$562 1,200,000$720 1,600,000$960 3,000,000$1,500 3,000,000+ ...PLEASE CALL FOR A QUOTE Best of ALL, Tech Data Services can be used as a 100% TAX WRITE OFF for your Business! DON'T WAIT! LET TECH DATA TECHNOLOGIES BE YOUR PARTNER!! Under Bill s.1618 TITLE III passed by the 105th U.S. Congress this letter is not considered "spam" as long as we include: 1) contact information and, 2) the way to be removed from future mailings (see below).To Remove Yourself From This List: Please email [EMAIL PROTECTED] with the email address that you would like removed and the word REMOVE in the subject heading.
Re: PLEASE READ LIST ADMINISTRATORS (original subject was . )
I hope I am misunderstanding your message, Arif. Scott - Original Message - From: Arif Tayebali [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 21, 2001 11:08 AM Subject: RE: PLEASE READ LIST ADMINISTRATORS (original subject was . ) That spam shit is more foul than ur new born eating swine! -Original Message- From: Scott Barr [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 4:40 PM To: [EMAIL PROTECTED] Subject: PLEASE READ LIST ADMINISTRATORS (original subject was . ) Importance: High PLEASE READ LIST ADMINISTRATORS Is there anyway you can stomp this garbage? By U.S. laws, this may not be considered spam, but I didn't ask to be put on this companies mailing list, yet they (spammers in general) seem to have targeted yet another public forum for intelligent exchange of ideas. Thanks Scott - Original Message - From: [EMAIL PROTECTED] Sent: Tuesday, March 20, 2001 2:33 PM Subject: . The Internet's Finest and Most Reliable Bulk Email Provider! Since 1996, Tech Data Technologies has provided bulk email service to thousands of well-satisfied customers. We offer the most competitive prices in the industry, made possible by our high percentage of repeat business. We have the most advanced, direct email technology, employed by only a knowledgeable few in the world. We have over 160 million active email addresses, increasing our list at the rate of half a million to one million a month. We will put your product or service instantly and directly into the hands of millions of prospects! You will have instant, guaranteed results, something no other form of marketing can claim. Our turn around time is a remarkable 24 hours. Our email addresses are sorted by country, state, city and target. Your marketing campaign will speed with pinpoint accuracy to your desired audience! Call us for a free consultation at 323 876 6148 [U.S.A.]. For a limited time, take advantage of our special -- Three million general U.S. emails for just $600 per million! We include, at no cost, a bullet proof email address for 30 days, a $400 value! BULK EMAIL PRICES 750,000$562 1,200,000$720 1,600,000$960 3,000,000$1,500 3,000,000+ ...PLEASE CALL FOR A QUOTE Best of ALL, Tech Data Services can be used as a 100% TAX WRITE OFF for your Business! DON'T WAIT! LET TECH DATA TECHNOLOGIES BE YOUR PARTNER!! Under Bill s.1618 TITLE III passed by the 105th U.S. Congress this letter is not considered "spam" as long as we include: 1) contact information and, 2) the way to be removed from future mailings (see below).To Remove Yourself From This List: Please email [EMAIL PROTECTED] with the email address that you would like removed and the word REMOVE in the subject heading.
apxs - No Shared Object Support for Apache
We are trying to upgrade from jserv_mod to jk_mod, so that we can get SSL to work with our jsp pages. We tried to run apxs as per Gal Shachor's notes at jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html, but got message: cd /usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3/usr/sbin/ apxs -o mod_jk.so -I../jk -I/usr/jdk1.3/include -I/usr/jdk1.3/include/linux -c *.c ../jk/*.c apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/bin/httpd'. apsx:Warning: Continuing anyway... ... ... lots of stuff, including plenty of ... "No such file or directory" errors ... apxs:Break: Command failed with rc=65536 Can anyone suggest what this problem is? Do I have to recompile Apache for some reason (and if so, how)? As I'm floundering here for days already I would really appreciate any and all suggestions! MTIA, Max Hugen
Re: server.xml
Developing Applications With Tomcat talks about it in some detail: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.html Neill Laney http://home.nc.rr.com/nlaney -- Web Developer/Technical Support Specialist. "Laurent Barbier" lbarbier@machinasaTo: [EMAIL PROTECTED] piens.com cc: Subject: server.xml 03/20/2001 05:49 PM Please respond to tomcat-user Is there a dtd for the file server.xml or some detailed explanation on this file ? I'm using Tomcat 3.2.1 Thank-you
classpath question
I have placed a prop.properties file in the WEB_INF/lib directory of my tomcat context. The servlet keep throwing an Exception saying that it cannot find the ResourceBundle. Where should I place this file? From what I have read, the prop.properties file should go into the WEB-INF/lib directory. Where exactly should this file go?? thanks for the help in advance
Re: classpath question
On Tue, 20 Mar 2001, Mark W. Webb wrote: I have placed a prop.properties file in the WEB_INF/lib directory of my tomcat context. The servlet keep throwing an Exception saying that it cannot find the ResourceBundle. Where should I place this file? From what I have read, the prop.properties file should go into the WEB-INF/lib directory. Where exactly should this file go?? I would suggest you place it in WEB-INF/classes instead. If you want it in WEB-INF/lib, you will need to put it inside a JAR file instead. thanks for the help in advance Craig McClanahan
RE: apxs - No Shared Object Support for Apache
It would help to know the version of TC you have and the platform you are running it on - version, etc. The apache version would help also. You may want to look at the TC3.3m2 release. There is an updated mod_jk-howto in it. If you are running Linux, you can get the pre-built version of mod_jk in the same location as the TC3.3m1 or m2 binaries. The version of mod_jk is not dependant on the version of TC3. Also, sounds like your apache wasn't built with DSO support. The latest how-to offers suggestions with that. If you're still having problems, post some more detail on your config. Mike. -- Mike Braden [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: Max Hugen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 5:34 PM To: Tomcat Users List Subject: apxs - No Shared Object Support for Apache We are trying to upgrade from jserv_mod to jk_mod, so that we can get SSL to work with our jsp pages. We tried to run apxs as per Gal Shachor's notes at jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html, but got message: cd /usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3/usr/sbin/ apxs -o mod_jk.so -I../jk -I/usr/jdk1.3/include -I/usr/jdk1.3/include/linux -c *.c ../jk/*.c apxs:Warning: No shared object support for Apache apxs:Warning: available under your platform. Make sure apxs:Warning: the Apache module mod_so is compiled into apxs:Warning: your server binary `/usr/bin/httpd'. apsx:Warning: Continuing anyway... ... ... lots of stuff, including plenty of ... "No such file or directory" errors ... apxs:Break: Command failed with rc=65536 Can anyone suggest what this problem is? Do I have to recompile Apache for some reason (and if so, how)? As I'm floundering here for days already I would really appreciate any and all suggestions! MTIA, Max Hugen
Apache as Proxy
I've searched the archives, but cant really find a clear answer to this question. Can Tomcat be used as a web proxy server (i'm thinking inbound here - using tomcat to proxy requests back to a second tomcat instance on a different machine or port), and if so, what additional code is necessary, and what kinds of things go in server.xml or web.xml to support it? Any clues would be appreciated. TIA Bill
configuring Tomcat on Windows 2000 and IIS
Hi, I've been trying to configure the ISAPI Redirector on Windows 2000 server. I followed the instruction that comes with Tomcat, tomcat_install\doc\tomcat-iis-howto.html. My question is how do I add isapi_redirect.dll as a filter using the IIS management console (configuring the ISAPI Redirector - step 8). I've tried to add Filter DLLs using regedit, but I don't think it worked. How would I set this up in Windows 2000. Where can I see the green up-pointing arrow? Thanks for your help. Hwa-Su Kim
Class loader behavior with resource bundles...
First off, if the following has an answer that's been posted before, my apologies. I searched the archives (and the Web in general) and didn't get any hits. Really. I swear! :-) I am going to try and be as detailed as possible, because it appears that it COULD be a Tomcat bug, since the behavior displayed is different depending on whether it's Tomcat under Windows 2000 or Linux. So bear with me, this is long. However, I'd appreciate any insight, if it is NOT a bug, as to why the behavior is different on those two platforms, and what we could have done to have mitigated it in the first place. Luckily, I found out how to fix the non-optimal behavior, but that just leaves me confused as to why, and nervous that we don't understand the environment as well as we should (what else is lurking to bite us?) o Tomcat version 3.1.1 o Redhat 7.0 with up2date on everything within a week or so. o Windows 2000 SP1 o JDK 1.3 1) I created a set of Java classes in a package, let's call it com.foo.bar. There are the main classes, some exception classes, and a ListResourceBundle class, FooListResourceBundle, for holding error messages used when an exception is thrown. 2) The main classes in com.foo.bar load the resource bundle in a static initializer as follows: /** *** Initialize error messages. **/ static { try { msgs = java.util.ResourceBundle.getBundle("com.foo.bar.FooListResourceBundle"); } catch (Throwable t) { // Note that we can't throw our own exception here // (not allowed in static initializers). // See initializer() for where we DO throw the exception // if this didn't load correctly. } } As per the comments, the initializer method, called by all constructors, simply checks the msgs field for null, and throws an exception if it is so. This is how we know the problem exists later on. 3) Tested the library code using unit tests at the command line. Everything works great. 4) Published code to colleague who is doing actual servlet writing. Colleague is developing under Windows 2000, running Tomcat there. He installed my code (more on that in a bit), wrote his servlets to call it, tested it. Everything worked great. 5) Colleague published his code, along with mine, to QA. QA is running Tomcat under Linux (the final product distribution will be released on Linux). Right away, we get the first error, which is the exception from my main class that is thrown in the initializer method when it detects the resource bundle wasn't successfully loaded. 6) Started poking around. I delivered the code to my colleague in both jar and class file forms, he has decided to install it for his servlet as classes under WEB-INF/classes/com/foo/bar. The class loader is obviously finding the main class from there (since that class is throwing a custom exception because it can't find the resource bundle), so why can't it load the resource bundle class file, which is in the same package, from the same location? 7) After much hacking and poking around, I figure out that I can get past this if I create a properties file that has the appropriate contents in it, and place it under $TOMCAT_HOME/classes/com/foo/bar. Placing the class file there doesn't work. Only the properties file works (as far as loading is concerned, but read on). See java.util.ResourceBundle JDK docs if you don't know about being able to back a bundle with a properties file. 8) So, I think "that's weird", but am happy - kind of. Because (a) I still don't know WHY the class loader choked, and (b) the lack of problems lasts for about a day. Then I get a new bug from QA. This one occurs when my main class tries to throw an exception and tries to look up an error message from the resource bundle (which is now backed by the properties file, remember). In this case, the message is: Error: 500 Location: /you/go Internal Servlet Error: java.lang.ClassFormatError: com/foo/bar/FooListResourceBundle (Illegal constant pool index) Arg! 9) I do some more hacking around. Finally figure out that everything will work great if I use the jar file, Foo.jar, and place it in WEB-INF/lib. I also have to remove the existing class files from WEB-INF/classes/com/foo/bar, or otherwise the main class gets loaded from there first, and we are back to the symptoms in #5. So, wise ones on the list, I beseech thee! What were we doing wrong? Why can't the class loader load a resource bundle class file, in the same package, from the same location from which it's just loaded the main class that is using the bundle? Why did it work in the first place on Tomcat under Windows 2000, and not under Linux, for the same release of Tomcat? I am confused, and would appreciate ANY pointers to documentation that says, "Look, dummy, you're doing it wrong", so that I might adopt my best Colonel Foghorn Leghorn voice and mutter, "I see that I was mistaken." Otherwise, can someone confirm that verily, this does seem to be a bug? We will be upgrading to a later release of
RE: Class loader behavior with resource bundles...
I have only one guess: you've got the wrong package (or no package) in your ListResourceBundle implementation,... -- Bill K. -Original Message- From: James Lehmer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 6:48 PM To: [EMAIL PROTECTED] Subject: Class loader behavior with resource bundles... First off, if the following has an answer that's been posted before, my apologies. I searched the archives (and the Web in general) and didn't get any hits. Really. I swear! :-) I am going to try and be as detailed as possible, because it appears that it COULD be a Tomcat bug, since the behavior displayed is different depending on whether it's Tomcat under Windows 2000 or Linux. So bear with me, this is long. However, I'd appreciate any insight, if it is NOT a bug, as to why the behavior is different on those two platforms, and what we could have done to have mitigated it in the first place. Luckily, I found out how to fix the non-optimal behavior, but that just leaves me confused as to why, and nervous that we don't understand the environment as well as we should (what else is lurking to bite us?) o Tomcat version 3.1.1 o Redhat 7.0 with up2date on everything within a week or so. o Windows 2000 SP1 o JDK 1.3 1) I created a set of Java classes in a package, let's call it com.foo.bar. There are the main classes, some exception classes, and a ListResourceBundle class, FooListResourceBundle, for holding error messages used when an exception is thrown. 2) The main classes in com.foo.bar load the resource bundle in a static initializer as follows: /** *** Initialize error messages. **/ static { try { msgs = java.util.ResourceBundle.getBundle("com.foo.bar.FooListResourc eBundle"); } catch (Throwable t) { // Note that we can't throw our own exception here // (not allowed in static initializers). // See initializer() for where we DO throw the exception // if this didn't load correctly. } } As per the comments, the initializer method, called by all constructors, simply checks the msgs field for null, and throws an exception if it is so. This is how we know the problem exists later on. 3) Tested the library code using unit tests at the command line. Everything works great. 4) Published code to colleague who is doing actual servlet writing. Colleague is developing under Windows 2000, running Tomcat there. He installed my code (more on that in a bit), wrote his servlets to call it, tested it. Everything worked great. 5) Colleague published his code, along with mine, to QA. QA is running Tomcat under Linux (the final product distribution will be released on Linux). Right away, we get the first error, which is the exception from my main class that is thrown in the initializer method when it detects the resource bundle wasn't successfully loaded. 6) Started poking around. I delivered the code to my colleague in both jar and class file forms, he has decided to install it for his servlet as classes under WEB-INF/classes/com/foo/bar. The class loader is obviously finding the main class from there (since that class is throwing a custom exception because it can't find the resource bundle), so why can't it load the resource bundle class file, which is in the same package, from the same location? 7) After much hacking and poking around, I figure out that I can get past this if I create a properties file that has the appropriate contents in it, and place it under $TOMCAT_HOME/classes/com/foo/bar. Placing the class file there doesn't work. Only the properties file works (as far as loading is concerned, but read on). See java.util.ResourceBundle JDK docs if you don't know about being able to back a bundle with a properties file. 8) So, I think "that's weird", but am happy - kind of. Because (a) I still don't know WHY the class loader choked, and (b) the lack of problems lasts for about a day. Then I get a new bug from QA. This one occurs when my main class tries to throw an exception and tries to look up an error message from the resource bundle (which is now backed by the properties file, remember). In this case, the message is: Error: 500 Location: /you/go Internal Servlet Error: java.lang.ClassFormatError: com/foo/bar/FooListResourceBundle (Illegal constant pool index) Arg! 9) I do some more hacking around. Finally figure out that everything will work great if I use the jar file, Foo.jar, and place it in WEB-INF/lib. I also have to remove the existing class files from WEB-INF/classes/com/foo/bar, or otherwise the main class gets loaded from there first, and we are back to the symptoms in #5. So, wise ones on the list, I beseech thee! What were we doing wrong? Why can't the class loader load a resource bundle class file, in
RE: Class loader behavior with resource bundles...
I have only one guess: you've got the wrong package (or no package) in your ListResourceBundle implementation,... No - I just double-checked that, and it's the same package (correctly spelled :-). Remember: 1) It works when the class unit tests are exercised on the command line. 2) It works on Tomcat under W2K. Jim Dilbert: I *have* a personality! Dogbert: Let's not get into that "Is zero a number" debate again. smime.p7s
ROOT added to realpath???
Tomcat configuration issue: I've added a new app in the webapps directory, with appropriate sub dirs, etc. When I restart tomcat and apache, I get a 404 error when trying to hit a jsp (index.jsp). The jasper.log shows : ServletPath: /foo/index.jsp RealPath: /usr/local/tomcat/webapps/ROOT/foo/index.jsp Classpath according to the Servlet Engine is: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes It should be: ServletPath: /foo/index.jsp RealPath: /usr/local/tomcat/webapps/foo/index.jsp Classpath according to the Servlet Engine is: /usr/local/tomcat/webapps/foo/WEB-INF/classes server.xml states that new apps DO NOT have to be entered if in the webapps directory, but I added this just in case: Context path="/foo" docBase="webapps/foo" crossContext="false" debug="0" reloadable="true" /Context Any ideas what is causing this problem? -- Mark Lundquist [EMAIL PROTECTED]