RE: jk_nt_service.exe
Joe - Your stderr.log shows the jni_connect.dll not being found. I'm not familiar with JNI, but it sounds like a path issue -- it can't find this DLL where it wants to. If Tomcat starts up NOT as a service, then I would check your system environment settings to see if PATH or maybe CLASSPATH are set correctly in the system (as opposed to the user settings). Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Meagher, Joe [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 10:32 AM To: 'Tomcat Users List' Subject: RE: jk_nt_service.exe Yes they are, here are the files. Joe -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 12:13 PM To: 'Tomcat Users List' Subject: RE: jk_nt_service.exe Are the stderr and stdout log files being created? -Original Message- From: Meagher, Joe [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 12:47 AM To: '[EMAIL PROTECTED]' Subject: jk_nt_service.exe I know this is probably an old and dead issue for most of you guys, so sorry in advance. I am trying to run tomcat 3.2 as a service on Win 2000. Tomcat is installed properly as is my JDK (1.3.1_04) by the way. Both are installed into directories with NO spaces. I have configured my wrapper.properties file as described in the docs. After running jk_nt_service.exe -i ... the registry shows all the proper information. Yet, still I get the following error. net start tomcat The tomcat service is starting. The tomcat service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. The given command does not give any useful information If someone has a suggestion other than take the spaces out of the directories please let me know there are NO spaces in any directory I reference in my wrapper.properties file, or the registry entry created for the service. Thanks, Joe == Joe Meagher Rational Software Desk: 972-473-5226 2400 Dallas Pkwy, Suite 460 Cell: 214-281-9318 Plano, TX 75093 Fax: 972-473-5210 [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: DB2 DataSource: No suitable driver
Try renaming the .zip file to .jar and try again. Others have suggested this for the Oracle drivers. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Vance Christiaanse [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 2:01 PM To: [EMAIL PROTECTED] Subject: DB2 DataSource: No suitable driver Hello, Tomcat fans, I am using Tomcat 4.0.4 and can't get a DataSource working with DB2. My attempts result in No suitable driver, as detailed below. I have tried everything I've seen suggested for this problem, as the following steps indicate. Any help would be much appreciated. Thank you in advance, Vance Christiaanse == 1. Applied FixPack 7 (the latest fixpack) to DB2 7.2 2. Successfully ran usejava2 (to convert DB2 to use JDBC 2.0) 3. Added db2java.zip to catalina classpath by editing bin\setclasspath.bat EVIDENCE THIS MAKES THE DRIVER AVAILABLE TO CATALINA: When I omit this step and test the servlet, I get javax.naming.NamingException: Exception creating DataSource: COM.ibm.db2.jdbc.app.DB2Driver EVIDENCE THIS MAKES THE DRIVER AVAILABLE TO THE SERVLET: When I replace the DataSource code in the servlet with the following Class.forName(COM.ibm.db2.jdbc.app.DB2Driver); conn = java.sql.DriverManager.getConnection( jdbc:db2:MYDB , USERID, PASSWORD); it works with this step and doesn't work without it. 4. Updated appropriate conf\server.xml Context element to include Resource name=jdbc/Alpha auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/Alpha parameter namedriverClassName/name valueCOM.ibm.db2.jdbc.app.DB2Driver/value /parameter parameter namedriverName/name valuejdbc:db2:MYDB/value /parameter parameter nameuser/name valueUSERID/value /parameter parameter namepassword/name valuePASSWORD/value /parameter /ResourceParams EVIDENCE THIS STEP IS WORKING: If I change the driverClassName to something bogus, I get an error relating to the bogus name. The driverName, jdbc:db2:MYDB does work in conn = java.sql.DriverManager.getConnection( jdbc:db2:MYDB , USERID, PASSWORD); 5. Updated appropriate web.xml to include resource-ref res-ref-namejdbc/Alpha/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref EVIDENCE THIS STEP IS WORKING: None. I get the same error with or without this element. 6. Visited servlet containing the following code: javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup(java:comp/env/jdbc/Alpha); pw.println(Get here); conn = ds.getConnection(); pw.println(Don't get here); 7. Got Get here java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at tyrex.jdbc.xa.EnabledDataSource.getConnection(EnabledDataSource.java:233) at tyrex.jdbc.xa.EnabledDataSource.getConnection(EnabledDataSource.java:204) -- 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: Reposting Bean question
And if you jarred the bean you would put the .jar file into Tomcat/webapps/mySite/WEB-INF/lib. Without the .jar you could just put the .class file into Tomcat/webapps/mySite/WEB-INF/classes/Beans (the package directory structure starts from the WEB-INF/classes directory). There are bunches of posts on this mailing list about where to put your .jar and .class files (do a search on the archives for classpath for a start). Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Power-Netz (Schwarz) [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Monday, July 22, 2002 9:01 AM To: Tomcat Users List Subject: AW: Reposting Bean question I posted this question, but no one responded before, so here it is again: maybe , because you didn't even tell us, which system / releases you use? mySite folder jarred the bean with it's mainfest. Now I'm getting a ClassNotFoundException and a list of packages where it must be looking for As far as i use beans, you have to put your bean.class in your classpath. normally in WEB-INF/classes/ cu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
RE: Cannot use bean from jsp, but servlet ok. I'm dying!
You would need the following: %@ page language=java import=beans.FormBean contentType=text/html % jsp:useBean id=FormBean class=beans.FormBean scope=request / Also, is your FormBean.class in webapps\xxx\WEB-INF\classes\beans directory? Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: eric [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 9:44 AM To: [EMAIL PROTECTED] Subject: Cannot use bean from jsp, but servlet ok. I'm dying! Help. Absolutely stuck. Tomcat cannot find my bean classes no matter what when called from jsp pages. From within servlets no problem. Here is the jsp --- %@ include file=pub_hdr.html % jsp:usebean id=FormBean class=beans.FormBean scope=request / form input type=text name=userName value=% =FormBean.getUserName() % %= FormBean.getErrorMsg(userName) % /form %@ include file=pub_ftr.html % Here is the bean package beans; import java.util.*; import java.io.Serializable; public class FormBean implements Serializable { public String userName; public FormBean() {} public String getUserName() { return this.userName; } public void setUserName(String uname) { this.userName = uname; } } NO MATTER WHAT, as soon as I access the jsp page. This error comes up. Generated servlet error: C:\jwsdp-1_0\work\Standard Engine\localhost\messagesmith\en\users$jsp.java:126: Undefined variable or class name: FormBean out.print( FormBean.getUserName() ); It certainly seems that TC cannot find the FormBean class which lives here: C:\jwsdp-1_0\webapps\project\WEB-INF\classes\beans. I've changed that scope attribute to application or page, but it doesn't change. With TC3.x I had to do some configuration in the conf/server.xml file, but this doesn't seem necessary w/ TC4. All the same I've adding the following context to the server.xml, but it doesn't help. Context path=/project docBase=webapps/project debug=0 reloadable=true / Anyone have any ideas? It is killing me. Again, I can instantiate the FormBean class from within servlets, but not from JSP. Env: Win2k Server, jdk1.4.0_01, TC4.0 Classpath=.;C:\jwsdp-1_0\common\lib\servlet.jar;C:\jwsdp-1_0\webapps\project \WEB-INF\classes;C:\jfreechart-0.9.1\jars\jcommon-0.6.3.jar;C:\jfreechart-0. 9.1\jars\jfreechart-0.9.1.jar; TOMCAT_HOME=C:\jwsdp-1_0 CATALINA_HOME=C:\jwsdp-1_0 JAVA_HOME=C:\j2sdk1.4.0_01
RE: Cannot use bean from jsp, but servlet ok. I'm dying!
Try moving the = right next to % in your input ... value= clause: input type=text name=userName value=%= FormBean.getUserName() % Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: eric [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 10:18 PM To: [EMAIL PROTECTED] Subject: Cannot use bean from jsp, but servlet ok. I'm dying! Help. Absolutely stuck. Tomcat cannot find my bean classes no matter what when called from jsp pages. From within servlets no problem. Here is the jsp --- %@ include file=pub_hdr.html % jsp:usebean id=FormBean class=beans.FormBean scope=request / form input type=text name=userName value=% =FormBean.getUserName() % %= FormBean.getErrorMsg(userName) % /form %@ include file=pub_ftr.html % Here is the bean package beans; import java.util.*; import java.io.Serializable; public class FormBean implements Serializable { public String userName; public FormBean() {} public String getUserName() { return this.userName; } public void setUserName(String uname) { this.userName = uname; } } NO MATTER WHAT, as soon as I access the jsp page. This error comes up. Generated servlet error: C:\jwsdp-1_0\work\Standard Engine\localhost\messagesmith\en\users$jsp.java:126: Undefined variable or class name: FormBean out.print( FormBean.getUserName() ); It certainly seems that TC cannot find the FormBean class which lives here: C:\jwsdp-1_0\webapps\project\WEB-INF\classes\beans. I've changed that scope attribute to application or page, but it doesn't change. With TC3.x I had to do some configuration in the conf/server.xml file, but this doesn't seem necessary w/ TC4. All the same I've adding the following context to the server.xml, but it doesn't help. Context path=/project docBase=webapps/project debug=0 reloadable=true / Anyone have any ideas? It is killing me. Again, I can instantiate the FormBean class from within servlets, but not from JSP. Env: Win2k Server, jdk1.4.0_01, TC4.0 Classpath=.;C:\jwsdp-1_0\common\lib\servlet.jar;C:\jwsdp-1_0\webapps\project \WEB-INF\classes;C:\jfreechart-0.9.1\jars\jcommon-0.6.3.jar;C:\jfreechart-0. 9.1\jars\jfreechart-0.9.1.jar; TOMCAT_HOME=C:\jwsdp-1_0 CATALINA_HOME=C:\jwsdp-1_0 JAVA_HOME=C:\j2sdk1.4.0_01 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Wrong Encoding returned by Tomcat 4.03 in HTML pages
Someone else pointed out that for some reason you need to use the %@ page contenttype=... % tag to get this to work. Not sure why, but it solved someone else's problem. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: José Montiel [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 8:54 AM To: [EMAIL PROTECTED] Subject: Wrong Encoding returned by Tomcat 4.03 in HTML pages Importance: High Hi, I just installed Tomcat 4.03 in a Linux/RedHat 7.1 box, and I'm having the following problem: When I call a shtml, html page the browser set character encoding as Unicode (UTF-8) even though the page has the proper META TAG META content=text/html; charset=iso-8859-1 http-equiv=Content-Type If I change character encoding to Western European (ISO) on the browser the page reloads automatically and the error disappear. If I reload the page the encoding is changed again to UTF-8. If a call a JSP it works just fine, encoding is correct. I have tried this with IE 6, Netscape 6 on Windows and Mozilla, Netscape and Konqueror on Linux, always same result. Locale settings on Linux box are set to es_VE, I also tried en_CA. I have set debug level to 6 in all servlets with no luck. Any idea? Thanks in advance bye -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Please help - Tomcat IIS
I recall something about a month ago on this mailing list. You may have duplicate instances of the redirect DLL -- that's why you're getting that error. Try searching the archives, and I think the solution was to take out the ISAPI filter at either the web site level or at the virtual host level. (I hope this makes sense, I'm not an IIS expert). Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Brad Rhoads [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 12:37 PM To: 'Tomcat Users List' Subject: RE: Please help - Tomcat IIS It can be done. It's working at one of our clients. I didn't set it up, so I don't know exactly what the secret is - I tried to get it working here myself once got stock. But FWIW, I've been following this thread it looks like you're putting the .jsps in the inetpub folder. At my client site we, everthing is is in the tomcat4/webapps/somesite folder, like normal. Hope this helps. -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 1:57 PM To: Tomcat Users List Subject: Please help - Tomcat IIS Hi all; I've been tring for 3 days non-stop to get Tomcat working with IIS. And I'm still stuck and getting desperate. If anyone can help on these, please please do so. I'm assuming that there must be someone out there who has done this before successfully. Or if it can't be done let me know and I'll go buy JRun. thanks - dave Question 1: I tried adding isapi_redirector.dll as a filter in one of my virtual web sites and added a jakarta virtual directory to that web site. When I try to access a jsp page via the virtual site, I get a Tomcat message of: The requested resource (/jakarta/isapi_redirector.dll) is not available. Any ideas? thanks - dave - Original Message - Hi; Ok, I have tomcat working on my default website. How do I get it to work on the virtual web sites I have? thanks - dave Question 2: I'm sticking with this example as it should work. The url I put in is localhost/apps.10.jsp. Here is a dir (screen dump) of the file: Directory of C:\Program Files\Apache Tomcat 4.0\webapps\apps 02/16/2002 03:50p 727 10.jsp So the file is there. The error I get is: C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\apps\$10$jsp.java:3: Class net.windward.Cart not found in import. import net.windward.Cart; ^ 1 error, 1 warning Here is the dir (screen dump) of the file Cart.class Directory of C:\Program Files\Apache Tomcat 4.0\webapps\apps\WEB-INF\classes\ne t\windward 12/29/2001 01:11p 18,392 Cart.class 12/29/2001 01:10p 24,099 Cart.java So any idea why it can't find it? I looked in the log files but couldn't find any that listed a directory it was looking in. thanks - dave - Original Message - ... I also added: Context path=/apps docBase=apps debug=0 privileged=true / And then created CATALINA_HOME\webapps\apps\*.jsp and CATALINA_HOME\webapps\apps\WEB-INF\classes\net\windward\*.class I don't see anything wrong with this, it looks like it should work. This all makes me wonder if something else is wrong. How is the jsp looking for the class file? For example, is it using the full package name? In all these cases I can get ot the .jsp file but the jsp file cannot find the java .class files. I am doing no web.xml file because I have no servlets or anything else like that. Just jsp files and classes for them to access. I think that should be OK, and if it's finding the servlets/jsps OK, that should indicate it's OK. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How do you edit the conf file for Apache???
Steve, You might get a better response if you showed a little more courtesy and gratitude for the *free* help you are receiving here: http://www.tuxedo.org/~esr/faqs/smart-questions.html So, what exactly do you mean trying to edit and not at all successfully? Do you not know how to use a text editor, or what? Apache will not recognize changes to the configuration file without a restart. Did you do that? What kinds of changes are you trying to make? Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: STEVE R BURRUS [mailto:[EMAIL PROTECTED]] Sent: Monday, June 24, 2002 3:53 PM To: Tomcat Users List Subject: How do you edit the conf file for Apache??? Rory, I emailed you earlier today, but YOU HAVE NOT SEEN FIT to respond back to me yet, so I thought that I would give you another electronic shout again now. I installed Apache just last nite, so I was at least trying to edit the conf file, but not at all successfully!! Can you help me please?SRB *** --- Douglas, Rory [EMAIL PROTECTED] wrote: Just sending this again to see if I can get #@!!***$ Outlook NOT to send HTML mail! I haven't set-up anything really complex but the following setup should work. I haven't got around to trying load-balancing, if anyone does that and gets it working, please share! --- in HTTPD.CONF (in Apache2\conf) --- LoadModule jk2_module modules/mod_jk2.dll - in JK2.PROPERTIES (in Tomcat4.1\conf) - I just commented out everything. Note that if you are using an AJP connector with port other than the default of 8009 you should specify here (where it says channelSocket.port). If you comment everything out JK seems to default to 8009 (and then 8010, 8011 and so on if you have more than one connector). If you want need specific ports for multiple connectors then specify channelSocket.port multiple times e.g channelSocket.port=8014 channelSocket.port=8018 if you have two AJP connectors specified in server.xml with port numbers 8014 and 8018. -- in WORKERS2.PROPERTIES -- I just copied this file from tomcat4.1\jtc-src\jk\conf into Apache2\conf and edited it a bit. The really important bits seem to be: [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=20 tomcatId=Tomcat-Standalone that actually sets up a worker. I understand that you can specify group=someGroupName and create groups of workers for load-balancing. I also believe that every worker created without specfiying a group is in the default group (I think it is lb). To map contexts use [uri:] blocks like so: [uri:/test] info=Test context mapping debug=20 context=/test Again, here you can specify which workers serve that context by specifying group=groupName It's a good idea to keep these parts around too: [status:] info=Status worker, displays runtime informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: you can then hit http://yourapacheserver/jkstatus and get a loads of jk info that might help you catch config errors There are some docs in tomcat4.1\jtc-src\jk\doc\jk2 that might help (but they're not great). Hope this is useful to someone cheers Rory Rory Douglas Sun Chemical Corporation (201) 224-4600 x133 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Please help me improve my question skills (number of tomcat a pps)
Jeff - We are using Tomcat to provide a Web front end for a mainframe application -- so at most two or three clients at once hitting the server. The box is Win2K or WinNT 4. The application is a bunch of JSPs and a couple of Java Beans which use TCP/IP to talk to the MF. We are not quite released but the Beta code has been running very nicely in Tomcat 3.3.x and 4.0.x for 3 or 4 months now. Everyone that has seen it has been impressed. Does that help? Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Knutsen Jeffrey S [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:20 AM To: Tomcat Users List Subject: RE: Please help me improve my question skills (number of tomcat a pps) YES! You've hit it! I AM asking the question about how fast the car will go. At this time, I DON'T care about the type of car or engine! My question is being analyzed far too deeply by the diligent developers on this mail list. The type of responses I was hoping for would have had developers proudly boasting something like: At my company we are successfully running 17 applications in two TC instances or We are running one TC instance with four apps or We have one app. I am not interested in app type or size or anything like that. Based on the information I have seen, I should be forced to conclude that TC is not being used for any real applications, but I KNOW this can not be true - there are far too many intelligent and competent people monitoring the mail list. Unfortunately (for me), no one has yet proclaimed success. I understand that when it comes time to actually implement TC, the questions regarding OS, JVM, type of apps, etc will become VERY important. But I need to try to make some justifications before I can ever get to that point. Thanks all for all your help! -- Jeff -Original Message- From: Adrian [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 7:32 PM To: Tomcat Users List Subject: Re: Please help me improve my question skills (number of tomcat apps) Your question cannot be answered without specifying criteria. 1) OS type 2) JVM type 3) Type and Complexity of Application 4) Are you using connectors 5) Are you connecting to databases Your current question is like asking how fast and how far will a car go. I don`t care what kind of car, or engine. Adrian - Original Message - From: Knutsen Jeffrey S [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 10, 2002 9:48 AM Subject: Please help me improve my question skills (number of tomcat apps) I have submitted the following question and received no response. I know this isn't a technical problem, but I was hoping for responses from real developers. I thought it was a simple question, and have always received excellent and quick responses from the tomcat mail list in the past, so the problem must be with me or the way I am asking. Can someone please help me improve myself? Is this a stupid question? Have I perhaps asked it incorrectly? I am open and receptive to any constructive criticism available (I can take it, but maybe you could send a direct response if you want to be extremely brutal?!) All I really want to know is how many applications real developers are putting on one machine in the real world. I am just looking for an abstract number, and I am not worried about system configurations at this time. Thanks! ORIGINAL QUESTION: I am doing some Tomcat cost/benefit projections for my company. I need to determine the maximum number of applications that will run on Tomcat and still provide stable performance. I am not interested in a theoretical number at this time, just seeking information about what real developers are actually doing with real applications. At this time, I am not interested in what machine types, OSs, configurations, versions, are being used. I understand the answer to my questions will depend heavily on these issues as well as on the applications themselves. I just need to come up with a realistic number of instances/apps which are being run on a single machine by real users. I am seeking an answer to the following two questions: Number of Tomcat instances I am running on one machine: Number of individual applications I am running in all instances of Tomcat on one machine: Please feel free to respond to the mail list, or to me directly at [EMAIL PROTECTED] (if we don't want to clog the list with answers to this question). I will post a final resolution message to the mail list when I have come to some sort of conclusion. Thanks in advance for your help! -- 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: server.xml dtd
According to one of the developers (Craig McClanahan) (posted last Friday): Where can I find the DTD for web.xml? I want to make sure I have the elements in the correct order. It is in the servlet specification, which you can download from: http://java.sun.com/products/servlet/download.html You can also extract the DTDs that Tomcat uses from the servlet.jar file that is in the common/lib subdirectory -- it looks at these internal copies so that DTD validation can occur even if your server is not connected to the Internet. Craig Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Ricky Leung [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:27 AM To: Tomcat Users List Subject: server.xml dtd I can't find the dtd anywhere and the documentation area only gives the explanation and not the order of the attributes and my guess is that the ordering is a must. Could someone point me to where the dtd where server.xml uses so I can just look it up myself? Thanks, Ricky -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: server.xml dtd
Ricky - Sorry for the misinformation -- I thought they would both be in the servlet.jar. But, in looking into it further, I don't see any DTD referenced in server.xml, nor do I see one in the servlet.jar. I see doc on the Tomcat web site about all the elements in server.xml http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html. But, maybe that doesn't completely answer your question about the order of things. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Ricky Leung [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:44 AM To: Tomcat Users List Subject: RE: server.xml dtd not the DTD for web.xml but the DTD for server.xml. -Original Message- From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 1:35 PM To: Tomcat Users List Subject: RE: server.xml dtd According to one of the developers (Craig McClanahan) (posted last Friday): Where can I find the DTD for web.xml? I want to make sure I have the elements in the correct order. It is in the servlet specification, which you can download from: http://java.sun.com/products/servlet/download.html You can also extract the DTDs that Tomcat uses from the servlet.jar file that is in the common/lib subdirectory -- it looks at these internal copies so that DTD validation can occur even if your server is not connected to the Internet. Craig Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Ricky Leung [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:27 AM To: Tomcat Users List Subject: server.xml dtd I can't find the dtd anywhere and the documentation area only gives the explanation and not the order of the attributes and my guess is that the ordering is a must. Could someone point me to where the dtd where server.xml uses so I can just look it up myself? Thanks, Ricky -- 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: startup problem
The JAVA_HOME doesn't need the \bin at the end, just the path to the root of the Java installation: SET JAVA_HOME=c:\Program Files\jdk1.3 Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Sharifuddin Ahmed [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 9:41 AM To: [EMAIL PROTECTED] Subject: startup problem hello everyone i was wondering if anybody can help me.I have jdk1.3 installed in C:\program files\jdk1.3\bin In tomcat.bat i added in the environment variables SET JAVA_HOME=C=\PROGRAM FILES\jdk1.3\bin when startup at C:\jakarta-tomcat-3.2.4\bin i get the error C:\jakarta-tomcat-3.2.4\binstartup Including all jars in c:\jakarta-tomcat-3.2.4\lib in your CLASSPATH. Using CLASSPATH: c:\jakarta-tomcat-3.2.4\classes;c:\jakarta- tomcat-3.2.4\lib\ant .jar;c:\jakarta-tomcat-3.2.4\lib\classes12.jar;c:\jakarta-tomcat- 3.2.4\lib\crims on.jar;c:\jakarta-tomcat-3.2.4\lib\jasper.jar;c:\jakarta-tomcat- 3.2.4\lib\jaxp.j ar;c:\jakarta-tomcat-3.2.4\lib\servlet.jar;c:\jakarta-tomcat- 3.2.4\lib\webserver .jar;c:\jakarta-tomcat-3.2.4\lib\XALAN.JAR;c:\jakarta-tomcat- 3.2.4\lib\XERCES.JA R;C:\Program Files\Oracle\JDeveloper 3.1\jdbc\lib\oracle8.1.6\classes12.zip;%cla sspath%;C:\Program Files\jdk1.3\classes Starting Tomcat in new window The system cannot find the file C:\Program Files\jdk1.3\bin\bin\java. C:\jakarta-tomcat-3.2.4\binc: Now the startup is a big problem because its looking for 2 directories bin\bin Why is this so??? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 4 install / config
My experience with using both (Apache 1.3.x and Tomcat 3.x and 4.x with mod_jk) is that if you get the configuration right by following the docs scrupulously and aren't doing anything special (multiple hosts, etc.) it is not difficult. BUT the process is all done by tweaking configuration files, so you have to get everything EXACTLY right. I have JSPs connected to Java Beans along with some GIF, JPG, HTML and applet files. The static content is served by Apache and the JSPs are redirected to Tomcat. BTW, I'm using Ant to build and deploy to Tomcat (but not with the Manager tasks yet...) Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 10:59 AM To: Tomcat Users List Subject: Re: Tomcat 4 install / config Although if you are new to Tomcat I would suggest you work with it in stand-alone mode for a while. Several people have reported that Tomcat by itself is a fairly robust web server. You can always add Apache later without effecting your app. No sense making things more complicated from the start. As a long time tomcatter, I agree with this wholeheartedly, FWIW. fillup On 5/29/02 7:30 AM, Wagoner, Mark [EMAIL PROTECTED] wrote: There are documents on the Apache website: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html Although if you are new to Tomcat I would suggest you work with it in stand-alone mode for a while. Several people have reported that Tomcat by itself is a fairly robust web server. You can always add Apache later without effecting your app. No sense making things more complicated from the start. -Original Message- From: Eric Etkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 10:28 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4 install / config Has anyone implemented tomcat 4 to hang off the back of Apache. Apache is more industrial strength from my experience. I want to run apache, and use Tomcat to process the JSP. Eric Etkin Susquehanna Bancshares Inc. 26 North Cedar Street Lititz, PA 17543 Telephone: (717) 625-6360 Mail Code: PA-SBI (IT/DATASEC) -Original Message- From: Doug Borenstein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 10:21 AM To: Tomcat Users List Subject: Re: Tomcat 4 install / config I believe it will create a conflict if both servers are running and using the same port. If Tomcat is being run as a standalone server, it will handle static pages and .jsp. If you want to utilize apache for static pages, you will have to use a connector. the web.xml file in Tomcat should have the proper configuration statements commented out. Several lines will also need to be added to apaches httpd.conf file, depending on which connector you are using, and which module in apache(mod_jk or mod_webapp). -- 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: please fix my stupid classpath
Rich - I have NO classpath defined and am doing almost minute-by-minute builds using Ant. Here is my build.xml file as an example. Notice the tomcat-home definition at the top which probably would change and then the servlet-path element which points to all the Tomcat servlet .jar files. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Richard Diaz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 3:14 PM To: Tomcat Users List Subject: Re: please fix my stupid classpath I am using the command line (javac) to compile my java files. And now I am trying to .jar them... Rich --- Martin van den Bemt [EMAIL PROTECTED] wrote: Hi, Tomcat handles your classpath, you don't have to set that.. I even think you get some classloader issues with that.. If you need it for compiling, you should have a look at ant, who can arrange these things a lot easier.. Mvgr, Martin On Thu, 2002-05-30 at 00:08, Richard Diaz wrote: I set this up like a year ago and now that I look at it, it seems wacked. Looks like I had to add all the servlet jar files? Suggestions most welcome. I'm using Apache, Tomcat 4, Sun sdk 131 Rich SET CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program Files\Apache Tomcat 4.0\webapps\twc\Web-inf\lib;C:\Program Files\Apache Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar;C:\Program Files\Apache Tomcat 4.0\lib\jasper-runtime.jar;C:\Program Files\Apache Tomcat 4.0\lib\naming-factory.jar;C:\Program Files\Apache Tomcat 4.0\common\jasper\jaxp.jar;C:\Program Files\Apache Tomcat 4.0\jasper\jasper-compiler.jar; = __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- 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] = __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] build.xml Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: please fix my stupid classpath
Thanks Martin! Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 3:50 PM To: Tomcat Users List Subject: RE: please fix my stupid classpath !-- Note: this is a kludge until we figure out how to pass this value in -- property name=tomcat-home location=C:/Program Files/Apache Tomcat 4.0/ Checkout http://jakarta.apache.org/ant/manual/CoreTasks/property.html especially the parameter environment needs looking at ;) Mvgr, Martin On Thu, 2002-05-30 at 00:45, Whitcomb, Roger wrote: Rich - I have NO classpath defined and am doing almost minute-by-minute builds using Ant. Here is my build.xml file as an example. Notice the tomcat-home definition at the top which probably would change and then the servlet-path element which points to all the Tomcat servlet .jar files. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Richard Diaz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 3:14 PM To: Tomcat Users List Subject: Re: please fix my stupid classpath I am using the command line (javac) to compile my java files. And now I am trying to .jar them... Rich --- Martin van den Bemt [EMAIL PROTECTED] wrote: Hi, Tomcat handles your classpath, you don't have to set that.. I even think you get some classloader issues with that.. If you need it for compiling, you should have a look at ant, who can arrange these things a lot easier.. Mvgr, Martin On Thu, 2002-05-30 at 00:08, Richard Diaz wrote: I set this up like a year ago and now that I look at it, it seems wacked. Looks like I had to add all the servlet jar files? Suggestions most welcome. I'm using Apache, Tomcat 4, Sun sdk 131 Rich SET CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program Files\Apache Tomcat 4.0\webapps\twc\Web-inf\lib;C:\Program Files\Apache Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar;C:\Program Files\Apache Tomcat 4.0\lib\jasper-runtime.jar;C:\Program Files\Apache Tomcat 4.0\lib\naming-factory.jar;C:\Program Files\Apache Tomcat 4.0\common\jasper\jaxp.jar;C:\Program Files\Apache Tomcat 4.0\jasper\jasper-compiler.jar; = __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- 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] = __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- 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: http status 500 internal error when loading localhost:8080
Can you load ANY Tomcat examples or Doc? Is this the default index.jsp in the Tomcat installation? Did you set JAVA_HOME in your system environment? Is Tomcat running as a service or from the command line? I have not had problems like this on Win2k with Tomcat 4.0.3, but I was running the 1.4 JDK from Sun. If you have all the configuration right you might want to uninstall the JDK and install the 1.4 version and see what happens. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Lynne Gurney [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:34 PM To: Tomcat Users List Subject: RE: http status 500 internal error when loading localhost:8080 Tomcat 4.0 jdk1.3 -Original Message- From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 20:19 To: Tomcat Users List Subject: RE: http status 500 internal error when loading localhost:8080 What version of Tomcat are you running? And what version of the Java SDK? Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Lynne Gurney [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:38 AM To: [EMAIL PROTECTED] Subject: http status 500 internal error when loading localhost:8080 Hello all . . . Found this in the log file. Don't know what it means . . . does anyone else out there understand? 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /webdav 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /tomcat-docs 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /admin 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /manager 2002-05-23 08:55:51 NamingContextListener[/Standalone/localhost/manager]: Failed to unbind object: javax.naming.NameNotFoundException: Name users is not bound in this Context 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path -Original Message- From: Lynne Gurney [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 09:32 To: [EMAIL PROTECTED] Subject: http status 500 internal error when loading localhost:8080 Hello all I have just installed Tomcat for the first time. Sorry if this question is lame. I can't seem to find the answer when I searched the archive. I have successfully started the Tomcat server. I am running it on windows 2000. I cannot load the index.jsp file at http://localhost:8080. So I changed the port to 8088 . . . still no joy. I have been at this all day searching for a solution in the archives. Here is the error message that I am getting: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source) at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source
RE: 2 tomcat 3.2.3 instances which bind 2 IP address
What OS are you running? If *nix, then generally to access low-number ports you need root user permissions. There have been other postings to this mailing-list about this in the last few weeks. I believe that is why you are getting permission errors. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Zhu John-Y17379 [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 7:43 AM To: 'Tomcat Users List' Subject: New: 2 tomcat 3.2.3 instances which bind 2 IP address I correct the last mail's mistake. This mail is correct. Subject: 2 tomcat 3.2.3 instances which bind 2 IP address Hello, I installed 2 tomcat 3.2.3 instances which bind 2 IP address by following the Larry's instruction. The sever.xml for Tomcat 1 like: !-- Normal HTTP -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=inet value=199.5.201.51/ Parameter name=port value=80/ /Connector The sever.xml for Tomcat 2 like: !-- Normal HTTP -- Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=inet value=199.5.201.52/ Parameter name=port value=80/ /Connector when I start the server, I get the fatal exception as shown below. 2002-05-24 10:18:51 - ContextManager: Adding context Ctx( /manage ) 2002-05-24 10:18:51 - ContextManager: Adding context Ctx( /mc_download ) 2002-05-24 10:18:51 - ContextManager: Adding context Ctx( /mot_download ) 2002-05-24 10:18:51 - ContextManager: Adding context Ctx( /themes ) 2002-05-24 10:18:51 - ContextManager: Adding context Ctx( /prv ) X Inside Initlization ** X Inside Initlization ** X Inside Initlization ** X Inside Initlization ** FATAL:java.net.BindException: Permission denied java.net.BindException: Permission denied at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452) at java.net.ServerSocket.init(ServerSocket.java:170) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default ServerSocketFactory.java:103) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi nt.java:241) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav a:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Can some one tell me how to solve the problems? Thanks, John - From: Larry Isaacs Subject: RE: Running Tomcat 3.2.3 (or 4.0) on a multi-homed machine. Date: Thu, 25 Oct 2001 10:17:43 -0400 On Tomcat 3.2.3, try: Connector className=org.apache.tomcat.service.PoolTcpConnector ... Parameter name=inet value=123.123.123.123/ ... /Connector On Tomcat 3.3 (and I believe 4.x) add: address=123.123.123.123 to the connector. For Tomcat 3.3, that would be: Http10Connector port=8080 address=123.123.123.123 ... / Hope that helps. Cheers, Larry -Original Message- From: Prasanna Uppaladadium [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 3:44 PM To: [EMAIL PROTECTED] Subject: Running Tomcat 3.2.3 (or 4.0) on a multi-homed machine. Hello. Is there a way to run Tomcat 3.2.3 or 4.0 so that the server will listen on a specific host interface (IP address)? For example, my machine has two IP addresses (123.123.123.123 and 111.111.111.111). I would like to run two instances of Tomcat on port 80 each one listening on one of the interfaces respectively. I specifically don't want to use Virtual Hosting. The server.xml file on both versions of Tomcat seem to take a port parameter but not a host parameter. One way to solve this of course is to use Apache as a front for Tomcat. But I would like to use Tomcat as a standard alone web server if at all this is possible. Thanks for any help. Prasanna. --_=_NextPart_001_01C2032E.AC69A9A0
RE: [REPOST] Tomcat 3.2.3 running as a service in Win2k
Yes, I had problems with the Tomcat Service in 3.2 and 3.3, but 4.0 works very well. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Wagoner, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 12:26 PM To: 'Tomcat Users List' Subject: RE: [REPOST] Tomcat 3.2.3 running as a service in Win2k If at all possible, I would move to Tomcat 4. The installation program has a run as service option. That way it is configured for you. -Original Message- From: Evans, Sean [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 3:23 PM To: '[EMAIL PROTECTED]' Subject: [REPOST] Tomcat 3.2.3 running as a service in Win2k To all, I have been attempting to get Tomcat 3.2.3 to run a service in Win2k without any luck. The service installs but will not start and generates no error. The servlet will run standalone on the same machine and seems to be working correctly. This is the first time I have ever worked with Tomcat as the previous version of my application did not use servlets. I have gone over what scant documentation that comes with Tomcat and also what was provided by my application vendor which was also fairly thin many times and re-configured till my eyes hurt. What is the trick with this? Help Thanks in advance Sean Evans -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Please Help: HTTP Status 500 - Internal Server Error
It's because of the spaces in the path under Win98. Use the 8.3 version of the Apache Group and Apache Tomcat 4.0 folders and try again. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: VIDYASAGAR R NALLU [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 4:05 PM To: [EMAIL PROTECTED] Subject: Please Help: HTTP Status 500 - Internal Server Error Hi all, Basically i have developed a small application using JSP, Tomcat 4.0.3, j2sdk1.4.0 under win2k. It was working absolutely fine. The same application when i'm trying to run on windows 98, it is giving the following error: Note: I'm not copying whole output. These are the few lines of code to give basic idea. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:1 36) I set the PATH and CLASSPATH variables as follows in autoexec.bat: PATH=%PATH%;c:\j2sdk1.4.0\bin; JAVA_HOME=c:\j2sdk1.4.0 CATALINA_HOME=c:\Program Files\Apache Group\Apache Tomcat 4.0 TOMCAT_HOME=%CATALINA_HOME %CLASSPATH=%CLASSPATH%;c:\j2sdk1.4.0\jre\lib\tools.jar;c:\Program Files\Apache Group\Apache Tomcat 4.0\common\lib\servlet.jar I'm just wondering that whether i should include servlet.jar in the CLASSPATH or any other place. What i feel is for some reason tomcat is not loading servlet.jar. Please someone assist me in this regard. Thanks in advance Rajasree -- 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 Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
Antonio - Do you have the Java SDK installed (with the compiler)? If so, you need to set an environmental value JAVA_HOME=path to the Java SDK and restart Tomcat. The error means it can't find the Java compiler in the tools.jar file. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: SALAZAR,ANTONIO (Non-HP-Guadalajara,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:33 AM To: Tomcat distribution list (E-mail) Subject: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Hi, would some body helped me? I installed tomcat on Windows 2000, I could make it work (partialy), when I try to run the JSP samples, it shows an error message which I pasted below. It seems that the problem might be a bad configuration, but I really don´t know. Regards, Antonio Salazar Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Unknown Source) root cause java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at
RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
If it has a tools.jar under the lib directory, you're fine. BUT, you need to set JAVA_HOME in the system environment space to point to the base directory where the JDK/SDK is installed. Mine is in c:\j2sdk1.4.0 and the tools.jar is in c:\j2sdk1.4.0\lib Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: SALAZAR,ANTONIO (Non-HP-Guadalajara,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:39 AM To: 'Tomcat Users List' Subject: RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Hi Roger, No I don't, I have already installed the JDK, are both SDK or JDK the same? Thanks so much! Antonio Salazar -Original Message- From: Whitcomb, Roger [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 12:36 PM To: Tomcat Users List Subject: RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Antonio - Do you have the Java SDK installed (with the compiler)? If so, you need to set an environmental value JAVA_HOME=path to the Java SDK and restart Tomcat. The error means it can't find the Java compiler in the tools.jar file. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: SALAZAR,ANTONIO (Non-HP-Guadalajara,ex1) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:33 AM To: Tomcat distribution list (E-mail) Subject: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error Hi, would some body helped me? I installed tomcat on Windows 2000, I could make it work (partialy), when I try to run the JSP samples, it shows an error message which I pasted below. It seems that the problem might be a bad configuration, but I really don´t know. Regards, Antonio Salazar Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:475) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
RE: http status 500 internal error when loading localhost:8080
What version of Tomcat are you running? And what version of the Java SDK? Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Lynne Gurney [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:38 AM To: [EMAIL PROTECTED] Subject: http status 500 internal error when loading localhost:8080 Hello all . . . Found this in the log file. Don't know what it means . . . does anyone else out there understand? 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /webdav 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /tomcat-docs 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /admin 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path /manager 2002-05-23 08:55:51 NamingContextListener[/Standalone/localhost/manager]: Failed to unbind object: javax.naming.NameNotFoundException: Name users is not bound in this Context 2002-05-23 08:55:51 StandardHost[localhost]: Removing web application at context path -Original Message- From: Lynne Gurney [mailto:[EMAIL PROTECTED]] Sent: 23 May 2002 09:32 To: [EMAIL PROTECTED] Subject: http status 500 internal error when loading localhost:8080 Hello all I have just installed Tomcat for the first time. Sorry if this question is lame. I can't seem to find the answer when I searched the archive. I have successfully started the Tomcat server. I am running it on windows 2000. I cannot load the index.jsp file at http://localhost:8080. So I changed the port to 8088 . . . still no joy. I have been at this all day searching for a solution in the archives. Here is the error message that I am getting: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source) at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:376) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:518) at java.lang.Thread.run(Thread.java:484) root cause java.lang.NoSuchMethodError at org.apache.jasper.compiler.TldLocationsCache.processJars(Unknown Source) at org.apache.jasper.compiler.TldLocationsCache.(Unknown Source) at org.apache.jasper.EmbededServletOptions.(Unknown Source) at org.apache.jasper.servlet.JspServlet.init(Unknown Source) at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source) at
RE: ArrayBoundsException with AJP13 Connector
Who's listening on port 8009? Is it Apache or Tomcat or the mod_jk connector? Can you supply portions the changed portions of httpd.conf, server.xml and workers.properties? Normally, the Tomcat side of the AJP13 connector is listening on 8009, so trying to access this port from the browser won't make sense . . . . Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Bo Min Jiang [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:00 PM To: Tomcat Users List Subject: ArrayBoundsException with AJP13 Connector Hi, Having given up on using mod_webapp on Win2K for the time being, I decided to give the AJP13 connector a try. I believe that I configured the server.xml, httpd.conf, and workers.properties correctly, but when I try to access http://localhost:8009, Tomcat throws the following error: java.lang.ArrayIndexOutOfBoundsException at org.apache.ajp.Ajp13Packet.hexLine(Ajp13Packet.java:532) at org.apache.ajp.Ajp13Packet.dump(Ajp13Packet.java:550) at org.apache.ajp.Ajp13Packet.checkIn(Ajp13Packet.java:204) at org.apache.ajp.Ajp13.receive(Ajp13.java:479) at org.apache.ajp.Ajp13.receiveNextRequest (Ajp13.java:274) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371 ) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495) at java.lang.Thread.run(Thread.java:484) Has anyone seen this before? Any idea on how to fix this? Thanks, Bo File: ATT680730.txt -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: unable to serve static pages through apache web server (Tomca t 4.0 - Apache using AJP connector)
You also need to set forwardAll=false for ALL Listeners you have defined (for specific Contexts especially). Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Paresh Deshpande [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 6:46 AM To: Tomcat Users List Subject: RE: unable to serve static pages through apache web server (Tomca t 4.0 - Apache using AJP connector) Hi, Looks like I found out the solution myself :). To serve static pages via apache instead of tomcat, all I have to do is set the attribute forwardAll=false for ApacheConfig listener in server.xml. Listener className=org.apache.ajp.tomcat4.config.ApacheConfig forwardAll=false/ Since the flag is set to true by default and my server.xml configuration did not include this attribute, all the pages(static as well as dynamic) were served by tomcat in the tomcat-apache service mode. thanks Paresh Deshpande ( Hey Scott, once again thanks for your workaround suggestion. ) -Original Message- From: Paresh Deshpande [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 08:47 PM To: [EMAIL PROTECTED] Subject: unable to serve static pages through apache web server (Tomcat 4.0 - Apache using AJP connector) Hello, I have installed Apache web server (Apache/1.3.24 (Win32) mod_jk/1.1.0) with Tomcat as servlet engine (Apache Tomcat/4.0.3) to serve my application. I am using AJP connector to integrate tomcat with apache installation. Now regarding my problem, all my requests for static content (gifs, html files) as well as for servlets in webapp folder end up getting served by tomcat (i.e. when I type url http://localhost:8090/app1/test.html , where localhost:8090 stands for apache web server and app1 for the webapp folder for app1, I see test.html which is served by tomcat). Is it possible for apache web server to load static pages and for tomcat to serve only the servlets? Reason I want to load static pages via apache is that tomcat is case sensitive even for the static pages. If I type http://localhost:8090/app1/test.HTml , I get page not found error (and the error is served by tomcat). And in earlier versions of apache/tomcat setup, the static pages were served by apache instead of tomcat. Question is how can the page now be loaded via apache web server? Is there a way of configuring apache to serve static pages even in app1 folder / application? Or do I need to make any correction to my configuration? regards Paresh Plaese find attached : 1 server.xml 2 httpd.conf 3 auto generated mod_jk.conf server.xml configuration is as follows: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Engine className=org.apache.catalina.core.StandardEngine name=localhost appBase=c:/program files/APPBASE/ debug=4 Host name=localhost debug=4 appBase=c:/program files/APPBASE/ unpackWARs=false Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / Context path=/app1 docBase=c:/program files/APPBASE/app1 debug=4 reloadable=true/ /Host Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server *** AJP Connector related data in httpd.conf configuration is as follows : ## ## ServerName localhost ## ## ## ## ## Port 8090 ## ## ## Alias /app1 c:/program files/APPBASE/app1/ AliasMatch ^/[Aa][Pp][Pp][1]/(.*) c:/program files/APPBASE/app1/ ## AJP CONFIGURATION END LoadModule jk_module libexec/mod_jk.dll # Configure mod_jk JkWorkersFile C:/Program Files/Apache Tomcat 4.0/conf/jk/workers.properties JkLogFile C:/Program Files/Apache Tomcat 4.0/logs/mod_jk.log JkLogLevel debug JkMount /servlet/* ajp13 JkMount /app1/servlet/com.trivium.cis.* ajp13 Include C:/Program Files/Apache Tomcat 4.0/conf/auto/mod_jk.conf ## AJP CONFIGURATION END Here is auto generated mod_jk.conf file : * VirtualHost localhost ServerName localhost JkMount /app1 ajp13 JkMount /app1/* ajp13 /VirtualHost ** -- 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: I'm getting no responses to my requests for help on this list
Gary - I got this error early on and it was caused by having two Tomcat sessions going at once. Maybe the Windows service and then another instance started manually?? Look at Task Manager and see if there is already a Tomcat.exe running when you try to start it up again. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Gary Frick [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 11:43 AM To: Tomcat Users List Subject: Re: I'm getting no responses to my requests for help on this list Adrian, I'm currently running on XP Professional using JSDK 1.4.0, JRTE 1.4.0 and Tomcat 4.0.3. Is this what you are requesting? Please excuse me, but I'm new to Tomcat and JAVA. Thanks, Gary - Original Message - From: Adrian [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 2:46 PM Subject: Re: I'm getting no responses to my requests for help on this list Although , a good description of the error output , what about platform , JVM maker and version etc... - Original Message - From: Gary Frick [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 10:30 AM Subject: I'm getting no responses to my requests for help on this list Hi All, I've been working day and night trying to get Tomcat started and to get past the HTTP 500 error when trying to invoke the JSP examples. I've been combing the archives, but I'm not seeing any real solutions. What must I do and where must I go to get help? First it would be helpful to know what is going on. When I try to start Tomcat I get the following (See below. Only providing first few lines of trace). When I try //localhost/examples I can execute the servlets, but not the JSPs. On the JSPs I always get HTTP Status 500 messages. I've followed the recommendations to recheck the classpaths and environment variables (JAVA_HOME and TOMCAT_HOME), but this hasn't helped. For one thing I don't understand why port 8080 is already in use. How can I check? Thanks, Gary Catalina.start: LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:8080 LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne ctor.java:1130) at org.apache.catalina.core.StandardService.initialize(StandardService.j ava:454) at org.apache.catalina.core.StandardServer.initialize(StandardServer.jav a:553) at org.apache.catalina.startup.Catalina.start(Catalina.java:780) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j ava:950) -- 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: Tomcat-Cocoon on windows NT
I believe the web-inf directory needs to be WEB-INF even on NT (all upper case). Try renaming it and making sure all references (in .XML or .conf files) are all upper-case as well. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Gabriel Maffia [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 18, 2002 1:04 PM To: 'Tomcat Users List' Subject: Tomcat-Cocoon on windows NT Hi! I´m trying to migrate a site from a host running Unix to one running Windows NT (weird, isn´t it? :) ). Now, I think I have a problem with paths or something, because I get this error Unable to open resource: Web-inf\cocoon.properties java.lang.NullPointerException at org.apache.cocoon.Cocoon.init(Cocoon.java:131) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) . . The cocoon.poperties file looks like this: ## # Cocoon Configuration file # ## ## # IMPORTANT - YOU MUST RESTART YOUR SERVLET ENGINE WHENEVER YOU CHANGE THIS FILE # # # # This is a limitation which is fixed in Cocoon 2. # ## ## # Global Configurations # ## # Indicates whether or not Cocoon should be visible if # the requested URI equals the specified one. selfservlet.enabled = false selfservlet.uri = \Cocoon.xml # Indicates whether or not Cocoon should handle errors internally # and format the error and the exception stack trace to the client # or return the HTTP error code to the web server and let it handle it. handle.errors.internally = true # Indicates the log severity level #log.level = emergency #log.level = critical log.level = error #log.level = warning #log.level = info #log.level = debug ## # XML Parsers# ## # Apache Xerces 1.0.1+ (http://xml.apache.com/) parser = org.apache.cocoon.parser.XercesParser # SUN ProjectX TR2 (http://java.sun.com/xml/) #parser = org.apache.cocoon.parser.SunXMLParser # Indicate whether the XML file should be validated or not # this is turned off by default for faster operation. parser.validate = false ## # XSLT Transformers # ## # Apache Xalan (http://xml.apache.org/) transformer = org.apache.cocoon.transformer.XalanTransformer # James Clark's XT (http://www.jclark.com/) #transformer = org.apache.cocoon.transformer.XTTransformer ## # XML Producers # ## # For example, if you want to produce your XML template reading it from # the file system, using your producer, you should request the URI: # http://your.site.com/your_XML_file.xml?producer=file # This is the request parameter used to identify the producer in the request: # (default value is producer) producer.parameter = producer # The syntax for this is # producer.type.xxx = full.class.name # where xxx is the producer indentier used in the request producer.type.file = org.apache.cocoon.producer.ProducerFromFile # This is used in the example files producer.type.dummy = org.apache.cocoon.example.DummyProducer # When producer indication is present in the request # this configuration allows to map those requests to a particular # producer indicated here with its type. # NOTE: this type must present in the above map. producer.default = file ## # XML Processors # ## # These are used when the ?cocoon-process type=xxx? PI is present. # If no PI of that type is present, no processing is performed. # The syntax for this is # processor.type.xxx = full.class.name # XSL Transformations (XSLT) processor.type.xslt = org.apache.cocoon.processor.xslt.XSLTProcessor # SQL Processor processor.type.sql = org.apache.cocoon.processor.sql.SQLProcessor # LDAP Processor # NOTE: you need to have the SUN JDNI API (jndi.jar) in your classpath # in order for this processor to work. Check the FAQ for more information. #processor.type.ldap =
RE: JVM Bind error
The JVM Bind means that a socket that the old class was bound to is still open and the new version of the class is trying to open a socket on the same port and can't. Is there a TCP/IP listener in your class?? You might need to put a means of shutdown into the class so it will cleanly close any open sockets before you try to reload it. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: kelly, Burrowa [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 12, 2002 10:14 PM To: Tomcat Users List Subject: Re: JVM Bind error During runtime when I change a class file, tomcat 4.0.3 is supposed to reload that class(due to reloadable=true in server.xml). But instead, I get some JVM Bind error. To be more specific, the error is: WebappClassLoader: Resource '/WEB-INF/classes/TestCC.class' was modified; Date is now: Mon May 13 10:46:56 IST 2002 Was: Mon May 13 10:32:40 IST 2002 java.net.BindException: Address in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:82) at TestServer.startServer(TestServer.java:22) at TestRun.run(TestRun.java:45) at java.lang.Thread.run(Thread.java:484) Cannot start engine: Address in use: JVM_Bind Any idea about whats going wrong here? __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- 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: Followed jndi-howto but no go
Is it as simple as putting a jsp:useBean id=... scope=... class=MyBean/ into your JSP page? Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 08, 2002 8:16 PM To: Tomcat Users List Subject: Re: Followed jndi-howto but no go On Wed, 8 May 2002, Anthony Martin wrote: Date: Wed, 8 May 2002 13:17:00 -0700 From: Anthony Martin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Followed jndi-howto but no go I'm trying to understand JNDI in relation to Tomcat 4.0.4. I read the how-to on Jakarta http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html, but I must have missed some other pre-requisite. Specifically, I went to section called Generic JavaBean Resources in the how-to and followed the steps. I created a JavaBean class called MyBean. Then I declared my Resource Requirement in web.xml. Then, I coded my application. Last, I configured Tomcat's Resource Factory. When I tried it, I got the following stack trace (partial shown): javax.servlet.ServletException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:463) at org.apache.jsp.Jsp1$jsp._jspService(Jsp1$jsp.java:73) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) . . . Any suggestions? It would be helpful if you could post the JavaBean class you created, the JSP page you are trying this from, and the server.xml and web.xml settings you actually used (or send them to me privately). Is that possible? Anthony Craig -- 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: RE : Frameset problem
What OS? I have been using FRAMESET with multiple JSPs (including some that define APPLETS) for a while with no problems. But I have been using mod_jk (this is on Win NT and Win 2K) to connect to Apache (1.3.23 and 1.3.24). Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Vincent Lambert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 8:35 AM To: 'Tomcat Users List' Subject: RE : Frameset problem Apache is not responding any more... -Message d'origine- De : Abraham Fathman [mailto:[EMAIL PROTECTED]] Envoye : mardi 7 mai 2002 16:31 A : 'Tomcat Users List' Objet : RE: Frameset problem What is the problem that you are having? I had a problem in a similar context with sessions. This is because the first url I would goto was domain.com and then I would get redirected to server.domain.com... Abe -Original Message- From: Vincent Lambert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 8:11 AM To: 'Tomcat Users List' Subject: Frameset problem Hi, I am using TC 4.0.3 with JDK 1.4 connected to apache with webapp connector. Every thing works find except when i call two or more JSP within a frameset ! Did someone experience the same problem and how can I fixe it. Thanks in advance, Regards, Vince PS : My files... httpd.conf : VirtualHost 192.10.200.65 ServerName www.test6.vla DocumentRoot C:\dev\projets\FrameSet WebAppConnection warpTest6 warp localhost:8008 WebAppDeploy test5 warpTest6 /webapp /VirtualHost server.xml: Host name =www.test6.vla Context path=/webapp docBase=C:\dev\projets\FrameSet\webapp / Logger className=org.apache.catalina.logger.FileLogger prefix=test6. siffix=.out timestamp=true/ /Host index.html: frameset rows=20%,* frame name=menu src=/page_0.html/ frameset cols=50%,50% frame name=menu src=/webapp/jsp/jsp_1.jsp/ frame name=menu src=/webapp/jsp/jsp_2.jsp/ /frameset /frameset -- 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: Tomcat 4.0.2 and JDK1.4
I have been running both Tomcat 4.0.2 and 4.0.3 with Sun JDK 1.4 on Win NT 4.0 and Win 2000 (not heavy loads, but constantly) for about a month now also with no problems. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Joseph Molnar [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 11:04 AM To: Tomcat Users List Subject: Re: Tomcat 4.0.2 and JDK1.4 Not sure about 4.0.2, but I am using 4.0.3 with JDK 1.4 and haven't had any problems thus far (been running that config for about a month). Joseph Molnar http://www.codesta.com/ - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 02, 2002 10:22 AM Subject: Tomcat 4.0.2 and JDK1.4 In tomcat 4.0.2-b2 release note, it said tomcat has issues with Jdk1.4 beta3. I would like to know if Tomcat 4.0.2 works with the Jdk1.4 final release? Thanks. - Tomcat 4.0 and Sun JDK 1.4 beta 3: - Some unpredictable classloading behavior has been reported when Tomcat is used with Sun JDK 1.4. For this reason, it is recommended to use this release of Tomcat with Sun JDK 1.3.1. __ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: OutofMemoryError
Matthew - If you're really running 3.1.1 of Tomcat, I would upgrade to 3.3.x or 4.0 -- the 3.1 series is pretty out-of-date and nobody is doing development on it anymore. Wouldn't be surprised if there are memory leaks and such . . . . See the text out on http://jakarta.apache.org/tomcat about release versions. Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 9:08 AM To: [EMAIL PROTECTED] Subject: OutofMemoryError Hello List. I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql 3.23.43 I am occasionally seeing tomcat go postal with the following errors: Exception in thread CompileThread0 java.lang.OutOfMemoryError: requested 32760 bytes Another exception has been detected while we were handling last error. No information available. Please check ERROR REPORT FILE for further information, if there is any. Good bye. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: Another exception has been detected while we were handling last error. Dumping information about last error: ERROR REPORT FILE = (N/A) PC= 0x0x419852cb SIGNAL= 11 FUNCTION NAME = (N/A) LIBRARY NAME = (N/A) Please check ERROR REPORT FILE for further information, if there is any. Good bye. Any thoughts on what might be the cause? There is nothing in the log files to tell me more than this, which gets dumped to the console. -Thanks! -- Matthew Boeckman(816) 777-2160 Manager - Systems Integration Saepio Technologies == == ...Many say that DOS is the dark side, but actually UNIX is more like the dark side: It's less likely to find the one way to destroy your incredibly powerful machine, and more likely to make upper management choke. -Lore Sjoberg -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat deployment
When I have done this, I shutdown Tomcat, deleted the directory and restarted Tomcat again. This worked fine. But, I believe there is a way with the Manager app that you can do it, and I believe there is a setting in the server.xml that will enable automatic updates (at the expense of extra checking on every access to see if the file is new). So, I would search the Tomcat docs . . . . Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: Nathan Coast [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 11:50 PM To: Tomcat Users List Subject: Re: tomcat deployment Thanks, It seems you are looking for a difficult way. I think the easiest way would be having some ant targets that put your war files in TOMCAT_HOME/webapps. Don't forget to have unpackWARs to be true in the Host element (in server.xml). does this work for updates to the war file? If I update the war file 10 times, will re-copying the file to the webapps directory re-deploy the webapp? Nathan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: server.xml question
Is it as simple as you misspelled suffix? Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: rainer jünger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 9:48 AM To: Tomcat Users List Subject: server.xml question Hi, I asked the same question some hours ago already but no one responded. Is my question so difficult or can no one understand it ??? We would like to have a log directory for every virtual host running on our box. Therfore we were setting up the Logger/ tag within the server.xml file to the following attributes: Logger className=org.apache.catalina.logger.FileLogger directory=/home/wwa-m/public_html/docroot/WEB-INF/log/ prefix=wwa-m. sufix =.log timestamp=true/ And now the problem: the logs are not being writen to the configured directory, even though the directory exist!! any suggestions?? R. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: server.xml question
Here are some suggestions: - Are the log files being written ANYWHERE? Or not at all? - What if you use a relative path (such as logs)? - Are the permissions set correctly for your directory? - What if you DON'T use the trailing / on the directory name? Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: rainer jünger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 10:49 AM To: Tomcat Users List Subject: Re: server.xml question thanks Roger, well the misspelling was happend only in the email. In the server.xml it is spelled correctly... rainer jünger Is it as simple as you misspelled suffix? Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: rainer jünger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 9:48 AM To: Tomcat Users List Subject: server.xml question Hi, I asked the same question some hours ago already but no one responded. Is my question so difficult or can no one understand it ??? We would like to have a log directory for every virtual host running on our box. Therfore we were setting up the Logger/ tag within the server.xml file to the following attributes: Logger className=org.apache.catalina.logger.FileLogger directory=/home/wwa-m/public_html/docroot/WEB-INF/log/ prefix=wwa-m. sufix =.log timestamp=true/ And now the problem: the logs are not being writen to the configured directory, even though the directory exist!! any suggestions?? R. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: server.xml question
Depends on exactly what level you defined Logger at. If defined at the Engine level, you will get very few messages (mostly startup and shutdown of the servlet container) (normally in 'catalina.log.xxx.txt' files): 2002-04-01 22:28:37 Ajp13Processor[8009][4] Stopping background thread 2002-04-01 22:28:37 Ajp13Processor[8009][3] Stopping background thread 2002-04-01 22:28:37 Ajp13Processor[8009][2] Stopping background thread 2002-04-01 22:28:37 Ajp13Processor[8009][1] Stopping background thread 2002-04-01 22:28:37 Ajp13Processor[8009][0] Stopping background thread 2002-04-01 22:28:37 Ajp13Connector[8009] Stopping background thread 2002-04-01 22:28:53 HttpConnector Opening server socket on all host IP addresses 2002-04-01 22:29:12 HttpConnector[8080] Starting background thread 2002-04-01 22:29:12 HttpProcessor[8080][0] Starting background thread 2002-04-01 22:29:12 HttpProcessor[8080][1] Starting background thread 2002-04-01 22:29:12 HttpProcessor[8080][2] Starting background thread However, if you define the Logger at the Host level, then you get MUCH more (every access to that host) (normally in 'hostname_log.xxx.txt' files): 127.0.0.1 - - [26/Mar/2002:09:23:51 -0800] GET /login.jsp HTTP/1.1 200 4406 127.0.0.1 - - [26/Mar/2002:09:23:51 -0800] GET /testit.jpg HTTP/1.1 304 - 127.0.0.1 - - [26/Mar/2002:09:23:51 -0800] GET /testit2.jpg HTTP/1.1 304 - 127.0.0.1 - - [26/Mar/2002:09:23:53 -0800] GET /tomcat-power.gif HTTP/1.1 304 - The default server.xml should have both levels of Logger defined in there. Look at all the definitions . . . . Roger Whitcomb Computer Associates Senior Software Engineer Development Phone: +1 408 965 8653 FAX: +1 408 965 8805 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -Original Message- From: rainer jünger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 11:52 AM To: Tomcat Users List Subject: Re: server.xml question Hi Roger, - Are the permissions set correctly for your directory? that was the reason (stupid me!) chmod 777 ... solved the problem is it normal that there are only very view infos being writen in?? I thougt it is also the access log and the error log? Sofar there are only infos concerning starting and stopping the container (of course that doesn't proove weather errors are logged or not!) thanks, rainer -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]