Problem in Production
Hi All, When we are running tomcat as a sever in production environment. After few days , The load of server is increasing upto 600%. Did any one face the same problem. We have check everthing and finally came to conclusion that tomcat is taking the resources. Can anyone help on this issue. Regards, Hari. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Java q: round to n decimal points?
in NuberFormat, Please use the fucntion setMaximumDecimalPoints and Miminum Decimal Points. -Original Message- From: Josh G [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 14, 2002 05:54 PM To: Tomcat Users List Subject: Java q: round to n decimal points? Is there a nice easy way to round a double to n decimal points? I couldn't see anything in Math,Double,String, or NumberFormat... -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
What is Realm
Hi All, What is Realm. From Hari. -Original Message- From: McBrayer, Roy [mailto:Roy.McBrayer;mail.va.gov] Sent: Saturday, November 09, 2002 05:44 AM To: '[EMAIL PROTECTED]' Subject: Configuring tomcat to use different realms with different applications I cannot get TomCat 4.1.12 to use different realms for separate applications. I have specified the realm inside an application context in the server.xml file but the app is still using the default realm. If I remove the default realm then nothing works. With respect to the xml files given below iiv is the application which I am trying to configure to use a separate realm from the default. Any help would be appreciated. Thanks, Roy The web.xml is ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-namecontrol/servlet-name servlet-classorg.dbforms.Controller/servlet-class init-param param-namemaxUploadSize/param-name param-value8/param-value /init-param /servlet servlet servlet-namefile/servlet-name servlet-classorg.dbforms.util.FileServlet/servlet-class load-on-startup3/load-on-startup /servlet servlet servlet-nameorg.dbforms.ConfigServlet/servlet-name servlet-classorg.dbforms.ConfigServlet/servlet-class init-param param-namelog4j.configuration/param-name param-value/WEB-INF/log4j.properties/param-value /init-param load-on-startup4/load-on-startup /servlet servlet-mapping servlet-namecontrol/servlet-name url-pattern/servlet/control/url-pattern /servlet-mapping servlet-mapping servlet-namefile/servlet-name url-pattern/servlet/file/url-pattern /servlet-mapping session-config session-timeout25/session-timeout /session-config welcome-file-list welcome-filehome.jsp/welcome-file /welcome-file-list taglib taglib-uri/WEB-INF/dbforms.tld/taglib-uri taglib-location/WEB-INF/dbforms.tld/taglib-location /taglib security-constraint web-resource-collection web-resource-nameiiv/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameiiv/realm-name /login-config /web-app The server.xml is !-- Example Server Configuration File -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Uncomment these entries to enable JMX MBeans support -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8081 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8099 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false/ !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2
Re: Tomcat using VERY LARGE Memory (URGENT!!!!!!!!!)
Hi Oyundalai, Those 23M shown in top are the amount of shared memory being used, and is not the amount being used by each individual process. Out of interest, because I can't find it in your email, which version of tomcat are you using?. And also have you tried jdk1.3, as this is a more proven series of JVM's? Regards and best wishes, Justin Clift http://techdocs.postgresql.org - Original Message - From: Oyundalai.N.S [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 2:50 PM Subject: Re: Tomcat using VERY LARGE Memory (URGENT!) In addtition, after restarting tomcat memory usage of each java processes decreases until 23M each and grows up slowly. Please see output of top that sorted by memory usage. . And after several days it reaches up to 60M each and crashes. Apache is working normally all time. 11:47am up 7 days, 17:15, 2 users, load average: 0.01, 0.03, 0.08 111 processes: 110 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.0% user, 1.7% system, 0.0% nice, 98.2% idle Mem: 1028860K av, 961188K used, 67672K free, 116K shrd, 139632K buff Swap: 1020116K av, 0K used, 1020116K free 705172K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 18492 root 9 0 26536 25M 9576 S 0.0 2.5 0:03 java 18493 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18494 root 9 0 26536 25M 9576 S 0.0 2.5 0:01 java 18495 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18496 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18497 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18498 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18499 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18500 root 9 0 26536 25M 9576 S 0.0 2.5 0:01 java 18503 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18504 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18507 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18508 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18509 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18510 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18511 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18512 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18513 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18514 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18515 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18516 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18517 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18518 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18519 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18520 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18529 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18535 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18538 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18539 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18544 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18545 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18546 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18556 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18557 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18558 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18600 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18602 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18605 root 9 0 26536 25M 9576 S 0.0 2.5 0:00 java 18526 nobody 9 0 4968 4968 4608 S 0.0 0.4 0:00 httpd 18532 nobody 9 0 4780 4780 4368 S 0.0 0.4 0:00 httpd 18531 nobody 9 0 4768 4768 4396 S 0.0 0.4 0:00 httpd 18525 nobody 9 0 4752 4752 4392 S 0.0 0.4 0:00 httpd 18530 nobody 9 0 4480 4480 4260 S 0.0 0.4 0:00 httpd 18524 nobody 9 0 4476 4476 4256 S 0.0 0.4 0:00 httpd 18522 nobody 9 0 4472 4472 4256 S 0.0 0.4 0:00 httpd 18523 nobody 9 0 4472 4472 4256 S 0.0 0.4 0:00 httpd 18528 nobody 9 0 4472 4472 4260 S 0.0 0.4 0:00 httpd 18540 nobody 9 0 4468 4468 4260 S 0.0 0.4 0:00 httpd After crashing tomcat I see on the browser Internal server error and log file is fulled by following messages ... [Sat Mar 09 22:51:13 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Sat Mar 09 22:51:13 2002] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Sat Mar 09 22:51:13 2002] [jk_ajp13_worker.c (712)]: Error reading reply [Sat Mar 09 22:51:13
Closing Connections.
Hi All, Is it neccesary for us to close the connetions for the database. Is the java garbage collector gonna do the job for us. If that is not the case please tell me how to close the connections. We have a application containing 800 pages . Every page has a connection open . Do we require to close all the applications. Regards, Hari Yellina. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: simply this...
/mystuff1 rather giving in this manner , please give just / it works. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 2:58 PM Subject: simply this... In a message dated Tue, 15 May 2001 12:53:16 AM Eastern Daylight Time, Seasundown writes: TIA... Start with a pristene standalone Tomcat install. I simply wish to create a directory which would recognize servlets jsp files. A directory in addition to the current examples location. I've edited server.xml to provide 2 more contexts: - Context path=/examples -orig tag(still there) docBase=webapps/examples crossContext=false debug=0 reloadable=true /Context Context path=/mystuff1 --my new context entrys docBase=webapps/mystuff1 debug=0 reloadable=true /Context Context path=/mystuff2 --my new context entrys docBase=webapps/mystuff2 debug=0 reloadable=true /Context - Is there ANYTHING else to configure (other than placing a servlet and a jsp in this directory before being able to connect with: localhost:8080/mystuff1/mynewservlet localhost:8080/mystuff2/mynewjsp.jsp in order to have servlet jsp working?
Re: encodeRedirectURL(url)) doesn't work
use java.net.encodeURL it works. - Original Message - From: Stephen Oakes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 14, 2001 3:16 PM Subject: RE: encodeRedirectURL(url)) doesn't work I am using response.sendRedirect(response.encodeRedirectURL(url)) in JSP. It doesn't work. Any idea? Are you sure it doesn't work? What do you think it is supposed to do? Perhaps you should look at the URLEncoder class. -- Stephen Oakes
Re: Problem in refresh the new jsp file
Hi All, As Mascha was telling you guys. Please add response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); begining of your jsp page. I mean after page tag. This is really efecctive solution. It has worked for me on IE 5 as well Netscape 4.3 4.7 Thanks for Mascha Regards Hari Yellina. - Original Message - From: Mascha Kluge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 7:01 PM Subject: AW: Problem in refresh the new jsp file Hi, write this in your .jsp: response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); This will avoid that the jsp-page is cached. Regards, Mascha Mascha-Kathinka Kluge ByteCom GmbH Martin-Luther-Str. 5a 97072 Wurzburg Tel: +49 (931) 35 45 8-44 Fax: +49 (931) 35 45 8-19 http://www.bytecom.net mailto:[EMAIL PROTECTED] -Ursprungliche Nachricht- Von: Franky Tong [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 9. Mai 2001 10:42 An: [EMAIL PROTECTED] Betreff: Problem in refresh the new jsp file Hi all, I have a problem that I get an outdated JSP page even if I have updated the JSP file in the server. It shows me the old content in the browser even I have refreshed the page. Is there something that I need to set about the caching? Thanks!
Re: Problem in refresh the new jsp file
Hi frank, please use response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); Thanks Regards, Hari Yellina. - Original Message - From: Franky Tong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 7:36 PM Subject: Re: Problem in refresh the new jsp file It is not a browser-cache problem because I have run the jsp file in several machines. What is tomcat-not-recompiling-source problem? Samson, Lyndon [IT] wrote: You need to find out if its a browser-cache problem, or a tomcat-not-recompiling-source problem. -Original Message- From: Franky Tong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 9:42 AM To: [EMAIL PROTECTED] Subject: Problem in refresh the new jsp file Hi all, I have a problem that I get an outdated JSP page even if I have updated the JSP file in the server. It shows me the old content in the browser even I have refreshed the page. Is there something that I need to set about the caching? Thanks! -- Data Center, Global Infrastructure Solution Team (GIS) Direct Phone : 2666 8364 Pager : 7203 2006 Mobile : 9373 0760
Re: Problem in refresh the new jsp file
frank I have sent the code. You are sending the same question so many times. response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); Regards'\ Hari Yellina. - Original Message - From: Franky Tong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 6:41 PM Subject: Problem in refresh the new jsp file Hi all, I have a problem that I get an outdated JSP page even if I have updated the JSP file in the server. It shows me the old content in the browser even I have refreshed the page. Is there something that I need to set about the caching? Thanks!
Re: JSP Tomcat
it is not the problem of the Tomcat. It is u r browser cache is doing that. Please put 0 for cahe. it is going to help you man. Regards. Hari Yellina. - Original Message - From: Falk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 9:34 PM Subject: JSP Tomcat hello, i use a javabean within a jsp page on a tomcat3.2.1 server. jsp:useBean class=oracle.jbo.html.databeans.ChartRenderer id=bon scope=request the bean retrieves data from a database. all fine so far. but tomcat caches the files so when i update the database and reload the jsp page in the browser I receive old data. I have to restart tomcat in order to get the correct data. Also when I open another browser the data is correct. And I get OutputStream already in use Exception. anybody knows how to configure tomcat to get the correct data without having to restart ?? thanks a lot falk
Re: NT Service question
please set it in tomcat.bat - Original Message - From: Stefan Henke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 07, 2001 6:29 PM Subject: NT Service question Hi, I set up Tomcat to work as NT service and it works fine. Now I want to install Tomcat on several other computers. As Tomcat is installed in different paths on the different computers, I have to change the wrapper.properties (JAVA_HOME and TOMCAT_HOME) manually. My question is: Can I tell Tomcat to take the environment settings of TOMCAT_HOME and JAVA_HOME in wrapper.properties. This variables are already set for TOMCAT in normal mode. This could help me a lot. Thanks for any help Stefan
Re: server.xml / dtd
it can be found in cofig directory of u r tomcat - Original Message - From: Nathan Coast [EMAIL PROTECTED] To: tomcat user [EMAIL PROTECTED] Sent: Friday, May 04, 2001 9:39 PM Subject: server.xml / dtd Hi, where can I find the dtd of server.xml? - is there such a thing? Is the dtd the best place to find docs on server.xml or is there a complete configuration doc elsewhere? Thanks Nathan
Re: installing tomcat 3.2 on windows 98
will tomcat work on 98. I am not able to that. I think , you have to ask questoin, whether tomcat works on 98 - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 10:25 PM Subject: RE: installing tomcat 3.2 on windows 98 I run tomcat on my Windows 98 pc at home. In autoexec.bat I also have JAVA_HOME=C:\Java and the Classpath should also contain tools.jar from Java (lib or bin). David -Original Message- From: Peter Choe [SMTP:[EMAIL PROTECTED]] Sent: 04 May 2001 13:20 To: [EMAIL PROTECTED] Subject: installing tomcat 3.2 on windows 98 is it possible to have tomcat run on windows 98? i downloaded the binaries for tomcat 3.2 for windows and tried to run the tomcat.bat file. but i get an exception saying that org.tomcat.startup.Tomcat can't be found. i have the autoexec.bat file with the following: TOMCAT_HOME=c:\tomcat CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc for each jar file in tomcat\lib apparantly the tomcat.bat file is setting the proper classpath. any suggestions? peter choe
Re: installing tomcat 3.2 on windows 98
u cannot, try on NT - Original Message - From: Peter Choe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 10:19 PM Subject: installing tomcat 3.2 on windows 98 is it possible to have tomcat run on windows 98? i downloaded the binaries for tomcat 3.2 for windows and tried to run the tomcat.bat file. but i get an exception saying that org.tomcat.startup.Tomcat can't be found. i have the autoexec.bat file with the following: TOMCAT_HOME=c:\tomcat CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc for each jar file in tomcat\lib apparantly the tomcat.bat file is setting the proper classpath. any suggestions? peter choe
Re: installing tomcat 3.2 on windows 98
Wouter, I dont think Tomcat will work on win 98. It is not just Java. It is a server , which works on Linux/ win NT / 2000. Please verify again. Bye Yellina. - Original Message - From: Wouter Boers [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 10:44 PM Subject: RE: installing tomcat 3.2 on windows 98 Yes it works fine, It's just java so why not... Use the startup.bat in the tomcat/bin directory. It will set all the appropiate enviroment variables correcly. Edit it, if needed and tomcat does not start correcly. I would first start it from the command prompt and test it before putting it into your autoexec.bat Wouter -Original Message- From: Peter Choe [mailto:[EMAIL PROTECTED]] Sent: 04 May 2001 14:20 To: [EMAIL PROTECTED] Subject: installing tomcat 3.2 on windows 98 is it possible to have tomcat run on windows 98? i downloaded the binaries for tomcat 3.2 for windows and tried to run the tomcat.bat file. but i get an exception saying that org.tomcat.startup.Tomcat can't be found. i have the autoexec.bat file with the following: TOMCAT_HOME=c:\tomcat CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc for each jar file in tomcat\lib apparantly the tomcat.bat file is setting the proper classpath. any suggestions? peter choe
Re: Where do Servlets go?
Servlets are supposed to be placed in WEB-INF/classes jsp are supossed in webapps. Thats it Enjoy. - Original Message - From: Purcell, Scott [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 10:38 PM Subject: Where do Servlets go? Hello, I have the book, Java Server Pages from Duane K Fields and Kolb, and I am running the tomcat server. I just used the default install. Anyway, I want to try an example from the book, but do not know where to put the Servlet so my .jsp page can find it. I was hoping someone could explain to me, where these two files should go. If they go in the same dir somewhere, or in different dirs.? Also, if there is anything else I should know, please advise. Thanks have a nice Friday, Scott Purcell Scott Purcell
Tomcat on 98
Did any one worked on 98 using Tomcat. If yes please mail me.
Re: installing tomcat 3.2 on windows 98
Hi Peter . I ran u r command in autoexec and from that time. Everything is going wrong. There is a error message saying. memory insufficent. - Original Message - From: Dick Poon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 11:01 PM Subject: Re: installing tomcat 3.2 on windows 98 Hi Peter, I ran tomcat3.2.1 on Win98 and it ran pretty good. Always start tomcat with the startup command. Actually,you need to set the classpath to point to the tomcat/lib ,the jdk1.3 directory and the jdbc driver directroy. One more importanat reminder:,you have to type the following command in order to have enough memory for tomcat: COMMAND.COM /E:4096 /P 4096=4MB,of course ,you can set it to any value provided that you machine have such amount of memory:-) Hope this help! Dick Poon - Original Message - From: Peter Choe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 8:19 PM Subject: installing tomcat 3.2 on windows 98 is it possible to have tomcat run on windows 98? i downloaded the binaries for tomcat 3.2 for windows and tried to run the tomcat.bat file. but i get an exception saying that org.tomcat.startup.Tomcat can't be found. i have the autoexec.bat file with the following: TOMCAT_HOME=c:\tomcat CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc for each jar file in tomcat\lib apparantly the tomcat.bat file is setting the proper classpath. any suggestions? peter choe
Re: installing tomcat 3.2 on windows 98
Hi Dave, Where can I find the documentation for installing tomcat on 98. Please help me. Regards, Yellina. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 10:52 PM Subject: RE: installing tomcat 3.2 on windows 98 Oh Yes You Can ! -Original Message- From: Hari Yellina [SMTP:[EMAIL PROTECTED]] Sent: 04 May 2001 13:46 To: tomcat-user Subject: Re: installing tomcat 3.2 on windows 98 u cannot, try on NT - Original Message - From: Peter Choe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 10:19 PM Subject: installing tomcat 3.2 on windows 98 is it possible to have tomcat run on windows 98? i downloaded the binaries for tomcat 3.2 for windows and tried to run the tomcat.bat file. but i get an exception saying that org.tomcat.startup.Tomcat can't be found. i have the autoexec.bat file with the following: TOMCAT_HOME=c:\tomcat CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc for each jar file in tomcat\lib apparantly the tomcat.bat file is setting the proper classpath. any suggestions? peter choe
Re: server.xml / dtd
why do you require DTD. To check whether it is a validate documet. it is ,u dont have to worry much. One more thing it. If it is a XML file. You dont neccesarily require a DTD. Regard, Yellina - Original Message - From: Gerteis, Roman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 11:10 PM Subject: AW: server.xml / dtd Nope, in the /conf folder, this is the web.dtd for validating web.xml configuration files. TomCat is not coming with a server.dtd, at least slocate was not finding anything ;) I'm searching for the server.dtd as well. It's not specified in the Java Servlet Standard. So it must be something Tomcat specific. regards... ..roman. -Ursprüngliche Nachricht- Von: Hari Yellina [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 4. Mai 2001 14:43 An: [EMAIL PROTECTED] Betreff: Re: server.xml / dtd it can be found in cofig directory of u r tomcat - Original Message - From: Nathan Coast [EMAIL PROTECTED] To: tomcat user [EMAIL PROTECTED] Sent: Friday, May 04, 2001 9:39 PM Subject: server.xml / dtd Hi, where can I find the dtd of server.xml? - is there such a thing? Is the dtd the best place to find docs on server.xml or is there a complete configuration doc elsewhere? Thanks Nathan
Re: installing tomcat 3.2 on windows 98
Sorry Peter, Your command has worked fine. Thanks for u r suggestion. - Original Message - From: Hari Yellina [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 11:28 PM Subject: Re: installing tomcat 3.2 on windows 98 Hi Peter . I ran u r command in autoexec and from that time. Everything is going wrong. There is a error message saying. memory insufficent. - Original Message - From: Dick Poon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 11:01 PM Subject: Re: installing tomcat 3.2 on windows 98 Hi Peter, I ran tomcat3.2.1 on Win98 and it ran pretty good. Always start tomcat with the startup command. Actually,you need to set the classpath to point to the tomcat/lib ,the jdk1.3 directory and the jdbc driver directroy. One more importanat reminder:,you have to type the following command in order to have enough memory for tomcat: COMMAND.COM /E:4096 /P 4096=4MB,of course ,you can set it to any value provided that you machine have such amount of memory:-) Hope this help! Dick Poon - Original Message - From: Peter Choe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 8:19 PM Subject: installing tomcat 3.2 on windows 98 is it possible to have tomcat run on windows 98? i downloaded the binaries for tomcat 3.2 for windows and tried to run the tomcat.bat file. but i get an exception saying that org.tomcat.startup.Tomcat can't be found. i have the autoexec.bat file with the following: TOMCAT_HOME=c:\tomcat CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc for each jar file in tomcat\lib apparantly the tomcat.bat file is setting the proper classpath. any suggestions? peter choe
what is mod_jk and apj13
Hi all, What is mod_jk and apj13. Thaks for you time. Regards Yellina.
Re: Tomcat on 98
Hi dave, When ever I start tomcat , there is alwyas a problem to start. i have to enter command.com prompt to free the memory in the startup of tomcat. Why this is required. Regards. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 12:02 AM Subject: RE: Tomcat on 98 Yes -Original Message- From: Hari Yellina [SMTP:[EMAIL PROTECTED]] Sent: 04 May 2001 14:21 To: tomcat-user Subject: Tomcat on 98 Did any one worked on 98 using Tomcat. If yes please mail me.
Re: installing tomcat 3.2 on windows 98
Hi Aruand, It is really helpful to me. I wil do the same. But I am alwyas facign a problem while I try to start my machine , that is out of environment space error. What is it exactly. Thanks in advance Regards, Yellina., - Original Message - From: Arnaud Dostes - NTI [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 12:12 AM Subject: Re: installing tomcat 3.2 on windows 98 I'll be verbose : unzip to c:\tomcat set the following environment variables (either modify your autoexec.bat and reboot or type them using 'set' in the same dos prompt used to run tomcat) CLASSPATH=. JAVA_HOME=c:\jdk1.3 (or wherever) TOMCAT_HOME=c:\tomcat Copy any jar files you need to c:\tomcat\lib (it will be picked up on startup) run from a DOS window c:\tomcat\bin\startup open a browser to http://localhost:8080 That should do it - Original Message - From: Hari Yellina [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 3:28 PM Subject: Re: installing tomcat 3.2 on windows 98 Hi Dave, Where can I find the documentation for installing tomcat on 98. Please help me. Regards, Yellina. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 10:52 PM Subject: RE: installing tomcat 3.2 on windows 98 Oh Yes You Can ! -Original Message- From: Hari Yellina [SMTP:[EMAIL PROTECTED]] Sent: 04 May 2001 13:46 To: tomcat-user Subject: Re: installing tomcat 3.2 on windows 98 u cannot, try on NT - Original Message - From: Peter Choe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 10:19 PM Subject: installing tomcat 3.2 on windows 98 is it possible to have tomcat run on windows 98? i downloaded the binaries for tomcat 3.2 for windows and tried to run the tomcat.bat file. but i get an exception saying that org.tomcat.startup.Tomcat can't be found. i have the autoexec.bat file with the following: TOMCAT_HOME=c:\tomcat CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc for each jar file in tomcat\lib apparantly the tomcat.bat file is setting the proper classpath. any suggestions? peter choe
problem in Tomcat+win 98
Hi all, I have installed tomcat and it was up and running on win 98 till last night, But when I restarted the system it is just closing the world without any error. i am unable to find out the error. Can anyone help me regarding this matter. Regards, Yellina.
Re: installing tomcat 3.2 on windows 98
It has worked. Thank you very much. I have one more question what is the difference between shell=c:\command.com /p /e:32000 and c:\command.com /e:4096 /p - Original Message - From: Noel E. Lecaros [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 12:56 PM Subject: Re: installing tomcat 3.2 on windows 98 Hi, Hari Increase your environment setting. Put this in your c:\config.sys, if it isn't there already: shell=c:\command.com /p /e:32000 Hope this helps. Regards, Noel Lecaros Hari Yellina wrote: Hi Aruand, It is really helpful to me. I wil do the same. But I am alwyas facign a problem while I try to start my machine , that is out of environment space error. What is it exactly. Thanks in advance Regards, Yellina., - Original Message - From: Arnaud Dostes - NTI [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 05, 2001 12:12 AM Subject: Re: installing tomcat 3.2 on windows 98 I'll be verbose : unzip to c:\tomcat set the following environment variables (either modify your autoexec.bat and reboot or type them using 'set' in the same dos prompt used to run tomcat) CLASSPATH=. JAVA_HOME=c:\jdk1.3 (or wherever) TOMCAT_HOME=c:\tomcat Copy any jar files you need to c:\tomcat\lib (it will be picked up on startup) run from a DOS window c:\tomcat\bin\startup open a browser to http://localhost:8080 That should do it - Original Message - From: Hari Yellina [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 3:28 PM Subject: Re: installing tomcat 3.2 on windows 98 Hi Dave, Where can I find the documentation for installing tomcat on 98. Please help me. Regards, Yellina. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 10:52 PM Subject: RE: installing tomcat 3.2 on windows 98 Oh Yes You Can ! -Original Message- From: Hari Yellina [SMTP:[EMAIL PROTECTED]] Sent: 04 May 2001 13:46 To: tomcat-user Subject: Re: installing tomcat 3.2 on windows 98 u cannot, try on NT - Original Message - From: Peter Choe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 10:19 PM Subject: installing tomcat 3.2 on windows 98 is it possible to have tomcat run on windows 98? i downloaded the binaries for tomcat 3.2 for windows and tried to run the tomcat.bat file. but i get an exception saying that org.tomcat.startup.Tomcat can't be found. i have the autoexec.bat file with the following: TOMCAT_HOME=c:\tomcat CLASSPATH=c:\tomcat\lib\servlet.jar;c:\tomcat\lib\webserver.jar;...etc for each jar file in tomcat\lib apparantly the tomcat.bat file is setting the proper classpath. any suggestions? peter choe
Re: regarding installation
You can do that, First thinng is unzip in hard drive and rewrite whole contents on the compact disk. You r compact Dick is nothing but a different hard drive. - Original Message - From: menon narayan prasad [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 7:33 PM Subject: regarding installation dear sir/madam, i had a question regarding installation of Jakarta TomCat can we intall Jakarta TomCat on Compact Disk.Please mail me the answer to the above question. hope u will do the needful. _ Chat with your friends as soon as they come online. Get Rediff Bol at http://bol.rediff.com
Re: /servlet/ mapping
you have to change the settings in server.xml file. Thats is everything is going to be fine. - Original Message - From: Patrick Medhurst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 8:40 PM Subject: /servlet/ mapping I am new to Tomcat, so please be gentle. To access a servlet, the default is to use: http://myhost.com:8080/bob/servlet/bob How can I change the mapping to use the following instead: http://myhost.com:8080/servlet/bob
Re: Startup script doesn't work on reboot
tomcat doesnt start it self automatically. you have to place your /bin/startup.sh in proile.bash file. so, when you are logging as a user it starts automatically. - Original Message - From: Dave Simms [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 02, 2001 3:13 AM Subject: Startup script doesn't work on reboot Hi All, I used both a script I created, and one I found when I searched through this mailing list (Neil's Aggarwal's script, 2/15/01). Both scripts worked fine when ran while our computer was on (running RedHat 7.0, tomcat 3.1). But when I reboot the machine, tomcat doesn't start (although when I look at the processes using ps ax --- it does show tomcat processes running). Does anyone know what the problem here could be? I don't think it should make a difference, but I am starting tomcat with a different server.xml file with the command: /usr/local/jakarta-tomcat/bin/startup.sh -f /usr/local/jakarta-tomcat/conf/server_SITE1.xml Thanks, Dave _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Help getting beans working
please set the classpath right. Classes path should be set in the classpath - Original Message - From: Uronis, Jeremy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 02, 2001 4:26 AM Subject: RE: Help getting beans working Thanks for the reply Matt. I placed my bean in c:\tomcat\webapps\examples\WEB-INF\classes and the error i get is: Error: 500 Location: /examples/jsp/test/bean1.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to load class rayexamples.bean1 at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:18 3) at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerato r.java:99) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java:773) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java:220) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:175) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:183) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) 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.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Thanks - jeremy -Original Message- From: Matt Goss [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 2:20 PM To: [EMAIL PROTECTED] Subject: Re: Help getting beans working Try putting your beans in WEB-INF/classes folder instead. :) Matt Uronis, Jeremy wrote: hiya- i have a simple jsp which includes a bean. the file bean1.jsp is located in C:\tomcat\webapps\examples\jsp\test\bean1.jsp i did this following the faq on beans and jsp's. To use the default, put all your JSP source under /examples/jsp, either in the same directory or under a new subdirectory of /examples/jsp (as done in the included examples). here is my jsp html body !- Find and instantiate the bean, and refer to it as myBean -- jsp:useBean id=myBean scope=page class= rayexamples.bean1/ STEP-1 Use the bean's default property WorldBR Hello there, %= myBean.getName() %BR Hi there, jsp:getProperty name=myBean property=name /BR Howdy, %= myBean.makeMeBig() %BRBR STEP-2 Set the name property to Sam, using jsp:setProperty value=SamBR jsp:setProperty name=myBean property=name value= Sam/ STEP-3 Use the bean's new property SamBR Hello there, %= myBean.getName() %BR Hi there, jsp:getProperty name=myBean property=name /BR Howdy, %=myBean.makeMeBig() % BRBR STEP-4 Set the name property to Bernie, using setName() value= BernieBR % myBean.setName(Bernie);% STEP-5 Use the bean's new propertyBernieBR Hello there, %=myBean.getName() %BR Hi there, jsp:getProperty name=myBean property=name /BR Howdy, %= myBean.makeMeBig()% BRBR STEP-6 Set the name property from the query string using jsp:setProperty param=nameBR jsp:setProperty name=myBean property=name param=name / STEP-7 Use the bean's new property from the URL BR Hello there, %= myBean.getName() %BR Hi there, jsp:getProperty name=myBean property=name /BR Howdy, %= myBean.makeMeBig() % BRBR /body /html now the faq says this on beans: Put all your beans (class files) under /examples/WEB-INF/jsp/beans appropriately (as done for the included beans). The startserver script will automatically add these classes to the CLASSPATH at runtime. here is my bean package rayexamples ; import java.io.Serializable ; public class bean1 implements Serializable{ String name ; /* The JavaBean's empty constructor */ public bean1(){ name = World ; } /* THE SETTER METHOD - property returned to the JSP
Re: Tomcat 4-beta 3: ready for prime time?
I am using 3.3 milestone. It is really ood. Please use it. Beta version are not good for using. - Original Message - From: Peter Mutsaers [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Sent: Wednesday, May 02, 2001 5:57 PM Subject: Tomcat 4-beta 3: ready for prime time? Hello, A week ago I decided to switch from JRUN to Tomcat for my JSP/Servlet environment. Naturally I started with the officially released version (3.2). But, especially in the JSP department I found some bugs and inconveniences, that have been fixed in later releases (3.3-milestone-x, and also 4.0). Now I wonder, which version should I use in production? It is a stand-alone Tomcat site for Intranet, so issues with the connectors to other webservers are not important. The site is low-volume (1 request per 10 seconds at prime time) but very important, thus reliability/stability is vital. Obviously, although 3.2 is the official release, by browsing through the CVS logs it looks like the unreleased newer versions are of higher quality. 3.3-milestone-2 doesn't seem to have much advantage compared to version 4.0-beta3, since 4.0 seems closer to a real release (it has gone through 5 milestones already, and now seems very close to the final release after some betas with relatively minor changes and fixes). What do you advice? Peter Mutsaers =
server speed
Hi All. I am running a project in JSP using tomcat. It is very slow. Can any one help me , How to make my server speed. Is any configuration , I have to set, Thanking you all, Regards, Yellina.