RE: Trying to work with JDBC OCI
I still think your jdbc-url is wrong. In my opinion you have to give a tnsname for the oci driver and hostname+port+sid for then thin driver. Have you tried the examples given in http://otn.oracle.com/tech/java/sqlj_jdbc/pdf/a96654.pdf on Page 52 and 53? For the examples it is enough to have exported LD_LIBRARY_PATH containing $ORACLE_HOME/lib and CLASSPATH containing the classes12.zip from the oracle 9i client-installation ($ORACLE_HOME/jdbc/lib). -- Original Nachricht -- It is most definitely a native library location problem not a CLASSPATH problem. 2) I have put LD_LIBRARY_PATH=$ORACLE_HOME/lib. Where have you set this variable. It should be visible to the run.sh script. Also, make sure that $ORACLE_HOME is also set. -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 11:58 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: Trying to work with JDBC OCI Hi Everybody, I have been trying to work with JDBC OCI Driver.While trying to run my code i get the following error message: 1)javax.servlet.ServletException:no ocijdbc9 in java.library.path . My jsp code is as follows: 1)I am importing the following packages import=java.sql.*, javax.sql.*, javax.servlet.*, javax.servlet.http.*, java.util.*, oracle.jdbc.*, java.net.* % 2)My connecion code is as follows: Class.forName(oracle.jdbc.driver.OracleDriver); DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); Connection myConn = DriverManager.getConnection(jdbc:oracle:oci:@bioinfo.utmb.edu :1521:PLSExtPr oc); where database=host=bioinfo.utmb.edu:port=1521:sid=PLSExtProc Statement stmt = myConn.createStatement(); ResultSet myResultSet = stmt.executeQuery(select * from table where field='117_at'); if (myResultSet != null) { while (myResultSet.next()) { To Resolve this error i am trying out the following things: 1)I have added classes12.jar, nls-charset12.jar, ocijdbc.0.0.jar to my $TOMCAT_HOME/common/lib and configured it to my CLASSPATH. 2) I have put LD_LIBRARY_PATH=$ORACLE_HOME/lib. 3) i have imported package java.net.* into my code. Can anyone help. Thanks, With regards, Vikas nagpal. -- 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] Online Fotoalben - jetzt kostenlos bei http://www.ePost.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
isapi_redirect multithreading problem
Hi All ! I'm running Tomcat4.01 on IIS 5.0 using isapi_redirect.dll. Here is my server.xml for APJ connector: Connector lassName=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=50 debug=0 connectionTimeout=-1/ The problem is, that when using isapi_redirect i don't see ANY multithreading (it looks like isapi_redirect queing requests). Can anyone help me ? Thanks When a password just isn't secure enough, and email confirmations don't quite cut it, You need Voice Authentication. You need SentryCom. Best regards Alexandr, tel. +972(55)908925 http://www.voiceprove.com
Getting mod_webapp - should I give up?
So, nobody can help me to build mod_webapp, and there is no rpm of it to download. Does this just mean that it can't be built? I don't remember where I read that mod_webapp was the correct way to integrate Apache2 and Tomcat4. The documentation is a bit fragmented. Is mod_jk* the true way to do this? If so, could someone give me a URL to a definitive page that says this and how to get/build it? I just want to integrate Apache2 and tomcat4, not do anything special. About a year ago I did successfully integrate Apache1 and tomcat, but I haven't worked with tomcat since then. On Tue, 2002-08-13 at 17:20, Murray Cumming wrote: OK, so if I had read README.txt properly then I would know that I need to do a cvs checkout of apr into the webapp directory. It tells me to copy and modify a build.properties.sample file, but there is no such file there, so I ignored that. As instructed, I then ran support/buildConf.sh This creates a configure script, which I am tempted to run, but the next step tells me to run ant. I did that, and I still this error: BUILD FAILED file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot find Tomcat 4.0 classes So, how do I tell it where to find these tomcat classes? I have already installed jakarta-tomcat-4 from here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/ -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Getting mod_webapp - should I give up?
As far as I can see, mod_webapp was designed to be an easier to setup way of integrating apache and tomcat and it succeeds in this on windows for apache 1.3 and tomcat 4.0x. However, it will serve all content from a directory you configure it for from tomcat whereas mod_jk* will leave html, jpg, gif etc to Apache. The way round this is to have your pics and static pages in a different location that is served by Apache alone and referenced as /static/xxx or similar but this then loses the convenience of a single war file containing everything needed for the application (it can even include a mod_jk conf file which can help with mapping servlets without the need for the ugly /servlet/servlet_name of the auto-created jk conf filers of tomcat 3) Worse than the above, I have found that large requests or frequent requests or just at random cause tomcat to give an error about the client terminating or some such and hang. With mod_jk this doesn't happen (or with tomcat standalone). Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -Original Message- From: Murray Cumming [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:04 AM To: Murray Cumming Cc: Tomcat-User Subject: Getting mod_webapp - should I give up? So, nobody can help me to build mod_webapp, and there is no rpm of it to download. Does this just mean that it can't be built? I don't remember where I read that mod_webapp was the correct way to integrate Apache2 and Tomcat4. The documentation is a bit fragmented. Is mod_jk* the true way to do this? If so, could someone give me a URL to a definitive page that says this and how to get/build it? I just want to integrate Apache2 and tomcat4, not do anything special. About a year ago I did successfully integrate Apache1 and tomcat, but I haven't worked with tomcat since then. On Tue, 2002-08-13 at 17:20, Murray Cumming wrote: OK, so if I had read README.txt properly then I would know that I need to do a cvs checkout of apr into the webapp directory. It tells me to copy and modify a build.properties.sample file, but there is no such file there, so I ignored that. As instructed, I then ran support/buildConf.sh This creates a configure script, which I am tempted to run, but the next step tells me to run ant. I did that, and I still this error: BUILD FAILED file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot find Tomcat 4.0 classes So, how do I tell it where to find these tomcat classes? I have already installed jakarta-tomcat-4 from here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/ -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RESEND: how to enable JSP TagPooling within Tomcat 4.0.x?
Hi, i can't find the tomcat 3.3. configuration directive TagPoolManagerInterceptor anymore within tomcat 4.0.x. Also, i could not find any hints on tag pooling within the tomcat 4.0.x docs Q1: Ist there still a (custom) tag pool within tomcat 4.0.x? Q2: If there is a tag pool mechanism within tomcat 4.0.x, how can i enable it? thx Niko -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_auth_ntdom
Dear all, I have a problem here, just wonder if anyone has have that before. I am using mod_auth_ntdom in my apache tomcat in order to authenticate users against the NT domain. However, it prompts for passwords for a thousand of time everyday when browsing that web. Does anyone have that problem before? Or do you have suggestion on what should I use to do the authentication? Best regards, Herbert Chau Analyst SAS Institute Ltd [EMAIL PROTECTED] TEL: 852-2105-3512 FAX: 852-2568-7218 www.sas.com/hongkong SAS... The Power to Know The information contained in this e-mail is for the intended recipient only. If you have received this e-mail in error, please contact the sender immediately. All material is to be treated as strictly confidential. The contents of this e-mail may not represent the views of SAS Hong Kong.
Re: mod_auth_ntdom
Few weeks ago I was facing similar problem (but not with NT auth!). The problem was in browser (MSIE6) which was not correctly accepting cookies (settings were OK). I solved this with using response.encodeURL() for every links. This meant turning on URL rewriting for that browser (every session for browser without cookies was identified by part of URL). With authentication at apache side the solution could be similar. Which browser are you using? Does the problem persist with other browsers? GG | Dear all, | | I have a problem here, just wonder if anyone has have that before. I am | using mod_auth_ntdom in my apache tomcat in order to authenticate users | against the NT domain. However, it prompts for passwords for a thousand of | time everyday when browsing that web. Does anyone have that problem | before? Or do you have suggestion on what should I use to do the | authentication? | | Best regards, | Herbert Chau | Analyst | SAS Institute Ltd | [EMAIL PROTECTED] | TEL: 852-2105-3512 | FAX: 852-2568-7218 | www.sas.com/hongkong | SAS... The Power to Know | The information contained in this e-mail is for the intended recipient | only. If you have received this e-mail in error, please contact the sender | immediately. All material is to be treated as strictly confidential. The | contents of this e-mail may not represent the views of SAS Hong Kong. | | | | -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: mod_auth_ntdom
I was using IE 6 and IE 5.5, both have the same problems!! But I don't exactly get why u use the response.encodeURL method, can u elaborate a little bit on that? Thank you a lot for your prompt response. Herbert Chau Analyst SAS Institute Ltd [EMAIL PROTECTED] TEL: 852-2105-3512 FAX: 852-2568-7218 www.sas.com/hongkong SAS... The Power to Know The information contained in this e-mail is for the intended recipient only. If you have received this e-mail in error, please contact the sender immediately. All material is to be treated as strictly confidential. The contents of this e-mail may not represent the views of SAS Hong Kong. -Original Message- From: Gabriel Gajdos [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 5:32 PM To: [EMAIL PROTECTED] Subject: Re: mod_auth_ntdom Few weeks ago I was facing similar problem (but not with NT auth!). The problem was in browser (MSIE6) which was not correctly accepting cookies (settings were OK). I solved this with using response.encodeURL() for every links. This meant turning on URL rewriting for that browser (every session for browser without cookies was identified by part of URL). With authentication at apache side the solution could be similar. Which browser are you using? Does the problem persist with other browsers? GG | Dear all, | | I have a problem here, just wonder if anyone has have that before. I am | using mod_auth_ntdom in my apache tomcat in order to authenticate users | against the NT domain. However, it prompts for passwords for a thousand of | time everyday when browsing that web. Does anyone have that problem | before? Or do you have suggestion on what should I use to do the | authentication? | | Best regards, | Herbert Chau | Analyst | SAS Institute Ltd | [EMAIL PROTECTED] | TEL: 852-2105-3512 | FAX: 852-2568-7218 | www.sas.com/hongkong | SAS... The Power to Know | The information contained in this e-mail is for the intended recipient | only. If you have received this e-mail in error, please contact the sender | immediately. All material is to be treated as strictly confidential. The | contents of this e-mail may not represent the views of SAS Hong Kong. | | | | -- 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]
performance problem
Hello! I have extremly performance problem! I send a http-request to Tomcat, which forwards the request over RMI to a business logic. This sends back a XML with the templates to include and values to place in the templates. This process takes about 100 - 400ms (not very fast but ok) After received the answer, Tomcat processes the XML via a few custom tags to include templates and write text values in this templates. A small (3k) template needs about 500ms to display. A little bit larger one (9k), about 20 sec For the time the HTML is created (resolving custom tags) , Tomcat is using 100% of the CPU! Looking at my log files, it seems that the HttpProcessor-Thread on Tomcat is blocked by another tomcat thread. In intervalls of about 4sec the HttpProcessor-Thread can process a little bit of its code and than is blocked again. Or tomcat is not able to hold the request object and writes it somewhere to disk. So every 4sec it has to read or write the information needed for this process to disk. Must I increment the cache for the context or the server? But where and how? Here a snippet of my log-file: 2002-08-14 15:49:36,403 DEBUG [HttpProcessor[8080][3]] obsession.juice.out CmsTag doStartTag - CurrentNode = [Element: pers_klassifikation/] looking for child [pers_klassifikation_item] 1 of 2 2002-08-14 15:49:40,068 DEBUG [HttpProcessor[8080][3]] obsession.juice.out SelectTag getOutputText - looking for parent the JSP-Code involved in this 4 sec: tr tdcms:text name=pers_klassifikation data=name//td td select size=1 class=long name=cms:text name=pers_klassifikation data=parameter/ cms:enter_area name=pers_klassifikation cms:area name=pers_klassifikation_item option value=cms:text name=pers_klassifikation_item data=value/ cms:select name=pers_klassifikation_item output=selected/cms:text name=pers_klassifikation_item//option /cms:area /cms:enter_area /select /td /tr the XML needed to populate the custom tags: pers_klassifikation name=Klassifikation parameter=fk_klassifikation_id validate=int range=1:100 mandatory=0 id=44 value=2 pers_klassifikation_item value=1Lead/pers_klassifikation_item pers_klassifikation_item value=2Honorar/pers_klassifikation_item /pers_klassifikation 4sec to know if the option tag is selected or not! Libraries involved jdom.jar and log4j.jar Using Tomcat 4.0.3, Java 1.3 on Windows2000 and Linux Debian as well. Thx for any help Alessandro -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: performance problem
It looks like you are using custom tags, and usually with XML transformations, they are quite processor heavy. You might want to look at the new Jaxen benchmarks with Dom4j: www.jaxen.org -Jacob | -Original Message- | From: Alessandro Di Maria [mailto:[EMAIL PROTECTED]] | Sent: Thursday, August 15, 2002 4:59 AM | To: tomcat-user | Subject: performance problem | | Hello! | | I have extremly performance problem! | | I send a http-request to Tomcat, which forwards the request over RMI to | a business logic. | This sends back a XML with the templates to include and values to place | in the templates. | | This process takes about 100 - 400ms (not very fast but ok) | | After received the answer, Tomcat processes the XML via a few custom | tags to include | templates and write text values in this templates. | | A small (3k) template needs about 500ms to display. | A little bit larger one (9k), about 20 sec | | For the time the HTML is created (resolving custom tags) , Tomcat is | using 100% of the CPU! | | Looking at my log files, it seems that the HttpProcessor-Thread on | Tomcat is blocked | by another tomcat thread. In intervalls of about 4sec the | HttpProcessor-Thread can process a little | bit of its code and than is blocked again. | | Or tomcat is not able to hold the request object and writes it somewhere | to disk. | So every 4sec it has to read or write the information needed for this | process to disk. | Must I increment the cache for the context or the server? But where and | how? | | Here a snippet of my log-file: | 2002-08-14 15:49:36,403 DEBUG [HttpProcessor[8080][3]] | obsession.juice.out CmsTag doStartTag - CurrentNode = [Element: | pers_klassifikation/] looking for child [pers_klassifikation_item] 1 of | 2 | | 2002-08-14 15:49:40,068 DEBUG [HttpProcessor[8080][3]] | obsession.juice.out SelectTag getOutputText - looking for parent | | the JSP-Code involved in this 4 sec: | | tr | tdcms:text name=pers_klassifikation data=name//td | td | select size=1 class=long name=cms:text | name=pers_klassifikation data=parameter/ | cms:enter_area name=pers_klassifikation | cms:area name=pers_klassifikation_item | option value=cms:text name=pers_klassifikation_item | data=value/ cms:select name=pers_klassifikation_item | output=selected/cms:text name=pers_klassifikation_item//option | /cms:area | /cms:enter_area | /select | /td | /tr | | | the XML needed to populate the custom tags: | | pers_klassifikation name=Klassifikation | parameter=fk_klassifikation_id validate=int range=1:100 | mandatory=0 id=44 value=2 | pers_klassifikation_item value=1Lead/pers_klassifikation_item | pers_klassifikation_item value=2Honorar/pers_klassifikation_item | /pers_klassifikation | | 4sec to know if the option tag is selected or not! | | Libraries involved jdom.jar and log4j.jar | | Using Tomcat 4.0.3, Java 1.3 on Windows2000 and Linux Debian as well. | | Thx for any help | Alessandro | | | -- | To unsubscribe, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | | --- | Incoming mail is certified Virus Free. | Checked by AVG anti-virus system (http://www.grisoft.com). | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 | --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_auth_ntdom
| But I don't exactly get why u use the response.encodeURL method, can u | elaborate a little bit on that? Well... Try to search some info about cookies and session IDs (java, php or else; it does not matter)... But for now, very briefly: In HTTP session exists only at server side (together with all other session objects). Client (browser) only receives sessionID and with this ID it identifies itself for a particular session. When I authenticate in Tomcat, I send my login/pass information, and server returns my SessionID as cookie. In every (!) HTTP request are cookies sent together with request. And if server finds client's SessionID, it does not need to authenticate user again... Anyway: If your browser is not accepting cookies (or evaluation is incorrect which was the case of my IE6) server is not able to set the cookie with session ID. In Java we should use response.encodeURL method which: Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. The implementation of this method includes the logic to determine whether the session ID needs to be encoded in the URL. For example, if the browser supports cookies, or session tracking is turned off, URL encoding is unnecessary. (taken from Tomcat 4.0.3 javadocs). So in usual case, the method response.encodeURL(myfile.jsp) returns myfile.jsp. But if there is a problem with accepting cookies, this method returns something like that myfile.jsp;J_SESSIONID=123456789 This is called URL rewriting. But in your case you should examine your mod_auth settings (is it stable enough???). If the authentication is done by Apache, some things may be wrong there. I have seen some URL rewriting directive in Apache, but I have never tried what you are doing now. First try to access a single page (like blank.html)... You should need to login once. Than try to access a page with one other link (an image od CSS). If you need to login twice, your problem is 100% in user/login settings. GG | The information contained in this e-mail is for the intended recipient | only. If you have received this e-mail in error, please contact the sender | immediately. All material is to be treated as strictly confidential. The | contents of this e-mail may not represent the views of SAS Hong Kong. Really?!! I thought this newsgroup was archived at few servers worldwide accessible to everyone... ;-)) GG -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Refresh Issue
Hi I am having some problems with the refreshing of servlets. When I call a page from an HTML form submit it is ok. If I use a link, if the page has already been called it pulls that page back. Only when I refresh the page will it reload with the correct information. It seems that the page is being stored somewhere Ta for the Help Rich The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Refresh Issue
Check your header cache control - Original Message - From: Richard Johnstone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 12:42 PM Subject: Refresh Issue Hi I am having some problems with the refreshing of servlets. When I call a page from an HTML form submit it is ok. If I use a link, if the page has already been called it pulls that page back. Only when I refresh the page will it reload with the correct information. It seems that the page is being stored somewhere Ta for the Help Rich -- 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]
Re: session timeout
Are you sure you wan't your sessions to never timeout?? Over time this could be a substantial load on your server.. Øyvind Øyvind Vestavik Øvre Møllenberggt 44b 7014 Trondheim [EMAIL PROTECTED] 41422911 On Wed, 14 Aug 2002, Koes, Derrick wrote: How closely does Tomcat follow the servlet specification concerning web.xml? I added the following to my web.xml, but the session seems to timeout immediately (0 minutes). session-config session-timeout0/session-timeout /session-config However, the servlet 2.3 spec states: If the timeout is 0 or less, the container ensures the default behaviour of sessions is never to time out. The bottom line is I need to know how to make my webapp's session never timeout. Can anyone help? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Refresh Issue
By cache control, do you mean meta content=0 http-equiv=expires I put this in as one of the archives mentioned it but no help. Still picks up a cached page [EMAIL PROTECTED] 08/15/02 12:48pm Check your header cache control - Original Message - From: Richard Johnstone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 12:42 PM Subject: Refresh Issue Hi I am having some problems with the refreshing of servlets. When I call a page from an HTML form submit it is ok. If I use a link, if the page has already been called it pulls that page back. Only when I refresh the page will it reload with the correct information. It seems that the page is being stored somewhere Ta for the Help Rich -- 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] The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you received this communication in error, please notify us immediately by responding to this email and then delete it from your system. Appleyard Finance Holdings Ltd or its subsidiaries are neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Refresh Issue
Add this to your servlet generated html META HTTP-EQUIV=Cache-Control CONTENT=no-cache - Original Message - From: Richard Johnstone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 1:23 PM Subject: Re: Refresh Issue By cache control, do you mean meta content=0 http-equiv=expires I put this in as one of the archives mentioned it but no help. Still picks up a cached page [EMAIL PROTECTED] 08/15/02 12:48pm Check your header cache control - Original Message - From: Richard Johnstone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 12:42 PM Subject: Refresh Issue Hi I am having some problems with the refreshing of servlets. When I call a page from an HTML form submit it is ok. If I use a link, if the page has already been called it pulls that page back. Only when I refresh the page will it reload with the correct information. It seems that the page is being stored somewhere Ta for the Help Rich -- -- -- 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] -- 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]
Temp dir not created using winzip
If you download the tomcat .tar.gz and unpack it using winzip 8.1, the (empty) temp directory is not created and tomcat throws strange error messages. The solution is of course to unpack using gnu gzip and tar (I did not try downloading the tomcat zip file) [just in case somebody else runs into this problem] 2002-08-14 15:52:58 StandardHost[localhost]: Installing web application at context path /bingo from URL file:C:\java\jakarta-tomcat-4.1.8\webapps\bingo 2002-08-14 15:52:58 WebappLoader[/bingo]: Deploying class repositories to work directory C:\java\jakarta-tomcat-4.1.8\work\Standalone\localhost\bingo 2002-08-14 15:52:58 WebappLoader[/bingo]: Deploy JAR /WEB-INF/lib/mm.mysql-2.0.4-bin.jar to C:\java\jakarta-tomcat-4.1.8\webapps\bingo\WEB-INF\lib\mm.mysql-2.0.4-bin.jar 2002-08-14 15:52:59 ContextConfig[/bingo] Exception processing JAR at resource path /WEB-INF/lib/mm.mysql-2.0.4-bin.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/mm.mysql-2.0.4-bin.jar ... - Root Cause - java.io.IOException: Das System kann den angegebenen Pfad nicht finden at java.io.WinNTFileSystem.createFileExclusively(Native Method) _ Mit MSN Fotos können Sie kinderleicht Ihre Fotos ausdrucken und Freunden zur Verfügung stellen: http://photos.msn.de -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Refresh Issue
Add this to your servlet generated html META HTTP-EQUIV=Cache-Control CONTENT=no-cache how about setting it in the resonse ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Refresh Issue
servlet generated html = = response html - Original Message - From: Power-Netz (Schwarz) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 1:45 PM Subject: AW: Refresh Issue Add this to your servlet generated html META HTTP-EQUIV=Cache-Control CONTENT=no-cache how about setting it in the resonse ? -- 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]
Re: performance problem
before you go exploring other ideas, try jasper2 from the latest beta 4.1.9. if you have nested tags, most likely you're suffering from jdk bug with deeply nested try/catch. I would bother looking into other things until you've atleast tried jasper2. peter Alessandro Di Maria wrote: Hello! I have extremly performance problem! I send a http-request to Tomcat, which forwards the request over RMI to a business logic. This sends back a XML with the templates to include and values to place in the templates. This process takes about 100 - 400ms (not very fast but ok) After received the answer, Tomcat processes the XML via a few custom tags to include templates and write text values in this templates. A small (3k) template needs about 500ms to display. A little bit larger one (9k), about 20 sec For the time the HTML is created (resolving custom tags) , Tomcat is using 100% of the CPU! Looking at my log files, it seems that the HttpProcessor-Thread on Tomcat is blocked by another tomcat thread. In intervalls of about 4sec the HttpProcessor-Thread can process a little bit of its code and than is blocked again. Or tomcat is not able to hold the request object and writes it somewhere to disk. So every 4sec it has to read or write the information needed for this process to disk. Must I increment the cache for the context or the server? But where and how? Here a snippet of my log-file: 2002-08-14 15:49:36,403 DEBUG [HttpProcessor[8080][3]] obsession.juice.out CmsTag doStartTag - CurrentNode = [Element: pers_klassifikation/] looking for child [pers_klassifikation_item] 1 of 2 2002-08-14 15:49:40,068 DEBUG [HttpProcessor[8080][3]] obsession.juice.out SelectTag getOutputText - looking for parent the JSP-Code involved in this 4 sec: tr tdcms:text name=pers_klassifikation data=name//td td select size=1 class=long name=cms:text name=pers_klassifikation data=parameter/ cms:enter_area name=pers_klassifikation cms:area name=pers_klassifikation_item option value=cms:text name=pers_klassifikation_item data=value/ cms:select name=pers_klassifikation_item output=selected/cms:text name=pers_klassifikation_item//option /cms:area /cms:enter_area /select /td /tr the XML needed to populate the custom tags: pers_klassifikation name=Klassifikation parameter=fk_klassifikation_id validate=int range=1:100 mandatory=0 id=44 value=2 pers_klassifikation_item value=1Lead/pers_klassifikation_item pers_klassifikation_item value=2Honorar/pers_klassifikation_item /pers_klassifikation 4sec to know if the option tag is selected or not! Libraries involved jdom.jar and log4j.jar Using Tomcat 4.0.3, Java 1.3 on Windows2000 and Linux Debian as well. Thx for any help Alessandro -- 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]
[ANNOUNCEMENT] Tomcat 4.1.9 Beta
Tomcat 4.1.9 Beta has been released. It includes bugfixes over the previous Tomcat 4.1.8 Beta, including a fix for a rare deadlock condition in the Catalina classloader, and Jasper 2 compliance fixes (please refer to the release notes for the complete list). Release notes: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.9-beta/RELEASE-NOTES Downloads (source and binaries): http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.9-beta/ Important note: When upgrading from another Tomcat 4.x release, the Tomcat work directory must be cleared. Remy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Hooking up Tomcat to Apache
See below Peter Alvin wrote: Tomcat is running fine in standalone mode but I'm having difficulty hooking it up to Apache. I've configured Tomcat's server.xml file and I have an include file in Apache's httpd.conf file that points to a copy of the auto -generated tomcat-apache.conf file (where I've corrected the path to the mod_jserv.so module). When surf to www.mydomain.com/appName I get a Cannot find server page (interestingly, not a 404). If you don't mind, I have a few questions. 1) Fact1: When tomcat runs in standalone mode, its default port is 8080. Fact2: my auto-generated tomcat-apache.conf file has the line ApJServDefaultPort 8007. Question: Does that mean I have to manually start Tomcat on 8007 (instead of 8080) in order to handle the requests from Apache? No. 8007 is not the same as 8080 (obviously). 8080 is an HTTP connector that you can get to through a browser. 8007 port is for the AJP connector to send requests over. They must be different. You should see the 8007 port in your workers.properties file for the AJP connector. 2) Does the adaptor, mod_jserv, open up a TCP connection to Tomcat in order to pass requests? I guess so. This sounds inefficient. That's the 8007 port. 3) There is another line in the tomcat-apache.conf file that states ApJServManual on, which, according to the manual says this: Instruct jserv not to start the Tomcat process. Automatically starting Tomcat is not implemented yet. If that is true, how do I configure Tomcat to start automatically along with Apache? /etc/inittab for starting during system boot? My overall goal is to have only *.htm files (mydomain.com/fileXYZ.htm) handled by Tomcat. I think this is a typo. Tomcat should be handling the .jsp files and the HTML files should be left to apache to handle. Peter Alvin David Mossakowski -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- David Mossakowski [EMAIL PROTECTED] Instinet Corporation 212.310.7275 ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Getting mod_webapp - should I give up?
I had a very similar experience and came to the the same conclusion though I was using Tomcat 4.04. This is why I've been trying to get CGI's under Tomcat standalone to work, unfortunately I haven't been able to find out any information on this anywhere. (And if YOU know something I'd appreciate hearing of it! - see my earlier post titled: 'Do included CGI's work with Tomcat' the problem seems to be that you Tomcat doesn't process included CGI's) As far as I can see, mod_webapp was designed to be an easier to setup way of integrating apache and tomcat and it succeeds in this on windows for apache 1.3 and tomcat 4.0x. However, it will serve all content from a directory you configure it for from tomcat whereas mod_jk* will leave html, jpg, gif etc to Apache. The way round this is to have your pics and static pages in a different location that is served by Apache alone and referenced as /static/xxx or similar but this then loses the convenience of a single war file containing everything needed for the application (it can even include a mod_jk conf file which can help with mapping servlets without the need for the ugly /servlet/servlet_name of the auto-created jk conf filers of tomcat 3) Worse than the above, I have found that large requests or frequent requests or just at random cause tomcat to give an error about the client terminating or some such and hang. With mod_jk this doesn't happen (or with tomcat standalone). So, nobody can help me to build mod_webapp, and there is no rpm of it to download. Does this just mean that it can't be built? I don't remember where I read that mod_webapp was the correct way to integrate Apache2 and Tomcat4. The documentation is a bit fragmented. Is mod_jk* the true way to do this? If so, could someone give me a URL to a definitive page that says this and how to get/build it? I just want to integrate Apache2 and tomcat4, not do anything special. About a year ago I did successfully integrate Apache1 and tomcat, but I haven't worked with tomcat since then. On Tue, 2002-08-13 at 17:20, Murray Cumming wrote: OK, so if I had read README.txt properly then I would know that I need to do a cvs checkout of apr into the webapp directory. It tells me to copy and modify a build.properties.sample file, but there is no such file there, so I ignored that. As instructed, I then ran support/buildConf.sh This creates a configure script, which I am tempted to run, but the next step tells me to run ant. I did that, and I still this error: BUILD FAILED file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot find Tomcat 4.0 classes So, how do I tell it where to find these tomcat classes? I have already installed jakarta-tomcat-4 from here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
eapi or noeapi
Greetings, Pardon me as there is a small chance this is a FAQ I am not sure. I have a rh 7.2 rpm style apache 1.3.26 and was just wondering which one of the two I need to download: mod_jk-3.3-ap13-eapi.so or mod_jk-3.3-ap13-noeapi.so to go with tomcat 3.3 . . . I guess what I am asking here is outside of trial-n-error method, is there a way I can for sure tell which one will my apache like or dislike? Thanks, Farid H. UNM -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache not automatically starting Tomcat
I have Apache 2.0.39 with Tomcat 4.1.8 working except Apache is not auto-starting Tomcat (as I thought it is supposed to do with these versions). Could someone tell me if 1) Apache should auto-start Tomcat; 2) What needs to be done to configure the auto-start. If I manually start Tomcat, everything works as expected. Thanks, Kenny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Possible bug: wrapped requests and jsp:include
Hello, I've found behaviour which might be a bug in Tomcat 4.0.4. I have a filter that wraps a request using the correct way (HttpServletRequestWrapper.) The wrapper overrides getParameter (etc.) The wrapped request then goes to a JSP, one.jsp. one.jsp includes another JSP like this: jsp:include page=/two.jsp jsp:param name=foo value=bar / /jsp:include The problem is that two.jsp only sees the parameters provided by the wrapper; it can't see the parameter foo. i.e., in two.jsp: %= request.getParameter(foo) % is null. This seems incorrect to me - surely the parameters set via jsp:param should override any set by the wrapper. I can't find anything explicit in the spec, though. It sounds like for jsp:include, Tomcat 4.0.4 is invoking methods on the internal HttpServletRequest implementation, rather than what I would expect, which is to use another wrapper around whatever HttpServletRequest object the JSP/servlet is currently processing. So is this a bug? I can send a simple webapp demonstrating this to anyone interested. Robert Tansley / Hewlett Packard Laboratories / Tel. (+1)617 253 4439 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.0.3 building
Hi List, I am a new Tomcat's user and I try to build it the 4.0.3 version but I have the following error : It didn't find the definition of Interface NodeIterator must I search it and copy it in the org/w3c/dom/traversal/NodeIterator Thanks a lot build-main: [style] Transforming into /home/zemmouri/jakarta-tomcat-4.0.3-src/webapps/build/tomcat-docs [style] Transforming into /home/zemmouri/jakarta-tomcat-4.0.3-src/webapps/build/tomcat-docs [style] Loading stylesheet /home/zemmouri/jakarta-tomcat-4.0.3-src/webapps/tomcat-docs/tomcat-docs.xsl BUILD FAILED java.lang.NoClassDefFoundError: org/w3c/dom/traversal/NodeIterator at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.xml.utils.ObjectPool.init(ObjectPool.java:100) at org.apache.xalan.transformer.TransformerImpl.init(TransformerImpl.java:236) at org.apache.xalan.templates.StylesheetRoot.newTransformer(StylesheetRoot.java:175) at org.apache.tools.ant.taskdefs.optional.TraXLiaison.setStylesheet(TraXLiaison.java:112) at org.apache.tools.ant.taskdefs.XSLTProcess.configureLiaison(XSLTProcess.java:459) at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:340) at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess.java:179) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:164) at org.apache.tools.ant.Target.performTasks(Target.java:182) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:256) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:164) at org.apache.tools.ant.Target.performTasks(Target.java:182) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:256) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:164) at org.apache.tools.ant.Target.performTasks(Target.java:182) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.Project.executeTargets(Project.java:560) at org.apache.tools.ant.Main.runBuild(Main.java:454) at org.apache.tools.ant.Main.start(Main.java:153) at org.apache.tools.ant.Main.main(Main.java:176) Total time: 13 seconds org/w3c/dom/traversal/NodeIterator -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.3 building
looks like you are missing an xml parser. Download http://xml.apache.org/xerces-j/ and make sure the jar files are on the class path. -Original Message- From: Fathya Zemmouri [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 9:26 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.0.3 building Hi List, I am a new Tomcat's user and I try to build it the 4.0.3 version but I have the following error : It didn't find the definition of Interface NodeIterator must I search it and copy it in the org/w3c/dom/traversal/NodeIterator Thanks a lot build-main: [style] Transforming into /home/zemmouri/jakarta-tomcat-4.0.3-src/webapps/build/tomcat-docs [style] Transforming into /home/zemmouri/jakarta-tomcat-4.0.3-src/webapps/build/tomcat-docs [style] Loading stylesheet /home/zemmouri/jakarta-tomcat-4.0.3-src/webapps/tomcat-docs/to mcat-docs.xsl BUILD FAILED java.lang.NoClassDefFoundError: org/w3c/dom/traversal/NodeIterator at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at org.apache.xml.utils.ObjectPool.init(ObjectPool.java:100) at org.apache.xalan.transformer.TransformerImpl.init(Transforme rImpl.java:236) at org.apache.xalan.templates.StylesheetRoot.newTransformer(Style sheetRoot.java:175) at org.apache.tools.ant.taskdefs.optional.TraXLiaison.setStyleshe et(TraXLiaison.java:112) at org.apache.tools.ant.taskdefs.XSLTProcess.configureLiaison(XSL TProcess.java:459) at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess. java:340) at org.apache.tools.ant.taskdefs.XSLTProcess.execute(XSLTProcess. java:179) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:164) at org.apache.tools.ant.Target.performTasks(Target.java:182) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:256) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:164) at org.apache.tools.ant.Target.performTasks(Target.java:182) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:256) at org.apache.tools.ant.Task.perform(Task.java:217) at org.apache.tools.ant.Target.execute(Target.java:164) at org.apache.tools.ant.Target.performTasks(Target.java:182) at org.apache.tools.ant.Project.executeTarget(Project.java:601) at org.apache.tools.ant.Project.executeTargets(Project.java:560) at org.apache.tools.ant.Main.runBuild(Main.java:454) at org.apache.tools.ant.Main.start(Main.java:153) at org.apache.tools.ant.Main.main(Main.java:176) Total time: 13 seconds org/w3c/dom/traversal/NodeIterator -- 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]
Re: Possible bug: wrapped requests and jsp:include
See my earlier post on Tomcat Include behavior (Do Included CGI's work with Tomcat? Sent Yesterday at 1:32 pm) - I don't know if this is the same problem but it sounds a little like it, my speculation is that the include function won't process included info. Hello, I've found behaviour which might be a bug in Tomcat 4.0.4. I have a filter that wraps a request using the correct way (HttpServletRequestWrapper.) The wrapper overrides getParameter (etc.) The wrapped request then goes to a JSP, one.jsp. one.jsp includes another JSP like this: jsp:include page=/two.jsp jsp:param name=foo value=bar / /jsp:include The problem is that two.jsp only sees the parameters provided by the wrapper; it can't see the parameter foo. i.e., in two.jsp: %= request.getParameter(foo) % is null. This seems incorrect to me - surely the parameters set via jsp:param should override any set by the wrapper. I can't find anything explicit in the spec, though. It sounds like for jsp:include, Tomcat 4.0.4 is invoking methods on the internal HttpServletRequest implementation, rather than what I would expect, which is to use another wrapper around whatever HttpServletRequest object the JSP/servlet is currently processing. So is this a bug? I can send a simple webapp demonstrating this to anyone interested. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache not automatically starting Tomcat
Yes, Apache should automatically start Tomcat (it works for me). Use the attached files. workers2.properties goes in the Apache\conf directory. jk2.properties goes in the Tomcat\conf directory. Be sure to adjust paths accordingly. Dave -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: August 15, 2002 7:21 AM To: [EMAIL PROTECTED] Subject: Apache not automatically starting Tomcat I have Apache 2.0.39 with Tomcat 4.1.8 working except Apache is not auto-starting Tomcat (as I thought it is supposed to do with these versions). Could someone tell me if 1) Apache should auto-start Tomcat; 2) What needs to be done to configure the auto-start. If I manually start Tomcat, everything works as expected. Thanks, Kenny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] jk2.properties Description: Binary data workers2.properties Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache+tomcat configuration
Hi guys Is there a page or an archive list where I can found in order to run apache together with Tomcat? I know some of you has already configured sucessfuly Thanks in advance for your replies Fabio -- Este mensaje y sus anexos están dirigidos exclusivamente a su destinatario y puede(n) contener información confidencial. En consecuencia, de conformidad con las leyes peruanas, está prohibida su reproducción o difusión a través de cualquier medio. Si ha recibido esta comunicación por error, sírvase informarlo al remitente a través de correo electrónico o al teléfono (511) 611- y borrar de inmediato este mensaje. Muchas Gracias. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Creating a Certificate Signing Request
Hi all, I am new to the list, so please bear with me. I am running a server with RedHat Linux 7.2, with Tomcat 4.0.3 as the web server. I am in the process of trying to buy a digital certificate from Verisign but am unable to find any information on how to create a Certificate Signing Request. I called Verisign, and they told me that they do not have any documentation on how to do this. Can someone please help. Thanks in advance, Gabe Sanchez Network Services M2 Systems Corporation Elite Software Engineering 850 Trafalgar Court Suite 100 Maitland, Florida 32751 Phone: (407) 551.1345 Fax: (407) 551.1421 E-Mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Enterprise Java Beans (EJB)
EJB provides a way to easily encapsulate business logic and reduce complexity by moving some difficult functionality/designs into deployment instead of development. Transaction requirements defined in the deployment of the EJB beans as opposed to part of the development of the EJB beans. (And they are easy to migrate/scale to many computers based on deployment configuration, again, making that task easier for developers since the programmer does not need to do anything special to achieve this. Session beans contain the business logic (Servlets call them) Entity beans persist the info to the database. (Session beans call them) Message beans respond to JMS queues/topics. In reality, EJB is simply another design pattern... one that was over-hyped by the vendors, but can provide flexibility needed in some cases. On Wed, 2002-08-14 at 22:34, Josh wrote: Don't suppose anybody can send me a pointer as to what EJB and Jboss actually achieve? All i managed to glean from their website were some pretty 3d variations on the usual our product in the middle and some arrows diagrams. -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. - Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 3:31 PM Subject: Re: Enterprise Java Beans (EJB) Does Tomcat support EJB?. No, it is not the task of Tomcat. if not, is there a project to migrate tomcat to support EJB?... it will be a very nice feature... Other servers, like JBoss, are EJB containers, Tomcat can connect/integrate with them. There is a version of JBoss that comes bundled with Tomcat. Take a look at http://www.jboss.org/ Nix. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Virtually, Ned Wolpert [EMAIL PROTECTED] 4e75 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Fw: Apache not automatically starting Tomcat
Dave: I put the two files you sent in the proper directories (workers2.properties in Apache's conf and jk2.properties in Tomcat's conf), restarted Apache, but still no start of Tomcat. I'm testing it by going to http://localhost/examples; when I manually start Tomcat, that page displays as expected. Is there anything else I need to do to get Tomcat to auto-start? Thanks, Kenny - Original Message - From: Short, Dave [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 9:44 AM Subject: RE: Apache not automatically starting Tomcat Yes, Apache should automatically start Tomcat (it works for me). Use the attached files. workers2.properties goes in the Apache\conf directory. jk2.properties goes in the Tomcat\conf directory. Be sure to adjust paths accordingly. Dave -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: August 15, 2002 7:21 AM To: [EMAIL PROTECTED] Subject: Apache not automatically starting Tomcat I have Apache 2.0.39 with Tomcat 4.1.8 working except Apache is not auto-starting Tomcat (as I thought it is supposed to do with these versions). Could someone tell me if 1) Apache should auto-start Tomcat; 2) What needs to be done to configure the auto-start. If I manually start Tomcat, everything works as expected. Thanks, Kenny -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache not automatically starting Tomcat
Kenny, Here are the steps I used. Make sure TOMCAT_HOME and CATALINA_HOME are set (reboot if necessary). 0. Install Java 1.3 1. Download jakarta-tomcat-4.1.8.exe from http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.8/bin/ and install into c:\tomcat. 2. Set the TOMCAT_HOME (c:\tomcat) as system environment variable and reboot. 3. Install Apache 2.0.39 into c:\apache2. 4. Download mod_jk2.dll from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win32 / 5. Copy mod_jk2.dll to c:\apache2\modules. 6. Add the following line to the c:\apache2\conf\httpd.conf file: LoadModule jk2_module modules/mod_jk2.dll 7. Copy the attached workers2.proterties to c:\apache2\conf (change the paths accordingly). 8. Copy the attached jk2.properties and to c:\tomcat\conf (change the paths accordingly). 9. Run Apache (It will start the tomcat inprocess) Dave -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: August 15, 2002 7:59 AM To: [EMAIL PROTECTED] Subject: Fw: Apache not automatically starting Tomcat Dave: I put the two files you sent in the proper directories (workers2.properties in Apache's conf and jk2.properties in Tomcat's conf), restarted Apache, but still no start of Tomcat. I'm testing it by going to http://localhost/examples; when I manually start Tomcat, that page displays as expected. Is there anything else I need to do to get Tomcat to auto-start? Thanks, Kenny - Original Message - From: Short, Dave [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 9:44 AM Subject: RE: Apache not automatically starting Tomcat Yes, Apache should automatically start Tomcat (it works for me). Use the attached files. workers2.properties goes in the Apache\conf directory. jk2.properties goes in the Tomcat\conf directory. Be sure to adjust paths accordingly. Dave -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: August 15, 2002 7:21 AM To: [EMAIL PROTECTED] Subject: Apache not automatically starting Tomcat I have Apache 2.0.39 with Tomcat 4.1.8 working except Apache is not auto-starting Tomcat (as I thought it is supposed to do with these versions). Could someone tell me if 1) Apache should auto-start Tomcat; 2) What needs to be done to configure the auto-start. If I manually start Tomcat, everything works as expected. Thanks, Kenny -- 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] -- 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]
RE: Refresh Issue
Hi, You want three headers there to be compliant across browsers and HTTP 1.0 and 1.1. Try this: http://www.jguru.com/faq/view.jsp?EID=377 Yoav Shapira Millennium ChemInformatics -Original Message- From: Furer Alexander [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:49 AM To: Tomcat Users List Subject: Re: Refresh Issue Check your header cache control - Original Message - From: Richard Johnstone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 12:42 PM Subject: Refresh Issue Hi I am having some problems with the refreshing of servlets. When I call a page from an HTML form submit it is ok. If I use a link, if the page has already been called it pulls that page back. Only when I refresh the page will it reload with the correct information. It seems that the page is being stored somewhere Ta for the Help Rich --- - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Solaris startup.sh error! 'The JAVA_HOME environment variable is not defined properly'
Hi, The tomcat startup scripts will not take your environment apparently. Try adding JAVA_HOME=/usr/java1.4/j2sdk1.4.0_01 to $CATALINA_HOME/bin/catalina.sh. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 5:13 PM To: [EMAIL PROTECTED] Subject: Solaris startup.sh error! 'The JAVA_HOME environment variable is not defined properly' Hi, I have installed tomcat 4.0.4 on solaris 8, ultra box. When I run startup.sh, it fails giving me this message, 'The JAVA_HOME environment variable is not defined properly. This environment variable is needed to run this program.' I'm running /sbin/sh. Tomcat was installed as root. So in /.profile I set up JAVA_HOME variable, JAVA_HOME=/usr/java1.4 (actually I tried /usr/java1.4/j2sdk1.4.0_01) export JAVA_HOME. when I echo $JAVA_HOME, I can see that it is set. But the error persists. Could some one tell me what am I doing wrong? TIA. -ST -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Enterprise Java Beans (EJB)
Consider draping a DAO around your persistence. This way you can replace EJB with JDO or RowSet, should you need to Ex DAO interface: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/src_05d/basicPortal/src/org/apache/commons/DAO/BasicDAO.java?rev=1.1.1.1content-type=text/vnd.viewcvs-markup I found a RowSet implementation of DAO works better than EJB. v. Ned Wolpert wrote: EJB provides a way to easily encapsulate business logic and reduce complexity by moving some difficult functionality/designs into deployment instead of development. Transaction requirements defined in the deployment of the EJB beans as opposed to part of the development of the EJB beans. (And they are easy to migrate/scale to many computers based on deployment configuration, again, making that task easier for developers since the programmer does not need to do anything special to achieve this. Session beans contain the business logic (Servlets call them) Entity beans persist the info to the database. (Session beans call them) Message beans respond to JMS queues/topics. In reality, EJB is simply another design pattern... one that was over-hyped by the vendors, but can provide flexibility needed in some cases. On Wed, 2002-08-14 at 22:34, Josh wrote: Don't suppose anybody can send me a pointer as to what EJB and Jboss actually achieve? All i managed to glean from their website were some pretty 3d variations on the usual our product in the middle and some arrows diagrams. -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. - Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 3:31 PM Subject: Re: Enterprise Java Beans (EJB) Does Tomcat support EJB?. No, it is not the task of Tomcat. if not, is there a project to migrate tomcat to support EJB?... it will be a very nice feature... Other servers, like JBoss, are EJB containers, Tomcat can connect/integrate with them. There is a version of JBoss that comes bundled with Tomcat. Take a look at http://www.jboss.org/ Nix. -- 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]
Re: Enterprise Java Beans (EJB)
When you say 'replace EJB with JDO' you mean replacing EJB's entity beans with DAO, right? (As opposed to session and message beans) (I've never used DAO, just TopLink and CastorJDO instead of Entity beans or as BMP entity beans) On Thu, 2002-08-15 at 08:11, V. Cekvenich wrote: Consider draping a DAO around your persistence. This way you can replace EJB with JDO or RowSet, should you need to Ex DAO interface: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/src_05d/basicPortal/src/org/apache/commons/DAO/BasicDAO.java?rev=1.1.1.1content-type=text/vnd.viewcvs-markup I found a RowSet implementation of DAO works better than EJB. v. Ned Wolpert wrote: EJB provides a way to easily encapsulate business logic and reduce complexity by moving some difficult functionality/designs into deployment instead of development. Transaction requirements defined in the deployment of the EJB beans as opposed to part of the development of the EJB beans. (And they are easy to migrate/scale to many computers based on deployment configuration, again, making that task easier for developers since the programmer does not need to do anything special to achieve this. Session beans contain the business logic (Servlets call them) Entity beans persist the info to the database. (Session beans call them) Message beans respond to JMS queues/topics. In reality, EJB is simply another design pattern... one that was over-hyped by the vendors, but can provide flexibility needed in some cases. On Wed, 2002-08-14 at 22:34, Josh wrote: Don't suppose anybody can send me a pointer as to what EJB and Jboss actually achieve? All i managed to glean from their website were some pretty 3d variations on the usual our product in the middle and some arrows diagrams. -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. - Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 3:31 PM Subject: Re: Enterprise Java Beans (EJB) Does Tomcat support EJB?. No, it is not the task of Tomcat. if not, is there a project to migrate tomcat to support EJB?... it will be a very nice feature... Other servers, like JBoss, are EJB containers, Tomcat can connect/integrate with them. There is a version of JBoss that comes bundled with Tomcat. Take a look at http://www.jboss.org/ Nix. -- 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] -- Virtually, Ned Wolpert [EMAIL PROTECTED] 4e75 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Errors Compiling a JSP
Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: HTML HEADTITLEJSP that processes parameters in a link/TITLE/HEAD BODY Parameters UL LICountry = %= request.getParameter(country) % LIColors: UL %! String[] colorValues = request.getParameterValues(colors); % LIColor 1 = %= colorValues[0]% LIColor 2 = %= colorValues[1]% LIColor 3 = %= colorValues[2]% /UL /UL /BODY /HTML The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 3.3.1
Hi I am using Embedded tomcat 3.3.1. When i query for a JSP page it does not execute it but it displays the jsp file as the same file. Help me !!! Thanks Regards Vijay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Errors Compiling a JSP
Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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]
RE: Errors Compiling a JSP
That didn't work. Removing the ! gave me the error: Status 500 The server encountered an internal error that prevented it from fulfilling this request. Thanks Brian -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:19 AM To: Tomcat Users List Subject: Re: Errors Compiling a JSP Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Enterprise Java Beans (EJB)
No Here is what: Bean (formBean in Struts for example) delegate to DAO for CRUD (Insert,Read, Update,Delete to SQL DB) and persistence, done by DAO. DAO is an interface. The interface could be, inside of the DAO and not known to bean (formBean), implemented inside of the DAO a few different ways. You could have a DAO implementation using EJB or Castor or Jakrta OJB, or RowSet (I use RowSet). If you have an interface, such as DAO pattern, you could change the implementation and not affect the rest of your application. So ... make your persistance/CRUD and interface. This lets you change how it does CRUD. You should be able to switch from JDO to EJB or OJB to RowSet/ResulSet. If you have to refactor the whole application to junk EJB or JDO... that would not be great. A simple interface would do ya. v. Ned Wolpert wrote: When you say 'replace EJB with JDO' you mean replacing EJB's entity beans with DAO, right? (As opposed to session and message beans) (I've never used DAO, just TopLink and CastorJDO instead of Entity beans or as BMP entity beans) On Thu, 2002-08-15 at 08:11, V. Cekvenich wrote: Consider draping a DAO around your persistence. This way you can replace EJB with JDO or RowSet, should you need to Ex DAO interface: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/src_05d/basicPortal/src/org/apache/commons/DAO/BasicDAO.java?rev=1.1.1.1content-type=text/vnd.viewcvs-markup I found a RowSet implementation of DAO works better than EJB. v. Ned Wolpert wrote: EJB provides a way to easily encapsulate business logic and reduce complexity by moving some difficult functionality/designs into deployment instead of development. Transaction requirements defined in the deployment of the EJB beans as opposed to part of the development of the EJB beans. (And they are easy to migrate/scale to many computers based on deployment configuration, again, making that task easier for developers since the programmer does not need to do anything special to achieve this. Session beans contain the business logic (Servlets call them) Entity beans persist the info to the database. (Session beans call them) Message beans respond to JMS queues/topics. In reality, EJB is simply another design pattern... one that was over-hyped by the vendors, but can provide flexibility needed in some cases. On Wed, 2002-08-14 at 22:34, Josh wrote: Don't suppose anybody can send me a pointer as to what EJB and Jboss actually achieve? All i managed to glean from their website were some pretty 3d variations on the usual our product in the middle and some arrows diagrams. -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. - Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, August 15, 2002 3:31 PM Subject: Re: Enterprise Java Beans (EJB) Does Tomcat support EJB?. No, it is not the task of Tomcat. if not, is there a project to migrate tomcat to support EJB?... it will be a very nice feature... Other servers, like JBoss, are EJB containers, Tomcat can connect/integrate with them. There is a version of JBoss that comes bundled with Tomcat. Take a look at http://www.jboss.org/ Nix. -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Errors Compiling a JSP
Is there a more detailed error message? Are you actually setting the colorValues array up anywhere before it gets to this piece of code? At 11:21 AM 15/08/2002 -0400, you wrote: That didn't work. Removing the ! gave me the error: Status 500 The server encountered an internal error that prevented it from fulfilling this request. Thanks Brian -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:19 AM To: Tomcat Users List Subject: Re: Errors Compiling a JSP Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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] -- 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]
RE: Errors Compiling a JSP
get rid of that bang. The bang is for declaring class level stuff. i.e. % String [] colorValues = ... instead of %! String -Original Message- From: Sharples, Brian [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:15 AM To: '[EMAIL PROTECTED]' Subject: Errors Compiling a JSP Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: HTML HEADTITLEJSP that processes parameters in a link/TITLE/HEAD BODY Parameters UL LICountry = %= request.getParameter(country) % LIColors: UL %! String[] colorValues = request.getParameterValues(colors); % LIColor 1 = %= colorValues[0]% LIColor 2 = %= colorValues[1]% LIColor 3 = %= colorValues[2]% /UL /UL /BODY /HTML The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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]
Re: Creating a Certificate Signing Request
On Thu, 2002-08-15 at 10:55, Gabe Sanchez wrote: Hi all, I am new to the list, so please bear with me. I am running a server with RedHat Linux 7.2, with Tomcat 4.0.3 as the web server. I am in the process of trying to buy a digital certificate from Verisign but am unable to find any information on how to create a Certificate Signing Request. I called Verisign, and they told me that they do not have any documentation on how to do this. Can someone please help. This is actually OS dependent, not really a tomcat thing. Verisign does indeed have instructions at: http://www.verisign.com/support/site/secure/install.html -Steve -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Errors Compiling a JSP
Are you actually setting the colorValues array up anywhere before it gets to this piece of code? Actually that was a stupid thing to say. You should be setting a at least 3 request parameters as 'colors' before you call this code. At 04:30 PM 15/08/2002 +0100, you wrote: Is there a more detailed error message? Are you actually setting the colorValues array up anywhere before it gets to this piece of code? At 11:21 AM 15/08/2002 -0400, you wrote: That didn't work. Removing the ! gave me the error: Status 500 The server encountered an internal error that prevented it from fulfilling this request. Thanks Brian -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:19 AM To: Tomcat Users List Subject: Re: Errors Compiling a JSP Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Errors Compiling a JSP
There should be more information available in one of the logs. Some background: The JSP is compiled to a servlet. With %! % you define members or methods for the class or instance. With % % you fill the body of a method, all implicit variables (like request) are local to this method. Have a look at the generated code in the work directory to get a better idea what happens with your code. -Ursprüngliche Nachricht- Von: Sharples, Brian [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. August 2002 17:21 An: 'Tomcat Users List' Betreff: RE: Errors Compiling a JSP That didn't work. Removing the ! gave me the error: Status 500 The server encountered an internal error that prevented it from fulfilling this request. Thanks Brian -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:19 AM To: Tomcat Users List Subject: Re: Errors Compiling a JSP Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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] -- 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]
Help: Authentication: Use Tomcat and Apache
So I tried this and it still doesn't work. Here is how I have it set up: Server.xml: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 tomcatAuthentication=false/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8011 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 tomcatAuthentcation=true/ workers.properties: worker.list=ajp13, test worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.test.port=8011 worker.test.host=localhost worker.test.type=ajp13 worker.test.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13, test worker.inprocess.type=jni worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar worker.inprocess.cmd_line=start mod_jk.conf: JkWorkersFile /opt/tomcat/conf/jk/workers.properties JkLogFile /opt/tomcat/logs/mod_jk.log JkLogLevel info JkMount /examples/* ajp13 JkMount /protected/* test It appears if I change the first connector in my server.xml file so that tomcat authentication is set to true, my protected page works. Otherwise, in the configuration shown above, it does not. I think I am doing everything right. Any ideas?? Thanks, Kevin Kevin Andryc Web Systems Engineer MISER http://www.umass.edu/miser/ Phone: (413)-545-3460 [EMAIL PROTECTED] -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 12:29 PM To: Tomcat Users List Subject: RE: REPOST: Authentication: Use Tomcat and Apache I think you must have two connectors (one as this one, and one with out tomcatAuthentication=false attribute, on another port). then you would have to configure the mod_jk to handle different applications or hosts in apache with correct connector (on different ports). hope it helps -reynir -Original Message- From: Koes, Derrick [mailto:[EMAIL PROTECTED]] Sent: 13. ágúst 2002 16:38 To: 'Tomcat Users List' Subject: RE: REPOST: Authentication: Use Tomcat and Apache Does putting it under a different service name work? -Original Message- From: Kevin Andryc [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 12:16 PM To: [EMAIL PROTECTED] Subject: REPOST: Authentication: Use Tomcat and Apache I have an application that currently uses Apache's authentication. In order for this to work with Tomcat I had to specify it in my server.xml, like so: Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 tomcatAuthentication=false/ I also have another application running under Tomcat that I would like Tomcat to handle the authentication. Is there a way to have both methods? Thanks, Kevin Kevin Andryc Web Systems Engineer MISER http://www.umass.edu/miser/ Phone: (413)-545-3460 [EMAIL PROTECTED] -- 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] -- 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]
RE: Creating a Certificate Signing Request
No, it has nothing to do with the OS. It's web server dependent (as the Verisign documents explain), not OS dependent. In Mr. Sanchez's scenario, his web server is tomcat, not any of the web servers that Verisign has listed at that URL, which is exactly his question: If tomcat is the web server, how do you generate a CSR for a CA like Verisign? You can generate a CSR using the keytool command: http://www.rackshack.net/support/quickssl/csr/jakarta-tomcat.html John Turner [EMAIL PROTECTED] -Original Message- From: Stephen Bacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:31 AM To: Tomcat Users List Subject: Re: Creating a Certificate Signing Request On Thu, 2002-08-15 at 10:55, Gabe Sanchez wrote: Hi all, I am new to the list, so please bear with me. I am running a server with RedHat Linux 7.2, with Tomcat 4.0.3 as the web server. I am in the process of trying to buy a digital certificate from Verisign but am unable to find any information on how to create a Certificate Signing Request. I called Verisign, and they told me that they do not have any documentation on how to do this. Can someone please help. This is actually OS dependent, not really a tomcat thing. Verisign does indeed have instructions at: http://www.verisign.com/support/site/secure/install.html -Steve -- 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]
Re: AW: Errors Compiling a JSP
If that is all the code you have, I assume you have a NullPointerException, which means that one of the variables you are trying to use is null. ie. probably never set. If that code you gave was in a file called 'test.jsp', add parameters onto the end of it when you call it in your browser like this: http://localhost:8080/yourWebapp/test.jsp?country=ukcolors=redcolors=bluecolors=pink with this code: Parameters * Country = %= request.getParameter(country) % * Colors: % String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% and it will work. At 05:34 PM 15/08/2002 +0200, you wrote: There should be more information available in one of the logs. Some background: The JSP is compiled to a servlet. With %! % you define members or methods for the class or instance. With % % you fill the body of a method, all implicit variables (like request) are local to this method. Have a look at the generated code in the work directory to get a better idea what happens with your code. -Ursprüngliche Nachricht- Von: Sharples, Brian [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. August 2002 17:21 An: 'Tomcat Users List' Betreff: RE: Errors Compiling a JSP That didn't work. Removing the ! gave me the error: Status 500 The server encountered an internal error that prevented it from fulfilling this request. Thanks Brian -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:19 AM To: Tomcat Users List Subject: Re: Errors Compiling a JSP Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Using the new Tomcat Admin Page in Tomcat 4.1.x
Hi, I am using log4j in my servlet. log4j has JMX interface to change its parameters at run-time. Could someone please tell me if I can use the new Tomcat Admin Page in Tomcat 4.1.x to change the log4j parameters? Thanks. Sam -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Errors Compiling a JSP
This is the first time colorValues array is used. I am sending it three request parameters as 'colors' from myFlag.html: HTML HEADTITLELink Invoking a JSP with parameters/TITLE/HEAD BODY A HREF=myFlag.jsp?country=venezuela colors=yellowcolors=bluecolors=redInvoke myFlag.jsp/A /BODY /HTML -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:33 AM To: Tomcat Users List Subject: RE: Errors Compiling a JSP Are you actually setting the colorValues array up anywhere before it gets to this piece of code? Actually that was a stupid thing to say. You should be setting a at least 3 request parameters as 'colors' before you call this code. At 04:30 PM 15/08/2002 +0100, you wrote: Is there a more detailed error message? Are you actually setting the colorValues array up anywhere before it gets to this piece of code? At 11:21 AM 15/08/2002 -0400, you wrote: That didn't work. Removing the ! gave me the error: Status 500 The server encountered an internal error that prevented it from fulfilling this request. Thanks Brian -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:19 AM To: Tomcat Users List Subject: Re: Errors Compiling a JSP Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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] -- 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] -- 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]
RE: Errors Compiling a JSP
If I get rid of the bang I get another internal error with no other information. -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:29 AM To: Tomcat Users List Subject: RE: Errors Compiling a JSP get rid of that bang. The bang is for declaring class level stuff. i.e. % String [] colorValues = ... instead of %! String -Original Message- From: Sharples, Brian [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:15 AM To: '[EMAIL PROTECTED]' Subject: Errors Compiling a JSP Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: HTML HEADTITLEJSP that processes parameters in a link/TITLE/HEAD BODY Parameters UL LICountry = %= request.getParameter(country) % LIColors: UL %! String[] colorValues = request.getParameterValues(colors); % LIColor 1 = %= colorValues[0]% LIColor 2 = %= colorValues[1]% LIColor 3 = %= colorValues[2]% /UL /UL /BODY /HTML The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Enterprise Java Beans (EJB)
| -Original Message- | From: V. Cekvenich [mailto:[EMAIL PROTECTED]] | Sent: Thursday, August 15, 2002 10:28 AM | To: Tomcat Users List | Subject: Re: Enterprise Java Beans (EJB) | | No | Here is what: | Bean (formBean in Struts for example) delegate to DAO for CRUD | (Insert,Read, Update,Delete to SQL DB) and persistence, done by DAO. | DAO is an interface. | The interface could be, inside of the DAO and not known to bean | (formBean), implemented inside of the DAO a few different ways. | You could have a DAO implementation using EJB or Castor or Jakrta OJB, | or RowSet (I use RowSet). Have you had much luck with RowSet? I check the Sun forums and everyone complains. I think it's an awesome framework, but the sun implementation is really lacking, features such as createCopy, or createShared don't work well if at all in testing what they say it will do. RowSet does work with JSTL, so I'm thinking about standardizing RowSet with my application as the Model Bean to use with my pages. -Jacob | If you have an interface, such as DAO pattern, you could change the | implementation and not affect the rest of your application. | So ... make your persistance/CRUD and interface. | | This lets you change how it does CRUD. You should be able to switch from | JDO to EJB or OJB to RowSet/ResulSet. | | If you have to refactor the whole application to junk EJB or JDO... that | would not be great. A simple interface would do ya. | | v. | | | Ned Wolpert wrote: | When you say 'replace EJB with JDO' you mean replacing EJB's entity | beans with DAO, right? (As opposed to session and message beans) (I've | never used DAO, just TopLink and CastorJDO instead of Entity beans or as | BMP entity beans) | | On Thu, 2002-08-15 at 08:11, V. Cekvenich wrote: | | Consider draping a DAO around your persistence. | This way you can replace EJB with JDO or RowSet, should you need to | Ex DAO interface: | http://cvs.sourceforge.net/cgi- | bin/viewcvs.cgi/basicportal/src_05d/basicPortal/src/org/apache/commons/D AO | /BasicDAO.java?rev=1.1.1.1content-type=text/vnd.viewcvs-markup | | I found a RowSet implementation of DAO works better than EJB. | | v. | | Ned Wolpert wrote: | | EJB provides a way to easily encapsulate business logic and reduce | complexity by moving some difficult functionality/designs into | deployment instead of development. Transaction requirements defined in | the deployment of the EJB beans as opposed to part of the development | of | the EJB beans. (And they are easy to migrate/scale to many computers | based on deployment configuration, again, making that task easier for | developers since the programmer does not need to do anything special to | achieve this. | | Session beans contain the business logic (Servlets call them) | Entity beans persist the info to the database. (Session beans call | them) | Message beans respond to JMS queues/topics. | | In reality, EJB is simply another design pattern... one that was | over-hyped by the vendors, but can provide flexibility needed in some | cases. | | On Wed, 2002-08-14 at 22:34, Josh wrote: | | | Don't suppose anybody can send me a pointer as to what EJB and Jboss | actually achieve? All i managed to glean from their website were some | pretty | 3d variations on the usual our product in the middle and some arrows | diagrams. | | -Josh | | Rimmer, real dumplings, proper dumplings when they're properly | cooked to perfection, proper dumplings, should not bounce. | | - Original Message - | From: Nikola Milutinovic [EMAIL PROTECTED] | To: Tomcat Users List [EMAIL PROTECTED] | Sent: Thursday, August 15, 2002 3:31 PM | Subject: Re: Enterprise Java Beans (EJB) | | | | | Does Tomcat support EJB?. | | No, it is not the task of Tomcat. | | | | if not, is there a project to migrate tomcat to support EJB?... it | will | | be | | | a very nice feature... | | Other servers, like JBoss, are EJB containers, Tomcat can | | connect/integrate with them. There is a version of JBoss that comes | bundled | with Tomcat. Take a look at http://www.jboss.org/ | | | Nix. | | | | -- | To unsubscribe, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | | | | | -- | To unsubscribe, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | | | | | | -- | To unsubscribe, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | | --- | Incoming mail is certified Virus Free. | Checked by AVG anti-virus system (http://www.grisoft.com). | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 | --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 -- To unsubscribe, e-mail: mailto:[EMAIL
RE: Errors Compiling a JSP
Remove the bang. It's that simple. The request object reference does not exist outside of doService. If you don't believe me go to the $CATALINA_HOME\work directory and look at the generated servlet. -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:30 AM To: Tomcat Users List Subject: RE: Errors Compiling a JSP Is there a more detailed error message? Are you actually setting the colorValues array up anywhere before it gets to this piece of code? At 11:21 AM 15/08/2002 -0400, you wrote: That didn't work. Removing the ! gave me the error: Status 500 The server encountered an internal error that prevented it from fulfilling this request. Thanks Brian -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:19 AM To: Tomcat Users List Subject: Re: Errors Compiling a JSP Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: AW: Errors Compiling a JSP
The URL I am sending from myFlag.html is: http://localhost:8080/myJSPs/Hour10/myFlag.jsp?country=venezuelacolors=yell owcolors=bluecolors=red -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:41 AM To: Tomcat Users List Subject: Re: AW: Errors Compiling a JSP If that is all the code you have, I assume you have a NullPointerException, which means that one of the variables you are trying to use is null. ie. probably never set. If that code you gave was in a file called 'test.jsp', add parameters onto the end of it when you call it in your browser like this: http://localhost:8080/yourWebapp/test.jsp?country=ukcolors=redcolors=blue; colors=pink with this code: Parameters * Country = %= request.getParameter(country) % * Colors: % String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% and it will work. At 05:34 PM 15/08/2002 +0200, you wrote: There should be more information available in one of the logs. Some background: The JSP is compiled to a servlet. With %! % you define members or methods for the class or instance. With % % you fill the body of a method, all implicit variables (like request) are local to this method. Have a look at the generated code in the work directory to get a better idea what happens with your code. -Ursprüngliche Nachricht- Von: Sharples, Brian [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. August 2002 17:21 An: 'Tomcat Users List' Betreff: RE: Errors Compiling a JSP That didn't work. Removing the ! gave me the error: Status 500 The server encountered an internal error that prevented it from fulfilling this request. Thanks Brian -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:19 AM To: Tomcat Users List Subject: Re: Errors Compiling a JSP Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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] -- 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] -- 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]
RE: Creating a Certificate Signing Request
Thanks for the information Mr. Turner Gabe Sanchez -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:39 AM To: 'Tomcat Users List' Subject: RE: Creating a Certificate Signing Request No, it has nothing to do with the OS. It's web server dependent (as the Verisign documents explain), not OS dependent. In Mr. Sanchez's scenario, his web server is tomcat, not any of the web servers that Verisign has listed at that URL, which is exactly his question: If tomcat is the web server, how do you generate a CSR for a CA like Verisign? You can generate a CSR using the keytool command: http://www.rackshack.net/support/quickssl/csr/jakarta-tomcat.html John Turner [EMAIL PROTECTED] -Original Message- From: Stephen Bacon [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:31 AM To: Tomcat Users List Subject: Re: Creating a Certificate Signing Request On Thu, 2002-08-15 at 10:55, Gabe Sanchez wrote: Hi all, I am new to the list, so please bear with me. I am running a server with RedHat Linux 7.2, with Tomcat 4.0.3 as the web server. I am in the process of trying to buy a digital certificate from Verisign but am unable to find any information on how to create a Certificate Signing Request. I called Verisign, and they told me that they do not have any documentation on how to do this. Can someone please help. This is actually OS dependent, not really a tomcat thing. Verisign does indeed have instructions at: http://www.verisign.com/support/site/secure/install.html -Steve -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Errors Compiling a JSP
I don't believe that, there are always error messages in log files. look at them. - Have you looked at the genarated servlet ? - Check colorValues for null before derefencing it. - Check colorValues.length before accessing an index. - This is not the right forum to learn java. -Ursprüngliche Nachricht- Von: Sharples, Brian [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. August 2002 17:40 An: 'Tomcat Users List' Betreff: RE: Errors Compiling a JSP If I get rid of the bang I get another internal error with no other information. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache not automatically starting Tomcat
Hi, I am running tomcat4.0.4 and apache2.0.39 on windows2000 and using mod_jk to connect them, right now everything is working fine, but is it possible to configure apache to start tomcat, if yes how and where can i find the required worker2.properties and jk2.properties file for windows2000 Ashish --- Short, Dave [EMAIL PROTECTED] wrote: Yes, Apache should automatically start Tomcat (it works for me). Use the attached files. workers2.properties goes in the Apache\conf directory. jk2.properties goes in the Tomcat\conf directory. Be sure to adjust paths accordingly. Dave -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: August 15, 2002 7:21 AM To: [EMAIL PROTECTED] Subject: Apache not automatically starting Tomcat I have Apache 2.0.39 with Tomcat 4.1.8 working except Apache is not auto-starting Tomcat (as I thought it is supposed to do with these versions). Could someone tell me if 1) Apache should auto-start Tomcat; 2) What needs to be done to configure the auto-start. If I manually start Tomcat, everything works as expected. Thanks, Kenny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ATTACHMENT part 2 application/octet-stream name=jk2.properties ATTACHMENT part 3 application/octet-stream name=workers2.properties -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Enterprise Java Beans (EJB)
Very good Jacob RowSet is an interface (that extends Resulset). And suns RowSet implementation does not have source code. That is why I had Keve and a few other people write an open source implementation of RowSet. That's right. Open Source RowSet. It fixes all the bugs and did I say you get the source code? I have 3 clients, one with 40,000 concurrent users using DAO/w RowSet implementation w/Struts. (EJB can't scale I found beyond very small) Open Source Row Set implementation: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/src_05d/basicPortal/src/org/sourceforge/jxutil/sql/XDisconnectedRowSet.java?rev=1.1content-type=text/vnd.viewcvs-markup DAO implementation: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/src_05d/basicPortal/src/org/apache/commons/DAO/BasicDAOrsImpl.java?rev=1.1.1.1content-type=text/vnd.viewcvs-markup hth, V. Jacob Hookom wrote: | -Original Message- | From: V. Cekvenich [mailto:[EMAIL PROTECTED]] | Sent: Thursday, August 15, 2002 10:28 AM | To: Tomcat Users List | Subject: Re: Enterprise Java Beans (EJB) | | No | Here is what: | Bean (formBean in Struts for example) delegate to DAO for CRUD | (Insert,Read, Update,Delete to SQL DB) and persistence, done by DAO. | DAO is an interface. | The interface could be, inside of the DAO and not known to bean | (formBean), implemented inside of the DAO a few different ways. | You could have a DAO implementation using EJB or Castor or Jakrta OJB, | or RowSet (I use RowSet). Have you had much luck with RowSet? I check the Sun forums and everyone complains. I think it's an awesome framework, but the sun implementation is really lacking, features such as createCopy, or createShared don't work well if at all in testing what they say it will do. RowSet does work with JSTL, so I'm thinking about standardizing RowSet with my application as the Model Bean to use with my pages. -Jacob | If you have an interface, such as DAO pattern, you could change the | implementation and not affect the rest of your application. | So ... make your persistance/CRUD and interface. | | This lets you change how it does CRUD. You should be able to switch from | JDO to EJB or OJB to RowSet/ResulSet. | | If you have to refactor the whole application to junk EJB or JDO... that | would not be great. A simple interface would do ya. | | v. | | | Ned Wolpert wrote: | When you say 'replace EJB with JDO' you mean replacing EJB's entity | beans with DAO, right? (As opposed to session and message beans) (I've | never used DAO, just TopLink and CastorJDO instead of Entity beans or as | BMP entity beans) | | On Thu, 2002-08-15 at 08:11, V. Cekvenich wrote: | | Consider draping a DAO around your persistence. | This way you can replace EJB with JDO or RowSet, should you need to | Ex DAO interface: | http://cvs.sourceforge.net/cgi- | bin/viewcvs.cgi/basicportal/src_05d/basicPortal/src/org/apache/commons/D AO | /BasicDAO.java?rev=1.1.1.1content-type=text/vnd.viewcvs-markup | | I found a RowSet implementation of DAO works better than EJB. | | v. | | Ned Wolpert wrote: | | EJB provides a way to easily encapsulate business logic and reduce | complexity by moving some difficult functionality/designs into | deployment instead of development. Transaction requirements defined in | the deployment of the EJB beans as opposed to part of the development | of | the EJB beans. (And they are easy to migrate/scale to many computers | based on deployment configuration, again, making that task easier for | developers since the programmer does not need to do anything special to | achieve this. | | Session beans contain the business logic (Servlets call them) | Entity beans persist the info to the database. (Session beans call | them) | Message beans respond to JMS queues/topics. | | In reality, EJB is simply another design pattern... one that was | over-hyped by the vendors, but can provide flexibility needed in some | cases. | | On Wed, 2002-08-14 at 22:34, Josh wrote: | | | Don't suppose anybody can send me a pointer as to what EJB and Jboss | actually achieve? All i managed to glean from their website were some | pretty | 3d variations on the usual our product in the middle and some arrows | diagrams. | | -Josh | | Rimmer, real dumplings, proper dumplings when they're properly | cooked to perfection, proper dumplings, should not bounce. | | - Original Message - | From: Nikola Milutinovic [EMAIL PROTECTED] | To: Tomcat Users List [EMAIL PROTECTED] | Sent: Thursday, August 15, 2002 3:31 PM | Subject: Re: Enterprise Java Beans (EJB) | | | | | Does Tomcat support EJB?. | | No, it is not the task of Tomcat. | | | | if not, is there a project to migrate tomcat to support EJB?... it | will | | be | | | a very nice feature... | | Other servers, like JBoss, are EJB
RE: Apache not automatically starting Tomcat
Not sure if these will work for 4.0.4... -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: August 15, 2002 8:51 AM To: Tomcat Users List Subject: RE: Apache not automatically starting Tomcat Hi, I am running tomcat4.0.4 and apache2.0.39 on windows2000 and using mod_jk to connect them, right now everything is working fine, but is it possible to configure apache to start tomcat, if yes how and where can i find the required worker2.properties and jk2.properties file for windows2000 Ashish --- Short, Dave [EMAIL PROTECTED] wrote: Yes, Apache should automatically start Tomcat (it works for me). Use the attached files. workers2.properties goes in the Apache\conf directory. jk2.properties goes in the Tomcat\conf directory. Be sure to adjust paths accordingly. Dave -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: August 15, 2002 7:21 AM To: [EMAIL PROTECTED] Subject: Apache not automatically starting Tomcat I have Apache 2.0.39 with Tomcat 4.1.8 working except Apache is not auto-starting Tomcat (as I thought it is supposed to do with these versions). Could someone tell me if 1) Apache should auto-start Tomcat; 2) What needs to be done to configure the auto-start. If I manually start Tomcat, everything works as expected. Thanks, Kenny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ATTACHMENT part 2 application/octet-stream name=jk2.properties ATTACHMENT part 3 application/octet-stream name=workers2.properties -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] jk2.properties Description: Binary data workers2.properties Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Errors Compiling a JSP
The first time I took the bang out, I got an internal server error. This time it worked like a charm. I must have done something else the first time I tested that. Anyway, it is working fine now. Thanks to everyone for all the help. I was unaware that the request object reference only existed inside doService. The book I'm using (Teach Yourself JavaServer Pages in 24 hours) has it wrong. Thanks again! Brian Sharples -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:34 AM To: Tomcat Users List Subject: RE: Errors Compiling a JSP Remove the bang. It's that simple. The request object reference does not exist outside of doService. If you don't believe me go to the $CATALINA_HOME\work directory and look at the generated servlet. -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:30 AM To: Tomcat Users List Subject: RE: Errors Compiling a JSP Is there a more detailed error message? Are you actually setting the colorValues array up anywhere before it gets to this piece of code? At 11:21 AM 15/08/2002 -0400, you wrote: That didn't work. Removing the ! gave me the error: Status 500 The server encountered an internal error that prevented it from fulfilling this request. Thanks Brian -Original Message- From: Capr1ce [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:19 AM To: Tomcat Users List Subject: Re: Errors Compiling a JSP Try it like this: % String[] colorValues = request.getParameterValues(colors); % At 11:14 AM 15/08/2002 -0400, you wrote: Hi, I am learning JSP with the SAMS bookTeach Yourself JSP in 24 Hours. One of the sample JSPs keeps getting a compiler error. The code is: Parameters * Country = %= request.getParameter(country) % * Colors: %! String[] colorValues = request.getParameterValues(colors); % * Color 1 = %= colorValues[0]% * Color 2 = %= colorValues[1]% * Color 3 = %= colorValues[2]% The error is a status 500 - Internal Server Error: Undefined variable or class name: request String[] colorValues = request.getParameterValues(colors); If I remove the colorValues variable declaration and just put % request.getParameterValues(colors) %, I get past that line. Of course, the next line then shows colorValues as undefined. I don't understand why this is occurring. I am using Tomcat 4.0.4 and j2sdk 1.4.0_01. Thanks for your help. Brian Sharples -- 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] -- 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] -- 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]
RE: Getting mod_webapp - should I give up?
So, I'll forget about mod_webapp because no one knows how to build it and the people who built it once say that it doesn't work well anyway. So, I'll try mod_jk, though I'm concerned that it's marked as deprecated in the apache bugzilla. Now, I just need a URL of some instructions for building mod_jk, because there are no binaries or rpms for mod_jk either, at least not for Tomcat4. Note that I'm trying to use Apache2. On Thu, 2002-08-15 at 10:16, John Burgess wrote: As far as I can see, mod_webapp was designed to be an easier to setup way of integrating apache and tomcat and it succeeds in this on windows for apache 1.3 and tomcat 4.0x. However, it will serve all content from a directory you configure it for from tomcat whereas mod_jk* will leave html, jpg, gif etc to Apache. The way round this is to have your pics and static pages in a different location that is served by Apache alone and referenced as /static/xxx or similar but this then loses the convenience of a single war file containing everything needed for the application (it can even include a mod_jk conf file which can help with mapping servlets without the need for the ugly /servlet/servlet_name of the auto-created jk conf filers of tomcat 3) Worse than the above, I have found that large requests or frequent requests or just at random cause tomcat to give an error about the client terminating or some such and hang. With mod_jk this doesn't happen (or with tomcat standalone). Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -Original Message- From: Murray Cumming [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:04 AM To: Murray Cumming Cc: Tomcat-User Subject: Getting mod_webapp - should I give up? So, nobody can help me to build mod_webapp, and there is no rpm of it to download. Does this just mean that it can't be built? I don't remember where I read that mod_webapp was the correct way to integrate Apache2 and Tomcat4. The documentation is a bit fragmented. Is mod_jk* the true way to do this? If so, could someone give me a URL to a definitive page that says this and how to get/build it? I just want to integrate Apache2 and tomcat4, not do anything special. About a year ago I did successfully integrate Apache1 and tomcat, but I haven't worked with tomcat since then. On Tue, 2002-08-13 at 17:20, Murray Cumming wrote: OK, so if I had read README.txt properly then I would know that I need to do a cvs checkout of apr into the webapp directory. It tells me to copy and modify a build.properties.sample file, but there is no such file there, so I ignored that. As instructed, I then ran support/buildConf.sh This creates a configure script, which I am tempted to run, but the next step tells me to run ant. I did that, and I still this error: BUILD FAILED file:/home/murrayc/jakarta-tomcat-connectors-4.0.4-src/webapp/build.xml:105: Cannot find Tomcat 4.0 classes So, how do I tell it where to find these tomcat classes? I have already installed jakarta-tomcat-4 from here: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/ -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/02 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Murray Cumming [EMAIL PROTECTED] www.murrayc.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Oracle classes not found
I now have Apache/Tomcat/JSDK up and running and I've copied Oracle's classes12.zip into Tomcat's common/lib directory. I'm performing a test from an Oracle book and the compiler/code can't find the Oracle classes. The code I'm running (saved in a file named TestJdbc.java) is: package jdbc.driverTest; import java.sql.*; public class TestJdbc { public TestJdbc () { try { DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver()); } catch (Exception e) {} } } My compile statement is (from the Windows NT command prompt): javac jdbc\driverTest\TestJdbc.java The error I get is: jdbc\driverTest\TestJdbc.java:11: cannot resolve symbol symbol : class OracleDriver location: package driver DriverManager.registerDriver (new.oracle.jdbc.driver.OracleDriver()); 1 error ^ Any ideas? Thanks, Kenny -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
global errorpage?
Hi, which was the server.xml or apps-??.xml option to set an errorpage i.e. for page not found errors .. ??? TC 3.3.2 thx Ihr Support-Team POWER-NETZ® Full-Service-Provider Online-Support: Support: 0190 - 15 11 15 (EUR 0,62/Min) http://Support.Power-Netz.de (kostenlos) http://Support.Power-Netz.com (kostenlos) Vertrieb Tel: 01805 - 57 35 57 (EUR 0,12/Min.) Vertrieb Fax: 01805 - 57 45 57 (EUR 0,12/Min.) Power-Netz Am Plan 1 37581 Bad Gandersheim http://www.Power-Netz.de mailto:[EMAIL PROTECTED] +=+ --I N F O C E N T E R-- + Senden Sie eine leere e-mail an: + Providerwechsel: mailto:[EMAIL PROTECTED] + Daten/Preise Webspace: mailto:[EMAIL PROTECTED] + Reseller-Programm: mailto:[EMAIL PROTECTED] + Dedizierte Server: mailto:[EMAIL PROTECTED] + Adult/Erotikserver: mailto:[EMAIL PROTECTED] + Domainpreise: mailto:[EMAIL PROTECTED] + Domain-Nameserver: mailto:[EMAIL PROTECTED] + SSL-Zertifikate: mailto:[EMAIL PROTECTED] + Geschaeftsbedingungen: mailto:[EMAIL PROTECTED] + =+ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Oracle classes not found
Rename the file, change the .zip extension to .jar (JAR format is ZIP format, but tomcat won't recognize .zip). John Turner [EMAIL PROTECTED] -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:58 AM To: [EMAIL PROTECTED] Subject: Oracle classes not found I now have Apache/Tomcat/JSDK up and running and I've copied Oracle's classes12.zip into Tomcat's common/lib directory. I'm performing a test from an Oracle book and the compiler/code can't find the Oracle classes. The code I'm running (saved in a file named TestJdbc.java) is: package jdbc.driverTest; import java.sql.*; public class TestJdbc { public TestJdbc () { try { DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver()); } catch (Exception e) {} } } My compile statement is (from the Windows NT command prompt): javac jdbc\driverTest\TestJdbc.java The error I get is: jdbc\driverTest\TestJdbc.java:11: cannot resolve symbol symbol : class OracleDriver location: package driver DriverManager.registerDriver (new.oracle.jdbc.driver.OracleDriver()); 1 error ^ Any ideas? Thanks, Kenny -- 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]
RE: Oracle classes not found
That application doesn't run through tomcat so you'll need to specify the location of the oracle jar (or zip) file in your classpath when you try to compile or run the application. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 8:58 AM To: [EMAIL PROTECTED] Subject: Oracle classes not found I now have Apache/Tomcat/JSDK up and running and I've copied Oracle's classes12.zip into Tomcat's common/lib directory. I'm performing a test from an Oracle book and the compiler/code can't find the Oracle classes. The code I'm running (saved in a file named TestJdbc.java) is: package jdbc.driverTest; import java.sql.*; public class TestJdbc { public TestJdbc () { try { DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver()); } catch (Exception e) {} } } My compile statement is (from the Windows NT command prompt): javac jdbc\driverTest\TestJdbc.java The error I get is: jdbc\driverTest\TestJdbc.java:11: cannot resolve symbol symbol : class OracleDriver location: package driver DriverManager.registerDriver (new.oracle.jdbc.driver.OracleDriver()); 1 error ^ Any ideas? Thanks, Kenny -- 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]
RE: Oracle classes not found
Hi, Rename it to classes12.jar. ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:58 AM To: [EMAIL PROTECTED] Subject: Oracle classes not found I now have Apache/Tomcat/JSDK up and running and I've copied Oracle's classes12.zip into Tomcat's common/lib directory. I'm performing a test from an Oracle book and the compiler/code can't find the Oracle classes. The code I'm running (saved in a file named TestJdbc.java) is: package jdbc.driverTest; import java.sql.*; public class TestJdbc { public TestJdbc () { try { DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver()); } catch (Exception e) {} } } My compile statement is (from the Windows NT command prompt): javac jdbc\driverTest\TestJdbc.java The error I get is: jdbc\driverTest\TestJdbc.java:11: cannot resolve symbol symbol : class OracleDriver location: package driver DriverManager.registerDriver (new.oracle.jdbc.driver.OracleDriver()); 1 error ^ Any ideas? Thanks, Kenny -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Enterprise Java Beans (EJB)
Thanks for the information !!... John Naldoza [EMAIL PROTECTED] 14/08/2002 10:20 p.m. Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Enterprise Java Beans (EJB) Hi, Perhaps you may want to look into Jboss+Tomcat (http://www.jboss.org) :) Cheers, John Clark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:01 AM To: Tomcat Users List Subject: Enterprise Java Beans (EJB) Hi Does Tomcat support EJB?. if not, is there a project to migrate tomcat to support EJB?... it will be a very nice feature... Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Checking Tomcat's Memory
Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Solaris startup.sh error! 'The JAVA_HOME environment variable is not defined properly'
Set the JAVA_HOME variable in the catalina.sh file. That is where it goes. Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 2:13 PM To: [EMAIL PROTECTED] Subject: Solaris startup.sh error! 'The JAVA_HOME environment variable is not defined properly' Hi, I have installed tomcat 4.0.4 on solaris 8, ultra box. When I run startup.sh, it fails giving me this message, 'The JAVA_HOME environment variable is not defined properly. This environment variable is needed to run this program.' I'm running /sbin/sh. Tomcat was installed as root. So in /.profile I set up JAVA_HOME variable, JAVA_HOME=/usr/java1.4 (actually I tried /usr/java1.4/j2sdk1.4.0_01) export JAVA_HOME. when I echo $JAVA_HOME, I can see that it is set. But the error persists. Could some one tell me what am I doing wrong? TIA. -ST -- 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]
Re: Enterprise Java Beans (EJB)
Correct me if I'm wrong, but its still only the persistance side, right? Or would use use it to replace session beans? I can see it replacing Entity beans, and the DAO layer uses entity beans; then your session beans would talk to the DAO layer which did all (only?) persistance. So, it doesn't replace all of EJB, just EJB's entity beans, right? If you have an interface, such as DAO pattern, you could change the implementation and not affect the rest of your application. So ... make your persistance/CRUD and interface. This lets you change how it does CRUD. You should be able to switch from JDO to EJB or OJB to RowSet/ResulSet. If you have to refactor the whole application to junk EJB or JDO... that would not be great. A simple interface would do ya. Virtually, Ned Wolpert [EMAIL PROTECTED] 4e75 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: can't find mod_jk.conf
Ok, here is what I have done : - compiled apache_1.3.19 with DSO support (./configure --prefix=/usr/local/apache2 --enable-module=rewrite --enable-sh ared=rewrite ) - added the following to httpd.conf: # # Load mod_jk # LoadModule jk_module libexec/mod_jk-3.3-ap13-noeapi.so #AddModule mod_jk.c # Configure mod_jk # JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel info Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf - copied mod_jk-3.3-ap13-noeapi.so to /usr/local/apache2/libexec - added the following to server.xml : Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache/libexec/mod_jk-3.3-ap13-noeapi.so / - created conf/workers.properties: workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4 workers.java_home=/usr/java/jdk1.3 ps=/ worker.list=ajp12, ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 mod_jk.conf is getting created, can someone verify this is correct ? IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/libexec/mod_jk-3.3-ap13-noeapi.so /IfModule apache/logs/error_log contains the following : [Fri Aug 16 02:37:52 2002] [error] [client 192.168.0.7] File does not exist: /usr/local/apache2/htdocs/examples/ which indicates that it doesn't have a clue about tomcat. Can anyone help with this, I have tried the supposed documentation suggested and found it quite confusing and contridictory. - Original Message - From: sibusiso xolo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 14, 2002 10:04 AM Subject: Re: can't find mod_jk.conf the best place to find out what to do is here:- ~/jakarta-tomcat-4.0.4/webapps/tomcat-docs/config/ajp.html about halfway down the page under Using ApacheConfig good luck On Sunday 11 August 2002 15:35, Scott Adamson wrote: I have been trying to get Tomcat 4.04 to work with Apache (compiled statically with mod_jk). According to the HOWTO on the Apache site mod_jk.conf should be auto-generated with startup, it isnt. My guess would be that there is some other configuration I need, but the HOWTO only seems to mentions a 'workers.properties' file, which I created as instructed. Can anyone help me with Tomcat 4 + Apache + mod_jk ? I would prefer to stick with mod_jk (it already works with tomcat3.2.1) but I would consider using other connectors. Any help that anyone can offer would be much appreciated. regards, Scott Adamson Systems Administrator Syware Technology [EMAIL PROTECTED] http://upe.com.au -- 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]
Re: Enterprise Java Beans (EJB)
Ned Wolpert wrote: Correct me if I'm wrong, but its still only the persistance side, right? Or would use use it to replace session beans? I can see it replacing Entity beans, and the DAO layer uses entity beans; then your session beans would talk to the DAO layer which did all (only?) persistance. Any bean that needs persistance should talk trough DAO. (and dao could be done using Enity beans, or rowset, etc.). In your case, if you use session beans than right. So, it doesn't replace all of EJB, just EJB's entity beans, right? However if you find EJB's slow and not scalable, than you would implement DAO another way. But since you would pull out Enity beans out, than there is not much reason to keep Session beans. You could just put regular form bean or java bean in session in some cases and get rid of EJB server and just use TomCat or Resin. (most app. servers have other ways to fail over). If you have reson to use session EJBs that use them, but I can think of no reason anyone would want to uses Enity EJB. Back to original post Implement DAO interface to persisit (even when using EJB, so you can replace). v. If you have an interface, such as DAO pattern, you could change the implementation and not affect the rest of your application. So ... make your persistance/CRUD and interface. This lets you change how it does CRUD. You should be able to switch from JDO to EJB or OJB to RowSet/ResulSet. If you have to refactor the whole application to junk EJB or JDO... that would not be great. A simple interface would do ya. Virtually, Ned Wolpert [EMAIL PROTECTED] 4e75 -- 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]
RE: Checking Tomcat's Memory
Hi, CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? That's the correct way to set them. Here's a simple way to verify things, as I inherently distrust Windows performance monitoring tools: - Write a very simple app that would allocate roughly 1 GB of RAM. For example, by creating a 100 * 1000 array of Integer objects. Integer[][] hugeArray = new Integer[100][1000]; for(l = 0; l 100; l++) { for(l2 = 0; l2 1000; l2++) { hugeArray[l][l2] = new Integer(l2); } } - Start the server with this app running, but not your other apps. (Assuming ROOT, examples, tomcat-docs etc take very little runtime memory). Make sure you trigger the above code, and see that it runs without an OutOfMemoryError. You've just verified the minimum setting. - Modify the above code to 300 * 1000, again run it, verify that it *does* generate an OutOfMemoryError. Then you will have verified the -Xmx setting. - Obviously, I used perfectly nice round numbers in the above code. Due to internal tomcat stuff, other webapps, runtime overhead, JVM overhead, etc, the actual numbers will be lower. - You can also verify within the program how much RAM hugeArray took up by trying something like: System.gc(); long memBefore = Runtime.getRuntime().totalMemory(); hugeArray = null; System.gc(); long memAfter = Runtime.getRuntime().totalMemory(); long hugeArrayMemory = memAfter - memBefore; - As always, stuff like the above should be run several times and averaged, for a more reliable predictor. System.gc() is not guaranteed to run, much less do a full GC, etc etc I assume you already know all about that. Maybe this will help ;) You can also try MemoryMonitor from these guys: http://www.spywindows.com/PAGE1/SOFTWARE.HTM I've used it in the past, it's decent. But I trust the above approach more. Yoav Shapira Millennium ChemInformatics I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3.1
It would seem that the JSPs are being handled as static files and not being handled by the JspInterceptor. I would recommend doublechecking how you have configured your Tomcat and use log output (set non-zero debug levels as needed) to see why it is behaving the way it is. Cheers, Larry -Original Message- From: Vijay [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 9:44 PM To: [EMAIL PROTECTED] Subject: Tomcat 3.3.1 Hi I am using Embedded tomcat 3.3.1. When i query for a JSP page it does not execute it but it displays the jsp file as the same file. Help me !!! Thanks Regards Vijay -- To unsubscribe, e-mail: mailto:tomcat-user- [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]
Re: Enterprise Java Beans (EJB)
However if you find EJB's slow and not scalable, than you would implement DAO another way. But since you would pull out Enity beans out, than there is not much reason to keep Session beans. You could just put regular form bean or java bean in session in some cases and get rid of EJB server and just use TomCat or Resin. (most app. servers have other ways to fail over). If you have reson to use session EJBs that use them, but I can think of no reason anyone would want to uses Enity EJB. Well, this isn't the best forum for this, but Entity beans have a purpose, just the vendor's over-hype of having people use them everywhere. The strongest reason to use EJB entity beans is the deployment configuration that you can set, and change (in certain cases) with a running ejb cluster. I can't speak for DAO in this way, but for TopLink and Castor, that is not really possible. (Currently. I'm working on Castor :-) Not to mention, container managed persistance takes much away from the developer, and gives it to the admin; which can be bad, no doubt. Eh, really it boils down to architecture. Each architecture has a their limitations. DAO sounds nice, but like EJB, its 'yet-another-layer'; abstraction to provide for flexibility. It may be good (again, I never used it) but its still a layer. If you don't need that flexibility, then its a cost/liability. Virtually, Ned Wolpert [EMAIL PROTECTED] 4e75 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- 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]
RE: Checking Tomcat's Memory
Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. I set the environment variable (as I mentioned before), but it does not appear to be working. I stopped and restarted Tomcat after doing this (although I have not restarted Windows) and the results were the same, no change in memory I'm still working on it though, still have a couple more things to try, if anyone has a good suggestions, feel free to chime in! Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:34 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
Hi, I've been following your thread a bit loosely, so I may have misunderstood something. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. All else aside, you expect that for a given server CPU usage will *not* increase with the number of simultaneous requests to the server??? Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. I set the environment variable (as I mentioned before), but it does not appear to be working. I stopped and restarted Tomcat after doing this (although I have not restarted Windows) and the results were the same, no change in memory I'm still working on it though, still have a couple more things to try, if anyone has a good suggestions, feel free to chime in! Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:34 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- 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] -- 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]
RE: Checking Tomcat's Memory
I was using requests as in total requests. I'm not talking about requests per second or transactions per second (TPS), I'm talking about the total number of requests over time (such as 20,000 requests, at any speed really). -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:47 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Hi, I've been following your thread a bit loosely, so I may have misunderstood something. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. All else aside, you expect that for a given server CPU usage will *not* increase with the number of simultaneous requests to the server??? Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
You might also want to try the -Xincgc Enable the incremental garbage collector. The incremental garbage collector, which is off by default, will eliminate occasional garbage-collection pauses during program execution. However, it can lead to a roughly 10% decrease in overall GC performance. switch. The complete docs for the non-standared switches are at: http://java.sun.com/j2se/1.4/docs/tooldocs/windows/java.html -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- 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]
RE: Checking Tomcat's Memory
g isn't valid!?!? Grr... I got that information off of this mailing list, someone was using a similar configuration option that had g for gigabytes... Anyways, thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. I set the environment variable (as I mentioned before), but it does not appear to be working. I stopped and restarted Tomcat after doing this (although I have not restarted Windows) and the results were the same, no change in memory I'm still working on it though, still have a couple more things to try, if anyone has a good suggestions, feel free to chime in! Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:34 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: can't find mod_jk.conf
The only thing you need in your httpd.conf, if you are using Tomcat's autogen function for mod_jk.conf, is this line: Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf I'm not sure what platform you are using, but I posted a howto for apache 1.3.26 + tomcat 4.0.4 + mod_jk here: http://www.johnturner.com/howto/apache-tomcat-howto.html In particular, step #10 of my How-to deals with the Listener directives, which are responsible for generating the mod_jk.conf file (as far as I know). The system as built via the How-to is working for me, and the httpd.conf has two differences from the original that was installed with apache: the ServerName has been changed, and the Include directive has been added. John Turner [EMAIL PROTECTED] -Original Message- From: Scott Adamson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:09 PM To: Tomcat Users List Subject: Re: can't find mod_jk.conf Ok, here is what I have done : - compiled apache_1.3.19 with DSO support (./configure --prefix=/usr/local/apache2 --enable-module=rewrite --enable-sh ared=rewrite ) - added the following to httpd.conf: # # Load mod_jk # LoadModule jk_module libexec/mod_jk-3.3-ap13-noeapi.so #AddModule mod_jk.c # Configure mod_jk # JkWorkersFile /usr/local/jakarta-tomcat-4.0.4/conf/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel info Include /usr/local/jakarta-tomcat-4.0.4/conf/auto/mod_jk.conf - copied mod_jk-3.3-ap13-noeapi.so to /usr/local/apache2/libexec - added the following to server.xml : Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache/libexec/mod_jk-3.3-ap13-noeapi.so / - created conf/workers.properties: workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4 workers.java_home=/usr/java/jdk1.3 ps=/ worker.list=ajp12, ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 mod_jk.conf is getting created, can someone verify this is correct ? IfModule !mod_jk.c LoadModule jk_module /usr/local/apache/libexec/mod_jk-3.3-ap13-noeapi.so /IfModule apache/logs/error_log contains the following : [Fri Aug 16 02:37:52 2002] [error] [client 192.168.0.7] File does not exist: /usr/local/apache2/htdocs/examples/ which indicates that it doesn't have a clue about tomcat. Can anyone help with this, I have tried the supposed documentation suggested and found it quite confusing and contridictory. - Original Message - From: sibusiso xolo [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 14, 2002 10:04 AM Subject: Re: can't find mod_jk.conf the best place to find out what to do is here:- ~/jakarta-tomcat-4.0.4/webapps/tomcat-docs/config/ajp.html about halfway down the page under Using ApacheConfig good luck On Sunday 11 August 2002 15:35, Scott Adamson wrote: I have been trying to get Tomcat 4.04 to work with Apache (compiled statically with mod_jk). According to the HOWTO on the Apache site mod_jk.conf should be auto-generated with startup, it isnt. My guess would be that there is some other configuration I need, but the HOWTO only seems to mentions a 'workers.properties' file, which I created as instructed. Can anyone help me with Tomcat 4 + Apache + mod_jk ? I would prefer to stick with mod_jk (it already works with tomcat3.2.1) but I would consider using other connectors. Any help that anyone can offer would be much appreciated. regards, Scott Adamson Systems Administrator Syware Technology [EMAIL PROTECTED] http://upe.com.au -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat clustering ?
Couple short questions about Apache/Tomcat clustering here: 1. From which version of Tomcat, it starts to support Clustering or maybe even failover ?? 2. Is that version stable or qualified for production quality release ?? What's the latest version of tomcat stably provides Clustering potentially for production sites ?? 3. Does Apache provide clustering ?? or it doesn't even make sense to do server level clustering before servlet container ?? Thank you guys very much. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Newbie questions
I'm having problems running a servlet. I've installed tomcat 4.0.4, apache 2 jdk 1.4 on redhat 7.2. I put html file with the following into apache's htdocs directory form method=post action=http://localhost:8080/jimbo/Form1; I then created a directory in $tomcat_home/webapps called jimbo. Within directory jimbo I created WEB-INF/classes and moved my compiled servlet into it. I restarted tomcat and get a 404 message stating that Form1 is not available. Please let me know what is wrong. Also, do I need any special apache modules for tomcat? Thanks in advance. /J - Do You Yahoo!? HotJobs, a Yahoo! service - Search Thousands of New Jobs
RE: Newbie questions
Hi, I assume your servlet is called Form1? form method=post action=http://localhost:8080/jimbo/Form1; Also, do I need any special apache modules for tomcat? You need a connector installed between them e.g. mod_jk or mod_webapp. Check out the docs at, for example, http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html http://www.acg-gmbh.de/mod_jk/initial.htm You will also find a ton of information on this topic by searching the list archives at: http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2 Yoav Shapira Millennium ChemInformatics This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie questions
Did you add a Context entry in server.xml for jimbo? Basically, wherever you see entries in server.xml for examples, you need to do the same thing for jimbo, then restart tomcat. You can also put your servlet into the examples directory, with the example servlets, and see if you can call it via http://localhost:8080/examples/Form1 John Turner [EMAIL PROTECTED] -Original Message- From: Jim Marnell [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:31 PM To: [EMAIL PROTECTED] Subject: Newbie questions I'm having problems running a servlet. I've installed tomcat 4.0.4, apache 2 jdk 1.4 on redhat 7.2. I put html file with the following into apache's htdocs directory form method=post action=http://localhost:8080/jimbo/Form1; I then created a directory in $tomcat_home/webapps called jimbo. Within directory jimbo I created WEB-INF/classes and moved my compiled servlet into it. I restarted tomcat and get a 404 message stating that Form1 is not available. Please let me know what is wrong. Also, do I need any special apache modules for tomcat? Thanks in advance. /J - Do You Yahoo!? HotJobs, a Yahoo! service - Search Thousands of New Jobs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
Alright, new environment variable... CATALINA_OPTS=-server -Xms1024m -Xmx3072m Should give me a range of 1-3 gigs. When I restart Tomcat, however, this doesn't appear to affect anything. I'm running a simple memory servlet, as suggested by Yoav Shapira, to simply create a whole bunch of memory, but it still caps out as if it were using the defaults. Couple questions: 1) Must I restart the machine for the CATALINA_OPTS to take effect (or, what is wrong with my environment variable)? In my experience this has not been necessary, only restart the application/process. (Maybe this is a WinNT4 quirk or something similar). 2) Tomcat's configuration files most likely support what I'm trying to do. Is there an appropriate/recommended place I define this envirnoment variable? Quick config rundown: JDK 1.4, WinNT4 (or 2K), Tomcat 4.0.4. Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. I set the environment variable (as I mentioned before), but it does not appear to be working. I stopped and restarted Tomcat after doing this (although I have not restarted Windows) and the results were the same, no change in memory I'm still working on it though, still have a couple more things to try, if anyone has a good suggestions, feel free to chime in! Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:34 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- 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] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Checking Tomcat's Memory
Hi, On unix, we put our CATALINA_OPTS settings in $CATALINA_HOME/bin/catalina.sh. Are you running tomcat as a service on NT or from the command line? If you're running from the command line, can you do echo %CATALINA_OPTS% before starting tomcat and verify the values are set correctly? Regardless of the above, I would try putting CATALINA_OPTS in catalina.bat. Can't hurt ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:49 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Alright, new environment variable... CATALINA_OPTS=-server -Xms1024m -Xmx3072m Should give me a range of 1-3 gigs. When I restart Tomcat, however, this doesn't appear to affect anything. I'm running a simple memory servlet, as suggested by Yoav Shapira, to simply create a whole bunch of memory, but it still caps out as if it were using the defaults. Couple questions: 1) Must I restart the machine for the CATALINA_OPTS to take effect (or, what is wrong with my environment variable)? In my experience this has not been necessary, only restart the application/process. (Maybe this is a WinNT4 quirk or something similar). 2) Tomcat's configuration files most likely support what I'm trying to do. Is there an appropriate/recommended place I define this envirnoment variable? Quick config rundown: JDK 1.4, WinNT4 (or 2K), Tomcat 4.0.4. Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. I set the environment variable (as I mentioned before), but it does not appear to be working. I stopped and restarted Tomcat after doing this (although I have not restarted Windows) and the results were the same, no change in memory I'm still working on it though, still have a couple more things to try, if anyone has a good suggestions, feel free to chime in! Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:34 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List Subject: Checking Tomcat's Memory Greetings! I'm running Tomcat 4.0.4 (w/ JDK 1.4, WinNT/2K) and would like to know how to check Tomcat's memory settings. I've defined an environment variable (in Windows) like so: CATALINA_OPTS=-server -Xms1g -Xmx3g and from reading previous e-mails on this list, this should set the JVM min and max heap size, yet how can I verify this? I'm currently testing a program that takes a considerable amount of memory, and after getting so many thousand requests (and storing a considerable amount of data in memory), the performance becomes horrible (3 to 4 times CPU usage, possibly due to gc looking for more memory?). I suspect the memory settings because when the CPU usage starts to spike, the memory usage tops off and does not appear to go up at all (when it most likely should continue to go up). Suggestions appreciated! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL
WebApp ADMIN + TomCat 4.1.9
Hi, I am trying to run the webapp admin from Tomcat 4.1.9 and I am catching the following exception. Does anybody know why this is happening? I am using a Windows ME + J2SDK 1.4.0 + Tomcat 4.1.9-LE. The exception is at attachment. Luiz Ricardo 2002-08-15 15:40:02 WebappLoader[/admin]: Deploying class repositories to work directory C:\tomcat4.1.9\work\Standalone\localhost\admin 2002-08-15 15:40:02 WebappLoader[/admin]: Deploy class files /WEB-INF/classes to C:\tomcat4.1.9\bin\..\webapps\..\server\webapps\admin\WEB-INF\classes 2002-08-15 15:40:02 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to C:\tomcat4.1.9\bin\..\webapps\..\server\webapps\admin\WEB-INF\lib\struts.jar 2002-08-15 15:40:02 ContextConfig[/admin] Exception processing JAR at resource path /WEB-INF/lib/struts.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/struts.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3445) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:529) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260) at org.apache.commons.digester.Digester.endElement(Digester.java:830) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.apache.commons.digester.Digester.parse(Digester.java:1302) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335) at org.apache.catalina.core.StandardHost.install(StandardHost.java:803) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2188) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) - Root Cause - java.io.IOException: O sistema não pode encontrar o caminho especificado at java.io.Win32FileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1294) at java.io.File.createTempFile(File.java:1382) at java.io.File.createTempFile(File.java:1419) at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169) at java.security.AccessController.doPrivileged(Native Method) at
RE: Checking Tomcat's Memory
Hi, if you are using jk_nt_service.exe try to modify this property in %CATALINA_HOME%\conf\jk\wrapper.properties: wrapper.cmd_line=$(wrapper.javabin) -Xrs -Djava.security.policy==$(wrapper.tomcat_policy) -Dtomcat.home=$(wrapper.tomcat_home) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) start Then you have to restart the service... HTH Ingo -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 15. August 2002 21:08 To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm running Tomcat as a service. I've done echo %CATALINA_OPTS% and set just to make sure the variable is showing up. I'll try putting it in catalina.bat. Not sure why defining it as an environment variable does not work... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:57 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Hi, On unix, we put our CATALINA_OPTS settings in $CATALINA_HOME/bin/catalina.sh. Are you running tomcat as a service on NT or from the command line? If you're running from the command line, can you do echo %CATALINA_OPTS% before starting tomcat and verify the values are set correctly? Regardless of the above, I would try putting CATALINA_OPTS in catalina.bat. Can't hurt ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:49 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Alright, new environment variable... CATALINA_OPTS=-server -Xms1024m -Xmx3072m Should give me a range of 1-3 gigs. When I restart Tomcat, however, this doesn't appear to affect anything. I'm running a simple memory servlet, as suggested by Yoav Shapira, to simply create a whole bunch of memory, but it still caps out as if it were using the defaults. Couple questions: 1) Must I restart the machine for the CATALINA_OPTS to take effect (or, what is wrong with my environment variable)? In my experience this has not been necessary, only restart the application/process. (Maybe this is a WinNT4 quirk or something similar). 2) Tomcat's configuration files most likely support what I'm trying to do. Is there an appropriate/recommended place I define this envirnoment variable? Quick config rundown: JDK 1.4, WinNT4 (or 2K), Tomcat 4.0.4. Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the same, after so many requests (and thus some amount of information stored in memory), Tomcat starts to use up a whole lot of CPU time. I think I hit the memory limit (as I get out of memory errors), so I'm trying to increase the memory Tomcat has, without much luck. I set the environment variable (as I mentioned before), but it does not appear to be working. I stopped and restarted Tomcat after doing this (although I have not restarted Windows) and the results were the same, no change in memory I'm still working on it though, still have a couple more things to try, if anyone has a good suggestions, feel free to chime in! Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:34 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory So, did you get past to your 200 TPS limit goal? -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 10:49 AM To: Tomcat Users List
RE: Checking Tomcat's Memory
Disclaimer: I am not running Tomcat as a service, so I can't confirm that this works. From the mailing list archive at: http://mikal.org/interests/java/tomcat/archive/view?mesg=57410 quote For Tomcat on NT as a service, you can set the -Xms and -Xmx in the registry. Its HKEY_LOCAL_MACHINE\Service\CurrentControlSet\Name of Service\Configuration. You can add new JVM Option Number X (and make sure to increment the JVM Option Count key) to contain the additional parameters. /quote Hope this helps. Shannon Hardt -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:40 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm not using jk_nt_service, although maybe I should if the service Tomcat installs cannot be configured. -Original Message- From: Etienne, Ingo (Goetzfried AG) [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:30 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Hi, if you are using jk_nt_service.exe try to modify this property in %CATALINA_HOME%\conf\jk\wrapper.properties: wrapper.cmd_line=$(wrapper.javabin) -Xrs -Djava.security.policy==$(wrapper.tomcat_policy) -Dtomcat.home=$(wrapper.tomcat_home) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) start Then you have to restart the service... HTH Ingo -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 15. August 2002 21:08 To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm running Tomcat as a service. I've done echo %CATALINA_OPTS% and set just to make sure the variable is showing up. I'll try putting it in catalina.bat. Not sure why defining it as an environment variable does not work... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:57 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Hi, On unix, we put our CATALINA_OPTS settings in $CATALINA_HOME/bin/catalina.sh. Are you running tomcat as a service on NT or from the command line? If you're running from the command line, can you do echo %CATALINA_OPTS% before starting tomcat and verify the values are set correctly? Regardless of the above, I would try putting CATALINA_OPTS in catalina.bat. Can't hurt ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:49 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Alright, new environment variable... CATALINA_OPTS=-server -Xms1024m -Xmx3072m Should give me a range of 1-3 gigs. When I restart Tomcat, however, this doesn't appear to affect anything. I'm running a simple memory servlet, as suggested by Yoav Shapira, to simply create a whole bunch of memory, but it still caps out as if it were using the defaults. Couple questions: 1) Must I restart the machine for the CATALINA_OPTS to take effect (or, what is wrong with my environment variable)? In my experience this has not been necessary, only restart the application/process. (Maybe this is a WinNT4 quirk or something similar). 2) Tomcat's configuration files most likely support what I'm trying to do. Is there an appropriate/recommended place I define this envirnoment variable? Quick config rundown: JDK 1.4, WinNT4 (or 2K), Tomcat 4.0.4. Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think this memory problem is giving me trouble after that. I thought it was a connections problem (I was getting connection errors from the tool), then I thought I had screwed something up in my code (and I've tried different versions, nothing seems to affect performance), then I noticed the memory never went above ~154 MB, so now I'm examining memory issues. My problem is still the
RE: Checking Tomcat's Memory
Thanks for the idea, but there isn't a key/directory for HKEY_LOCAL_MACHINE\Service in either WinNT4 or Win2K registry. Not sure what the guy was talking about given the registry path does not exist... -Original Message- From: Hardt, Shannon [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:48 PM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Disclaimer: I am not running Tomcat as a service, so I can't confirm that this works. From the mailing list archive at: http://mikal.org/interests/java/tomcat/archive/view?mesg=57410 quote For Tomcat on NT as a service, you can set the -Xms and -Xmx in the registry. Its HKEY_LOCAL_MACHINE\Service\CurrentControlSet\Name of Service\Configuration. You can add new JVM Option Number X (and make sure to increment the JVM Option Count key) to contain the additional parameters. /quote Hope this helps. Shannon Hardt -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:40 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm not using jk_nt_service, although maybe I should if the service Tomcat installs cannot be configured. -Original Message- From: Etienne, Ingo (Goetzfried AG) [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 12:30 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Hi, if you are using jk_nt_service.exe try to modify this property in %CATALINA_HOME%\conf\jk\wrapper.properties: wrapper.cmd_line=$(wrapper.javabin) -Xrs -Djava.security.policy==$(wrapper.tomcat_policy) -Dtomcat.home=$(wrapper.tomcat_home) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) start Then you have to restart the service... HTH Ingo -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Donnerstag, 15. August 2002 21:08 To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory I'm running Tomcat as a service. I've done echo %CATALINA_OPTS% and set just to make sure the variable is showing up. I'll try putting it in catalina.bat. Not sure why defining it as an environment variable does not work... -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:57 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory Hi, On unix, we put our CATALINA_OPTS settings in $CATALINA_HOME/bin/catalina.sh. Are you running tomcat as a service on NT or from the command line? If you're running from the command line, can you do echo %CATALINA_OPTS% before starting tomcat and verify the values are set correctly? Regardless of the above, I would try putting CATALINA_OPTS in catalina.bat. Can't hurt ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 2:49 PM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Alright, new environment variable... CATALINA_OPTS=-server -Xms1024m -Xmx3072m Should give me a range of 1-3 gigs. When I restart Tomcat, however, this doesn't appear to affect anything. I'm running a simple memory servlet, as suggested by Yoav Shapira, to simply create a whole bunch of memory, but it still caps out as if it were using the defaults. Couple questions: 1) Must I restart the machine for the CATALINA_OPTS to take effect (or, what is wrong with my environment variable)? In my experience this has not been necessary, only restart the application/process. (Maybe this is a WinNT4 quirk or something similar). 2) Tomcat's configuration files most likely support what I'm trying to do. Is there an appropriate/recommended place I define this envirnoment variable? Quick config rundown: JDK 1.4, WinNT4 (or 2K), Tomcat 4.0.4. Thanks! -Original Message- From: Sexton, George [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 10:51 AM To: Tomcat Users List Subject: RE: Checking Tomcat's Memory g doesn't seem to be a valid memory increment. From the sun web site: -Xmsn Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 2MB. Examples: -Xms6291456 -Xms6144k -Xms6m -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. Examples: -Xmx83886080 -Xmx81920k -Xmx80m -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: 15 August, 2002 11:44 AM To: 'Tomcat Users List' Subject: RE: Checking Tomcat's Memory Heh, the answer to that is kind of. I can actually do roughly 250 TPS (at least according to a tool I'm using) for about 10-20 thousand requests, but I think
OutOfMemory Error
Hi, outofmemory problem crashes my Standalone Tomcat Server(NT 4, Tomcat 4.03). large images on the site. From reading on subject, seems I have to increase the JVM heap size. Question? I created a jsp page that shows me the Total memory and Free memory on the site. The free memory balances between a number and another getting smaller and smaller until it crashes. If I add memory, does that only mean its going to take longer before it crashes? Question? writing JAVA -Xms128m get Incompatible initial and maximum heap size Please help Pat
RE: OutOfMemory Error
To answer your first question, I'm assuming you only have so much memory, so if you keep allocating memory, you'll eventually run out and then you'll have problems. As long as the JVM can reclaim memory, you should be alright. For your second question, it should look something like this: JAVA -Xms128m -Xmx256m Where -Xmx256m is your maximum heap size. It gave you that error because the default is 80 megs (which I'm having trouble with), so setting the minimum above 80 megs gives you the error message. http://java.sun.com/j2se/1.4/docs/tooldocs/windows/java.html For the windows standard and non-standard options (such as -Xms and -Xmx). Hope that clears it up for you. -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:10 PM To: 'Tomcat Users List' Subject: OutOfMemory Error Hi, outofmemory problem crashes my Standalone Tomcat Server(NT 4, Tomcat 4.03). large images on the site. From reading on subject, seems I have to increase the JVM heap size. Question? I created a jsp page that shows me the Total memory and Free memory on the site. The free memory balances between a number and another getting smaller and smaller until it crashes. If I add memory, does that only mean its going to take longer before it crashes? Question? writing JAVA -Xms128m get Incompatible initial and maximum heap size Please help Pat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: OutOfMemory Error
Thanks a lot, Still, I really feel stupid here, but I tried java -Xms128m -Xmx256m on the command prompt and get the Usage: java [-options] list Thanks -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 4:07 PM To: 'Tomcat Users List' Subject: RE: OutOfMemory Error To answer your first question, I'm assuming you only have so much memory, so if you keep allocating memory, you'll eventually run out and then you'll have problems. As long as the JVM can reclaim memory, you should be alright. For your second question, it should look something like this: JAVA -Xms128m -Xmx256m Where -Xmx256m is your maximum heap size. It gave you that error because the default is 80 megs (which I'm having trouble with), so setting the minimum above 80 megs gives you the error message. http://java.sun.com/j2se/1.4/docs/tooldocs/windows/java.html For the windows standard and non-standard options (such as -Xms and -Xmx). Hope that clears it up for you. -Original Message- From: Patrick Codere [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:10 PM To: 'Tomcat Users List' Subject: OutOfMemory Error Hi, outofmemory problem crashes my Standalone Tomcat Server(NT 4, Tomcat 4.03). large images on the site. From reading on subject, seems I have to increase the JVM heap size. Question? I created a jsp page that shows me the Total memory and Free memory on the site. The free memory balances between a number and another getting smaller and smaller until it crashes. If I add memory, does that only mean its going to take longer before it crashes? Question? writing JAVA -Xms128m get Incompatible initial and maximum heap size Please help Pat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]