Pass parameter to the JVM at startup
Hi ALL, Does anyone know how to pass one parameter by Tomcat 5.0.28 to the starts JVM? I need to pass the - server parameter to the JVM (SUN 1.4.2) but I don´t know where I put this to call JVM. Thanks Acacio Furtado Costa Pesquisa e Tecnologia GIA - Magnesita S/A * [EMAIL PROTECTED]
Tomcat server memory optimization
I read an article about Considering the server VM. In this article I realize the JVM (Sun´s) actually contains different VM inside the binary that´s executed to start up Java applications: the Client and The Server VM. The server VM trades priorities for emphasis on greater scalability for server-type apllications and the Client VM priorize startup time and minimizing latency of GC. BY default, Java uses the client VM and It recommends to passing the - server command-line option to the java VM on startup. Does anyone used and know, how to pass this parameter to use with Tomcat 5.0.x ? and what´s result reached? TIA Acacio Furtado Costa Pesquisa e Tecnologia GIA - Magnesita S/A * [EMAIL PROTECTED]
Tomcat 3.3 Startup error
Please assist with correcting the following tomcat startup error ... # startup.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /usr/java130 Using TOMCAT_HOME: /usr/local/jakarta/jakarta-tomcat-3.3 # Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/s tartup/Main AIX 4.3.3, Tomcat 3.3, Java130 Apache 1.3.22 mod_jk I installed the Tomcat binary Thanks in advance Sean McGrath [EMAIL PROTECTED] Data Services 828-6950 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3 Startup error
Larry et al Ignorance is bliss How does one go about displaying the contents with the jar program? I install proprietary software and am not a developer so bear with me Sean McGrath [EMAIL PROTECTED] Data Services 828-6950 Larry Isaacs [EMAIL PROTECTED] 11/15/01 04:51 PM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 3.3 Startup error Unfortunately, I don't see an obvious reason why a class in tomcat.jar isn't found when it appears to be in the classpath. Can you display the tomcat.jar's contents with the jar program to see if it might be corrupt? Larry -Original Message- From: Sean M McGrath/AC/VCU [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 4:33 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.3 Startup error Please assist with correcting the following tomcat startup error ... # startup.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /usr/java130 Using TOMCAT_HOME: /usr/local/jakarta/jakarta-tomcat-3.3 # Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/s tartup/Main AIX 4.3.3, Tomcat 3.3, Java130 Apache 1.3.22 mod_jk I installed the Tomcat binary Thanks in advance Sean McGrath [EMAIL PROTECTED] Data Services 828-6950 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3 Startup error
Output org/ org/apache/ org/apache/tomcat/ org/apache/tomcat/util/ org/apache/tomcat/util/compat/ org/apache/tomcat/util/compat/jar/ org/apache/tomcat/util/depend/ java.util.zip.ZipException: invalid entry size (expected 474 but got 478 bytes) at java.lang.Throwable.init(Throwable.java:96) at java.lang.Exception.init(Exception.java:44) at java.io.IOException.init(IOException.java:49) at java.util.zip.ZipException.init(ZipException.java:48) at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:356) at java.util.zip.ZipInputStream.read(ZipInputStream.java:145) at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:94) at sun.tools.jar.Main.list(Main.java:748) at sun.tools.jar.Main.run(Main.java:197) at sun.tools.jar.Main.main(Main.java:908) Sean McGrath [EMAIL PROTECTED] Data Services 828-6950 Larry Isaacs [EMAIL PROTECTED] 11/15/01 04:59 PM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 3.3 Startup error I'm a Windows user, but I would expect you could do something like: /usr/java130/bin/jar -tf /usr/local/jakarta/jakarta-tomcat-3.3/lib/tomcat.jar and maybe just: jar -tf /usr/local/jakarta/jakarta-tomcat-3.3/lib/tomcat.jar Larry -Original Message- From: Sean M McGrath/AC/VCU [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 5:02 PM To: Tomcat Users List Subject: RE: Tomcat 3.3 Startup error Larry et al Ignorance is bliss How does one go about displaying the contents with the jar program? I install proprietary software and am not a developer so bear with me Sean McGrath [EMAIL PROTECTED] Data Services 828-6950 Larry Isaacs [EMAIL PROTECTED] 11/15/01 04:51 PM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat 3.3 Startup error Unfortunately, I don't see an obvious reason why a class in tomcat.jar isn't found when it appears to be in the classpath. Can you display the tomcat.jar's contents with the jar program to see if it might be corrupt? Larry -Original Message- From: Sean M McGrath/AC/VCU [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 4:33 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.3 Startup error Please assist with correcting the following tomcat startup error ... # startup.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /usr/java130 Using TOMCAT_HOME: /usr/local/jakarta/jakarta-tomcat-3.3 # Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/s tartup/Main AIX 4.3.3, Tomcat 3.3, Java130 Apache 1.3.22 mod_jk I installed the Tomcat binary Thanks in advance Sean McGrath [EMAIL PROTECTED] Data Services 828-6950 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_jk as static module
Can mod_jk be compiled as static module as opposed to Shared Object in Apache? My platform AIX 4.3.3 Apache 1.3.12 Tomcat 3.2.2
Re: Best IDE for Servlet Development?
I'm using Visual Age 4 java v. 3-5 and it seems to me very good for develobing and debugging... ac At 11.22 29/04/2001 -0700, you wrote: huh? I used Visual Cafe 4.0 for a long time, doing servlet 2.2 stuff...when you say it didn't support the latest servlet api what do you mean? Just put the latest server.jar in the classpath... On Sat, 28 Apr 2001, you wrote: I like JBUilder, I tried VIsual cafe but it didnt support the latest servlet api - Original Message - From: Curtis Spencer To: Tomcat User List Sent: Saturday, April 28, 2001 3:54 AM Subject: Best IDE for Servlet Development? 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 Content-Type: text/html; name=unnamed Content-Transfer-Encoding: quoted-printable Content-Description: -- -johnd
Re: freeBSD
I'm using tomcat on freeBSD with jdk 1.8 native with TYA jit, another one with jdk 1.2 native, still another one with linux-jdk 1.2 and I've tested linux jdk1.3 (classic mode only) in my test machine. No problem till now on all the server. Even the jakarta.apache.org site is running freeBSD!! andrea At 09.18 20/04/2001 -0400, you wrote: I've been using tomcat on freeBSD for some time now with absolutely no problems. :) Matt Eric Mosley wrote: Is the main reason that Tomcat is not recommended on freeBSD that there isn't a stable jdk1.2 port at the moment? Has anybody had any experience with Tomcat on freeBSD? What jdk are you using and is it working well?! Eric
Re: TOMCAT 3.2.1 and mod_jserv for FreeBSD
At 12.16 18/04/2001 +0200, you wrote: Hi ! Im a new user of the TOMCAT 3.2.1 system and Ive some problems: first: I run it on an FreeBSD 4.2 release with Apache/1.3.12 OpenSSL/0.9.5a (Unix) installed and in use. As a stand alone system TOMCAT will start but when i try to compile the mod_jserv.so module i get this messages: joshua2% apxs -c -o mod_jserv.so *.c gcc -DSTATUS -DVSERV -DISERVER -DSTANDALONE -DFRONTPAGE -funsigned-char -fpi c -DSHARED_MODULE -I/usr/local/apache/1.2.6/include -c autochange.c gcc -DSTATUS -DVSERV -DISERVER -DSTANDALONE -DFRONTPAGE -funsigned-char -fpi c -DSHARED_MODULE -I/usr/local/apache/1.2.6/include -c jserv_ajpv11.c In file included from jserv_ajpv11.c:61: jserv.h:397: unterminated comment jserv.h:61: unterminated `#if' conditional apxs:Break: Command failed with rc=65536 joshua2% is this a result of a wrong (old) apxs configuration ? Hi I remember there was a problem compiling mod_jk.so for freebsd. This is an old response that should work ... The location of the apxs is (in my configuration) /usr/local/sbin/ instead of ${APACHE_HOME}/bin/ After correcting this I launch the Makefile that compile the mod_jk.so (make all). The script launch : /usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include -I../jk mod_jk.c As you can see it compiles only the mod_jk.c. The command you have to launch is: /usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include -I../jk mod_jk.c ../jk/*.c If you use a different jdk just yank the apxs command and add ../jk/*.c at the end as I did. It works with all the jdk (1.1.8, 1.2 beta native and 1.2 linux) regards --- second: in the prebuild binaries for TOMCAT 3.2.1 there are two .so files in x86/Linux mod_jk.so mod_jserv_tomcat.so why exists two files ? why not mod_jserv.so ? maybe,work these files on a FreeBSD 4.2 System ? You need the native mod_jk. with thanks Detlev Schlereth
alias servlet in Tomcat
Hi, I am using Tomcat 3.1 and I need to shorten URL such that if I type in http://servername:port/, it will get to the login servlet page. Basically, I have a servlet like com.abc.login and I was able to alias it to http://servername:port/login but I can't figure out a way to alias it further such that even "login" following the servername is not necessary. The way I mapped the login servlet is by adding the following to web.xml, servlet servlet-name sl /servlet-name servlet-class com.abc.login /servlet-class /servlet servlet-mapping servlet-name sl /servlet-name url-pattern /login /url-pattern /servlet-mapping Does anyone know how to configure it so all I need is http://servername:port/? Thank you! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: ISP with tomcat
If you need I can host you in my server ... Which kind of applications do you want to run? andrea At 06.56 07/02/2001 -0800, you wrote: Does any one know a ISP with tomcat on it?? = If your into Body For Life, check out http://clubs.yahoo.com/clubs/bodyforlifestatenislandny __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Reloadable not working
Hi, just a simple question.. I spend some times trying to disable the reloadable flax in my context. The server.xml configuration is: (I'm using virtual hosting) Host name="testA.mydomain..net" Context path="/tf" docBase="webapps/tf" debug="0" crossContext="true" trusted="false" reloadable="false" /Context /Host In this manner nothing happens. If you read the remarks on server.xml you notice that if you deploy your application under TOMCAT_HOME/webapps, the engine will use some default such as reloadable=true. So I move my application outside TOMCAT_HOME/webapps. After that the previous Jkmount rules didn't work at all and, while i can call directly a jsp, once I call a servlet, tomcat didn't respond and get 99.9% cpu time (I'm under FreeBsd 4.2). Killing, trying and starting some times, I get my application working outside TOMCAT_HOME/webapps (even if I had to use the ApJServMount instead of jkmount ) but, again, the reloadable flag didn't work. Any hints??? By the way, I did the same test on a win2000, without apache on port 8080, but the reloadable flag didn't work again. Where am I wrong? thank you andrea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: loading mod_jk.so, undefined symbol: map_name_at
I found this error several times in ths mailing list You should find the answer... However this is one for freebsd I'm not sure where is the error in the makefile because I'm not a shell expert, but I solve the problem launching by myself apxs. The location of the apxs is (in my configuration) /usr/local/sbin/ instead of ${APACHE_HOME}/bin/ After correcting this I launch the Makefile that compile the mod_jk.so (make all). The script launch : /usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include -I../jk mod_jk.c As you can see it compiles only the mod_jk.c. The command you have to launch is: /usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include -I../jk mod_jk.c ../jk/j*.c If you use a different jdk just yank the apxs command and add ../jk/*.c at the end as I did. It works with all the jdk (1.1.8, 1.2 beta native and 1.2 linux) Hope this help andrea --- At 02.11 28/01/2001 -0600, you wrote: I am trying to install tomcat on a slackware linux box. I followed the instructions found on: http://mikal.org/interests/java/tomcat_users/msg19668.html for compiling and setting everything up. However, when I start apache, I get the following error message: reality:/usr/local/apache/bin# ./httpd start Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: undefined symbol: map_name_at (note I am using the same versions of apache, tomcat etc. specified in the directions) I dug through the mailing list but was unable to find any solutions to the above problem. Any help would be appreciated!! Thanks, Ryan Cuprak == | Ryan Cuprak| | [EMAIL PROTECTED] www.cuprak.net | | HomePh: (860)-742-5561 46 Prospect St. Coventry CT 06238 | | College Ph: (773)-973-9661 1400 W. Devon Ave. PMB 271 Chicago, IL 60660| == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: 100$ + free dinner in Italy for whom answers this one
// Properties props = System.getProperties(); props.put("mail.smtp.host", getMailSMTPServer()); // Get a Session object javax.mail.Session mailSession = javax.mail.Session.getDefaultInstance(props, null); where getMailSMTPServer() method is something like if (this.getServletContext().getInitParameter("mailSMTPServer") != null) return this.getServletContext().getInitParameter("mailSMTPServer"); else return ""; //default smt server!!! and mailSMTPServer is a properties in web.xml file o fyour webapp. andrea At 11.06 18/01/2001 +0100, you wrote: Hello Vittorio! Why do you want to set SMTP server properties in the javamail package Isn't more simple to set server properties in the servlet (read it from a configuration text file) p.s.: di dove sei Robuschi Roberto Delfi srl P.za Ravenet 1/b - 43100 PARMA Tel. 0521/932474 Fax 0521/989045 [EMAIL PROTECTED] --- http://www.delfi.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Multipart and mod_jk
Is this a bug on ajp13 or on O'Reilly package?? andrea At 09.48 12/12/2000 +0800, you wrote: Use mod_jk with AJP12 (not AJP13) will work Kenneth Kwan -Original Message- From: AC [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 12, 2000 12:49 AM To: [EMAIL PROTECTED] Subject:Multipart and mod_jk I've got a servlet that use the O'Reilly package to manage multipart request. If I use mod_jserv everything works fine. Once I use mod_jk the same servlet fails!!! Any solutions?? andrea
Re: Servlet Mapping
I use this configuration... ... JkMount /tf/*.jsp ajp13 JkMount /tf/*.Svlt ajp13 ... where tf is the name of my webapp. I use for each servlet the servlet mapping config in web.xml. I've found a great performance improvement using this configuration!! andrea At 20.51 11/12/2000 +0800, you wrote: I want to use Apache + Tomcat to run JSP AND Servlet programs such that http://server-ip/jsp/*.jsp will map to JSP directory AND http://server-ip/servlet/* will map to servlet directory. How to do this??? Joseph _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com
Re: logs
At 09.19 11/12/2000 +0100, you wrote: i have the tomcat only working, without apache (in linux). You should not.. andrea
Re: Forward problems servlet to JSP in 3.2
You should use servlet mapping. If you have http://myhost/myjsp.jsp the servlet that call your jsp should be mapped as http://myhost/myservlet . In this way all the relative links are still good. An additional hint.. if you map your servlet with an extension, for instance myservlet.Svlt and use a configuration such as JkMount /tf/*.jsp ajp13 JkMount /tf/*.Svlt ajp13 all the request not related to tomcat are served by Apache andrea At 13.48 11/12/2000 +, you wrote: I'm using using forward to pass a request from my servlet to a JSP page i.e.ServletContext.getRequestDispatcher ("my.jsp").forward(req, res). This is fine (the JSP gets displayed no problem) but any relative links in the JSP get messed up with a "/servlet" in the middle - e.g. a graphic referenced as "images/mygif.gif" becomes a link to "contextname/servlet/images/mygif.gif" rather than "contextname/images.mygif.gif", links to HTML files similarly get "/servlet" inserted. Help ! There must be a simple solution I'm missing here. Steve Quail.
Multipart and mod_jk
I've got a servlet that use the O'Reilly package to manage multipart request. If I use mod_jserv everything works fine. Once I use mod_jk the same servlet fails!!! Any solutions?? andrea
Re: Tomcat Unix autostart
Tomcat should start after Apache during reboot. Also remember to set your classpath in the startup script. andrea At 08.44 11/12/2000 +0100, you wrote: Hi, I'm trying to start Tomcat whith rebooting a Unix machine. Tomcat seems to start for a moment and then dissappears. I have a startup script in /sbin/rc3.d I'm using an Alpha1000 with Tru64 unix 4.0D Who can help me. Regards, Jan Stevens Software Developer CMG Maastricht B.V. -Telecom Products * Adelbert van Scharnlaan 170A* 043 - 6018185 6224 JX Maastricht * 043 - 6018169 * mailto:[EMAIL PROTECTED]
RE: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!
So it was nothing to do with caching ? # -Original Message- # From: Adress, David S. [mailto:[EMAIL PROTECTED]] # Sent: Friday, December 08, 2000 3:09 PM # To: '[EMAIL PROTECTED]' # Subject: FW: $20 bucks to the 1st person who actually solves my # problem!!! - WE HAVE A WINNER!!! # # # FYI # # -Original Message- # From: Adress, David S. # Sent: Friday, December 08, 2000 10:08 AM # To: '[EMAIL PROTECTED]' # Subject: RE: $20 bucks to the 1st person who actually solves my # problem!!! # # # BINGO! # # that's itI wasn't doing a commit and I was connecting to # access...so # access doesn't do a commit until it moves to next row... # # What's your address so I can send you the prize!!! # # -Original Message- # From: Neil H. [mailto:[EMAIL PROTECTED]] # Sent: Friday, December 08, 2000 9:00 AM # To: JRun-Talk # Subject: Re: $20 bucks to the 1st person who actually solves my # problem!!! # # # Make sure you display applet doesn't query the database # BEFORE the action # takes place. We do this in CF all the time. Query the info # we want then # make the change, at that point it was correct in the database but we # requested the info too soon. # # Neil # # - Original Message - # From: "Adress, David S." [EMAIL PROTECTED] # To: "JRun-Talk" [EMAIL PROTECTED] # Sent: Friday, December 08, 2000 8:29 AM # Subject: $20 bucks to the 1st person who actually solves my problem!!! # # # I am on this for days and I can't figure out what I'm doing # wrong. I will # send $20 bucks to 1st person who actually solves my problem. # # I am using jsp page's to control the layout of my page and # servlets to # spit # back # table data or to do database transactions. # # I have a jsp page that displays a list of employees. The jsp page # has an include statement to include the servlet to spit out # the table. # The jsp just handles the general look of the page and the # servlet just # spits out the table and table html tags. Next to each # record I have an add # and # delete hyperlink. If someone clicks the add link it # displays another page # to # add # an employee and then the action servlet adds the record and # then goes back # to the jsp # list page. If some one deletes a record it calls a servlet # to delete and # then the servlet redirects back to the jsp list page. But # the list doesn't # display the updated data without having me hit the refresh # button in the # browser. # # I tried using Tomcat and now am using Jrun and am still # having the same # problem. # # I've included all the proper meta tags in the jsp list page # not to cache # but # it's not working. I've also tries doing it with # reponse.setHeader but it # doesn't work either. # # I've tried sending a random number param to the page # ShowList?rnd=Randomnumber it still doesn't work. # # # # Your ad could be here. Monies from ads go to support these lists and # provide more resources for the community. # http://www.fusionauthority.com/ads.cfm # # Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/ # Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists # # # # Your ad could be here. Monies from ads go to support these # lists and provide # more resources for the community. # http://www.fusionauthority.com/ads.cfm # # Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/ # Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists #
RE: Tomcat on Linux
Ports numbered below 1024 are "special". You can only use them as root. # -Original Message- # From: Kevin Jones [mailto:[EMAIL PROTECTED]] # Sent: Wednesday, December 06, 2000 7:15 PM # To: Tomcat-User # Subject: Tomcat on Linux # # # From a Linux newbie! # # What's the best way of getting Tomcat to run on port 80 on # Linux (without # running it as root)? # I've re-configured Apache to run on 8080, I can start Tomcat # as su on 80, # but I'd like it to run on my account on 80. # # Anyone? # # Kevin Jones # DevelopMentor # www.develop.com #
RE: VAJ and Tomcat 3.2
At the IBM site you can find 2 classes to start and stop tomcat inside VAJ. If you can't find it I can send it to you directly andrea At 09.42 06/12/2000 +0100, you wrote: -Message d'origine- De : Rick Goeltz [mailto:[EMAIL PROTECTED]] Envoyé : mardi 5 décembre 2000 19:07 À : [EMAIL PROTECTED] Objet : Re: VAJ and Tomcat 3.2 Dear Rick, I thank you for your great help, but I have some comment : You're correct : IVJ doesn't close sockets even if the program performed an an exit(). I have not seen this (Win98/NT, VAJ 3.0.2 EA, Tomcat 3.1/3.2). As I already say, IVJ doesn't close sockets which wasn't closed by the program. Try to open a socket and next kill the thread who does the job. If you restart this thread, you'll get an error. I'm waiting for your explaination. To run Tomcat within VAJ, the first thing I do is get Tomcat running standalone. Then, install Tomcat in VAJ. I mention this because I have Tomcat log to stdout/stderr, not a file. Therefore, Tomcat/VAJ will log to the VAJ console (a good thing). When you want to stop Tomcat, use the Console's top window, select the thread, and stop/remove it. It's dirty and will this work with AJP12/13 ? To start Tomcat/VAJ, I go to the Tomcat class in the startup package and modify it's Run properties; classpath stuff, plus the -D parameter to point the standalone installation. OK, I see that you know how to setup VisualAge, but me and some others think it's more practical to have a start and a stop program to manage Tomcat, aspecialy to have a clean stop. Regards, Thibault FREY.
RE: FW: Tomcat, JSP and Cache
Try this. (Its also explained in the archives, I'm sure) head meta http-equiv="pragma" content="no-cache" meta http-equiv="cache-control" content="no-store"!-- HTTP 1.1 -- % response.setDateHeader ("Expires", 0); %!-- disable caching at proxy server -- /head You need to put it at the top of the page, as you would expect, and ALSO at the the bottom of the page, to get around a bug in some browsers e.g. MS Internet Explorer. e.g. at the bottom put it right after the body section [ page stuff here ] /body head meta http-equiv="pragma" content="no-cache" meta http-equiv="cache-control" content="no-store"!-- HTTP 1.1 -- % response.setDateHeader ("Expires", 0); %!-- disable caching at proxy server -- /head # -Original Message- # From: Adress, David S. [mailto:[EMAIL PROTECTED]] # Sent: Tuesday, December 05, 2000 6:36 PM # To: '[EMAIL PROTECTED]' # Subject: RE: FW: Tomcat, JSP and Cache # # # I tried that and it still happens. # # -Original Message- # From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] # Sent: Tuesday, December 05, 2000 12:13 PM # To: [EMAIL PROTECTED] # Subject: Re: FW: Tomcat, JSP and Cache # # # Create the headers through jsp as follows: # # response.setHeader("Cache-Control","no-cache"); # response.setHeader("Pragma","no-cache"); # # Dave # # --- "Adress, David S." [EMAIL PROTECTED] # wrote: # I was wondering if anyone can help. I have tomcat # server 3.1 running a # servlet and jsp page. # I have a servlet calling a jsp page with the # redirect method. I've put the # required meta tags on the jsp page so the page # should not cache. However, # the page is still caching. In order for my page to # display the proper # results I need to have my browser reload. Are there # any setups that need to # be done to Tomcat or do I need to have a web server # running also # # Thanks # # -Original Message- # From: Pier P. Fumagalli # [mailto:[EMAIL PROTECTED]] # Sent: Monday, December 04, 2000 3:49 PM # To: Adress, David S.; '[EMAIL PROTECTED]' # Subject: Re: Tomcat, JSP and Cache # # # Adress, David S. [EMAIL PROTECTED] wrote: # # I was wondering if you can help. # # Nope, I'm sorry... You'd better contact the Tomcat # USERS mailing list. Check # out http://jakarta.apache.org/mail.html # # Pier # # I have tomcat server running a jsp page. # I've put the required meta tags so the page should # not cache. However, the # page is still caching. In order for my page to # display the proper results # I # need to have my browser reload. Are there any # setups that need to be done # to # Tomcat ??? # # Thanks # # -- # Pier P. Fumagalli Apache Software Foundation # mailto:[EMAIL PROTECTED] # # -- # -- # Neque porro quisquam est qui dolorem ipsum quia # dolor sit amet, consectetur, # adipisci velit... # (Cicero: "De Finibus" 1.10.32) # # # # __ # Do You Yahoo!? # Yahoo! Shopping - Thousands of Stores. Millions of Products. # http://shopping.yahoo.com/ #
Re: Problem compiling mod_jk.so
This is the response I already posted to a tomcat-user with the same problem.. I thought the problem was only on FreeBsd!! Which is the os you use? --- I'm not sure where is the error in the makefile because I'm not a shell expert, but I solve the problem launching by myself apxs. The location of the apxs is (in my configuration) /usr/local/sbin/ instead of ${APACHE_HOME}/bin/ After correcting this I launch the Makefile that compile the mod_jk.so (make all). The script launch : /usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include -I../jk mod_jk.c As you can see it compiles only the mod_jk.c. The command you have to launch is: /usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include -I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include -I../jk mod_jk.c ../jk/*.c If you use a different jdk just yank the apxs command and add ../jk/*.c at the end as I did. It works with all the jdk (1.1.8, 1.2 beta native and 1.2 linux) Hope this help andrea At 08.53 06/12/2000 -0500, you wrote: Ok, I'll try this again.. Hello all, I have a problem someone may be able to help with. I tried to compile mod_jk.so seperate from my apache source, and after enabling it in got the error about it being a garbled module. So then I tried to compile it with the apache source tree (as a previous post recommended, I think) and had configure enable it, which worked fine, but when I try to execute apache it fails with the following message: Syntax error on line 238 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_jk.so into server: /usr/local/apache/libexec/mod_jk.so: undefined symbol: map_name_at It looks like this function is defined in jk_map.h, but I am unsure of how to get apache to see it. Any suggestions? About all I could think of was putting it into the apache include dir, but this did not work. Thanks in advance for your help. Craig B.
SeedGenerator thread generated an exception
Hi I've just upgraded from Tomcat 3.1 to Tomcat 3.2. Now, my previously working apps are giving me the following error whenever they encounter a JSP: java.lang.InternalError: internal error: SeedGenerator thread generated an exception As a test, I tried some of the examples that come with Tomcat 3.2. NumberGuess gives SeedGenerator exception Date works ok Snoop gives SeedGenerator exception ErrorPage gives SeedGenerator exception JSP-Servlet-JSP gives SeedGenerator exception ... and so on. All of the servlet examples work OK except the Sessions servlet example. My environment is: Solaris 2.6, Sun JDK 1.2, Tomcat 3.2. I have already RTFM as much as possible - searched the tomcat list archive, jguru site, etc... -- Andris Nestors Denning House, London Tel. +44 20 7878 8159
Freebsd and mod_jk
I've just downloaded the 3.2 release on my Frebse 4.1 and I was trying to use the mod_jk insetad mod_jserv. After following the instructions I've compiled with the Freebsd Makefile and include in my http.conf th Load module directive. This is the response I get apachectl configtest Syntax error on line 3 of /usr/local/tomcat32/conf/mod_jk.conf: Cannot load /usr/local/libexec/apache/mod_jk.so into server: /usr/local/libexec/apache/mod_jk.so: Undefined symbol "map_name_at" Any hints?? thanks andrea
Re: tomcat/freeBSD - mod_jk
I'm running Tomcat 3.2b6 on a FreeBsd 4.1.1-STABLE with both Jdk 1.8, Jdk 1.2 Linux and native Jdk 1.2 Beta. I did some test with velometer and the response are quite good with all the versions. The fastest was the Linux version (!) but now I'm stressing the native 1.2 to check if is stable enough (and for servlets an jsp seems to be stable. No crash till now). In production environment I'm still using the 1.8 with TYA jit. I'm still using the mod_jserv because I had some problems with mod_jk (I have not tested the latest versions). If anyone has tested it, any helps are welcome. thanks andrea At 10.28 18/11/2000 +0100, you wrote: On Fri, Nov 17, 2000 at 11:42:21AM -0700, oj49 wrote: Hi, Anyone out there running Tomcat with the freeBSD port of JDK1.2.2 on any recent of freeBSD? Any pointers or comments? I cannot swaer that it was the FreeBSD port of jdk1.2 aand I'm not sure whether it's jdk1.2.2 (with all these confusing numbers these days :-) but I'm using tomcat (still 3.1beta but will probably migrate to 3.2b7 this weekend) under FreeBSD with a PIII/500 and 256 MB and I'm very satisfied with this combination. thanks -aaz -- Chris Christoph P. U. Kukulies [EMAIL PROTECTED]