Procrun returns too fast.
Hi, I'm an absolute beginner in setting up services on Windows box. Please, bear with me if my questions seem stupid. I have a windows XP machine, I'm using Oracle Java Developer for java develpment, I'm using Quartz as a scheduler. We will be transferring our application to a Linux box eventually. I need to set up a service and I understand that commons-daemon package will allow me to do that. I was not able to find a built version of procrun and I don't have a C or C++ compiler. I found out that people use tomcat5.exe insted since that seems to be a compiled version of procrun. Here is how I tried setting up my service: C:\tomcat\jakarta-tomcat-5.5.9\bintomcat5.exe //IS//MyTest --DisplayName=MyTest \ --Install=C:\tomcat\bin\tomcat5.exe --Jvm=auto --StartMode=jvm --StopMode=jvm \ --StartClass=com.mypackage.pfjobmanager.testQuartz \ --C:\Program Files\JavaDeveloper\jdev\mywork\PFJobManager\Project\src \ --JavaHome=C:\Program Files\JavaDeveloper\jdk\jre\bin When executed on the command line, the above command doesn't give me any errors but returns right away. When I ran: sc query MyTest here is what I get: SERVICE_NAME: MyTest TYPE : 10 WIN32_OWN_PROCESS STATE : 1 STOPPED (NOT_STOPPABLE,NOT_PAUSABLE,IGNORES_SHUTDOWN) WIN32_EXIT_CODE: 1077 (0x435) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 I'm not sure how to read the above. How do I know my service is working? The class that the service is supposed to run should wait about a minute and then print some lines to stdout. How can I ran a good test? Your help is greatly appreciated. Thank you. NK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.24 can't see third party packages?!
val = new ParameterFieldDiscreteValue(); // set report end date value if (rptMonth == null) { val.setValue(null); } else { val.setValue(rptMonth.getTime()); } // get report end date parameter field_old = (ParameterField)param_collection.getField(1); // clone a parameter field field_new = (ParameterField)field_old.clone(true); // add a current value field_new.getCurrentValues().add(val); // replace old parameter with new one rptDoc.getDataDefController().getParameterFieldController().modify(field_old, field_new); // save the exported pdf file to the file asset faName.setFileName(pdfName); faName.setContentType(application/pdf); InputStream istr = rptDoc.getPrintOutputController().export(ReportExportFormat.PDF); faName.setLength(istr.available()); faName.setData(istr); success = faName.update(theUser); if (!success) { message += Failed to update file asset. + Data.makeJSAlert(faName.getExceptionString()); } } catch (Exception e) { message += Failed on opening and creating report. + Data.makeJSAlert(e.toString()); success = false; } } // end if report name } else { // end CR creation message += No asset ID to run.; success = false; } } else { message += User does not have update access.; success = false; } ras = null; if (success) { response.sendRedirect(containerAssetDualList.jsp?fpContainerID= + fpContainerID); return; } % html head titleCTCMS - Run Report/title link href=css/sitestyle.css rel=stylesheet type=text/css /head body p class=header2Run Report/p p % if (listing.length() 0 ) { % FORM METHOD=post NAME=frmAction INPUT TYPE=hidden NAME=fpContainerID VALUE=%=request.getParameter(fpContainerID)% INPUT TYPE=hidden NAME=fpAssetID VALUE=%=request.getParameter(fpAssetID)% INPUT TYPE=hidden NAME=fpReturnTo VALUE=fileEdit.jsp table tr td colspan=1nbsp;/td /tr %=listing.toString()% tr td colspan=1nbsp;/td /tr /TABLE /FORM % } else { % p class=errorlabelError: %=message%/p % } % /p /body /html -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 12:58 PM To: Tomcat Users List Subject: RE: Tomcat 5.0.24 can't see third party packages?! Hi, Can you post your JSP? Yoav Shapira Millennium Research Informatics -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 12:02 PM To: Tomcat help (E-mail) Subject: Tomcat 5.0.24 can't see third party packages?! I have posted this before and got some pointers but still it didn't help. I narrowed the problem down and it is reflected in the new subject. I run Tomcat5.0.24 on Fedora Core 1. I have a jsp site that works without a problem on a Red Hat 9 box with Tomcat 4, but when I ran it on Fedora and Tomcat 5.0.24 I get the following error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /var/tomcat5/work/Catalina/localhost/WebTest/org/apache/jsp/someJsp_jsp .jav a:15: package com.crystaldecisions.sdk.occa.report does not exist import com.crystaldecisions.sdk.occa.report.*; ^ 1 error I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in /var/tomcat5/webapps/WebTest/WEB-INF/lib I have all other jsp working all of them reference packages that are defined locally. com.crystaldecisions.sdk.occa.report.* is a third party package and that is what kills my app. I have seen a posting with the same exact question but there were no responses. I would appreciate any help. Thanks in advance N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Tomcat 5.0.24 can't see third party packages?!
I have posted this before and got some pointers but still it didn't help. I narrowed the problem down and it is reflected in the new subject. I run Tomcat5.0.24 on Fedora Core 1. I have a jsp site that works without a problem on a Red Hat 9 box with Tomcat 4, but when I ran it on Fedora and Tomcat 5.0.24 I get the following error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /var/tomcat5/work/Catalina/localhost/WebTest/org/apache/jsp/someJsp_jsp.java:15: package com.crystaldecisions.sdk.occa.report does not exist import com.crystaldecisions.sdk.occa.report.*; ^ 1 error I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in /var/tomcat5/webapps/WebTest/WEB-INF/lib I have all other jsp working all of them reference packages that are defined locally. com.crystaldecisions.sdk.occa.report.* is a third party package and that is what kills my app. I have seen a posting with the same exact question but there were no responses. I would appreciate any help. Thanks in advance N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.24 can't see third party packages!
I have posted this before and got some pointers but still it didn't help. I narrowed the problem down and it is reflected in the new subject. I run Tomcat5.0.24 on Fedora Core 1. I have a jsp site that works without a problem on a Red Hat 9 box with Tomcat 4, but when I ran it on Fedora and Tomcat 5.0.24 I get the following error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /var/tomcat5/work/Catalina/localhost/WebTest/org/apache/jsp/someJsp_jsp.java:15: package com.crystaldecisions.sdk.occa.report does not exist import com.crystaldecisions.sdk.occa.report.*; ^ 1 error I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in /var/tomcat5/webapps/WebTest/WEB-INF/lib I have all other jsp working all of them reference packages that are defined locally. com.crystaldecisions.sdk.occa.report.* is a third party package and that is what kills my app. I have seen a posting with the same exact question but there were no responses. I would appreciate any help. Thanks in advance N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Two hosts setup, jsp won't work!
Hi, I run Tomcat5.0.24 on Fedora Core 1. I have two hosts defined in server.xml in a following way: Host name =WebTest1.something.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false lNamespaceAware=false Context path= docBase=WebTest1 debug=5/ Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_WebTest1_log. suffix=.txt timestamp=true/ /Host Host name =WebTest2.something.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/WebTest2 docBase=WebTest2 debug=0 reloadable=true/ Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_WebTest2_log. suffix=.txt timestamp=true/ /Host I have proper DNS entries on my DNS server for both hosts. First host is a simple http website and a second host is a jsp website. I'm able to access both sites but when I run the jsp application ( WebTest2) I'm able to go through some jsp pages and then I get an error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file /var/tomcat5/work/Catalina/WebTest2.something.com/WebTest2/org/apache/jsp/someJsp_jsp.java:15: package com.crystaldecisions.sdk.occa.report does not exist import com.crystaldecisions.sdk.occa.report.*; ^ 1 error I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in /var/tomcat5/webapps/WebTest2/WEB-INF/lib I copied the above jars to /var/tomcat5/webapps/WebTest2/WEB-INF/classes just in case and got the same error. Does this have anything to do with the hosts I've defined? Did I create a wrong directory structure? My jsps are in /var/tomcat5/webapps/WebTest2 Everything below /var/tomcat5/webapps is owned by tomcat5 user. My Tomcat is running as root since I need it to be listening on port 80. Cat it be a permissions problem? Any help would be appreciated. Thanks in advance N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Two hosts setup, jsp won't work!
Thanks for your advise. I did what you said. The jars have unique classes. Also the exact same application works on my other machine (exact jars and everything else), but the other machine runs Red Hat 9 and Tomcat 4.X.X and here I'm trying to install this app on Fedora Core 1 and Tomcat 5.0.24 I commented out both hosts to run the app on localhost:8080 and it gave me the same error... I'm at a loss... Any ideas? Thanks for the help. N.K. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 01, 2004 12:19 PM To: Tomcat Users List Subject: Re: Two hosts setup, jsp won't work! On Tue, Jun 01, 2004 at 11:48:45AM -0400, Nadia Kunkov wrote: : I run Tomcat5.0.24 on Fedora Core 1. I have two hosts defined in server.xml : in a following way: First things first -- if you're going to use multiple virtual hosts, you'd do well to either 1/ use separate appBase dirs, or 2/ disable autoDeploy and deployOnStartup for your Host elements. Otherwise, each vhost will deploy both webapps when it starts. : I have about 5 jar files containing com.crystaldecisions.sdk.occa.report.* in : /var/tomcat5/webapps/WebTest2/WEB-INF/lib Are all of the classes unique between the jars? (That is, are there any classes defined in multiple jars?) If not, things could get messy down the line. To start debugging, you could disable the vhost for WebTest1 (just comment it out) and focus on WebTest2. Then, pare down the list of jarfiles in WebTest2/WEB-INF/lib. Confirm that each jar is indeed a valid file (a quick jar -tf {file} should do) and that the required class, and every class on which it depends, is available either in a JAR in WebTest2/WEB-INF/lib or a bare class in WebTest2/WEB-INF/classes. : I copied the above jars to /var/tomcat5/webapps/WebTest2/WEB-INF/classes just : in case and got the same error. No need to do this -- WEB-INF/classes will only load bare class files; jarfiles must exist in WEB-INF/lib. : Does this have anything to do with the hosts I've defined? Did I create a : wrong directory structure? The dirs look OK. If other JSPs compile without a problem, you can pretty much narrow it down to a missing/rogue jarfile or class. : Everything below /var/tomcat5/webapps is owned by tomcat5 user. My Tomcat is : running as root since I need it to be listening on port 80. Cat it be a : permissions problem? Probably not a permissions problem, but you probably don't want root running the Tomcat process. Once you've solved your immediate JSP problem, you may want to look into commons-daemon/jsvc. (This was discussed recently on the list; see the archives for details.) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configuring hosts in server.xml
HI, I'd like to run two websites ( one straight HTML the other JSP and servlets ) on one Linux server that is running Tomcat 5. I don't have apache to use it's virtual hosts. On my DNS server I set up two domain names corresponding to the same IP address. Tomcat documentation says I need to configure server.xml to have multiple hosts with their own sets of webapps. As I understand each host will have it's own appbase different from one another. Now I need to setup a default html or jsp page. Under webapps/ROOT there is index.jsp. Am I right thinking that for my new hosts under /newwebapps/ROOT I need to set up either index.jsp or index.html to be redirected to my websites? How does tomcat picks up a default page? Also, do I need to use Host Name aliase? Thanks as always for your help N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple websites running under Tomcat 4 or 5
Hello need a bit of help. I have a machine running RedHat Linux 7.3. I am using Tomcat 4.x on the machine to run a simple JSP/Servlet website. My question is: How can I configure this machine or my firewall to allow me to run two websites off this machine? One would be the JSP/Servlet site and the second is a small HTML site. I expect to upgrade the machine to Fedora and Tomcat 5. Many thanks kd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Run Tomcat 5 as Root or Tomcat User?
Hi, I installed Tomcat 5.0.16 as root. Now it means that I have to start and stop it being root unless I change ownership on a number of directories including $TOMCAT_HOME/bin. My question is should I run Tomcat as root or should I create a Tomcat User with the rights to start and stop tomcat and change ownership on ALL Tomcat directories to that user? I don't think Tomcat 5 comes with startup scripts. I'm trying to write a startup script but inside the script I have to 'su root' and that means I'll be prompted to enter the password. I'd like Tomcat to start at boot so I need to avoid the password prompt. What is the proper way of doing it since it's my first time.? Thanks for your help. NK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Conn.Pooling stopped Tomcat from starting at boot time
Hi, I implemented connection pooling for Tomcat 4.0 and it works fine. The only thing is Tomcat is not starting at boot time anymore. Any reason for that? How can I correct it? Also, what should I do to start Tomcat 5.0.16 at boot time on my other machine? Thanks N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat4.1.29 Requested resource not available
Yes, I did try it. Didn't work. Something isn't right in my configuration. I plan to install the next version, Tomcat 5.X now. Could you tell me how different is the configuration from the prvious version? What are the main steps? Can I find an RPM for that? I can't seem to find one... Is there documentation aside from Jakarta site? Is it a complex install? Which is a stable release in Tomcat 5? I do appreciate your help very much. Thanks N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 7:06 PM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: I did add the Context path=/test etc... /Context to the $Tomcat_Home/conf/server.xml It still could not find my test dir Should I reinstall it from RPM maybe... Should I create index.html or something of this sort in one of the directories? Have you tried load the test app by http://localhost:8080/manager/install?war=test I don't think you need to reinstall from RPM, nor need create index.html. If it works, you at least can see the content of the director of 'test'. Best Bao N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 4:32 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: Well, there is nothing in the log, just starting/stopping Tomcat stuff... I can run any example in the /examples dir without a problem. I'm running as root, I'm logged in as root (I know it's bad, I have my reasons for it now) so I should have permissions to my test dir. I did login to manager as tomcat, could that be a problem? How do I log out? Should I add root to tomcat_users.xml and make it a manager? Thanks Have you tried to add a Context.../Context block for 'test' application, just like 'example' has in the $TOMCAT-HOME/conf/server.conf file? You may try that taking the 'example' block as a template for modification. Best Bao -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 12:38 PM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available A few things to check. 1.) Take a look at the Tomcat logfiles in TOMCAT_HOME/logs Always start there. 2.) Make sure Tomcat can find the javac compiler. Do you have a full j2sdk installed or just a JRE? Tomcat will run with a JRE but won't be able to compile your JSPs without access to javac. If not, go to http://java.sun.com and get a full j2sdk. Is your JAVA_HOME evironment variable set? Type: echo $JAVA_HOME at the shell to verify. It should point to the root directory of your j2sdk. Example: /usr/local/j2sdk1.4.2 Is your JAVA_HOME evironment variable PROPERLY set? Type: $JAVA_HOME/bin/javac at the shell. If you get a Command not found message, it's not. Another way to make sure that Tomcat can see your javac compiler is to run (not just look at, but run) the JSP examples that ship with Tomcat. 3.) Check the permissions of the directories and files that you've created and make sure that that whatever user that is running Tomcat has permission to access those files. Let us know what you find. -Ben On Thursday 11 December 2003 12:29 pm, you wrote: Did that. Same message: The requested rsource not available. Something else is wrong... Thanks. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 11:29 AM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available You don't need to run the install and you don't need a web.xml file. Create a directory under webapps (test) and create a WEB-INF directory in it. Put a JSP in the test directory (test.jsp). The following will do: %=Hello World% Restart Tomcat. Point to http://localhost:8080/test/test.jsp with your browser. On Thursday 11 December 2003 11:26 am, you wrote: Thanks. I did http://localhost:8080/manager/install?war=test and got the error: Access to the specified resource has been denied/forbidden. What does that mean? In $Tomcat_Home/conf/tomcat_users.xml I have this: user name = Tomcat password = Tomcat roles = tomcat,manager/ (I'm not logged in to the machine as Tomcat but I thin it has nothing to do with it, right?) When I try to to http://localhost:8080/manager/list I get the same error... Can you give me any idea on what is going on? Thanks N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat4.1.29 Requested resource not available
Thank you. You have just encouraged me to try it again. I will check everything I've done and follow all your steps and see what'll happen. I will let you know if it works. Thanks for your continuous help. N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 7:09 PM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: Yes, I did try it. Didn't work. Something isn't right in my configuration. What you have done? Did you first make a Context.../Contest for 'test' app based on the block for 'examples', and then run localhost:8080/manager/install?war=test What did you mean by 'Didn't work'? What is the error message? Have you tried to see what apps you have installed by running localhost:8080/manager/list I just tried and it works. What I did were: 1. Make a directory 'test' under your 'webapps' directory. 2. Make a block Context.../Context for 'test' by copying the 'examples' block and changing all the words 'examples' to 'test'. 3. Finally, run localhost:8080/manager/install?war=test That is all. Now I can access the 'test' app by localhost:8080/test, it is empty though. BTW, I have same verison of Tomcat as you are, i.e. 4.1.29. Please also login as a user which has the 'manager' role, in your case it is 'Tomcat', IIRC. Your browser will prompt you for the first time, anyway. I plan to install the next version, Tomcat 5.X now. Could you tell me how different is the configuration from the prvious version? What are the main steps? I don't know, because I have not tried Tomcat 5.x yet. But I think your Tomcat 4.1.29 basically works, since you can see the 'examples' app. Somehow you have problem with your new app 'test'. Need to quiet down and figure it out, otherwise, I will expect you will have the same deploying problem for your new app. Can I find an RPM for that? I can't seem to find one... Is there documentation aside from Jakarta site? Is it a complex install? Which is a stable release in Tomcat 5? I do appreciate your help very much. Thanks N.K. I don't know any of the above questions, as I said, I have not tried the new version, and not planned to do so:) Good luck. Bao -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 7:06 PM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: I did add the Context path=/test etc... /Context to the $Tomcat_Home/conf/server.xml It still could not find my test dir Should I reinstall it from RPM maybe... Should I create index.html or something of this sort in one of the directories? Have you tried load the test app by http://localhost:8080/manager/install?war=test I don't think you need to reinstall from RPM, nor need create index.html. If it works, you at least can see the content of the director of 'test'. Best Bao N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 4:32 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: Well, there is nothing in the log, just starting/stopping Tomcat stuff... I can run any example in the /examples dir without a problem. I'm running as root, I'm logged in as root (I know it's bad, I have my reasons for it now) so I should have permissions to my test dir. I did login to manager as tomcat, could that be a problem? How do I log out? Should I add root to tomcat_users.xml and make it a manager? Thanks Have you tried to add a Context.../Context block for 'test' application, just like 'example' has in the $TOMCAT-HOME/conf/server.conf file? You may try that taking the 'example' block as a template for modification. Best Bao -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 12:38 PM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available A few things to check. 1.) Take a look at the Tomcat logfiles in TOMCAT_HOME/logs Always start there. 2.) Make sure Tomcat can find the javac compiler. Do you have a full j2sdk installed or just a JRE? Tomcat will run with a JRE but won't be able to compile your JSPs without access to javac. If not, go to http://java.sun.com and get a full j2sdk. Is your JAVA_HOME evironment variable set? Type: echo $JAVA_HOME at the shell to verify. It should point to the root directory of your j2sdk. Example: /usr/local/j2sdk1.4.2 Is your JAVA_HOME evironment variable PROPERLY set? Type: $JAVA_HOME/bin/javac at the shell. If you get a Command not found message, it's not. Another way to make sure that Tomcat can see your javac compiler is to run (not just look at, but run) the JSP examples that ship
RE: Tomcat4.1.29 Requested resource not available
I did add the Context path=/test etc... /Context to the $Tomcat_Home/conf/server.xml It still could not find my test dir Should I reinstall it from RPM maybe... Should I create index.html or something of this sort in one of the directories? Thanks N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 4:32 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: Well, there is nothing in the log, just starting/stopping Tomcat stuff... I can run any example in the /examples dir without a problem. I'm running as root, I'm logged in as root (I know it's bad, I have my reasons for it now) so I should have permissions to my test dir. I did login to manager as tomcat, could that be a problem? How do I log out? Should I add root to tomcat_users.xml and make it a manager? Thanks Have you tried to add a Context.../Context block for 'test' application, just like 'example' has in the $TOMCAT-HOME/conf/server.conf file? You may try that taking the 'example' block as a template for modification. Best Bao -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 12:38 PM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available A few things to check. 1.) Take a look at the Tomcat logfiles in TOMCAT_HOME/logs Always start there. 2.) Make sure Tomcat can find the javac compiler. Do you have a full j2sdk installed or just a JRE? Tomcat will run with a JRE but won't be able to compile your JSPs without access to javac. If not, go to http://java.sun.com and get a full j2sdk. Is your JAVA_HOME evironment variable set? Type: echo $JAVA_HOME at the shell to verify. It should point to the root directory of your j2sdk. Example: /usr/local/j2sdk1.4.2 Is your JAVA_HOME evironment variable PROPERLY set? Type: $JAVA_HOME/bin/javac at the shell. If you get a Command not found message, it's not. Another way to make sure that Tomcat can see your javac compiler is to run (not just look at, but run) the JSP examples that ship with Tomcat. 3.) Check the permissions of the directories and files that you've created and make sure that that whatever user that is running Tomcat has permission to access those files. Let us know what you find. -Ben On Thursday 11 December 2003 12:29 pm, you wrote: Did that. Same message: The requested rsource not available. Something else is wrong... Thanks. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 11:29 AM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available You don't need to run the install and you don't need a web.xml file. Create a directory under webapps (test) and create a WEB-INF directory in it. Put a JSP in the test directory (test.jsp). The following will do: %=Hello World% Restart Tomcat. Point to http://localhost:8080/test/test.jsp with your browser. On Thursday 11 December 2003 11:26 am, you wrote: Thanks. I did http://localhost:8080/manager/install?war=test and got the error: Access to the specified resource has been denied/forbidden. What does that mean? In $Tomcat_Home/conf/tomcat_users.xml I have this: user name = Tomcat password = Tomcat roles = tomcat,manager/ (I'm not logged in to the machine as Tomcat but I thin it has nothing to do with it, right?) When I try to to http://localhost:8080/manager/list I get the same error... Can you give me any idea on what is going on? Thanks N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 10:50 AM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: Hi, I've just installed Tomcat4.1.29 and it's my first time configuring it from the scratch. I'm able to go to http://localhost:8080/examples or http://localhost:8080/tomcat-docs/index.html. But I have also created a new directory under $Tomcat_home/webapps called test. Under that I created WEB-INF and copied one of my old web.xml files over - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat4.1.29 Requested resource not available
Hi, I've just installed Tomcat4.1.29 and it's my first time configuring it from the scratch. I'm able to go to http://localhost:8080/examples or http://localhost:8080/tomcat-docs/index.html. But I have also created a new directory under $Tomcat_home/webapps called test. Under that I created WEB-INF and copied one of my old web.xml files over there. When I try to access http://localhost:8080/test/ I get a message: resource not available. I know I'm missing something really simple but I can't figure it out. Permissions are fine. I appreciate your help. N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat4.1.29 Requested resource not available
Thanks. I did http://localhost:8080/manager/install?war=test and got the error: Access to the specified resource has been denied/forbidden. What does that mean? In $Tomcat_Home/conf/tomcat_users.xml I have this: user name = Tomcat password = Tomcat roles = tomcat,manager/ (I'm not logged in to the machine as Tomcat but I thin it has nothing to do with it, right?) When I try to to http://localhost:8080/manager/list I get the same error... Can you give me any idea on what is going on? Thanks N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 10:50 AM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: Hi, I've just installed Tomcat4.1.29 and it's my first time configuring it from the scratch. I'm able to go to http://localhost:8080/examples or http://localhost:8080/tomcat-docs/index.html. But I have also created a new directory under $Tomcat_home/webapps called test. Under that I created WEB-INF and copied one of my old web.xml files over there. When I try to access http://localhost:8080/test/ I get a message: resource not available. I know I'm missing something really simple but I I think you need to install it first. For example by the following way: http://localhost:8080/manager/install?war=test Best Bao can't figure it out. Permissions are fine. I appreciate your help. N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat4.1.29 Requested resource not available
Did that. Same message: The requested rsource not available. Something else is wrong... Thanks. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 11:29 AM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available You don't need to run the install and you don't need a web.xml file. Create a directory under webapps (test) and create a WEB-INF directory in it. Put a JSP in the test directory (test.jsp). The following will do: %=Hello World% Restart Tomcat. Point to http://localhost:8080/test/test.jsp with your browser. On Thursday 11 December 2003 11:26 am, you wrote: Thanks. I did http://localhost:8080/manager/install?war=test and got the error: Access to the specified resource has been denied/forbidden. What does that mean? In $Tomcat_Home/conf/tomcat_users.xml I have this: user name = Tomcat password = Tomcat roles = tomcat,manager/ (I'm not logged in to the machine as Tomcat but I thin it has nothing to do with it, right?) When I try to to http://localhost:8080/manager/list I get the same error... Can you give me any idea on what is going on? Thanks N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 10:50 AM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: Hi, I've just installed Tomcat4.1.29 and it's my first time configuring it from the scratch. I'm able to go to http://localhost:8080/examples or http://localhost:8080/tomcat-docs/index.html. But I have also created a new directory under $Tomcat_home/webapps called test. Under that I created WEB-INF and copied one of my old web.xml files over there. When I try to access http://localhost:8080/test/ I get a message: resource not available. I know I'm missing something really simple but I I think you need to install it first. For example by the following way: http://localhost:8080/manager/install?war=test Best Bao can't figure it out. Permissions are fine. I appreciate your help. N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat4.1.29 Requested resource not available
Well, there is nothing in the log, just starting/stopping Tomcat stuff... I can run any example in the /examples dir without a problem. I'm running as root, I'm logged in as root (I know it's bad, I have my reasons for it now) so I should have permissions to my test dir. I did login to manager as tomcat, could that be a problem? How do I log out? Should I add root to tomcat_users.xml and make it a manager? Thanks -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 12:38 PM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available A few things to check. 1.) Take a look at the Tomcat logfiles in TOMCAT_HOME/logs Always start there. 2.) Make sure Tomcat can find the javac compiler. Do you have a full j2sdk installed or just a JRE? Tomcat will run with a JRE but won't be able to compile your JSPs without access to javac. If not, go to http://java.sun.com and get a full j2sdk. Is your JAVA_HOME evironment variable set? Type: echo $JAVA_HOME at the shell to verify. It should point to the root directory of your j2sdk. Example: /usr/local/j2sdk1.4.2 Is your JAVA_HOME evironment variable PROPERLY set? Type: $JAVA_HOME/bin/javac at the shell. If you get a Command not found message, it's not. Another way to make sure that Tomcat can see your javac compiler is to run (not just look at, but run) the JSP examples that ship with Tomcat. 3.) Check the permissions of the directories and files that you've created and make sure that that whatever user that is running Tomcat has permission to access those files. Let us know what you find. -Ben On Thursday 11 December 2003 12:29 pm, you wrote: Did that. Same message: The requested rsource not available. Something else is wrong... Thanks. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 11:29 AM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available You don't need to run the install and you don't need a web.xml file. Create a directory under webapps (test) and create a WEB-INF directory in it. Put a JSP in the test directory (test.jsp). The following will do: %=Hello World% Restart Tomcat. Point to http://localhost:8080/test/test.jsp with your browser. On Thursday 11 December 2003 11:26 am, you wrote: Thanks. I did http://localhost:8080/manager/install?war=test and got the error: Access to the specified resource has been denied/forbidden. What does that mean? In $Tomcat_Home/conf/tomcat_users.xml I have this: user name = Tomcat password = Tomcat roles = tomcat,manager/ (I'm not logged in to the machine as Tomcat but I thin it has nothing to do with it, right?) When I try to to http://localhost:8080/manager/list I get the same error... Can you give me any idea on what is going on? Thanks N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 10:50 AM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: Hi, I've just installed Tomcat4.1.29 and it's my first time configuring it from the scratch. I'm able to go to http://localhost:8080/examples or http://localhost:8080/tomcat-docs/index.html. But I have also created a new directory under $Tomcat_home/webapps called test. Under that I created WEB-INF and copied one of my old web.xml files over there. When I try to access http://localhost:8080/test/ I get a message: resource not available. I know I'm missing something really simple but I I think you need to install it first. For example by the following way: http://localhost:8080/manager/install?war=test Best Bao can't figure it out. Permissions are fine. I appreciate your help. N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
RE: Tomcat4.1.29 Requested resource not available
Yes, my $Java_Home is fine, finds javac, and example servlets/jsp are running. Log is no help, nothing interesting in it. I'm logged in to my machine as root and start tomcat as root. I know that it sometimes changes the context and runs under Tomcat. In Tomcat4.0 it was set in conf/tomcat4.conf and there the user would be set to Tomcat even though it was started as root. But I don't know if there is anything like that in this version. Thanks for working through this thing with me -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 2:01 PM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available Don't worry about the manager for now. Did you start tomcat as root? If so, it's probably not a permissions example. Did you check everything else on my list below? On Thursday 11 December 2003 02:05 pm, you wrote: Well, there is nothing in the log, just starting/stopping Tomcat stuff... I can run any example in the /examples dir without a problem. I'm running as root, I'm logged in as root (I know it's bad, I have my reasons for it now) so I should have permissions to my test dir. I did login to manager as tomcat, could that be a problem? How do I log out? Should I add root to tomcat_users.xml and make it a manager? Thanks -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 12:38 PM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available A few things to check. 1.) Take a look at the Tomcat logfiles in TOMCAT_HOME/logs Always start there. 2.) Make sure Tomcat can find the javac compiler. Do you have a full j2sdk installed or just a JRE? Tomcat will run with a JRE but won't be able to compile your JSPs without access to javac. If not, go to http://java.sun.com and get a full j2sdk. Is your JAVA_HOME evironment variable set? Type: echo $JAVA_HOME at the shell to verify. It should point to the root directory of your j2sdk. Example: /usr/local/j2sdk1.4.2 Is your JAVA_HOME evironment variable PROPERLY set? Type: $JAVA_HOME/bin/javac at the shell. If you get a Command not found message, it's not. Another way to make sure that Tomcat can see your javac compiler is to run (not just look at, but run) the JSP examples that ship with Tomcat. 3.) Check the permissions of the directories and files that you've created and make sure that that whatever user that is running Tomcat has permission to access those files. Let us know what you find. -Ben On Thursday 11 December 2003 12:29 pm, you wrote: Did that. Same message: The requested rsource not available. Something else is wrong... Thanks. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 11:29 AM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available You don't need to run the install and you don't need a web.xml file. Create a directory under webapps (test) and create a WEB-INF directory in it. Put a JSP in the test directory (test.jsp). The following will do: %=Hello World% Restart Tomcat. Point to http://localhost:8080/test/test.jsp with your browser. On Thursday 11 December 2003 11:26 am, you wrote: Thanks. I did http://localhost:8080/manager/install?war=test and got the error: Access to the specified resource has been denied/forbidden. What does that mean? In $Tomcat_Home/conf/tomcat_users.xml I have this: user name = Tomcat password = Tomcat roles = tomcat,manager/ (I'm not logged in to the machine as Tomcat but I thin it has nothing to do with it, right?) When I try to to http://localhost:8080/manager/list I get the same error... Can you give me any idea on what is going on? Thanks N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 10:50 AM To: Tomcat Users List Subject: Re: Tomcat4.1.29 Requested resource not available Nadia Kunkov wrote: Hi, I've just installed Tomcat4.1.29 and it's my first time configuring it from the scratch. I'm able to go to http://localhost:8080/examples or http://localhost:8080/tomcat-docs/index.html. But I have also created a new directory under $Tomcat_home/webapps called test. Under that I created WEB-INF and copied one of my old web.xml files over there. When I try to access http://localhost:8080/test/ I get a message: resource not available. I know I'm missing something really simple but I I think you need to install it first. For example by the following way: http://localhost:8080/manager/install?war=test Best Bao can't figure it out. Permissions are fine. I appreciate your help. N.K
Uninstalling Tomcat
HI, Sorry for a stupid question. Just wanted to make sure that to uninstall Tomcat all I have to do is to delete the directory where it's installed. Is that right or there are other steps? Thanks N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Uninstalling Tomcat
It was not installed by me and I don't seem to find an rpm Most likely it was an RPM, though. I have installed a new version of Tomcat to a new location and need to get rid of the old one. Also, I set up Java_home in ~/.bashrc file and even after I dot execute it I get a message that Java_Home is not set when I start Tomcat. Should I do export Java_Home etc. in .bashrc or should I do it somewhere else? Thanks -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:26 PM To: Tomcat Users List Subject: Re: Uninstalling Tomcat How did you install it? On Wednesday 10 December 2003 02:16 pm, Nadia Kunkov wrote: HI, Sorry for a stupid question. Just wanted to make sure that to uninstall Tomcat all I have to do is to delete the directory where it's installed. Is that right or there are other steps? Thanks N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Uninstalling Tomcat
Thanks for all your thoughts! Now, Tomcat doesn't start at boot time anymore after I upgraded my JDK and Tomcat. How can I fix it? Thanks in advance. N.K. -Original Message- From: Luc Foisy [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 3:02 PM To: Tomcat Users List Subject: RE: Uninstalling Tomcat could use find / -name tomcat* that will show where tomcat has been installed (including the one you know about and the one you don't) if you want to see if it was installed with an rpm from there you could use rpm -qf /[path to unknown tomcat install]/[some file in that tomcat install] If no results are returned, then an rpm wasn't used. You could probably just rm that whole directory then (if some kind of runtime boot was used, gonna have to search for that, you'll probably see it if you restart :) -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:38 PM To: Tomcat Users List Subject: Re: Uninstalling Tomcat Try querying the rpm database to see if it's in there. I think you need to be root. rpm -qa | grep tomcat If it is you can use rpm -e PACKAGE_NAME to remove it. On Wednesday 10 December 2003 02:27 pm, Nadia Kunkov wrote: It was not installed by me and I don't seem to find an rpm Most likely it was an RPM, though. I have installed a new version of Tomcat to a new location and need to get rid of the old one. Also, I set up Java_home in ~/.bashrc file and even after I dot execute it I get a message that Java_Home is not set when I start Tomcat. Should I do export Java_Home etc. in .bashrc or should I do it somewhere else? Thanks -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:26 PM To: Tomcat Users List Subject: Re: Uninstalling Tomcat How did you install it? On Wednesday 10 December 2003 02:16 pm, Nadia Kunkov wrote: HI, Sorry for a stupid question. Just wanted to make sure that to uninstall Tomcat all I have to do is to delete the directory where it's installed. Is that right or there are other steps? Thanks N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison Company, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Uninstalling Tomcat
I have Tomcat 4.1.29 and there is nothing in /etc/rc.d/init.d/ or /etc/init.d/ All I have is catalina.sh and startup.sh in $TOMCAT_HOME/bin. What should I put in the above directories? A shell script? Which one or what kind of script should I wright? In both of those directories or just one? Also, there is no tomcat.conf file for this version, should I create it? Thanks -Original Message- From: Luc Foisy [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 3:39 PM To: Tomcat Users List Subject: RE: Uninstalling Tomcat Check to see if you have a runtime call for that tomcat instance. Make sure it works from the command line first. Make sure all environment variables needed have been set. Check the tomcat logs. Does this particular tomcat install automatically create something in the runtime area (/etc/rc.d/init.d/ and such places) If not you'll have to write your own. -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 3:33 PM To: Tomcat Users List Subject: RE: Uninstalling Tomcat Thanks for all your thoughts! Now, Tomcat doesn't start at boot time anymore after I upgraded my JDK and Tomcat. How can I fix it? Thanks in advance. N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat question
I'm almost sure that in Tomcat_Home/conf/tomcat4.conf there should be an entry for that. Well I'm talking about Linux, actually, but the setup should be similar for Windows... -Original Message- From: Guy Lubovitch [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 12:14 PM To: '[EMAIL PROTECTED]' Subject: tomcat question im not sure im sending my question to the right mailing list, but here we go. i have tomcat 4.1.29 installed on window 2000 and im running it as service, the question is how do i change the classpath of the tomcat? i change setclasspath file but it didnt help thank you in advance. mobile mapping application Guy Lubovitch Project Manager Telmap Bareket 11 Herzelia [EMAIL PROTECTED] tel: mobile: +972(9)9582844 +972(54)550865 http://www.plaxo.com/signature Powered by Plaxo http://www.plaxo.com/signature Want a signature like this? https://www.plaxo.com/add_me?u=4294976276v0=17453k0=1888001226 Add me to your address book...
Where does Tomcat puts it's log?
Hi, this is basically a repost, since I still can't get this working. I have upgraded my Linux box to j2sdk1.4.1_04 from jdk1.3.1_04. I have fixed the Java_Home variable in /tomcat4/conf/tomcat4.conf file to use the new one. Now, when I run my java applications usually catalina.out gets populated with errors and messages. My catalina.out is completely empty! What happened? Its something with java upgrade but I don't know what it is. Does Tomcat use some other file now? I'd appreciate any ideas. Thanks in advance. N.K. Nadia Kunkov Parker Global Strategies 1177 Summer Street Stamford, CT 06905 203-358-4023 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where does Tomcat puts it's log?
Thanks for the answer. I'll try to do what you suggested and see what'll happen. But is there anything else I can do? The Catalina.out file gets created but it's just empty. I checked permissions on it and it's fine. Should I maybe upgrade Tomcat first? P.S. I have gotten a lot of answers from you, Yoav, and they were invaluable. I appreciate your helping all of us out there. Thanks N.K. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 3:20 PM To: Tomcat Users List Subject: RE: Where does Tomcat puts it's log? Howdy, Tomcat doesn't use any other file unless you changed its configuration. I'm sure people read your original post: no one cared enough or knew enough to help. For starters, what happens if you do a new tomcat installation, not from an RPM, into a clean new location, and tell it to use your new JDK? Yoav Shapira Millennium ChemInformatics -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 3:12 PM To: Tomcat help (E-mail) Subject: Where does Tomcat puts it's log? Hi, this is basically a repost, since I still can't get this working. I have upgraded my Linux box to j2sdk1.4.1_04 from jdk1.3.1_04. I have fixed the Java_Home variable in /tomcat4/conf/tomcat4.conf file to use the new one. Now, when I run my java applications usually catalina.out gets populated with errors and messages. My catalina.out is completely empty! What happened? Its something with java upgrade but I don't know what it is. Does Tomcat use some other file now? I'd appreciate any ideas. Thanks in advance. N.K. Nadia Kunkov Parker Global Strategies 1177 Summer Street Stamford, CT 06905 203-358-4023 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Catalina.out is empty after JDK upgrade!!!
Hi, I have upgraded my Linux box to j2sdk1.4.1_04 from jdk1.3.1_04. I have fixed the Java_Home variable in /tomcat4/conf/tomcat4.conf file to use the new one. Now, when I run my java applications usually catalina.out gets populated with errors and messages. My catalina.out is completely empty! What happened? Its something with java upgrade but I don't know what it is. I'd appreciate any ideas. Thanks in advance. N.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
setting tomcat to listen on port 80
I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: setting tomcat to listen on port 80
I should mention I'm running Tomcat on Linux... I'm not sure if that makes any difference. N.K. -Original Message- From: V.Karthik Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:47 PM To: Tomcat Users List Subject: Re: setting tomcat to listen on port 80 I really don't know how to help you. The server.xml file works well in Windows (i've tried it out, on port 80). So, temporarily, till one of us comes up with a solution, start httpd, and give a redirection page to http://yourhost:8080. Tomcat uses more ports such as a Shutdown Port / AJP13 Port etc. This you can see in all the Connector lists in server.xml file. There is nothing wrong in using port 80. It works well on Windows.. But i really don't know why it doesn't work on Linux. (That doesn't answer the question anyway) --- Nadia Kunkov [EMAIL PROTECTED] wrote: I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: setting tomcat to listen on port 80
Oh, I don't know how to thank you!!! That's it! It finally works Now should we be using port 80 and running as root or should we better use port redirection: /etc/sysconfig/ipchains -I input --proto TCP --dport 80 -j REDIRECT 8080 -I input --proto TCP --dport 443 -j REDIRECT 8443 Thanks for your help. N.K. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:48 PM To: Tomcat Users List Subject: RE: setting tomcat to listen on port 80 Howdy, Your 8005 error is because you started tomcat before, and shut it down inappropriately, or not at all, so it's still listening on port 8005. 8005 is the default tomcat shutdown port. Shut down the first tomcat properly and completely. Then you'll be able to start on port 80 (and 8005 -- a server shutdown port is always required in addition to the connector port). Yoav Shapira Millennium ChemInformatics -Original Message- From: V.Karthik Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:47 PM To: Tomcat Users List Subject: Re: setting tomcat to listen on port 80 I really don't know how to help you. The server.xml file works well in Windows (i've tried it out, on port 80). So, temporarily, till one of us comes up with a solution, start httpd, and give a redirection page to http://yourhost:8080. Tomcat uses more ports such as a Shutdown Port / AJP13 Port etc. This you can see in all the Connector lists in server.xml file. There is nothing wrong in using port 80. It works well on Windows.. But i really don't know why it doesn't work on Linux. (That doesn't answer the question anyway) --- Nadia Kunkov [EMAIL PROTECTED] wrote: I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: connection pooling
Thanks for answering my question. You are saying you can set a validation query to validate connections. Can you set a specific time intervals for this validation to be done and where do you do it? Is there a documentation on how to do this? I should mention we are using Tomcat 4.0.x, can I use DBCP? Or what's the best way to configure pooling? Is that a good idea in general to use the Tomcat mechanism or should I consider something like DBConnectionBroker? Thanks again Nadia -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 3:15 PM To: Tomcat Users List Subject: RE: connection pooling Howdy, Thanks, but do you know what is abandoned connection? As I understand it, abandoned connection is the one that has not been used in some time but it still could be a live connection. I need to go through all the connections in the pool and check if every connection is a valid, live connection and not whether it has been used recently. Does Tomcat allow me to do that? And how do I retrieve all the used connections to check every one of them? You don't need to do this manually: set a validation query for your pool and DBCP will validate all your connections for you. Tomcat is not a connection pooling product by itself. It simply allows you to use JNDI to configure other connection pooling products, like DBCP or Oracle's connection pooling implementation. Each of those products have their own features and documentation you will need to consult. Yoav Shapira 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
connection pooling
Hi, I'm using Tomcat 4.0.4 and I'm wondering if setting up a connection pooling will give me a capability to set up some time intervals according to which my pool manager will check if connections are active and recycle them if they are not. Does Tomcat have this capability? ( is there something like pool manager that goes aroung checking for connections?) In the Jakarta documentation you can find how to set up and obtain the connection through the new datasource, but there is nothing about how to explicitly use this pool to check for stale connections and such. Plese, let me know where I can find this. Are there some free packages I can download and use? Thank you very much for your help. Nadia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: connection pooling
Thanks, but do you know what is abandoned connection? As I understand it, abandoned connection is the one that has not been used in some time but it still could be a live connection. I need to go through all the connections in the pool and check if every connection is a valid, live connection and not whether it has been used recently. Does Tomcat allow me to do that? And how do I retrieve all the used connections to check every one of them? Nadia -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 12:44 PM To: Tomcat Users List Subject: RE: connection pooling Howdy, Tomcat uses DBCP by default for connection pooling, although you can use other packages as well. DBCP supports evicting idle connections with a configurable timeout on how long the connection must be idle before eviction. DBCP also supports configurable validation queries (checking for stale / bad connections). See DBCP API JavaDocs at http://jakarta.apache.org/commons/dbcp/apidocs/index.html See Tomcat DBCP (and other) connection pool configuration examples at: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations Yoav Shapira Millennium ChemInformatics -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 12:39 PM To: [EMAIL PROTECTED] Subject: connection pooling Hi, I'm using Tomcat 4.0.4 and I'm wondering if setting up a connection pooling will give me a capability to set up some time intervals according to which my pool manager will check if connections are active and recycle them if they are not. Does Tomcat have this capability? ( is there something like pool manager that goes aroung checking for connections?) In the Jakarta documentation you can find how to set up and obtain the connection through the new datasource, but there is nothing about how to explicitly use this pool to check for stale connections and such. Plese, let me know where I can find this. Are there some free packages I can download and use? Thank you very much for your help. Nadia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]