struts / turbine etc.
Has any one used struts, turbine or any other class framework for programming web applicattions? I was wondering if they are worth the effort to learn them, and if so which one is the best and or most popular. Thanks for your ideas, Ivan
Re: how can i get apache to redirect a whole subdir to a servlet ?
Hi, try mod_rewrite. It's great! You have a nice doc in Apache's docs. cu. o,,,o ( 'o' ) (''')(''') __ Interpersonal Computing GmbH Dieter Plank Fachinformatiker - Anwendungsentwicklung (IHK) -Entwicklung- Augustenstrasse 20 - 22 80333 Muenchen Tel: ++49 89 219975-0 Web: http://www.ipc.de Mail: [EMAIL PROTECTED] - Original Message - From: Hussayn Dabbous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 10:08 PM Subject: how can i get apache to redirect a whole subdir to a servlet ? Hy, there; i need to tunnel a whole subdirectory of my server through a servlet, that does some internal access rights checking. Is it possible to configure tomcat/apache in a way, that all requests within a specific subdir are forwarded to a servlet ? I already tried it by creating a ...webapps/zone/WEB_INF/web.xml by using the following servlet-mapping within the tomcat-config: -- web-app servlet servlet-namezone-checker/servlet-name servlet-classcom.saxess.ZoneChecker/servlet-class /servlet servlet-mapping servlet-namezone-checker/servlet-name url-pattern/zone/safe-area/*/url-pattern /servlet-mapping /web-app - I checkecd, that the Servlet can be accessed by issuing this url: http://localhost/zone/servlet/zone-checker This is the expected behaviour. But the servlet is NOT invoked, when i try e.g.: http://localhost/zone/safe-area/index.html which i expected also to be served from the servlet due to the servlet-mapping rule above. Instead the index.html file is simply displayed in the broswer. Maybe tomcat does not know about the servlet-mapping ? For the server-config, i used following : - ... Alias /zone /mnt2/local/install/apache/jakarta/build/tomcat/webapps/zone Directory /mnt2/local/install/apache/jakarta/build/tomcat/webapps/zone Options Indexes FollowSymLinks /Directory ApJServMount /zone/servlet /zone Location /zone/WEB-INF/ AllowOverride None deny from all /Location Location /zone/META-INF/ AllowOverride None deny from all /Location LocationMatch /zone/*.jsp SetHandler jserv-servlet /LocationMatch LocationMatch /zone/safe/* SetHandler jserv-servlet /LocationMatch ... - Again i tried out lots of combinations, but none brought the desired results. Even, if i redirect all requests from apache to tomcat as follows: ApJServMount /zone ajpv12://localhost:8007/zone Nothing happens (except the index.html is simply displayed) Maybe i completely missunderstand something here ? Anyone can help me ? That would be great. Thanks, Hussayn -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED]
Help Install TOMCAT under APACHE
Hi, After installing TOMCAT, try to get the mod_jk.so module, and finally compile it and copy it under the well directory, I try to start Apache. Well, an error occurs as : API module structure 'jk_module' in file mod_jk.so is garbled - perhaps this is not an APache module DSO? What's happening ? Thanks for help PS
RE: Tomcat on Linux RH7 installation help
Did you install the apache RPM, or compile from source or binary tgz? The RPM system will only know about apache if you installed it as an rpm file. try: $ rpm -q apache to see if rpm thinks apache is installed. Redhat 7.0 came with a EAPIfied Apache since it's in fact Apache use mod_ssl. If you have apache installed but still have problem use : rpm -ivh tomcat-mod-3.2.1-1.i386.rpm --nodeps -Mark [EMAIL PROTECTED] On Sat, 28 Apr 2001, Paul Titze wrote: Hi, I'm running Linux RedHat 7 with Apache 1.3.14. Installed Apache Ok and seems to be running fine. Now I downloaded the Tomcat RPM tomcat-mod-3.2.1-1.i386.rpm and tried to install it on my machine: rpm -ivh tomcat-mod-3.2.1-1.i386.rpm and get the following error message: error: failed dependencies: apache is needed by tomcat-mod-3.2.1-1 ?? Apache is installed OK, if I do a httpd -V I get the usual info and no errors when I start it up. Did I forget something? Cheers, Paul Titze. WizLab http://wizlab.com Cheers, Paul Titze. --- Phil Travel Service PTY. LTD. suite 2, level 6 105 Pitt St. Sydney 2000 AUSTRALIA Paul Titze Ph: (612) 9232-5677 Fax: (612) 9235-3142 Email : [EMAIL PROTECTED] Webpage : http://airdiscounter.com est. 1982 Member: ASFA, IATA, Global Village ---
RE: Tomcat on Linux RH7 installation help
There is up to date Apache RPM for Redhat 7.0 : Apache 1.3.19 / mod_ssl 2.8.2 : ftp://ftp.falsehope.com/home/gomez/apache/ Regards - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Barthélémy TEHAM [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 10:45 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat on Linux RH7 installation help --- Mark Howell [EMAIL PROTECTED] a écrit : Did you install the apache RPM, or compile from source or binary tgz? The RPM system will only know about apache if you installed it as an rpm file. Apache RPM is install by default in RH7 if $rpm -q apache return the name of package apache.version If Apache is intalled and running fine Use command $rpm -hiv --nodeps tomcat-mod-3.2.1-1.i386.rpm else try to reinstall apache and install tomcat = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com
RE: Tomcat 3.2.2 release schedule
What about mod_jk stuff ? mod_jk in TC 3.3 fixes many problems (like Apache freeze in case of Tomcat restart) but that code is still not back ported to TC 3.2. (There was discussion some times ago about what to put in 3.2). We are now in a strange situation where people wanting a fixed mod_jk will have to use the one from Tomcat 3.3 !) Thanks for comments, Marc, Dan, Larry, Keith and others . - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Marc Saegesser [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 12:34 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat 3.2.2 release schedule I recently fixed a couple thread synchronization and spec compliance issues in jasper for Tomcat 3.2.2b3. There will be a beta 4 release probably early next week to make those fixes public. If no serious problems are found during that beta period, I'll start the process of finalizing the release about a week after that. We're probably a 2-3 weeks from final release, but that might change depending how the beta release goes. -Original Message- From: Yair Zadik [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 11:55 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.2 release schedule Does anyone know when Tomcat 3.2.2 is scheduled for final release? Looking through the changes page, I believe that we've been running into a bug in Tomcat 3.1.1 (our production release) thats fixed in 3.2.2 but not 3.2.1. We're going into a QA cycle for our next release within the next couple of weeks and I'd like to pull tomcat 3.2.2 into it if possible (we'll be using 3.2.1 otherwise), but not if there isn't a really good chance that it will be final by then. The last 3.2.2 announcment I've seen was http://marc.theaimsgroup.com/?l=tomcat-devm=98670258524812w=2 from April 8 that was for 3.2.2 beta 3. Yair
RE: Apache, Tomcat, Ajp12 and SSL_CLIENT_S_DN
We could still have more SSL env vars passed from Web server to Tomcat, but AJP13 was designed to be small and fast and thus try to remove unnecessary datas from feeds. But you're demand is valid (adding more HTTP vars), and yes we'll must add a strategy to ajp protocol where Tomcat could ask web server to send more env vars. Stay tuned. - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: David Wall [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 6:27 PM To: [EMAIL PROTECTED] Subject: Re: Apache, Tomcat, Ajp12 and SSL_CLIENT_S_DN But AJP13 only sends a few SSL environment params, not all of them as would be nice. David - Original Message - From: GOMEZ Henri To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 5:47 AM Subject: RE: Apache, Tomcat, Ajp12 and SSL_CLIENT_S_DN mod_jk send SSL informations only in AJP13 ! Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: srinivasa siripurapu [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 2:55 AM To: [EMAIL PROTECTED] Subject: Apache, Tomcat, Ajp12 and SSL_CLIENT_S_DN Hi All. I am running Apache1.3.9 with mod_jserv and Tomcat3.2.1 with Ajp12 on solaris. I would like to extract SSL_CLIENT_S_DN in the servlet. Is there a way to do this with the present setup? or do i need to go to other modules like mod_jk. But i am not sure of whether mod_jk sends the SSL_CLIENT_S_DN. Also I got a problem with starting apache with mod_jk. Error from the logs is Error while opening the workers. this is also with the same setup but with Ajp13 protocol. Is there any thing i am doing wrong? Thanks Srini Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: JDBCRealm not working with cookies disabled...
This is not a problem of JDBCRealm..instead is a problem of 3.2.X, as the form authentication does not work with cookies disabled...this problem is Solved on 3.3 Nightly build.i dont know how it works on 4.0 .. The JDBCRealm has nothing to do with web.xml file..it's only a way to store users credentials...so in either case the problem can not be solved in JDBCRealm.. Saludos , Ignacio J. Ortega -Mensaje original- De: Jeff Kilbride [mailto:[EMAIL PROTECTED]] Enviado el: lunes 30 de abril de 2001 0:51 Para: [EMAIL PROTECTED] Asunto: JDBCRealm not working with cookies disabled... Hi All, I have a JDBCRealm setup and working with Tomcat 3.2.1, Redhat 6.2 (2.4.3 kernel), and MySQL. Everything works fine until I disable cookies in Internet Explorer (v5.5, WindowsNT 4.0sp6a). Once cookies are disabled, the realm stops working and doesn't write the JSESSIONID into the URL. Am I missing anything in the configuration? Here are the tomcat.log entries: 2001-04-29 04:43:57 - ContextManager: JDBCRealm: Authentication unsuccessful for user null 2001-04-29 04:44:15 - Ctx( www.mydomain.com: ): From login without a session I'm assuming that From login should really be Form login. Shouldn't Tomcat re-write the session id into the URL automatically when cookies are disabled on the browser? Any help is appreciated. Thanks, --jeff
RE: Authentiication problem
This is a normal behavior...if you use BASIC auth the browser send the auth header in every later access to the protected resources ..the ony way to get rid of the sended credentials is to close the browser and inititiate another different browser..this time you will the auth dialog coming up another time.. Saludos , Ignacio J. Ortega -Mensaje original- De: Pradeep BS [mailto:[EMAIL PROTECTED]] Enviado el: lunes 30 de abril de 2001 5:55 Para: [EMAIL PROTECTED] Asunto: Authentiication problem Hi, We are facing a strange problem It goes something like this... 1. We're using Tomcat as a stand alone servlet engine. we've set up authentication for accessing certain web pages. 2. First time if we access a web page ( ex: default.html) the browser prompts for username password. 3. Now we delete the browser cache and change the system date to a previous date. 4. Close the browser and open a new browser. Again if we try to access default.html the username/password dialog does not pop up. Can some one help ? The browser we're using is IE 5.0 Thanx Pradeep application/ms-tnef
Re: Default home for server
--- Krishna Kant T [EMAIL PROTECTED] a écrit : Yes, i am trying to set /ROOT/muDir as default webserver home dir You have to change your DocumentRoot path in your webserver configuration file then. Try it. = Barthélémy TEHAM - E-mail : [EMAIL PROTECTED] Website: http://teham.free.fr ___ Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com
Re: Accessing Context Parameters from JSP Page...
Hi Milt, Thanks for responding. I've actually figured out my problem, and it was (unfortunately) far more mundane. What I'd done was the following: jsp:setProperty name=blah property=blahblah value=%= application.getInitParameter(dbURL) %/ Which, of course, cause the problem because of the quoting. Once I changed the outer quotes from double quotes to single quotes, everything worked fine. I actually used to live in Urbana, many many moons ago (I left in 1977), I imagine it's changed a bit in the interim Thanks again. Brendan -- Brendan McKennaEmail: [EMAIL PROTECTED] Development Strategist Phone: +353-61-338177 Taringold Ltd. Fax: +353-61-338065
tomcat dead but subsys locked
Hello, When ever I check the status of Tomcat I get the following output: tomcat dead but subsys locked How can I find out why it is dead and what is killing it. The system is RH 7.0 Thanks in advance. Stuart
jk_log : referenced symbol not found
Hi, After compiling the mod_jk, I've got the mod_jk.so I try to restart Apache but I have this error : jk_log : referenced symbol not found Sombebody can help me ? PS
Tomcat and MySQL
Hi to all! I use Tomcat together with mysql to store my data. I wrote an servlet at school that uses an Oracle Database to store and retrieve data. It worked fine. So I wanted to use this servlet at home too. I changed the JDBC driver but now i get in the tomcat.log file an exception. The source of the exception is, that i cn't connect to my database. in my tomcat.log - file i found this entry: 2001-04-30 10:50:05 - Ctx( /examples ): Exception in: R( /examples + /servlet/Navigation + null) - java.lang.NoClassDefFoundError: org/gjt/mm/mysql/Driver at JDBCAdapter.init(JDBCAdapter.java:48) at Navigation.doGet(Navigation.java:35) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.JNIConnectionHandler.processConnection(J NIConnectionHandler.java:167) at org.apache.tomcat.service.JNIEndpoint.service(JNIEndpoint.java:162) Before i had some other errors. I change the classpath that the mysql-jdbc driver is also in it. And now the error mentioned above occours. Is this a problem of my classpath and why does the exception writes: org/gjt/mm/my an not org.gjt.mm.my.? I know this is not a problem of tomcat, but I think many of you use the mysql database with java. Perhaps someone can help me. Thanks in advance, Robert
Re: persistent Session-Storage
Jakob Praher typed the following on 08:19 PM 4/28/2001 +0200 can anybody tell me, whether persistent Session-Storage will be implemented before the release of tomcat-4.0? It is implemented in the current CVS repository, so should show up in the next beta (not sure when that will be). You can get it from CVS - it's not implemented by default though, you'll have to look through the server.xml and configure it. somewhere I read that one versoin uses javaspaces technology as persistence model - can anybody give me some information about that? This hasn't been implemented - currently we have file and JDBC based session persistence. Javaspaces would be useful for an implementation of distributed sessions, but wouldn't make much sense for single-JVM persistence. are there any source-files in the current source tree? Yes, see org/apache/catalina/session/*.java Kief
Re: Objects in Vector are loosing type
On Fri, 27 Apr 2001, Ivan wrote: | thank you very much for your reply | | I turned off my computer and tried it again a few hours later and it seemed | to work, then i made changes and then the second servlet wasnt able to cast | back to CHyperlink again. after putting the code back the way I had it, it | still wouldnt work. You're having the reload problem, and each time you restart tomcat, everything will work for you. It's because tomcat's reloading are totally fucked. This goes for all versions, but 4 should apparently have som new stuff, which basically reboots the whole webapp and serializes/deserializes everything in users' sessions if anything changes.. -- Mvh, Endre
sessionid via Cookies and URL
I have a question about how to switch the way sessionid is passed, by url or by cookie. My situation is as follows: We have a an application that is not directly called by a user but via another server. This other server is called by the user and shows our output as part of the page of the other server. To maintain session we added a jsessionid as parameter to each link to the other server. The other server then takes the parameter jsessionid and adds it as a path extension with ; to the URL to call our server. This all works, we manage to maintain session for each user. At a certain moment the user is completely switching over to our application. That is, one of the URLs the user can click on his page is directly linked to our server. The application on our own server just uses normal session handling, ie cookie sending by default. Whenever our pages are called via the other server, this doesn't matter as the other server doesn't accept cookies and we added jsessionid in the url explicitly. Now however we reach a page on our server directly with an existing session we want to maintain. And we want to continue using cookies for session state. I discovered that usually session cookies are only set when there is a request.getSession(true) call and this method discovers that there is no existing session. The first time a page is accessed on our server we still have the session via URL, but all next pages expect cookies. What I did is that I added a cookie explicitly in the code of the first page, hopefully similar in the way tomcat does it: //all users will pass this servlet //when identifying themselves //leave a cookie in this place directly on the client's browser try { String contextPath = req.getContextPath(); if ((contextPath == null) || (contextPath.length() = 0)) { contextPath=/; } StringBuffer buf = new StringBuffer(); buf.append(JSESSIONID=); buf.append(session.getId()); buf.append(;Path=); buf.append(contextPath); String version0Text = buf.toString(); res.setHeader(Set-Cookie,version0Text); } catch (Exception e) { Debug.println(failed to add a cookie on the user browser from VerifyServlet); Debug.println(e.toString()); } I expect that this cookie is overwriting any other already existing cookie. I tested this in a simple way, and it least it seems that tomcat in this way is able to maintain the session and that the next pages can continue doing their work. Now I get to my questions: 1) should I also do this for a version1 cookie or version0 only sufficient? When is 0 used, when 1? 2)currently I am using tomcat 3.1 on linux. I noticed that 3.1 and 3.2 have different behaviour. In 3.1 if there are both a jsessionid in url and in cookie, the sessionid in the url gets priority. In 3.2 if they both exist, the one in the cookie gets priority. The behaviour of 3.2 is awkward. If I at one time get a session cookie in my browser and then want to start a new session, build up a session via the other server and then switch back to my server, my server will first recognise the cookie of the previous session and not use the session that I passed explicitly by URL. I also see no way like this to invalidate the previous session. The user can start a new session by calling a page on the other server. Whenever a page on the other server is called, my server has no access to the user's browser. How can I invalidate the previous session?? 3) What does an invalidate call actually do? If I have a direct connection between user and my server, does it destroy the cookie in the browser as well, or does it only invalidate the session in the tomcat-instance's memory and leave the cookie as is. 4)I noticed that 3.2 has the ability to switch off cookie use. This is not what I need; is there also something that can manipulate whether sessionid by cookies or url have priority? Hope someone can help me, Regards, Jan Kester
Installation on Windows ME
Hi, Probably a very simple question to be asking, but here goes: Is it possible to / has anybody installed Tomcat on Windows ME ? I run Tomcat on NT and all works well, but have major errors when trying to run it on Windows ME. It seems there is an issue with dynamically setting environment variables in WinME. Has anyone seen this or know of a workaround ? Any help much appreciated, Regards Kevin Broderick
Re: 2 Critical Problems with Tomcat 3.2.x
Andrew I am having a similar white screen problem with Tomcat 3.1 on a production system. One of the JSPs works fine, there is nothing wrong with the code, it has gone through some fairly rigorous testing. However, every couple of days, the JSP white screens. I've spent some time looking into it, and initially I thought there was something wrong with the JSP, not being able to open database connections (our database wasn't configured to allow a high number of connections), however, this isn't the problem. You mentioned in one of your emails that you were able to reproduce the problem. Can you tell me how you did this, as we have had difficulty reproducing it. We've tried pointing stress test tools at the particular JSP to no effect. We are running tomcat under Red hat linux 6.2 with JDK 1.3. We use Apache, JServ and Tomcat. Any thoughts/help on this would be appreciated. I'm going to try modifying our max_threads settings and see if that gets us anywhere, but info on reproducing this would be invaluable. Regards, Ronan
Newbie problem starting web server.
version: tomcat 3.1 platform: win98 I'm new in configuring tomcat and fail to start the web server. I've following questions: 1) can I run the tomcat web server on Win98 (9X)? or must be WinNT/2000? 2) after I type 'startup' from the /bin directory, another DOS window prompts up w/ the log (see blow). From this point on, I try using my browser and type: http://localhost:8080(or http://localhost:8080/index.html). The web server seems not running and the browser prompts me to connect to internet. I don't know how to capture the screen log, below is the extract: (It said 'File not found C:\Apache\Tomcat\webapps\ADMIN.WAR' but the file is in that directory. So' I don't know why) Context log: path="/ADMIN.WAR" File not found C:\Apache\Tomcat\webapps\ADMIN.WAR\WEB-INF\web.xml, using only defaultsContext log path="/ADMIN.WAR" :jsp: initContext log path="/ADMIN.WAR" :default: initContext log path="/TEST.WAR" :tomcat.errorPage: initContext log: path="/TEST.WAR" File not found C:\Apache\Tomcat\webapps\TEST.WAR\WEB-INF\web.xml, using only defaultsContext log path="/TEST.WAR" :jsp: initContext log path="/TEST.WAR" :default: initContext log path="/test" :tomcat.errorPage: initContext log path="/test" :jsp: initContext log path="/test" :default: initContext log path="/EXAMPLES.WAR" :tomcat.errorPage: initContext log: path="/EXAMPLES.WAR" File not found C:\Apache\Tomcat\webapps\EXAMPLES.WAR\WEB-INF\web.xml, using only defaultsContext log path="/EXAMPLES.WAR" :jsp: initContext log path="/EXAMPLES.WAR" :default: initContext log path="" :tomcat.errorPage: initContext log path="" :jsp: initContext log path="" :default: initStarting endpoint port="8080" handler="org.apache.tomcat.service.http.HttpConnectionHandler"Starting endpoint port="8007" handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler" 3) I don't see the tomcat/logs files updated. how to turn the log function on? I'm stuck at this point. Your help is much appreiated. thanks, jackling.
How to precompile the jsps?
Hai all, I have used jspc.sh to compile the jsps. I have invoked the jspc like below From the tomcat bin directory $./jspc.sh -d ../work/localhost_8080%2Fmycontext/ -webapp ../webapps/mycontext This results in only parsed jsp files(.java files) not the .class files. Any options to be included? waiting for ur reply kamesh jayachandran -- Hardware simply does not work like the manual says and no amount of Zen contemplation will ever make you at one with a 3c905B ethernet card. - Alan Cox
Re: Tomcat and MySQL
Hi, Try to put your mysql-comp.jar and mysql-uncomp.jar in the war/WEB-INF/lib of your app. It should do the trick. Benoît Hi to all! I use Tomcat together with mysql to store my data. I wrote an servlet at school that uses an Oracle Database to store and retrieve data. It worked fine. So I wanted to use this servlet at home too. I changed the JDBC driver but now i get in the tomcat.log file an exception. The source of the exception is, that i cn't connect to my database. in my tomcat.log - file i found this entry: 2001-04-30 10:50:05 - Ctx( /examples ): Exception in: R( /examples + /servlet/Navigation + null) - java.lang.NoClassDefFoundError: org/gjt/mm/mysql/Driver at JDBCAdapter.init(JDBCAdapter.java:48) at Navigation.doGet(Navigation.java:35) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:7 9 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.JNIConnectionHandler.processConnection( J NIConnectionHandler.java:167) at org.apache.tomcat.service.JNIEndpoint.service(JNIEndpoint.java:162) Before i had some other errors. I change the classpath that the mysql-jdbc driver is also in it. And now the error mentioned above occours. Is this a problem of my classpath and why does the exception writes: org/gjt/mm/my an not org.gjt.mm.my.? I know this is not a problem of tomcat, but I think many of you use the mysql database with java. Perhaps someone can help me. Thanks in advance, Robert
Re: How to precompile the jsps?
Hai all, I have used jspc.sh to compile the jsps. I have invoked the jspc like below From the tomcat bin directory $./jspc.sh -d ../work/localhost_8080%2Fmycontext/ -webapp ../webapps/mycontext This results in only parsed jsp files(.java files) not the .class files. jspC Commandline isn'nt doing the work for you, you have to compile it manually or use ant or some other make-tool to do the work. Any options to be included? waiting for ur reply kamesh jayachandran -- Hardware simply does not work like the manual says and no amount of Zen contemplation will ever make you at one with a 3c905B ethernet card. - Alan Cox
RE: Tomcat configuration for wml support
you may need to add all of the mime types required for wml to the web.xml file. mime-mapping extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping mime-mapping extensionwbmp/extension mime-typeimage/vnd.wap.wbmp/mime-type /mime-mapping There are others but these will get wml files and wbmps to work. If you are using tomcat with apache, you may need to add the mime types to your apache conf files. Hope this helps. - Ronan Derby / Senior Software Engineer Púca [EMAIL PROTECTED] main switch: +353 (0)1 6341480 direct line: +353 (0)1 6341483 fax line: +353 (0)1 6341481 1 Harcourt Terrace, Dublin 2, Ireland - http://www.puca.ie -Original Message-From: nwadehra [mailto:[EMAIL PROTECTED]]Sent: 01 May 2001 13:23To: [EMAIL PROTECTED]Subject: Tomcat configuration for wml support Hi, How can I configure tomcat for wml? Regards Nidhi
How to turn off jsp auto-loading/compiling
Hi, I have looked everywhere on this. Does anyone know how to configure tomcat so that it won't check the jsp file's date everytime before executing the code? We want to turn this off to speed things up a bit. Thanks, Christian
web.xml, jserv_mod and Apache
I have servlet mappings in my web.xml file that map URI's to servlets. These URI's may contain files with jsp extent ions on them. when I integrate Tomcat 3.2.1 with Apache I can see any of my jsp's and servlets and have them execute. However, it appears that the mappings I supplied in web.xml are gone. Here's an example in stand alone Tomcat: http://host:8080/VDC/Component gets sent to maps to my /VDC/servlets/Dispatch and http://host:8080/VDC/Component/main.jsp also maps to /VDC/servlets/Dispatch this is because my web.xml looks like this: servlet-nameDispatch/servlet-name servlet-classvdc.uis.Dispatch/servlet-class load-on-startup4/load-on-startup /servlet servlet-mapping servlet-nameDispatch/servlet-name url-pattern/Component/*/url-pattern /servlet-mapping Dispatch is responsible for doing some work and the forwarding the request to /VDC/Component/main.jsp. This works great in standalone tomcat. However when I try to use Apache to access http://host/VDC/Component/main.jsp instead of going to Dispatch it goes directly to the jsp file. This appears to be because the mappings outlined in web.xml seem to be ignored. Is it true that web.xml is not used by Apache/jserv_mod? if so, how can I write a an entry in the apache-tomcat.conf that will accomplish this same mapping? thanks, Mark
RE: Wierd Casting Problem. Tomocat Bug?
I believe we came to that conclusion earlier in the Thread. I think we are (or maybe just me) complaining about this flaw in Tomcat. -Original Message- From: Ivan [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 9:38 PM To: [EMAIL PROTECTED] Subject: Re: Wierd Casting Problem. Tomocat Bug? Did you guys notice that the problem goes away when you restart Tomcat? I posted this earlier, but I found this problem due to rebuilding classes while Tomcat is running and then the classes have different time stamps from the ones already loaded on Tomcat. If you restart Tomcat after making changes, see if everything works? - Original Message - From: Cory L Hubert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 29, 2001 11:56 PM Subject: RE: Wierd Casting Problem. Tomocat Bug? The casting itself isn't the problem. The issue is the ClassLoader. When jasper tries to pick up classes off tomcat's classpath dynamically issues popup. For example. You can be working on a JSP file. Hit it from the browser. It compiles, everything is fine. Now. You want to import a file that is in your WEB-INF/classes directory.So you do a %@page import= and try Cast an extisting object (one that was in the previously compile page) to the type you just imported. Most likely you will get a ClassCastException even though it is an instanceof what your trying to cast to. You can regenerate this error on Win32. I haven't tried it on Unix. But I wouldn't be suprised if this didn't happen at all on Unix. Over all. Tomcat just needs to support better ClassLoading support on Win32. Which I am pretty sure is a development environment for most of us. -Original Message- From: Warren Crossing [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 5:19 PM To: '[EMAIL PROTECTED]' Subject: RE: Wierd Casting Problem. Tomocat Bug? Hi, I have experienced the same problem, in varying degrees of complexity.. I think it may be possible to trick java using Serialization the serialVersionUID field in a class. the tool serialver displays the serialVersionUID of a class and this use of serialization is typically used in streaming objects across physical, logical persistence boundaries.. Really sketchy answer i know.. but may be worth looking into.. Someone must know something about safe casting? Wozza. -Original Message- From: Ivan [mailto:[EMAIL PROTECTED]] Sent: Monday, 30 April 2001 5:10 AM To: [EMAIL PROTECTED] Subject: Re: Wierd Casting Problem. Tomocat Bug? I posted the same problem yesterday but totally solved it on my case two things Technically Java should only allow you to cast an object to a superclass or subclass of the class, so if member is not inherited from Object then trying to cast an object to a member should fail. however i found this rule not enforced. What i found was that i was rebuilding as i tested without restarting the server and thus the object in the vector had a diffrenent time stamp than the class i just rebuilt which is why the instanceof test failed even thought it returned the exaxt class name i was testing for. Therefore, make sure to restart your server after you rebuild your code or else the types wont match since the old class signature may already be loaded. Hope this helps, Ivan PS my problem is fixed know so i dont think it is a tomcat bug - Original Message - From: Cory L Hubert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, April 29, 2001 11:13 AM Subject: RE: Wierd Casting Problem. Tomocat Bug? I found out the problem. This looks like an extreme hack though. $=((member) ((Object)e.nextElement()) ).getFname()% Works. But why do I have to cast to an Object before I cast it back to it's appropiate type. My only guess is that the Servlet DownCast the Vector to an Object (because there is some reflection that goes on) before setting the Attribute and passing it to JSP. But the actual member objects are put in the Vector as member Objects. Any Ideas? Does anyone thing it's wierd that you have to cast to and Object then to the Type. I believe this isn't a Java Bug it may be a Tomcat Bug. Because I don't have to cast to an Object, if I am casting to member objects in the Servlet. -Original Message- From: Cory L Hubert [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 29, 2001 3:46 AM To: [EMAIL PROTECTED] Subject: Wierd Casting Problem. Ok. Here is the problem. I am using Model 2 Architecture. So my Servlet handles all the biz logic and pushes the results that are then displayed by jsp pages. Within a jsp page I grab my vector from the request like so.. Vector mems =(Vector)request.getAttribute(response); Then I try to loop around it and cast it to the appropiate Object. Like so... % for (int i=0; i mems.size(); i++) { member m = (member)mems.get(i); %
Re: Best IDE for Servlet Development?
I've tried several IDEs in Linux: JBuilder -- free version; learning curve too steep w/out docs. Never sure what was happening. Forte IE -- **Powerful** but slow. Editor so-so. Couldn't sign jars from inside IDE. Petty annoyances, like having to re-add files to JARs when rebuilding removed them. Won't remember JAR contents. Only one project open at a time. Can *only* edit Java related files in you project (Want to check something in that C++ server program you're porting? Sorry, can't open it. Need to see another file? Add it to package first.). CodeWarrior -- Plus: Very like the Metrowerks Mac IDE which I cut my teeth on back when it was Lightspeed C Pascal. Multiple projects open at once. Edits *any* text file in Mac, DOS, or UNIX format. Minus: Like the Mac product! (I'd like a more Linux look feel. Leaves .AppleDouble directories everywhere. SOLUTION: Ant and the NEdit text editor. Full control for whatever I want! At 03:54 4/28/2001 -0700, you wrote: Hi, I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why? Thanks Curtis -- Thad Humphries If the misery of our poor be caused not Web Development Manager by the laws of nature but by our institu- Phone: 540/675-3015, ext. 225tions, great is our sin. Charles Darwin
Re: how can i get apache to redirect a whole subdir to a servlet ?
Hussayn, We appear to be having the same problem with the mappings in Apache having nothing to do with the mappings in web.xml. It appears to me that I will have to rewrite all my web.xml mappings into the tomcat-apache.conf. Interesting that no one appears to have dealt with this issue in the past and that there has been little or no support from this list concerning it. I thought this was the place to come and get answers. Instead all we appear to be getting is a bunch of RTFM's from people who have no interest or time to answer our email appropriately. I will be working on this issue to as well and will forward any experience I get to you. -Mark Diggory Hi, try mod_rewrite. It's great! You have a nice doc in Apache's docs. cu. o,,,o ( 'o' ) (''')(''') __ Interpersonal Computing GmbH Dieter Plank Fachinformatiker - Anwendungsentwicklung (IHK) -Entwicklung- Augustenstrasse 20 - 22 80333 Muenchen Tel: ++49 89 219975-0 Web: http://www.ipc.de Mail: [EMAIL PROTECTED] - Original Message - From: Hussayn Dabbous [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 10:08 PM Subject: how can i get apache to redirect a whole subdir to a servlet ? Hy, there; i need to tunnel a whole subdirectory of my server through a servlet, that does some internal access rights checking. Is it possible to configure tomcat/apache in a way, that all requests within a specific subdir are forwarded to a servlet ? I already tried it by creating a ...webapps/zone/WEB_INF/web.xml by using the following servlet-mapping within the tomcat-config: -- web-app servlet servlet-namezone-checker/servlet-name servlet-classcom.saxess.ZoneChecker/servlet-class /servlet servlet-mapping servlet-namezone-checker/servlet-name url-pattern/zone/safe-area/*/url-pattern /servlet-mapping /web-app - I checkecd, that the Servlet can be accessed by issuing this url: http://localhost/zone/servlet/zone-checker This is the expected behaviour. But the servlet is NOT invoked, when i try e.g.: http://localhost/zone/safe-area/index.html which i expected also to be served from the servlet due to the servlet-mapping rule above. Instead the index.html file is simply displayed in the broswer. Maybe tomcat does not know about the servlet-mapping ? For the server-config, i used following : - ... Alias /zone /mnt2/local/install/apache/jakarta/build/tomcat/webapps/zone Directory /mnt2/local/install/apache/jakarta/build/tomcat/webapps/zone Options Indexes FollowSymLinks /Directory ApJServMount /zone/servlet /zone Location /zone/WEB-INF/ AllowOverride None deny from all /Location Location /zone/META-INF/ AllowOverride None deny from all /Location LocationMatch /zone/*.jsp SetHandler jserv-servlet /LocationMatch LocationMatch /zone/safe/* SetHandler jserv-servlet /LocationMatch ... - Again i tried out lots of combinations, but none brought the desired results. Even, if i redirect all requests from apache to tomcat as follows: ApJServMount /zone ajpv12://localhost:8007/zone Nothing happens (except the index.html is simply displayed) Maybe i completely missunderstand something here ? Anyone can help me ? That would be great. Thanks, Hussayn -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED]
Livin' on the edge...
Ok. I like to test things before it's really stable... Got Tomcat 4.0b3 up and running. Got Apache 2.0b16 up and running. Need to compile mod_jk.so for apache2. Where in the jakarta-tomcat-4.0 source tree can I find it? Does it work with apache 2? And finally; Is tomcat 4.0 (or will it be) much faster than 3.x? rgds Erik Hellman
RE: Boycott China - please read - your life may depend on it
Wrong.That depends what you define as politics. Politics is something which you don't always understand first time or may be forever. Annd -Original Message- From: Dick Poon [SMTP:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 12:04 AM To: [EMAIL PROTECTED]; Arnaud Dostes - NTI Subject: Re: Boycott China - please read - your life may depend on it I don't think this list is the place to talk about politic!Right? Dick Poon - Original Message - From: Arnaud Dostes - NTI [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 4:31 PM Subject: Re: Boycott China - please read - your life may depend on it The Tomcat-Mailing list is the last list where I thought I would find hateful opinions and so poorly directed propaganda. - Original Message - From: Rick Horowitz [EMAIL PROTECTED] To: Horowitz [EMAIL PROTECTED] Sent: Friday, April 27, 2001 12:21 AM Subject: Boycott China - please read - your life may depend on it Hello Everyone, The following speech, reprinted from www.newsmax.com, was made this Tuesday night by U.S. Congressman Dana Rohrabacher of California. I urge you all to read every word of this speech. I have been aware of much of the budding catastrophe we face regarding China, yet have not seen the issues articulated with anything near the clarity that Mr. Rohrabacher does in this speech. My wife and I began boycotting Chinese-made goods about a year ago in recognition of the reasons outlined here. I urge every one of you to forward this message to everyone in your email list, and begin boycotting Chinese goods immediately. My own brief summary of the issues: 1. Our extreme trade deficit vs. China (nearly $100B per year now) has been used for a massive military buildup, with the U.S. as the ultimate target. 2. Russia is selling their most advanced arms to China, capable of destroying our aircraft carriers, including a supersonic torpedo technology that is far beyond anything that we have and for which we have no defense. 3. Our leading defense contractors, including Loral, Boeing, Hughes, Motorola, and others have sold advanced military technology to China over the past few years, including technology that now enables Chinese nuclear-armed intercontinental ballistic missiles to accurately hit American cities, something they were not able to do prior to this transfer of technology. 4. The majority of the partner companies of U.S. ventures in China are in fact owned and operated by the PLA (the People's Liberation Army - the Chinese army). These are not commercial interests. 5. The U.S. government (read you and I) have been providing tax breaks to American companies to close up factories in the U.S. and reopen them in China. These factories transfer advanced technology in many cases, put Americans out of work, and provide cash to the Chinese to further their military expansion. I hope these points and the following reprinted speech make you think long and hard about our position regarding China, and that you: 1. Start boycotting Chinese-made goods immediately 2. Send this message to everyone on your email list. Please don't be embarrassed to take a stand on this. I assure you, it is not my imagination that China poses a significant threat to our safety and future, and we are giving them the money, technology, and weaponry to carry out their many threats already made against our country. Here's one informational link...I'm sure you can find may others yourself. PLEASE read Mr. Rohrabacher's speech, below: http://abcnews.go.com/sections/world/DailyNews/chinamissiles_990409.html includes, A Chinese official hinted at launching a nuclear weapon at Los Angeles in 1996, when U.S. warships confronted China over missile firings near Taiwan. Make no mistake about it. The Chinese government is a dictatorship, and is very dangerous. Sincerely, Rick Horowitz Rohrabacher Slams U.S. Aid to China Rep. Dana Rohrabacher Thursday, April 26, 2001 Editor's note: This is the text of a speech on the House floor by U.S. Rep. Dana Rohrabacher, R-Calif., Tuesday night. Mr. Speaker, one month ago, the Communist regime that controls the mainland of China attacked an American surveillance aircraft while it was in international waters. After being knocked out of the sky, 24 American military personnel, the crew of the surveillance craft, were held hostage for nearly 2 weeks. The Communist Chinese blamed us and would not return the crew until the United States was humiliated before the world. Wake up, America. What is going on here? Large financial interests in our country whose only goal is exploiting the cheap, near-slave labor of China have been leading our country
Re: Wierd Casting Problem. Tomocat Bug?
Actually it doesn't have anything to do with timestamps. Class equivalence in Java is based on the class and the class loader. Think of the class loader id as a prefix for the class's name to give a completely qualified class name. All this behaviour rises from the way servlet engines spawn new class loaders to handle class reloading. Because of this (and other problems) I generally don't like/use class reloading except for use with very simple servlets. I just have Apache and the servlet engine set up on my development system and I restart as appropriate. There is a fairly elegant work around to the whole issue that involves programming to interfaces. (Elegant in that it works with the design of the language and is portable across servlet engines - can be quite a bit more work) Just define all your classes as packages of interfaces and put the interfaces in your system class path. Then write your servlets that so they use the interfaces and not the class names. Now when class reloading occurs your casts (to interfaces) will still work because the interface didn't change. Note: I find the interface scheme to be only helpful when you have to rely on class reloading in a production environment. The objects stored in sessions won't exhibit the new behaviour. They will still be using the older definition of the class so you'll still have to generate a new session (stop and start your browser) to test your changes. HTH Did you guys notice that the problem goes away when you restart Tomcat? I posted this earlier, but I found this problem due to rebuilding classes while Tomcat is running and then the classes have different time stamps from the ones already loaded on Tomcat. If you restart Tomcat after making changes, see if everything works? *** Brett Knights 250-338-3509 work [EMAIL PROTECTED] 250-334-8309 home ***
FW: struts and IIS 5.0
hello... has anybody experience with setting up a struts-applicationcontext in a W2k/IIS 5/Tomcat (over ajp) environment? i have problems to add a new context using workers.properties / uriworkermap.properties and isapi the standard tomcat-jsp examples work fine but anything else... michael
Re: Mod_jk.so
Yes, that's a problem most of us had to overcame. Means that the module was compiled in a diferent platform than yours, you'll have to download the source code of mod_jk and compile it. hth, m- Hello, I have compiled Tomcat from the source on RH 7.0 and now I am getting the following error: API module structure `jk_module' in file /usr/lib/apache/mod_jk.so is garbled - perhaps this is not an Apache module DSO? So then I removed it and have sine recompiled it but I am still getting the same error. Any assistance would be great. Thanks in advance Stuart
RE: Boycott China - please read - your life may depend on it
These stupid guys should be kicked out from here, stop talking about CHINA! Patil, Anand [EMAIL PROTECTED] on 04/30/2001 09:22:43 AM Please respond to [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: (bcc: Geofferey G Chen/Corporate/Allianz Canada Inc.) Subject: RE: Boycott China - please read - your life may depend on it Fax to: Wrong.That depends what you define as politics. Politics is something which you don't always understand first time or may be forever. Annd -Original Message- From: Dick Poon [SMTP:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 12:04 AM To: [EMAIL PROTECTED]; Arnaud Dostes - NTI Subject: Re: Boycott China - please read - your life may depend on it I don't think this list is the place to talk about politic!Right? Dick Poon - Original Message - From: Arnaud Dostes - NTI [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 4:31 PM Subject: Re: Boycott China - please read - your life may depend on it The Tomcat-Mailing list is the last list where I thought I would find hateful opinions and so poorly directed propaganda. - Original Message - From: Rick Horowitz [EMAIL PROTECTED] To: Horowitz [EMAIL PROTECTED] Sent: Friday, April 27, 2001 12:21 AM Subject: Boycott China - please read - your life may depend on it Hello Everyone, The following speech, reprinted from www.newsmax.com, was made this Tuesday night by U.S. Congressman Dana Rohrabacher of California. I urge you all to read every word of this speech. I have been aware of much of the budding catastrophe we face regarding China, yet have not seen the issues articulated with anything near the clarity that Mr. Rohrabacher does in this speech. My wife and I began boycotting Chinese-made goods about a year ago in recognition of the reasons outlined here. I urge every one of you to forward this message to everyone in your email list, and begin boycotting Chinese goods immediately. My own brief summary of the issues: 1. Our extreme trade deficit vs. China (nearly $100B per year now) has been used for a massive military buildup, with the U.S. as the ultimate target. 2. Russia is selling their most advanced arms to China, capable of destroying our aircraft carriers, including a supersonic torpedo technology that is far beyond anything that we have and for which we have no defense. 3. Our leading defense contractors, including Loral, Boeing, Hughes, Motorola, and others have sold advanced military technology to China over the past few years, including technology that now enables Chinese nuclear-armed intercontinental ballistic missiles to accurately hit American cities, something they were not able to do prior to this transfer of technology. 4. The majority of the partner companies of U.S. ventures in China are in fact owned and operated by the PLA (the People's Liberation Army - the Chinese army). These are not commercial interests. 5. The U.S. government (read you and I) have been providing tax breaks to American companies to close up factories in the U.S. and reopen them in China. These factories transfer advanced technology in many cases, put Americans out of work, and provide cash to the Chinese to further their military expansion. I hope these points and the following reprinted speech make you think long and hard about our position regarding China, and that you: 1. Start boycotting Chinese-made goods immediately 2. Send this message to everyone on your email list. Please don't be embarrassed to take a stand on this. I assure you, it is not my imagination that China poses a significant threat to our safety and future, and we are giving them the money, technology, and weaponry to carry out their many threats already made against our country. Here's one informational link...I'm sure you can find may others yourself. PLEASE read Mr.
RE: Best IDE for Servlet Development?
If you have the money, nothing beats Visual Slick Edit 6.0 for editing and Ant for building. You can tie Ant into SlickEdit as well as anything else. I wrote a simple PERL script that writes the get and set methods for me and I integrated into SlickEdit in about 1 minute. You can find more info on it at www.slickedit.com . It supports most languages like PERL, Java, Python, PL/SQL, SQL, SH, XML, SGML, HTML, JavaScript, ...I can go on and on. It was written in C so it's instant and uses very little RAM. You can download a demo there. YOu might want to download the windows version demo so that you can save the changes to the file you are editing. In the LInux version, there is no time expiration, you just can't save the files. Give it a try, Christian At 03:54 4/28/2001 -0700, you wrote: Hi, I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why? Thanks Curtis -- Thad Humphries If the misery of our poor be caused not Web Development Manager by the laws of nature but by our institu- Phone: 540/675-3015, ext. 225tions, great is our sin. Charles Darwin
RE: Boycott China - please read - your life may depend on it
AGREE. THIS MAILING LIST IS INTENDED FOR TOMCAT RELATED DISCUSSIONS ONLY! -Original Message- From: Geofferey G Chen [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:30 AM To: [EMAIL PROTECTED] Subject: RE: Boycott China - please read - your life may depend on it These stupid guys should be kicked out from here, stop talking about CHINA! Patil, Anand [EMAIL PROTECTED] on 04/30/2001 09:22:43 AM Please respond to [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: (bcc: Geofferey G Chen/Corporate/Allianz Canada Inc.) Subject: RE: Boycott China - please read - your life may depend on it Fax to: Wrong.That depends what you define as politics. Politics is something which you don't always understand first time or may be forever. Annd -Original Message- From: Dick Poon [SMTP:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 12:04 AM To: [EMAIL PROTECTED]; Arnaud Dostes - NTI Subject: Re: Boycott China - please read - your life may depend on it I don't think this list is the place to talk about politic!Right? Dick Poon - Original Message - From: Arnaud Dostes - NTI [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 4:31 PM Subject: Re: Boycott China - please read - your life may depend on it The Tomcat-Mailing list is the last list where I thought I would find hateful opinions and so poorly directed propaganda. - Original Message - From: Rick Horowitz [EMAIL PROTECTED] To: Horowitz [EMAIL PROTECTED] Sent: Friday, April 27, 2001 12:21 AM Subject: Boycott China - please read - your life may depend on it Hello Everyone, The following speech, reprinted from www.newsmax.com, was made this Tuesday night by U.S. Congressman Dana Rohrabacher of California. I urge you all to read every word of this speech. I have been aware of much of the budding catastrophe we face regarding China, yet have not seen the issues articulated with anything near the clarity that Mr. Rohrabacher does in this speech. My wife and I began boycotting Chinese-made goods about a year ago in recognition of the reasons outlined here. I urge every one of you to forward this message to everyone in your email list, and begin boycotting Chinese goods immediately. My own brief summary of the issues: 1. Our extreme trade deficit vs. China (nearly $100B per year now) has been used for a massive military buildup, with the U.S. as the ultimate target. 2. Russia is selling their most advanced arms to China, capable of destroying our aircraft carriers, including a supersonic torpedo technology that is far beyond anything that we have and for which we have no defense. 3. Our leading defense contractors, including Loral, Boeing, Hughes, Motorola, and others have sold advanced military technology to China over the past few years, including technology that now enables Chinese nuclear-armed intercontinental ballistic missiles to accurately hit American cities, something they were not able to do prior to this transfer of technology. 4. The majority of the partner companies of U.S. ventures in China are in fact owned and operated by the PLA (the People's Liberation Army - the Chinese army). These are not commercial interests. 5. The U.S. government (read you and I) have been providing tax breaks to American companies to close up factories in the U.S. and reopen them in China. These factories transfer advanced technology in many cases, put Americans out of work, and provide cash to the Chinese to further their military expansion. I hope these points and the following reprinted speech make you think long and hard about our position regarding China, and that you: 1. Start boycotting Chinese-made goods immediately 2. Send this message to everyone on your email list. Please don't be embarrassed to take a stand on this. I assure you, it is not my imagination that China poses a significant threat to our safety and future, and we are giving them the money, technology, and weaponry to carry out their many threats already made against our country. Here's one informational link...I'm sure
Re: Best IDE for Servlet Development?
Nothing but www.omnicore.com Codeguide if you Java developer. - Original Message - From: Christian Hargraves [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 30, 2001 5:29 PM Subject: RE: Best IDE for Servlet Development? If you have the money, nothing beats Visual Slick Edit 6.0 for editing and Ant for building. You can tie Ant into SlickEdit as well as anything else. I wrote a simple PERL script that writes the get and set methods for me and I integrated into SlickEdit in about 1 minute. You can find more info on it at www.slickedit.com . It supports most languages like PERL, Java, Python, PL/SQL, SQL, SH, XML, SGML, HTML, JavaScript, ...I can go on and on. It was written in C so it's instant and uses very little RAM. You can download a demo there. YOu might want to download the windows version demo so that you can save the changes to the file you are editing. In the LInux version, there is no time expiration, you just can't save the files. Give it a try, Christian At 03:54 4/28/2001 -0700, you wrote: Hi, I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why? Thanks Curtis -- Thad Humphries If the misery of our poor be caused not Web Development Manager by the laws of nature but by our institu- Phone: 540/675-3015, ext. 225tions, great is our sin. Charles Darwin
RE: Boycott China - A great idea - please do it
Hi All real friend of Chinese people: As a Chinese, I really like the idea of boycott China. This idea is benifit to both Chinese people and American people; of course not China, American government and billionaries. Benifits to China: In China, almost all of the companies are state owned. Every body knows that as a state owned company, its competitive ability, efficiency is very very low. It is much much much worse than American's senator's district pig projects. Now in China, every corner is occupied by multi international companies like Motorola, Microsoft, IBM, etc. These companies can do whatever they want; they can kill small private companies mercilessly; they rob China's natural resources and make China's environment worse and worse. If every one can boycott China at least 10 years, then China will: 1) The small private companies will grow up gradually and eventually replace all the high cost, low efficiency state owned companies. If the world would isolate China only 10 years, China will have his own giant private companies, ie., China will have his own Motorola, etc. At that time, the compitition will be equal. American giant companies don't have too much advantages and they can not do everything they want like they are doing now. 2) The Chinese people will enjoy cheap products because they don't need to compete with American consumers. 3) China's natural resource will last longer. 4) China's environment will be cleaner. The benifits to American people: 1) Increase the employment opportunities because the giant companies can not move factories to China. 2) A little bit higher consumer good price is OK because 98% Americans are millionare. 3) Prevent American from other place's political unrest. Because giant companies will utilize and explore American's natural resource like oil, US will not depend on foreign energy supply. 4) A little bit environmental worse is OK because American's environment is the cleanest in the world. At most the American's environment becomes the second cleanest. I really hope that Boycott China is reality! It does not matter that Boycott China will success or fail (many things are controlled by greedy multi internal firms, not by our good hearts), I sincerely appreciate the idea and thanks from my heart those people who propose boycott China. Because these people are the real friends of Chinses people, not those multi national firms. L. Huang -Original Message- From: Patil, Anand [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:23 AM To: '[EMAIL PROTECTED]' Subject: RE: Boycott China - please read - your life may depend on it Wrong.That depends what you define as politics. Politics is something which you don't always understand first time or may be forever. Annd -Original Message- From: Dick Poon [SMTP:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 12:04 AM To: [EMAIL PROTECTED]; Arnaud Dostes - NTI Subject: Re: Boycott China - please read - your life may depend on it I don't think this list is the place to talk about politic!Right? Dick Poon - Original Message - From: Arnaud Dostes - NTI [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 4:31 PM Subject: Re: Boycott China - please read - your life may depend on it The Tomcat-Mailing list is the last list where I thought I would find hateful opinions and so poorly directed propaganda. - Original Message - From: Rick Horowitz [EMAIL PROTECTED] To: Horowitz [EMAIL PROTECTED] Sent: Friday, April 27, 2001 12:21 AM Subject: Boycott China - please read - your life may depend on it Hello Everyone, The following speech, reprinted from www.newsmax.com, was made this Tuesday night by U.S. Congressman Dana Rohrabacher of California. I urge you all to read every word of this speech. I have been aware of much of the budding catastrophe we face regarding China, yet have not seen the issues articulated with anything near the clarity that Mr. Rohrabacher does in this speech. My wife and I began boycotting Chinese-made goods about a year ago in recognition of the reasons outlined here. I urge every one of you to forward this message to everyone in your email list, and begin boycotting Chinese goods immediately. My own brief summary of the issues: 1. Our extreme trade deficit vs. China (nearly $100B per year now) has been used for a massive military buildup, with the U.S. as the ultimate target. 2. Russia is selling their most advanced arms to China, capable of destroying our aircraft carriers, including a supersonic torpedo technology that is far beyond anything that we have and for which we have no defense. 3. Our leading defense contractors, including Loral, Boeing, Hughes, Motorola, and others have sold advanced military technology to China over the past few years, including technology that now enables
Startup servlet to Set Context Variables
I have a servlet that I have created that I want run when tomcat sets up the context. However upon start up tomcat gives the error Cannot load servlet Session1. Here is what I've done so far: Checked my class file and its in the proper directory. In fact I can actually call it from a browser so I know it works and is in the right place tomcat/webapps/igce/web-inf/classes I have saved the web.xml file in the web-inf directory. Added the class to the package Session with package Session. Here section of my web.xml file that I use to specify the servlet !-- Servlet to set up Context variables -- servlet servlet-name Session1 /servlet-name servlet-class Session /servlet-class load-on-startup1 /load-on-startup /servlet !-- Servlet to set up Context variables -- I am not sure what else to do. I have a hunch that it is something to do with my servlet-class. Any Ideas? Thanks in advance. jeff sulman
Re: Boycott China - please read - your life may depend on it
I hope that the jakarta-tomcat mailing list subscribers will agree to discuss this very important topic in a more appropriate forum than a mailing list devoted to technical questions about the Tomcat server. To do otherwise diminishes the effectiveness of the mailing list, thereby diminishing the productivity of those of us who use the mailing list. Please, everyone, lets just drop this thread, or, at most, see one more posting about the new home for discussion of this subject. Galon, Mary-Jay wrote: AGREE. THIS MAILING LIST IS INTENDED FOR TOMCAT RELATED DISCUSSIONS ONLY! -Original Message- From: Geofferey G Chen [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:30 AM To: [EMAIL PROTECTED] Subject: RE: Boycott China - please read - your life may depend on it These stupid guys should be kicked out from here, stop talking about CHINA! Patil, Anand [EMAIL PROTECTED] on 04/30/2001 09:22:43 AM Please respond to [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: (bcc: Geofferey G Chen/Corporate/Allianz Canada Inc.) Subject: RE: Boycott China - please read - your life may depend on it Fax to: Wrong.That depends what you define as politics. Politics is something which you don't always understand first time or may be forever. Annd -Original Message- From: Dick Poon [SMTP:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 12:04 AM To: [EMAIL PROTECTED]; Arnaud Dostes - NTI Subject: Re: Boycott China - please read - your life may depend on it I don't think this list is the place to talk about politic!Right? Dick Poon - Original Message - From: Arnaud Dostes - NTI [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 4:31 PM Subject: Re: Boycott China - please read - your life may depend on it The Tomcat-Mailing list is the last list where I thought I would find hateful opinions and so poorly directed propaganda. - Original Message - From: Rick Horowitz [EMAIL PROTECTED] To: Horowitz [EMAIL PROTECTED] Sent: Friday, April 27, 2001 12:21 AM Subject: Boycott China - please read - your life may depend on it Hello Everyone, The following speech, reprinted from www.newsmax.com, was made this Tuesday night by U.S. Congressman Dana Rohrabacher of California. I urge you all to read every word of this speech. I have been aware of much of the budding catastrophe we face regarding China, yet have not seen the issues articulated with anything near the clarity that Mr. Rohrabacher does in this speech. My wife and I began boycotting Chinese-made goods about a year ago in recognition of the reasons outlined here. I urge every one of you to forward this message to everyone in your email list, and begin boycotting Chinese goods immediately. My own brief summary of the issues: 1. Our extreme trade deficit vs. China (nearly $100B per year now) has been used for a massive military buildup, with the U.S. as the ultimate target. 2. Russia is selling their most advanced arms to China, capable of destroying our aircraft carriers, including a supersonic torpedo technology that is far beyond anything that we have and for which we have no defense. 3. Our leading defense contractors, including Loral, Boeing, Hughes, Motorola, and others have sold advanced military technology to China over the past few years, including technology that now enables Chinese nuclear-armed intercontinental ballistic missiles to accurately hit American cities, something they were not able to do prior to this transfer of technology. 4. The majority of the partner companies of U.S. ventures in China are in fact owned and operated by the PLA (the People's Liberation Army - the Chinese army). These are not commercial interests. 5. The U.S. government (read you and I) have been providing tax breaks to American companies to close up factories in the U.S. and reopen them in China. These factories transfer advanced technology in many cases, put Americans out of work, and provide cash to the Chinese to further their military expansion. I hope these points and the following reprinted speech make you think long and hard about our position regarding China, and that you: 1. Start boycotting Chinese-made goods immediately 2. Send this message to everyone on your email list. Please don't be embarrassed to take a stand on this. I assure you, it is not my imagination that China poses a significant threat to our safety and future, and we are giving them the money, technology, and weaponry to carry out their many threats already made against our country. Here's one informational link...I'm sure you can
RE: Boycott China - A great idea - please do it
As an asian american who joins technical lists for technical information, how about moving this issue to a tomcat-users- politics list?, unless of course, the whole idea of open source has so jived with the communist mindset that China can take a break from hacking into us govt websites and tearing apart sensitive spy equipment made with capacitors labeled made in chine and start a peoples republic open source tomcat movement to create a jsp enabled website to distribute family planning literature. Jin -Original Message- From: Huang, Lou [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 10:11 AM To: '[EMAIL PROTECTED]' Subject: RE: Boycott China - A great idea - please do it Hi All real friend of Chinese people: As a Chinese, I really like the idea of boycott China. This idea is benifit to both Chinese people and American people; of course not China, American government and billionaries. Benifits to China: In China, almost all of the companies are state owned. Every body knows that as a state owned company, its competitive ability, efficiency is very very low. It is much much much worse than American's senator's district pig projects. Now in China, every corner is occupied by multi international companies like Motorola, Microsoft, IBM, etc. These companies can do whatever they want; they can kill small private companies mercilessly; they rob China's natural resources and make China's environment worse and worse. If every one can boycott China at least 10 years, then China will: 1) The small private companies will grow up gradually and eventually replace all the high cost, low efficiency state owned companies. If the world would isolate China only 10 years, China will have his own giant private companies, ie., China will have his own Motorola, etc. At that time, the compitition will be equal. American giant companies don't have too much advantages and they can not do everything they want like they are doing now. 2) The Chinese people will enjoy cheap products because they don't need to compete with American consumers. 3) China's natural resource will last longer. 4) China's environment will be cleaner. The benifits to American people: 1) Increase the employment opportunities because the giant companies can not move factories to China. 2) A little bit higher consumer good price is OK because 98% Americans are millionare. 3) Prevent American from other place's political unrest. Because giant companies will utilize and explore American's natural resource like oil, US will not depend on foreign energy supply. 4) A little bit environmental worse is OK because American's environment is the cleanest in the world. At most the American's environment becomes the second cleanest. I really hope that Boycott China is reality! It does not matter that Boycott China will success or fail (many things are controlled by greedy multi internal firms, not by our good hearts), I sincerely appreciate the idea and thanks from my heart those people who propose boycott China. Because these people are the real friends of Chinses people, not those multi national firms. L. Huang -Original Message- From: Patil, Anand [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:23 AM To: '[EMAIL PROTECTED]' Subject: RE: Boycott China - please read - your life may depend on it Wrong.That depends what you define as politics. Politics is something which you don't always understand first time or may be forever. Annd -Original Message- From: Dick Poon [SMTP:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 12:04 AM To: [EMAIL PROTECTED]; Arnaud Dostes - NTI Subject:Re: Boycott China - please read - your life may depend on it I don't think this list is the place to talk about politic!Right? Dick Poon - Original Message - From: Arnaud Dostes - NTI [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 4:31 PM Subject: Re: Boycott China - please read - your life may depend on it The Tomcat-Mailing list is the last list where I thought I would find hateful opinions and so poorly directed propaganda. - Original Message - From: Rick Horowitz [EMAIL PROTECTED] To: Horowitz [EMAIL PROTECTED] Sent: Friday, April 27, 2001 12:21 AM Subject: Boycott China - please read - your life may depend on it Hello Everyone, The following speech, reprinted from www.newsmax.com, was made this Tuesday night by U.S. Congressman Dana Rohrabacher of California. I urge you all to read every word of this speech. I have been aware of much of the budding catastrophe we face regarding China, yet have not seen the issues articulated with anything near the clarity that Mr. Rohrabacher does in this speech. My wife and I
Servlet reloading in TC4.0b3
I must be doing something stupid - I'm sure servlet reloading was working, not I can't get it going - I have a context defined like this Context path=/AddressBook docBase=AddressBook debug=9 reloadable=true Loader checkInterval=3 classname=org.apache.catalina.loader.StandardLoader/ /Context The log says StandardLoader[/AddressBook]: Reloading checks are enabled for this Context but re-loading doesn't (appear) to work. What have I missed? Kevin Jones DevelopMentor www.develop.com
Re: Boycott China - please read - your life may depend on it
I have to admit that as an American it unnerves me to think this may all be true. What unnerves me further is the fact that I live in Europe. Approximately 1/2 hour from Czech. In the last year a lot has changed. Before, there was a large amount of Vietnamise and Chinese in Czech. Legal and illegal. Now, after certain happenings and negotiations between Vietnam and China, the Czech government has decided to FORCE all Vietnamise and Chinese out of Czech and back to thier native countries. The main reasons behind this are not at all missed by the European public and Chinas plans for the future has been recongnized for some time. We have been speaking about it here for at least a year now. We see, almost immediatly, the consequences of Free Trade in Europe and Asia. 2 years ago I seriously considered moving back to the US. However, I soon realised why Europe was in the situation it was in and then realised the situation the rest of the world was in and came to the conclusion it may be safer here. That was a very difficult dicision to make. You see, I am ex-Army, and it hurts to know and SEE what has happened to the US. What hurts more is to know and SEE what the US has let happen in the world. Well, that's just my 2 cents. sorry if I upset anyone, but as much as I hate to admit it, it's true. chuck Rep. Dana Rohrabacher Thursday, April 26, 2001 Editor's note: This is the text of a speech on the House floor by U.S. Rep. Dana Rohrabacher, R-Calif., Tuesday night. Mr. Speaker, one month ago, the Communist regime that controls the mainland of China attacked an American surveillance aircraft while it was in international waters. After being knocked out of the sky, 24 American military personnel, the crew of the surveillance craft, were held hostage for nearly 2 weeks. The Communist Chinese blamed us and would not return the crew until the United States was humiliated before the world. Wake up, America. What is going on here? Large financial interests in our country whose only goal is exploiting the cheap, near-slave labor of China have been leading our country down the path to catastrophe. How much more proof do we need that the so-called engagement theory is a total failure? Our massive investment in China, pushed and promoted by American billionaires and multinational corporations, has created not a more peaceful, democratic China, but an aggressive nuclear-armed bully that now threatens the world with its hostile acts and proliferation. Do the Communist Chinese have to murder American personnel or attack the United States or our allies with their missiles before those who blithesomely pontificate about the civilizing benefits of building the Chinese economy will admit that China for a decade has been going in the opposite direction than predicted by the so-called ``free traders.'' 'We Have Made a Monstrous Mistake' We have made a monstrous mistake, and if we do not face reality and change our fundamental policies, instead of peace, there will be conflict. Instead of democratic reform, we will see a further retrenchment of a regime that is run by gangsters and thugs, the world's worst human rights abusers. Let us go back to basics. The mainland of China is controlled by a rigid, Stalinistic Communist party. The regime is committing genocide in Tibet. It is holding as a captive the designated successor of the Dalai Lama, who is the spiritual leader of the Tibetan people. By the way, this person, the designated new leader, is a little boy. They are holding hostage a little boy in order to terrorize the Tibetan people. The regime is now, at this moment, arresting thousands of members of the Falun Gong, which is nothing more threatening than a meditation and yoga society. Christians of all denominations are being brutalized unless they register with the state and attend controlled churches. Just in the last few days, there has been a round-up of Catholics who were practicing their faith outside of state control. Now they are in a Chinese prison. There are no opposition parties in China. There is no free press in China. China is not a free society under anyone's definition. More importantly, it is not a society that is evolving toward freedom. President Richard Nixon first established our ties with the Communist Chinese in 1972 at the height of the Cold War. That was a brilliant move. At that particular moment, it was a brilliant move. It enabled us to play the power of one dictatorship off the power of another dictatorship. We played one against the other at a time when we had been weakened by the Vietnam War and at a time when Soviet Russia was on the offensive. During the Reagan years, we dramatically expanded our ties to
Re: How to turn off jsp auto-loading/compiling
Hello, set your reloadable=false in the server.xml on your conext path=/your site Greetings, Wolle Christian Hargraves wrote: Hi, I have looked everywhere on this. Does anyone know how to configure tomcat so that it won't check the jsp file's date everytime before executing the code? We want to turn this off to speed things up a bit. Thanks, Christian
Re: Boycott China - A great idea - please do it
Hello Huang, it doesn't matter where you are or where you came from ! This is another user-group for other problems, so PLEASE DON'T SENT THOSE MESSAGES TO HERE ! I think here is enough traffic over the day ! And i thnik that's the reason for lots of different news-groups. in this way, Michael Huang, Lou wrote: Hi All real friend of Chinese people: As a Chinese, I really like the idea of boycott China. This idea is benifit to both Chinese people and American people; of course not China, American government and billionaries. Benifits to China: In China, almost all of the companies are state owned. Every body knows that as a state owned company, its competitive ability, efficiency is very very low. It is much much much worse than American's senator's district pig projects. Now in China, every corner is occupied by multi international companies like Motorola, Microsoft, IBM, etc. These companies can do whatever they want; they can kill small private companies mercilessly; they rob China's natural resources and make China's environment worse and worse. If every one can boycott China at least 10 years, then China will: 1) The small private companies will grow up gradually and eventually replace all the high cost, low efficiency state owned companies. If the world would isolate China only 10 years, China will have his own giant private companies, ie., China will have his own Motorola, etc. At that time, the compitition will be equal. American giant companies don't have too much advantages and they can not do everything they want like they are doing now. 2) The Chinese people will enjoy cheap products because they don't need to compete with American consumers. 3) China's natural resource will last longer. 4) China's environment will be cleaner. The benifits to American people: 1) Increase the employment opportunities because the giant companies can not move factories to China. 2) A little bit higher consumer good price is OK because 98% Americans are millionare. 3) Prevent American from other place's political unrest. Because giant companies will utilize and explore American's natural resource like oil, US will not depend on foreign energy supply. 4) A little bit environmental worse is OK because American's environment is the cleanest in the world. At most the American's environment becomes the second cleanest. I really hope that Boycott China is reality! It does not matter that Boycott China will success or fail (many things are controlled by greedy multi internal firms, not by our good hearts), I sincerely appreciate the idea and thanks from my heart those people who propose boycott China. Because these people are the real friends of Chinses people, not those multi national firms. L. Huang -Original Message- From: Patil, Anand [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:23 AM To: '[EMAIL PROTECTED]' Subject: RE: Boycott China - please read - your life may depend on it Wrong.That depends what you define as politics. Politics is something which you don't always understand first time or may be forever. Annd -Original Message- From: Dick Poon [SMTP:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 12:04 AM To: [EMAIL PROTECTED]; Arnaud Dostes - NTI Subject: Re: Boycott China - please read - your life may depend on it I don't think this list is the place to talk about politic!Right? Dick Poon - Original Message - From: Arnaud Dostes - NTI [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 4:31 PM Subject: Re: Boycott China - please read - your life may depend on it The Tomcat-Mailing list is the last list where I thought I would find hateful opinions and so poorly directed propaganda. - Original Message - From: Rick Horowitz [EMAIL PROTECTED] To: Horowitz [EMAIL PROTECTED] Sent: Friday, April 27, 2001 12:21 AM Subject: Boycott China - please read - your life may depend on it Hello Everyone, The following speech, reprinted from www.newsmax.com, was made this Tuesday night by U.S. Congressman Dana Rohrabacher of California. I urge you all to read every word of this speech. I have been aware of much of the budding catastrophe we face regarding China, yet have not seen the issues articulated with anything near the clarity that Mr. Rohrabacher does in this speech. My wife and I began boycotting Chinese-made goods about a year ago in recognition of the reasons outlined here. I urge every one of you to forward this message to everyone in your email list, and begin boycotting Chinese goods immediately. My own brief summary of the issues: 1. Our extreme trade deficit vs. China (nearly $100B per year now) has been used for a massive military buildup, with the U.S. as the ultimate target. 2. Russia is selling their
Re: Best IDE for Servlet Development?
emacs w/ the JDE package. Curtis Spencer wrote: Hi,I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why?ThanksCurtis
Tomcat and Access Database
Title: Tomcat and Access Database Hello, I am Using Access Database to connect with JDBC in Java and my program looks like this... public class ...{ .. ... try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); con=DriverManager.getConnection(jdbc:odbc:shree); }catch(Exception e){ e.printStackTrace(); System.exit(1); } try{ stmt=con.createStatement(); ResultSet rs=stmt.executeQuery(query); ResultSetMetaData rsmd=rs.getMetaData(); System.out.println(); out.println(font color=gray); out.println(ub+The Developers with +level+ Skill level in +softwarename + is/are :+/b/u); out.println(/font); out.println(hr border=2 color=midnightblue); out.println(\n); out.println(br); int no_column=rsmd.getColumnCount(); for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnnames=rsmd.getColumnName(i); out.print(B+columnnames+\t\t+/b); } out.println(br); while(rs.next()) { for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnValue=rs.getString(i); out.print(columnValue+\t\t); } out.println(br); } stmt.close(); con.close(); }catch(java.sql.SQLException e){ System.out.println(e.toString()); } out.close(); } } Please help me to connect this program to Tomcat and work from tomcat server. It's very urgent... Thank You.
Off topic messages
Is there a way to put a script in the tomcat-user mail server to block messages by subject, such as all messages with the words Boycott China in the subject line? I can do it on my end but if it is done by tomcat-users that would correct the problem for everybody. Sincerely yours; Mark Mynsted VHA Management Information Systems Client Services [EMAIL PROTECTED] (972) 830 - 0592, Internal x1592
Re: Best IDE for Servlet Development?
I agree 100%! Sincerely yours; Mark Mynsted VHA Management Information Systems Client Services [EMAIL PROTECTED] (972) 830 - 0592, Internal x1592 [EMAIL PROTECTED] 4/30/2001 9:48:45 AM emacs w/ the JDE package. Curtis Spencer wrote: Hi,I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why? Thanks Curtis
mod_jk.so linking/compiling problem.
I am having a problem linking/compiling my mod_jk.so. Here are my details. I've done what Jan and Scott Tatum (from a previous threads) have advised. I am really stuck on this and don't know what to do. --- Solaris 7, perl 5.005_03 apache 1.3.19 (./configure --prefix=/usr/local/apache \ --enable-module=ssl\ --enable-module=so \ --enable-rule=SHARED_CORE ) mod_ssl 2.8.2-1.3.19 (openssl 0.9.6a, mm-1.1.3) jaxp-1.0.1 java 1.3 jsse 1.0.2 tomcat 3.2.1 (Ant 1.3, ServletAPI 3.2) mod_jk my apxs call: /usr/local/apache/bin/apxs -o mod_jk.so -DSOLARIS\ -I../jk \ -I/usr/java/include \ -I/usr/java/include/solaris \ -c *.c ../jk/*.c Then I've done this: gcc -shared -o mod_jk.so *.o And recieved this: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status - Thanks for any help. -k
Re: Tomcat and Access Database
So what's the problem? What exception? (And to those who are still going on about China, please stop. This is a TOMCAT list, not alt.politics.china...) At 04:53 PM 4/30/2001, you wrote: Hello, I am Using Access Database to connect with JDBC in Java and my program looks like this... public class ...{ .. ... try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); con=DriverManager.getConnection(jdbc:odbc:shree); }catch(Exception e){ e.printStackTrace(); System.exit(1); } try{ stmt=con.createStatement(); ResultSet rs=stmt.executeQuery(query); ResultSetMetaData rsmd=rs.getMetaData(); System.out.println(); If this is a servlet (in fact whatever it is) it doesn't match the following line... out.println(font color=gray); out.println(ub+The Developers with +level+ Skill level in +softwarename + is/are :+/b/u); out.println(/font); out.println(hr border=2 color=midnightblue); out.println(\n); out.println(br); int no_column=rsmd.getColumnCount(); for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnnames=rsmd.getColumnName(i); out.print(B+columnnames+\t\t+/b); } out.println(br); while(rs.next()) { for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnValue=rs.getString(i); out.print(columnValue+\t\t); } out.println(br); } stmt.close(); con.close(); }catch(java.sql.SQLException e){ System.out.println(e.toString()); } out.close(); } } Please help me to connect this program to Tomcat and work from tomcat server. It's very urgent... Thank You. -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 Personal: [EMAIL PROTECTED] (34) 606 770 244 Prepositions are not words to end sentences with.
RE: Tomcat and Access Database
what is the value of query ? -Original Message- From: Sridevi Kumar [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2001 15:54 To: '[EMAIL PROTECTED]' Cc: Sridevi Kumar Subject: Tomcat and Access Database Hello, I am Using Access Database to connect with JDBC in Java and my program looks like this... public class ...{ .. ... try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); con=DriverManager.getConnection(jdbc:odbc:shree); }catch(Exception e){ e.printStackTrace(); System.exit(1); } try{ stmt=con.createStatement(); ResultSet rs=stmt.executeQuery(query); ResultSetMetaData rsmd=rs.getMetaData(); System.out.println(); out.println(font color=gray); out.println(ub+The Developers with +level+ Skill level in +softwarename + is/are :+/b/u); out.println(/font); out.println(hr border=2 color=midnightblue); out.println(\n); out.println(br); int no_column=rsmd.getColumnCount(); for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnnames=rsmd.getColumnName(i); out.print(B+columnnames+\t\t+/b); } out.println(br); while(rs.next()) { for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnValue=rs.getString(i); out.print(columnValue+\t\t); } out.println(br); } stmt.close(); con.close(); }catch(java.sql.SQLException e){ System.out.println(e.toString()); } out.close(); } } Please help me to connect this program to Tomcat and work from tomcat server. It's very urgent... Thank You.
RE: Objects in Vector are loosing type
We should put this in the FAQ. This issue pops up Often. -Original Message- From: Endre Stolsvik [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 4:59 AM To: [EMAIL PROTECTED] Subject: Re: Objects in Vector are loosing type On Fri, 27 Apr 2001, Ivan wrote: | thank you very much for your reply | | I turned off my computer and tried it again a few hours later and it seemed | to work, then i made changes and then the second servlet wasnt able to cast | back to CHyperlink again. after putting the code back the way I had it, it | still wouldnt work. You're having the reload problem, and each time you restart tomcat, everything will work for you. It's because tomcat's reloading are totally fucked. This goes for all versions, but 4 should apparently have som new stuff, which basically reboots the whole webapp and serializes/deserializes everything in users' sessions if anything changes.. -- Mvh, Endre
RE: Objects in Vector are loosing type
Can or has or will someone work up a slightly more technical explanation than It's because tomcat's reloading are totally fucked. ??? Regards, Joel Parramore -Original Message- From: Cory Hubert [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 11:36 AM To: [EMAIL PROTECTED] Subject: RE: Objects in Vector are loosing type We should put this in the FAQ. This issue pops up Often. -Original Message- From: Endre Stolsvik [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 4:59 AM To: [EMAIL PROTECTED] Subject: Re: Objects in Vector are loosing type On Fri, 27 Apr 2001, Ivan wrote: | thank you very much for your reply | | I turned off my computer and tried it again a few hours later and it seemed | to work, then i made changes and then the second servlet wasnt able to cast | back to CHyperlink again. after putting the code back the way I had it, it | still wouldnt work. You're having the reload problem, and each time you restart tomcat, everything will work for you. It's because tomcat's reloading are totally fucked. This goes for all versions, but 4 should apparently have som new stuff, which basically reboots the whole webapp and serializes/deserializes everything in users' sessions if anything changes.. -- Mvh, Endre
Re: Tomcat and MySQL
I have MySQL working fine with the driver you mention below (version 2.0.4) by putting the library for it (the jar file) into the WEB-INF/lib directory, where it belongs. If it doesn't work for you there, you can try the $TOMCAT_HOME/lib directory. Some things (like JCE 1.2.1) only will work from there due to problems in tomcat. I use Tomcat 3.2.1. Doug At 04:54 AM 4/30/2001, Robert Wohlgemuth wrote: Hi to all! I use Tomcat together with mysql to store my data. I wrote an servlet at school that uses an Oracle Database to store and retrieve data. It worked fine. So I wanted to use this servlet at home too. I changed the JDBC driver but now i get in the tomcat.log file an exception. The source of the exception is, that i cn't connect to my database. in my tomcat.log - file i found this entry: 2001-04-30 10:50:05 - Ctx( /examples ): Exception in: R( /examples + /servlet/Navigation + null) - java.lang.NoClassDefFoundError: org/gjt/mm/mysql/Driver at JDBCAdapter.init(JDBCAdapter.java:48) at Navigation.doGet(Navigation.java:35) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.JNIConnectionHandler.processConnection(J NIConnectionHandler.java:167) at org.apache.tomcat.service.JNIEndpoint.service(JNIEndpoint.java:162) Before i had some other errors. I change the classpath that the mysql-jdbc driver is also in it. And now the error mentioned above occours. Is this a problem of my classpath and why does the exception writes: org/gjt/mm/my an not org.gjt.mm.my.? I know this is not a problem of tomcat, but I think many of you use the mysql database with java. Perhaps someone can help me. Thanks in advance, Robert
RE: Objects in Vector are loosing type
Look at the thread Weird Casting Problem. Tomcat Bug? for a more technical explanation. No disrespect but I think we've been repeating ourselves.Someone needs to fix it or put it in the FAQ. -Original Message- From: Joel Parramore [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 11:42 AM To: [EMAIL PROTECTED] Subject: RE: Objects in Vector are loosing type Can or has or will someone work up a slightly more technical explanation than It's because tomcat's reloading are totally fucked. ??? Regards, Joel Parramore -Original Message- From: Cory Hubert [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 11:36 AM To: [EMAIL PROTECTED] Subject: RE: Objects in Vector are loosing type We should put this in the FAQ. This issue pops up Often. -Original Message- From: Endre Stolsvik [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 4:59 AM To: [EMAIL PROTECTED] Subject: Re: Objects in Vector are loosing type On Fri, 27 Apr 2001, Ivan wrote: | thank you very much for your reply | | I turned off my computer and tried it again a few hours later and it seemed | to work, then i made changes and then the second servlet wasnt able to cast | back to CHyperlink again. after putting the code back the way I had it, it | still wouldnt work. You're having the reload problem, and each time you restart tomcat, everything will work for you. It's because tomcat's reloading are totally fucked. This goes for all versions, but 4 should apparently have som new stuff, which basically reboots the whole webapp and serializes/deserializes everything in users' sessions if anything changes.. -- Mvh, Endre
RE: Best IDE for Servlet Development?
where can i get JDE. I'm all about some emacs. Tim Julien HP Middleware -Original Message-From: Nick Christopher [mailto:[EMAIL PROTECTED]]Sent: Monday, April 30, 2001 10:49 AMTo: [EMAIL PROTECTED]Subject: Re: Best IDE for Servlet Development?emacs w/ the JDE package. Curtis Spencer wrote: Hi,I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why?ThanksCurtis
AW: Tomcat and MySQL
THIS WORKS NOW! Thanks a lot. I'm so fascinated about the great possibilities of servlets :) I've thousands of ideas to implement. -Ursprungliche Nachricht- Von: Doug Fields [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 30. April 2001 17:43 An: [EMAIL PROTECTED]; [EMAIL PROTECTED] Betreff: Re: Tomcat and MySQL I have MySQL working fine with the driver you mention below (version 2.0.4) by putting the library for it (the jar file) into the WEB-INF/lib directory, where it belongs. If it doesn't work for you there, you can try the $TOMCAT_HOME/lib directory. Some things (like JCE 1.2.1) only will work from there due to problems in tomcat. I use Tomcat 3.2.1. Doug At 04:54 AM 4/30/2001, Robert Wohlgemuth wrote: Hi to all! I use Tomcat together with mysql to store my data. I wrote an servlet at school that uses an Oracle Database to store and retrieve data. It worked fine. So I wanted to use this servlet at home too. I changed the JDBC driver but now i get in the tomcat.log file an exception. The source of the exception is, that i cn't connect to my database. in my tomcat.log - file i found this entry: 2001-04-30 10:50:05 - Ctx( /examples ): Exception in: R( /examples + /servlet/Navigation + null) - java.lang.NoClassDefFoundError: org/gjt/mm/mysql/Driver at JDBCAdapter.init(JDBCAdapter.java:48) at Navigation.doGet(Navigation.java:35) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:7 9 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.JNIConnectionHandler.processConnection( J NIConnectionHandler.java:167) at org.apache.tomcat.service.JNIEndpoint.service(JNIEndpoint.java:162) Before i had some other errors. I change the classpath that the mysql-jdbc driver is also in it. And now the error mentioned above occours. Is this a problem of my classpath and why does the exception writes: org/gjt/mm/my an not org.gjt.mm.my.? I know this is not a problem of tomcat, but I think many of you use the mysql database with java. Perhaps someone can help me. Thanks in advance, Robert
Multiple Tomcat 3.2.1 and virtual hosts
Hi all, I have followed the documentation about Configuring for Multiple Tomcat JVMs at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.htm l I'd like have multiple virtual hosts (on Apache) and each one mapping one of the Tomcat instance. www.host1.com -- /servlet/MyServlet1 www.host2.com -- /servlet/MyServlet2 I have configured multiple tomcat but when I try to map it with virtual host it doesn't work. It diplays that /servlet/MyServlet/ is unknown. Where and how can I configure the right mapping between Apache Virtual hosts and the right Tomcat instance ? Thanks for your time. Hervé
RE: Best IDE for Servlet Development?
jde.sunsite.dk Sincerely yours; Mark Mynsted VHA Management Information Systems Client Services [EMAIL PROTECTED] (972) 830 - 0592, Internal x1592 [EMAIL PROTECTED] 4/30/2001 10:48:34 AM where can i get JDE. I'm all about some emacs. Tim Julien HP Middleware -Original Message- From: Nick Christopher [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 10:49 AM To: [EMAIL PROTECTED] Subject: Re: Best IDE for Servlet Development? emacs w/ the JDE package. Curtis Spencer wrote: Hi,I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why? Thanks Curtis
inputstream
hi everyone, i'm trying to use a form to upload a file from the webpage to my server. i don't want to store the file on myserver, i just want to receive the file data and send it somewhere else right away. i know that i have to parse the received data to eliminate the boundaries and th content type,etc. do you know the max size that i can receive on the standardInputStream thanks for any suggestions Georges
Re: Best IDE for Servlet Development?
>From www.freshmeat.net I found: http://jde.sunsite.dk/ "JULIEN,TIMOTHY (HP-NewJersey,ex2)" wrote: where can i get JDE.I'm all about some emacs.Tim JulienHP Middleware -Original Message- From: Nick Christopher [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 10:49 AM To: [EMAIL PROTECTED] Subject: Re: Best IDE for Servlet Development? emacs w/ the JDE package. Curtis Spencer wrote: Hi,I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why? Thanks Curtis
RE: Best IDE for Servlet Development?
As it says on the Emacs page (http://www.gnu.org/software/emacs/emacs.html), The first place to start looking for elisp packages is at the a href=ftp://ftp.emacs.org/pub/;Emacs Lisp archive/a, and in the a href=http://www.lerner.co.il/emacs/faq-body.shtml;Emacs FAQ/a, under the sections Finding/Getting Emacs and Related Packages and Major Emacs Lisp Packages, Emacs Extensions, and Related Programs. The first link seems wonked for me--I found a copy at ftp://ftp.emacs.org/mirrors/ftp.cis.ohio-state.edu/pub/emacs-lisp/incoming/j de-2.2.0.tar.gz/jde-2.2.0.tar.gz The second lists a better site at http://jde.sunsite.dk/ . -- Bill K. -Original Message- From: JULIEN,TIMOTHY (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 8:49 AM To: '[EMAIL PROTECTED]' Subject: RE: Best IDE for Servlet Development? where can i get JDE. I'm all about some emacs. Tim Julien HP Middleware -Original Message- From: Nick Christopher [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 10:49 AM To: [EMAIL PROTECTED] Subject: Re: Best IDE for Servlet Development? emacs w/ the JDE package. Curtis Spencer wrote: Hi,I just downloaded the trial version for Forte for Java 2.0 Internet Edition and it seems like a good servlet development kit because of the integrated tomcat server. I was wondering if anyone was using other IDE's for servlet development and if they had any thoughts about what was the best IDE and why? Thanks Curtis
RE: Newbie problem starting web server.
To (mostly) capture what appears in the tomcat command interpreter window on a Win32 platform, do the following: In the %TOMCAT_HOME%\bin directory is a file called TOMCAT.BAT Searching through the file, you will find a code snippet that looks like this: :startServer echo Starting Tomcat in new window if %2 == -security goto startSecure %_STARTJAVA% %TOMCAT_OPTS% -Dtomcat.home=%TOMCAT_HOME% org.apache. tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9 goto cleanup At the line that begins %_STARTJAVA% add %TOMCAT_HOME%\LOGS\TOMSTART.LOG (without quotes) so that it pipes the output of the stream to a file called TOMSTART.LOG in your tomcat LOGS directory. From there, you can cut and paste it or parse it using a log reader or do with it as you like... Logging is turned on by context in SERVER.XML in the %TOMCAT_HOME%\conf directory. It is specified in the context tag as debug=n where n is a number from 0 to 9. See below for content achieved in log files with different debug levels set. I hope this helps... Level 0 Errors and states that cause a significant change in program flow. = Anything that causes a Discon+Retry or a giveup message. Level 1 Important or inaccessible state information. = Connection start, Idle disconnection. Level 2 Rare things that cause a minor program flow adjustment. = No REST, No PASV, etc. Level 3 Errors and useful messages that are slightly too verbose or common for 0-2 or don't quite fit in the classifications. = Login banner Level 4 All remote responses or major results. (Trace results) = All 999 Xyzzy responses received. Level 5 All remote commands or major tasks. (Trace jobs) = All commands sent to server. Level 6 General information that will not be too verbose but is normally a little less important. (Trace state) Level 7 Similar to level 3 but verbose or not as useful. Level 8 Very verbose information that'll probably be useful sometime. Level 9 Anything and everything else, debugs that probably won't be useful ever again.(unclassified) -Original Message- From: jackling [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 3:34 AM To: [EMAIL PROTECTED] Subject: Newbie problem starting web server. version: tomcat 3.1 platform: win98 I'm new in configuring tomcat and fail to start the web server. I've following questions: 1) can I run the tomcat web server on Win98 (9X)? or must be WinNT/2000? 2) after I type 'startup' from the /bin directory, another DOS window prompts up w/ the log (see blow). From this point on, I try using my browser and type: http://localhost:8080 (or http://localhost:8080/index.html). The web server seems not running and the browser prompts me to connect to internet. I don't know how to capture the screen log, below is the extract: (It said 'File not found C:\Apache\Tomcat\webapps\ADMIN.WAR' but the file is in that directory. So' I don't know why) Context log: path=/ADMIN.WAR File not found C:\Apache\Tomcat\webapps\ADMIN.WAR \WEB-INF\web.xml, using only defaults Context log path=/ADMIN.WAR :jsp: init Context log path=/ADMIN.WAR :default: init Context log path=/TEST.WAR :tomcat.errorPage: init Context log: path=/TEST.WAR File not found C:\Apache\Tomcat\webapps\TEST.WAR\W EB-INF\web.xml, using only defaults Context log path=/TEST.WAR :jsp: init Context log path=/TEST.WAR :default: init Context log path=/test :tomcat.errorPage: init Context log path=/test :jsp: init Context log path=/test :default: init Context log path=/EXAMPLES.WAR :tomcat.errorPage: init Context log: path=/EXAMPLES.WAR File not found C:\Apache\Tomcat\webapps\EXAMPL ES.WAR\WEB-INF\web.xml, using only defaults Context log path=/EXAMPLES.WAR :jsp: init Context log path=/EXAMPLES.WAR :default: init Context log path= :tomcat.errorPage: init Context log path= :jsp: init Context log path= :default: init Starting endpoint port=8080 handler=org.apache.tomcat.service.http.HttpConnec tionHandler Starting endpoint port=8007 handler=org.apache.tomcat.service.connector.Ajp12 ConnectionHandler 3) I don't see the tomcat/logs files updated. how to turn the log function on? I'm stuck at this point. Your help is much appreiated. thanks, jackling.
Re: mod_jk.so linking/compiling problem.
Kevin Shortt wrote: Then I've done this: gcc -shared -o mod_jk.so *.o And recieved this: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status Try it with gcc -shared -o mod_jk.so *.o -lposix4 that worked for me on Solaris 8 x86. -- Steve Brunton [EMAIL PROTECTED] Phone: 404-827-2756 Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA CNN Internet Technologies ICBM: 84W 23' 45 33N 45' 29 * A bartender is just a pharmacist with a limited inventory. *
RE: Installation on Windows ME
What do you mean by dynamically setting environment variables ? Do you have enough environment space set aside in the window starting Tomcat (default is 1024 which is woefully inadequate)? You may also want to check out http://support.microsoft.com/support/kb/articles/Q269/5/24.ASP Or you may want to revert to Windows 98 due to the brain-dead changes made to make Win98 into WinME. Darrell -Original Message- From: Kevin Broderick [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 2:50 AM To: [EMAIL PROTECTED] Subject: Installation on Windows ME Hi, Probably a very simple question to be asking, but here goes: Is it possible to / has anybody installed Tomcat on Windows ME ? I run Tomcat on NT and all works well, but have major errors when trying to run it on Windows ME. It seems there is an issue with dynamically setting environment variables in WinME. Has anyone seen this or know of a workaround ? Any help much appreciated, Regards Kevin Broderick
RE: Tomcat and Access Database
I didn't make any changes to web.xml for database access. I also developed on JSWDK and ported to Tomcat, but I had no problems, i.e. the Access Database sql ran just the same. David -Original Message- From: Sridevi Kumar [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2001 16:51 To: '[EMAIL PROTECTED]' Subject: RE: Tomcat and Access Database Actually I am connecting to jdbc through servlets for retrieving information of employee skillsets. It is working coolly with jsdk but i don't know how to make it work with tomcat server. I want to know the configuration to set it in tomcat Server.xml file and web.xml file. -Original Message- From: [EMAIL PROTECTED] [ mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 11:11 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Access Database what is the value of query ? -Original Message- From: Sridevi Kumar [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2001 15:54 To: '[EMAIL PROTECTED]' Cc: Sridevi Kumar Subject: Tomcat and Access Database Hello, I am Using Access Database to connect with JDBC in Java and my program looks like this... public class ...{ .. ... try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); con=DriverManager.getConnection(jdbc:odbc:shree); }catch(Exception e){ e.printStackTrace(); System.exit(1); } try{ stmt=con.createStatement(); ResultSet rs=stmt.executeQuery(query); ResultSetMetaData rsmd=rs.getMetaData(); System.out.println(); out.println(font color=gray); out.println(ub+The Developers with +level+ Skill level in +softwarename + is/are :+/b/u); out.println(/font); out.println(hr border=2 color=midnightblue); out.println(\n); out.println(br); int no_column=rsmd.getColumnCount(); for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnnames=rsmd.getColumnName(i); out.print(B+columnnames+\t\t+/b); } out.println(br); while(rs.next()) { for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnValue=rs.getString(i); out.print(columnValue+\t\t); } out.println(br); } stmt.close(); con.close(); }catch(java.sql.SQLException e){ System.out.println(e.toString()); } out.close(); } } Please help me to connect this program to Tomcat and work from tomcat server. It's very urgent... Thank You.
RE: inputstream
do you know the max size that i can receive on the standardInputStream as much as your memory allows you too, one way to do it is to chain two streams, this preserves all your memory resources the best way. client --stream-- myserver --stream-- otherserver this way you can pass data directly between the client and the otherserver. so when you receive data on myserver, just write simultaneously to the otherserver hope this helps Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Georges Boutros [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 8:51 AM To: Tomcat (E-mail) Subject: inputstream hi everyone, i'm trying to use a form to upload a file from the webpage to my server. i don't want to store the file on myserver, i just want to receive the file data and send it somewhere else right away. i know that i have to parse the received data to eliminate the boundaries and th content type,etc. thanks for any suggestions Georges
RE: Tomcat and Access Database
Title: RE: Tomcat and Access Database That's what i am asking ,Kindlt tell me the codes for accessing servlets with JDBC from tomcat. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 12:23 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Access Database I didn't make any changes to web.xml for database access. I also developed on JSWDK and ported to Tomcat, but I had no problems, i.e. the Access Database sql ran just the same. David -Original Message- From: Sridevi Kumar [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2001 16:51 To: '[EMAIL PROTECTED]' Subject: RE: Tomcat and Access Database Actually I am connecting to jdbc through servlets for retrieving information of employee skillsets. It is working coolly with jsdk but i don't know how to make it work with tomcat server. I want to know the configuration to set it in tomcat Server.xml file and web.xml file. -Original Message- From: [EMAIL PROTECTED] [ mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 11:11 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Access Database what is the value of query ? -Original Message- From: Sridevi Kumar [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2001 15:54 To: '[EMAIL PROTECTED]' Cc: Sridevi Kumar Subject: Tomcat and Access Database Hello, I am Using Access Database to connect with JDBC in Java and my program looks like this... public class ...{ .. ... try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); con=DriverManager.getConnection(jdbc:odbc:shree); }catch(Exception e){ e.printStackTrace(); System.exit(1); } try{ stmt=con.createStatement(); ResultSet rs=stmt.executeQuery(query); ResultSetMetaData rsmd=rs.getMetaData(); System.out.println(); out.println(font color=gray); out.println(ub+The Developers with +level+ Skill level in +softwarename + is/are :+/b/u); out.println(/font); out.println(hr border=2 color=midnightblue); out.println(\n); out.println(br); int no_column=rsmd.getColumnCount(); for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnnames=rsmd.getColumnName(i); out.print(B+columnnames+\t\t+/b); } out.println(br); while(rs.next()) { for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnValue=rs.getString(i); out.print(columnValue+\t\t); } out.println(br); } stmt.close(); con.close(); }catch(java.sql.SQLException e){ System.out.println(e.toString()); } out.close(); } } Please help me to connect this program to Tomcat and work from tomcat server. It's very urgent... Thank You.
Re: inputstream
At 11:51 AM 4/30/2001 -0400, you wrote: hi everyone, i'm trying to use a form to upload a file from the webpage to my server. i don't want to store the file on myserver, i just want to receive the file data and send it somewhere else right away. i know that i have to parse the received data to eliminate the boundaries and th content type,etc. do you know the max size that i can receive on the standardInputStream Being a stream that's a loaded question, although reading the api policy on the DataInput interface I presume its the maximum size of a byte array. But this is the wrong way to look at an inputstream. The input data has to go somewhere, right? I would assume also that your going to write the input into an output stream, so theoretically you'll not need to worry about a limit. Presumably the data is going somewhere as soon as it comes in. What you really need to worry about is the other end, the data receiver might choke, go off line, slow down, stop receiving for whatever reason. You should plan for that in your design, and implement a temporary buffer on your transmitting end.
RE: Tomcat and Access Database
Title: RE: Tomcat and Access Database The following statement have been got from http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto this link talks about how to use tomcat with Mysql JdbcDriver. I want to know how to use tomcat with sun.jdbc.odbc.JdbcOdbcDriver. My classname is : sun.jdbc.odbc.JdbcOdbcDriver my connection url in the program is :jdbc:odbc:shree (where shree is my DSN). now i want to know the classname and connection URL for my system. My system name is : sridevi. This is an example of how to set up a JDBC Realm. For this example I used the MySQL JDBC driver. 1. Create a database. I made the database named authority 2. Create three tables. 1. The user table. This table needs the user's name and a password field. In the example I use users for the table name, user_name for the column that holds the user's name, and user_pass for the user's password. 2. The role table. This table needs the role's set up that will be in any deployment descriptor that is managed under the container this Realm is in. In the example I use roles as the table name and role_name as the role's name. NB: This table doesn't get used at all by tomcat. 3. The role to user table. This table joins a set of roles to a single user. In the example the table name is user_roles, the role's name is role_name , and the user's name is assumed to have the same column name as in the user's table (user_name in this example. Here is the SQL I used to create the tables: create table users ( user_name varchar(15) not null primary key, user_pass varchar(15) not null ); create table roles ( role_name varchar(15) not null primary key ); create table user_roles ( user_name varchar(15) not null, role_name varchar(15) not null, primary key( user_name, role_name ) ); Here is sample output from the tables: mysql select * from users; +---+---+ | user_name | user_pass | +---+---+ | tomcat | tomcat | | user1 | tomcat | | user2 | tomcat | | user3 | tomcat | +---+---+ 4 rows in set (0.00 sec) mysql mysql select * from roles; ++ | role_name | ++ | tomcatRole | | otherRole | ++ 2 rows in set (0.02 sec) mysql mysql select * from user_roles; ++---+ | role_name | user_name | ++---+ | tomcatRole | user1 | | otherRole | user2 | | otherRole | tomcat | | tomcatRole | tomcat | ++---+ 4 rows in set (0.00 sec) mysql 3. Add the information to the server.xml file. For this example I used this entry: RequestInterceptor className=org.apache.tomcat.request.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/authority?user=test;password=test userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / driverName -- The name of the driver needed to connect to the database connectionURL -- The connection URL used to connect to the database userTable -- The user's tables userNameCol -- The column in the user's table that contains the name userCredCol -- The column in the user's table that contains the password userRoleTable -- The user's roles table roleNameCol -- The column in the user's table that contains a role given to a user Optional: connectionName - The name to use when connecting to the database. connectionPassword - The password to use when connecting to the database. 4. You should now be able to authenticate against the database now using the normal web.xml entries. Hints: - Make sure that the JDBC driver is in the lib directory. - If you have problem connecting you can specify connectionName and connectionPassword: RequestInterceptor className=org.apache.tomcat.request.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@ntserver:1521:ORCL connectionName=scott connectionPassword=tiger userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name / -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 12:23 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Access Database I didn't make any changes to web.xml for database access. I also developed on JSWDK and ported to Tomcat, but I had no problems, i.e. the Access Database sql ran just the same. David -Original Message- From: Sridevi Kumar [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2001 16:51 To: '[EMAIL PROTECTED]' Subject: RE: Tomcat and Access Database Actually I am connecting to jdbc through servlets for retrieving information of employee skillsets. It is working coolly with jsdk but i don't know how to make it work with tomcat server. I want to know the configuration to set it in tomcat Server.xml file and web.xml file. -Original Message- From: [EMAIL
Re: inputstream
I have found this differs between the JRE on the platform. In my experience, BufferedInputStream in IE 5.5 (no plugin) would get corrupted so I had to read the full value returned by URLConnection.getContentLength(). With Netscape 4.7, no plugin, I read chunks as determined by BufferedInputStream.available(). I think the Netscape approach is how it should work. At 11:51 4/30/2001 -0400, you wrote: hi everyone, i'm trying to use a form to upload a file from the webpage to my server. i don't want to store the file on myserver, i just want to receive the file data and send it somewhere else right away. i know that i have to parse the received data to eliminate the boundaries and th content type,etc. do you know the max size that i can receive on the standardInputStream thanks for any suggestions Georges -- Thad Humphries If the misery of our poor be caused not Web Development Manager by the laws of nature but by our institu- Phone: 540/675-3015, ext. 225tions, great is our sin. Charles Darwin
What is errno = 61 and how to resolve it?
I get an errno = 61 in my mod_jk.log and can't find any documentation that may explain what this is about. Could someone give me an idea.
mod_jk and mod_rewrite? Do they work together?
Does anyone have an answer to this question? I'm attempting to map my root web directory to a particular jsp page. For example, I would like the URL www.byteme.com to resolve to www.byteme.com/context1/jsp/index.jsp Any ideas? Thanks, Chris
RE: Tomcat and Access Database
The same as jswdk -Original Message- From: Sridevi Kumar [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2001 17:26 To: '[EMAIL PROTECTED]' Subject: RE: Tomcat and Access Database That's what i am asking ,Kindlt tell me the codes for accessing servlets with JDBC from tomcat. -Original Message- From: [EMAIL PROTECTED] [ mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 12:23 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Access Database I didn't make any changes to web.xml for database access. I also developed on JSWDK and ported to Tomcat, but I had no problems, i.e. the Access Database sql ran just the same. David -Original Message- From: Sridevi Kumar [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2001 16:51 To: '[EMAIL PROTECTED]' Subject: RE: Tomcat and Access Database Actually I am connecting to jdbc through servlets for retrieving information of employee skillsets. It is working coolly with jsdk but i don't know how to make it work with tomcat server. I want to know the configuration to set it in tomcat Server.xml file and web.xml file. -Original Message- From: [EMAIL PROTECTED] [ mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 11:11 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Access Database what is the value of query ? -Original Message- From: Sridevi Kumar [SMTP:[EMAIL PROTECTED]] Sent: 30 April 2001 15:54 To: '[EMAIL PROTECTED]' Cc: Sridevi Kumar Subject: Tomcat and Access Database Hello, I am Using Access Database to connect with JDBC in Java and my program looks like this... public class ...{ .. ... try{ Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); con=DriverManager.getConnection(jdbc:odbc:shree); }catch(Exception e){ e.printStackTrace(); System.exit(1); } try{ stmt=con.createStatement(); ResultSet rs=stmt.executeQuery(query); ResultSetMetaData rsmd=rs.getMetaData(); System.out.println(); out.println(font color=gray); out.println(ub+The Developers with +level+ Skill level in +softwarename + is/are :+/b/u); out.println(/font); out.println(hr border=2 color=midnightblue); out.println(\n); out.println(br); int no_column=rsmd.getColumnCount(); for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnnames=rsmd.getColumnName(i); out.print(B+columnnames+\t\t+/b); } out.println(br); while(rs.next()) { for(int i=1;i=no_column;i++){ if(i1) out.print(,); String columnValue=rs.getString(i); out.print(columnValue+\t\t); } out.println(br); } stmt.close(); con.close(); }catch(java.sql.SQLException e){ System.out.println(e.toString()); } out.close(); } } Please help me to connect this program to Tomcat and work from tomcat server. It's very urgent... Thank You.
Verisign Tomcat
Has anyone ever installed a Verisign into tomcat before to enable the direct ssl? If so how did you import the certificate? -Justin
RE: mod_jk.so linking/compiling problem.
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 12:10 PM Try it with gcc -shared -o mod_jk.so *.o -lposix4 that worked for me on Solaris 8 x86. nope. no good either. I did notice more output though, because the first couple of times if spit past my buffer I used script to capture my run. Here is the newer stuff: gcc -DSOLARIS2=270 -DMOD_SSL=208102 -DEAPI -DUSE_EXPAT -I../lib/expat-lite - DNO_DL_NEEDED -I/usr/loca l/apache/include -I../jk -I/usr/java/include -I/usr/java/include/solaris -c mod_jk.c In file included from ../jk/jk_util.h:66, from mod_jk.c:90: ../jk/jk_pool.h:116: parse error before `jk_pool_atom_t' mod_jk.c: In function `jk_handler': mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this function) mod_jk.c:679: (Each undeclared identifier is reported only once mod_jk.c:679: for each function it appears in.) mod_jk.c:679: parse error before `buf' mod_jk.c:680: `buf' undeclared (first use in this function)
Re: inputstream
I fought with this for a very long time. It was difficult, I found examples but none of them worked. In the end I had to resort to perl. There are definately area withinJava/JSP/Tomcat that are not working well. This is one of them. From: Tim O'Neil <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: inputstream Date: Mon, 30 Apr 2001 09:29:08 -0700 At 11:51 AM 4/30/2001 -0400, you wrote: hi everyone, i'm trying to use a form to upload a file from the webpage to my server. i don't want to store the file on myserver, i just want to receive the file data and send it somewhere else right away. i know that i have to parse the received data to eliminate the boundaries and th content type,etc. do you know the max size that i can receive on the standardInputStream Being a stream that's a loaded question, although reading the api policy on the DataInput interface I presume its the maximum size of a byte array. But this is the wrong way to look at an inputstream. The input data has to go somewhere, right? I would assume also that your going to write the input into an output stream, so theoretically you'll not need to worry about a limit. Presumably the data is going somewhere as soon as it comes in. What you really need to worry about is the other end, the data receiver might choke, go off line, slow down, stop receiving for whatever reason. You should plan for that in your design, and implement a temporary buffer on your transmitting end. Get your FREE download of MSN Explorer at http://explorer.msn.com
Once I have imported the verisign certificate I get the following error;
2001-04-30 10:10:10 - Ctx( ): 400 R( /) null 2001-04-30 10:10:10 - Ctx( ): IOException in: R( /) Socket closed 2001-04-30 10:10:11 - Ctx( ): 400 R( /) null 2001-04-30 10:10:11 - Ctx( ): IOException in: R( /) Socket closed 2001-04-30 10:10:12 - Ctx( ): 400 R( /) null 2001-04-30 10:10:12 - Ctx( ): IOException in: R( /) Socket closed Any thoughts?? -Justin
RE: inputstream
why do you need Java on the client (browser) I thought you said that you wanted to upload a file from my web page to my web server, no need for java on the client to do that, hence no need for IE vs. netscape issues for JRE stuff Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Thad Humphries [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:30 AM To: [EMAIL PROTECTED] Subject: Re: inputstream I have found this differs between the JRE on the platform. In my experience, BufferedInputStream in IE 5.5 (no plugin) would get corrupted so I had to read the full value returned by URLConnection.getContentLength(). With Netscape 4.7, no plugin, I read chunks as determined by BufferedInputStream.available(). I think the Netscape approach is how it should work. At 11:51 4/30/2001 -0400, you wrote: hi everyone, i'm trying to use a form to upload a file from the webpage to my server. i don't want to store the file on myserver, i just want to receive the file data and send it somewhere else right away. i know that i have to parse the received data to eliminate the boundaries and th content type,etc. do you know the max size that i can receive on the standardInputStream thanks for any suggestions Georges -- Thad Humphries If the misery of our poor be caused not Web Development Manager by the laws of nature but by our institu- Phone: 540/675-3015, ext. 225tions, great is our sin. Charles Darwin
Tomcat and Access Database
I too have used the bridge driver to connect to an Access database from a servlet and there were no codes, no tricks, no special setup. Unless you can be more specific about the error you are getting, I don't know if anyone can help you. Sridevi Kumar wrote: From: Sridevi Kumar [EMAIL PROTECTED] Subject: RE: Tomcat and Access Database ... That's what i am asking ,Kindlt tell me the codes for accessing servlets with JDBC from tomcat. ... From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 12:23 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Access Database I didn't make any changes to web.xml for database access. I also developed on JSWDK and ported to Tomcat, but I had no problems, i.e. the Access Database sql ran just the same.
Re: Boycott China - please read - your life may depend on it
Hi, I'm the person who started this thread (accidentally, if you all recall.) I was hoping that this thread would just die, but unfortunately people are still posting. I suggest we move this discussion to the NNTP newsgroup talk.politics.china that appears to be heavily used, and appropriate to this discussion. Again, my very sincere apologies for bothering this list, and also with the inflammatory nature of my original message. One should always re-read a potentially inflammatory message before sending, something I did not do in this case. To the Tomcat list moderator - is it possible to purge the archives of this thread so that these messages do, in fact, cease? Sincerely, Rick Horowitz _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: What is errno = 61 and how to resolve it?
errno 61 is Connection refused. Attached is a comma-delimited list of errno's for future reference... I hope this gets you started... Darrell Name,Number,Explanation EJUSTRETURN,-2,don't modify regs - just return ERESTART,-1,restart syscall EPERM,1,Operation not permitted ENOENT,2,No such file or directory ESRCH,3,No such process EINTR,4,Interrupted system call EIO,5,Input/output error ENXIO,6,Device not configured E2BIG,7,Argument list too long ENOEXEC,8,Exec format error EBADF,9,Bad file descriptor ECHILD,10 No child processes EDEADLK,11,Resource deadlock avoided ENOMEM,12,Cannot allocate memory EACCES,13,Permission denied EFAULT,14,Bad address ENOTBLK,15,Block device required EBUSY,16,Device busy EEXIST,17,File exists EXDEV,18,Cross-device link ENODEV,19,Operation not supported by device ENOTDIR,20 Not a directory EISDIR,21,Is a directory EINVAL,22,Invalid argument ENFILE,23,Too many open files in system EMFILE,24,Too many open files ENOTTY,25,Inappropriate ioctl for device ETXTBSY,26,Text file busy EFBIG,27,File too large ENOSPC,28,No space left on device ESPIPE,29,Illegal seek EROFS,30 Read-only file system EMLINK,31,Too many links EPIPE,32,Broken pipe EDOM,33,Numerical argument out of domain ERANGE,34,Result too large EAGAIN,35,Resource temporarily unavailable EINPROGRESS,36,Operation now in progress EALREADY,37,Operation already in progress ENOTSOCK,38,Socket operation on non-socket EDESTADDRREQ,39,Destination address required EMSGSIZE,40 Message too long EPROTOTYPE,41,Protocol wrong type for socket ENOPROTOOPT,42,Protocol not available EPROTONOSUPPORT,43,Protocol not supported ESOCKTNOSUPPORT,44,Socket type not supported EOPNOTSUPP,45,Operation not supported EPFNOSUPPORT,46,Protocol family not supported EAFNOSUPPORT,47,Address family not supported by protocol family EADDRINUSE,48,Address already in use EADDRNOTAVAIL,49,Can't assign requested address ENETDOWN,50 Network is down ENETUNREACH,51,Network is unreachable ENETRESET,52,Network dropped connection on reset ECONNABORTED,53,Software caused connection abort ECONNRESET,54,Connection reset by peer ENOBUFS,55,No buffer space available EISCONN,56,Socket is already connected ENOTCONN,57,Socket is not connected ESHUTDOWN,58,Can't send after socket shutdown ETOOMANYREFS,59,Too many references: can't splice ETIMEDOUT,60 Operation timed out ECONNREFUSED,61,Connection refused ELOOP,62,Too many levels of symbolic links ENAMETOOLONG,63,File name too long EHOSTDOWN,64,Host is down EHOSTUNREACH,65,No route to host ENOTEMPTY,66,Directory not empty EPROCLIM,67,Too many processes EUSERS,68,Too many users EDQUOT,69,Disc quota exceeded ESTALE,70 Stale NFS file handle EREMOTE,71,Too many levels of remote in path EBADRPC,72,RPC struct is bad ERPCMISMATCH,73,RPC version wrong EPROGUNAVAIL,74,RPC prog. not avail EPROGMISMATCH,75,Program version wrong EPROCUNAVAIL,76,Bad procedure for program ENOLCK,77,No locks available ENOSYS,78,Function not implemented EFTYPE,79,Inappropriate file type or format EAUTH,80 Authentication error ENEEDAUTH,81,Need authenticator ELAST,81,Must be equal largest errno -Original Message- From: Philippe Roy [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:34 AM To: [EMAIL PROTECTED] Subject: What is errno = 61 and how to resolve it? I get an errno = 61 in my mod_jk.log and can't find any documentation that may explain what this is about. Could someone give me an idea.
RE: inputstream
I fought with this for a very long time. It was difficult, I found examples but none of them worked. In the end I had to resort to perl. did you take a look at the O'reilly servlet examples. they include full source code for doing this in a working example Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Allen Levin [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 10:14 AM To: [EMAIL PROTECTED] Subject: Re: inputstream I fought with this for a very long time. It was difficult, I found examples but none of them worked. In the end I had to resort to perl. There are definately area within Java/JSP/Tomcat that are not working well. This is one of them. From: Tim O'Neil Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: inputstream Date: Mon, 30 Apr 2001 09:29:08 -0700 At 11:51 AM 4/30/2001 -0400, you wrote: hi everyone, i'm trying to use a form to upload a file from the webpage to my server. i don't want to store the file on myserver, i just want to receive the file data and send it somewhere else right away. i know that i have to parse the received data to eliminate the boundaries and th content type,etc. do you know the max size that i can receive on the standardInputStream Being a stream that's a loaded question, although reading the api policy on the DataInput interface I presume its the maximum size of a byte array. But this is the wrong way to look at an inputstream. The input data has to go somewhere, right? I would assume also that your going to write the input into an output stream, so theoretically you'll not need to worry about a limit. Presumably the data is going somewhere as soon as it comes in. What you really need to worry about is the other end, the data receiver might choke, go off line, slow down, stop receiving for whatever reason. You should plan for that in your design, and implement a temporary buffer on your transmitting end. Get your FREE download of MSN Explorer at http://explorer.msn.com
Do I smell?
Or is it just that no one else is interested in integrating Tomcat and Apache?! I have servlet mappings in my web.xml file that map URI's to servlets. These URI's may contain files with jsp extent ions on them. when I integrate Tomcat 3.2.1 with Apache I can see any of my jsp's and servlets and have them execute. However, it appears that the mappings I supplied in web.xml are gone. Here's an example in stand alone Tomcat: http://host:8080/VDC/Component gets sent to maps to my /VDC/servlets/Dispatch and http://host:8080/VDC/Component/main.jsp also maps to /VDC/servlets/Dispatch this is because my web.xml looks like this: servlet-nameDispatch/servlet-name servlet-classvdc.uis.Dispatch/servlet-class load-on-startup4/load-on-startup /servlet servlet-mapping servlet-nameDispatch/servlet-name url-pattern/Component/*/url-pattern /servlet-mapping Dispatch is responsible for doing some work and the forwarding the request to /VDC/Component/main.jsp. This works great in standalone tomcat. However when I try to use Apache to access http://host/VDC/Component/main.jsp instead of going to Dispatch it goes directly to the jsp file. This appears to be because the mappings outlined in web.xml seem to be ignored. Is it true that web.xml is not used by Apache/jserv_mod? if so, how can I write a an entry in the apache-tomcat.conf that will accomplish this same mapping? thanks, Mark
Specifying a Webapp classloader.
Hi Everybody, I am trying to figure out how to have servlets within a Webapp (context) use a specified class loader under Tomcat Version 4.0 Beta... Currently, the tomcat default classloader used within my servlet is a URLClassLoader whose codebase is a list of jar:jndi//WEB-INF/lib/ ...!/ elements. e.g: Using from the servlet the following code: URL[] urls = ((URLClassLoader)this.getClass().getClassLoader()).getURLs(); Will get a list of urls in the following form: jar:jndi:/WEB-INF/lib/zoo.jar!/ The problem is that URLClassLoaders getClassAnnotation() don't return the URLs specified in my java.rmi.server.codebase...they simply return those returned from the call to classloader.getURLs(). This is far from what I want!The only solution I currently have is to create my own class loader within the servlet. So...is there a way to configure tomcat so that either: * it provides me a class loader that is not an instance of a URLClassLoader? -or- * It provides me with a class loader that I explicitly specify for the context or my Webapp? thanks, Paul
Turn off JSP file date checking
Hi all, I asked this earlier, but no one replied. Is there a way to turn off the jsp file modified date check everytime the file is served? I know that if you can turn this off, it speeds things up a lot. Please Help.. I'm desperate. Christian
RE: Detect Browser Disconnect
Put a heartbeat on the client - Use either an applet or a form with a timeout before it resubmits. If you don't get the heartbeat at the server, than terminate the background thread. (This assumes that the initiat processing can be put in a background thread.) -Original Message- From: Reiche, Mike [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 3:53 PM To: '[EMAIL PROTECTED]' Subject: RE: Detect Browser Disconnect WebLogic (sometimes) throws exceptions when you write to the response socket (out.println) after a user has clicked on the 'stop' button or the browser has timed out. Tomcat may do the same. Mike -Original Message- From: Devon Ziegler [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 11:58 AM To: [EMAIL PROTECTED] Subject: Detect Browser Disconnect Well, I waited a while and decided to ask this question again (WITHOUT read receipts this time!!! :) (what a waste of email bandwidth)). Is there any way to determine if the browser that requested a page is still waiting for the response? I would like to terminate lengthy queries and computations if the browser asking for the page is no longer waiting for it. We're using Linux 6.2 with tomcat 3.2.1 standalone and using Servlets. Any thoughts? Is this impossible? Anybody? Anybody? --- Devon C. Ziegler [EMAIL PROTECTED] [EMAIL PROTECTED] Cell: (678) 485-7025 Office: (678) 589-4126
back button
Hi, How can I do something so user can't click back button for some particular pages. Ex. user can't click back button to go back to the confirm page to insert record again. I know it is off-topic. But I think lots of gurus in this list know how to do. Please help me. Thanks Abe Liu
Re: Turn off JSP file date checking
Christian Hargraves wrote: Hi all, I asked this earlier, but no one replied. Is there a way to turn off the jsp file modified date check everytime the file is served? I know that if you can turn this off, it speeds things up a lot. Please Help.. I'm desperate. Christian yes, somebody responded, they said to set reloadable=false for the webapp in the server.xml file.
RE: newbie question about forte/tomcat
Hello, If you have the enterprise edition of forte then it is built in. If not then you will have to mount the filesystem (aka Directory) where you're servlets exist. Then launch IE to compile them automatically. Adam. Adam Fowler Second year Computer Science undergraduate University of Wales, Aberystwyth Carroll College, WI, USA(2000-2001) web: http://gucciboy.dyndns.org/aff9 e-mail: [EMAIL PROTECTED] Every new beginning comes from some other beginning's end -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 2:53 PM To: [EMAIL PROTECTED] Subject: newbie question about forte/tomcat Hello friends, I'm to starting in java/servlets development a few days... I have some questions. -When i launch Forte for java Editor does it must to recognize my tomcat installation like when i create a web application on M$ Visual Interdev !? -Do I can to developer a web application simply to create a structure directory on explorer menu !? -Is There a good tutorial about use forte with tomcat to developer servlets and jsp/beans pages that someone could be recommend me? Is TOGETHER 5.0 a good ide development ? It seems to much simply ! thanks * sorry english is not my first languague *
Re: AW: PLeeeeeeeeeeeeeeeeaseeeeeeeeeeeeeeeeeee help
Hi all: I got it. I was actually modifying the global web.xml and that doesn't work. But when i made same changes to the application's web.xml, it worked. And i didn't even have to wite any code for mime-mapping Just did servlet-mapping servlet-namejsp/servlet-name url-pattern*.phj/url-pattern /servlet-mapping and it worked Thanks all Shelly Robert Wohlgemuth wrote: Hi Shelly, I'm new to tomcat put I think that in the file tomcat-home/conf/uriworkermap.properties you can specify which files should be handled by which worker. Best regards, robert -Ursprungliche Nachricht- Von: Shankar Gowda [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 28. April 2001 10:38 An: [EMAIL PROTECTED] Betreff: Re: PLaseee help i want to get to know , the error of it in tomcat please send it --- Shelly Dhiman [EMAIL PROTECTED] wrote: Hi: I want to know in tomcat is it possible to treat any other file extension as jsp. I saved a .jsp file as .phj and i hace done the servlet mapping in web.xml like servlet-mapping servlet-namejsp/servlet-name url-pattern*.phj/url-pattern /servlet-mapping BUt when i try to open that page using browser it shows me text of that phj file. Do i have to do a mime-mapping, if yes then how Any help on this would be appreciated. Thanks Shelly __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: back button
Hei , that can't you block explicit, you could only check, when you create the Page (wich comes up when you press the back button), if some record is in use already, and then redirect to the prefered site. Greetings, Michael Abraham Liu wrote: Hi, How can I do something so user can't click back button for some particular pages. Ex. user can't click back button to go back to the confirm page to insert record again. I know it is off-topic. But I think lots of gurus in this list know how to do. Please help me. Thanks Abe Liu
RE: Easy Question
Finally got everything working but cannot find : TOMCAT_HOME/conf/tomcat-apache.conf It is not in the directory as stated in documentation. Any ideas? thanks Laurence -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:10 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question did you add the path to your tomcat.sh file? -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 1:01 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question After putting the full path in the JAVA_HOME var, I get the folloing error : /usr/java/jdk1.3.0_02/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory The directory is there. Thanks Laurence -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 8:56 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question add the JAVA_HOME=/usr/bin/java and TOMCAT_HOME=/opt/tomcat --- (this depends on where your tomcat and java is installed in) to your tomcat.sh file and that should work. Then run it. -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 12:45 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question Thanks for the reply. I have done this, but when looking in the log catalina.out I see it is taking the JAVA_HOME var and adding /bin/java to the end with no such file or directory.any idea why? Thanks Laurence -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 8:47 PM To: [EMAIL PROTECTED] Subject: Re: Easy Question I'd suggest you to set up by hand the environment variable TOMCAT_HOME to point to the directory where tomcat is installed. Once you've started it, you have to point to your browser to the host:port where it's running. hth, m- Hi Everyone, Please forgive me for this basic question but have run into a problem and cannot seem to move forward: I am trying to check if the server Tomcat is up and running as when I run start.sh all I get is: Guessing CATALINA_HOME from catalina.sh to ./.. Setting CATALINA_HOME to ./.. Using CLASSPATH: ./../bin/bootstrap.jar Using CATALINA_HOME: ./.. How do I test that it is working? Thanks Laurence
RE: Easy Question
That's because the file is dynamically generated when you start tomcat and should be in the conf directory under tomcat. -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 3:03 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question Finally got everything working but cannot find : TOMCAT_HOME/conf/tomcat-apache.conf It is not in the directory as stated in documentation. Any ideas? thanks Laurence -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:10 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question did you add the path to your tomcat.sh file? -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 1:01 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question After putting the full path in the JAVA_HOME var, I get the folloing error : /usr/java/jdk1.3.0_02/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory The directory is there. Thanks Laurence -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 8:56 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question add the JAVA_HOME=/usr/bin/java and TOMCAT_HOME=/opt/tomcat --- (this depends on where your tomcat and java is installed in) to your tomcat.sh file and that should work. Then run it. -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 12:45 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question Thanks for the reply. I have done this, but when looking in the log catalina.out I see it is taking the JAVA_HOME var and adding /bin/java to the end with no such file or directory.any idea why? Thanks Laurence -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 8:47 PM To: [EMAIL PROTECTED] Subject: Re: Easy Question I'd suggest you to set up by hand the environment variable TOMCAT_HOME to point to the directory where tomcat is installed. Once you've started it, you have to point to your browser to the host:port where it's running. hth, m- Hi Everyone, Please forgive me for this basic question but have run into a problem and cannot seem to move forward: I am trying to check if the server Tomcat is up and running as when I run start.sh all I get is: Guessing CATALINA_HOME from catalina.sh to ./.. Setting CATALINA_HOME to ./.. Using CLASSPATH: ./../bin/bootstrap.jar Using CATALINA_HOME: ./.. How do I test that it is working? Thanks Laurence
RE: Easy Question
even after I start it, it is not there? Thanks Laurence -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 11:12 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question That's because the file is dynamically generated when you start tomcat and should be in the conf directory under tomcat. -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 3:03 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question Finally got everything working but cannot find : TOMCAT_HOME/conf/tomcat-apache.conf It is not in the directory as stated in documentation. Any ideas? thanks Laurence -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:10 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question did you add the path to your tomcat.sh file? -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 1:01 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question After putting the full path in the JAVA_HOME var, I get the folloing error : /usr/java/jdk1.3.0_02/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory The directory is there. Thanks Laurence -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 8:56 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question add the JAVA_HOME=/usr/bin/java and TOMCAT_HOME=/opt/tomcat --- (this depends on where your tomcat and java is installed in) to your tomcat.sh file and that should work. Then run it. -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 12:45 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question Thanks for the reply. I have done this, but when looking in the log catalina.out I see it is taking the JAVA_HOME var and adding /bin/java to the end with no such file or directory.any idea why? Thanks Laurence -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 8:47 PM To: [EMAIL PROTECTED] Subject: Re: Easy Question I'd suggest you to set up by hand the environment variable TOMCAT_HOME to point to the directory where tomcat is installed. Once you've started it, you have to point to your browser to the host:port where it's running. hth, m- Hi Everyone, Please forgive me for this basic question but have run into a problem and cannot seem to move forward: I am trying to check if the server Tomcat is up and running as when I run start.sh all I get is: Guessing CATALINA_HOME from catalina.sh to ./.. Setting CATALINA_HOME to ./.. Using CLASSPATH: ./../bin/bootstrap.jar Using CATALINA_HOME: ./.. How do I test that it is working? Thanks Laurence
RE: back button
You can also trick it with some JavaScript. When the user goes back check to see if there is anything in the browser's forward history (i.e. history(1) or something like that, I don't remember the exact syntax). If there is something in the forward history then just do a location.href=someurl.jsp redirect to the page you want them to go to. That might be a work-around. Total speculation here because I've never tried this before, but I don't see why it wouldn't work. -greg -Original Message- From: Wolle [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 5:02 PM To: [EMAIL PROTECTED] Subject: Re: back button Hei , that can't you block explicit, you could only check, when you create the Page (wich comes up when you press the back button), if some record is in use already, and then redirect to the prefered site. Greetings, Michael Abraham Liu wrote: Hi, How can I do something so user can't click back button for some particular pages. Ex. user can't click back button to go back to the confirm page to insert record again. I know it is off-topic. But I think lots of gurus in this list know how to do. Please help me. Thanks Abe Liu
RE: Easy Question
Start it, and then stop it. Stop it GENTLY don't just kill it. If you look, it will be there. -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 May 2001 8:13 AM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question even after I start it, it is not there? Thanks Laurence -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 11:12 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question That's because the file is dynamically generated when you start tomcat and should be in the conf directory under tomcat. -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 3:03 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question Finally got everything working but cannot find : TOMCAT_HOME/conf/tomcat-apache.conf It is not in the directory as stated in documentation. Any ideas? thanks Laurence -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 9:10 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question did you add the path to your tomcat.sh file? -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 1:01 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question After putting the full path in the JAVA_HOME var, I get the folloing error : /usr/java/jdk1.3.0_02/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory The directory is there. Thanks Laurence -Original Message- From: Nael Mohammad [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 8:56 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question add the JAVA_HOME=/usr/bin/java and TOMCAT_HOME=/opt/tomcat --- (this depends on where your tomcat and java is installed in) to your tomcat.sh file and that should work. Then run it. -Original Message- From: Laurence Mayer [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 12:45 PM To: '[EMAIL PROTECTED]' Subject: RE: Easy Question Thanks for the reply. I have done this, but when looking in the log catalina.out I see it is taking the JAVA_HOME var and adding /bin/java to the end with no such file or directory.any idea why? Thanks Laurence -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 8:47 PM To: [EMAIL PROTECTED] Subject: Re: Easy Question I'd suggest you to set up by hand the environment variable TOMCAT_HOME to point to the directory where tomcat is installed. Once you've started it, you have to point to your browser to the host:port where it's running. hth, m- Hi Everyone, Please forgive me for this basic question but have run into a problem and cannot seem to move forward: I am trying to check if the server Tomcat is up and running as when I run start.sh all I get is: Guessing CATALINA_HOME from catalina.sh to ./.. Setting CATALINA_HOME to ./.. Using CLASSPATH: ./../bin/bootstrap.jar Using CATALINA_HOME: ./.. How do I test that it is working? Thanks Laurence
Need help!
I just installed tomcat 3.2.1 on Solaris2.8. I am noticing that in my servlet when I call req.getSession( true ); It takes about 15 seconds to get a new session from tomcat. This code was working fine with tomcat version 3.1.x. How come it takes so long to get a new session? Do we need to change any configuration? Thanks, Vikram Mahuvakar Genetic Health email- [EMAIL PROTECTED]