Re: Newbie question - Tomcat 5.0 and external Javascript files
You have to specify the full path, this should not work under any of the webservers. DarekC On Wed, 2005-10-05 at 08:03, Pigott, Paul wrote: Greetings, I'm having problems executing functions in an external javascript file. It's like the .js file can't be found. I was able to do this under Tomcat 4.0 but for some reason it's not working under Tomcat 5.0. The folder under webapps is /EdiHost and I've got another folder, /js, under /EdiHost. In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag. Any ideas anyone? TIA, Paul CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question - Tomcat 5.0 and external Javascript files
You may be able to use this instead: src=js/EdiHost.js IDEA will get pissed about it, but it should work (I know it does for images). It is nice, because you can rename your context, and not break your webapp. :) Larry On 10/5/05, Pigott, Paul [EMAIL PROTECTED] wrote: Greetings, I'm having problems executing functions in an external javascript file. It's like the .js file can't be found. I was able to do this under Tomcat 4.0 but for some reason it's not working under Tomcat 5.0. The folder under webapps is /EdiHost and I've got another folder, /js, under /EdiHost. In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag. Any ideas anyone? TIA, Paul CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question - Tomcat 5.0 and external Javascript files
Larry Meadors wrote: You may be able to use this instead: src=js/EdiHost.js It is nice, because you can rename your context, and not break your webapp. :) Or, if you're using JSTL, use: src=c:url value=/js/EditHost.js/ which has the added advantage of *not* being a relative path that'll only work if referenced from the base directory of the webapp, but *will* work regardless of changes to the webapp name... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question - Tomcat 5.0 and external Javascript files
Yeah, i just hate the tag inatag / / stuff. Messy. ;-) Larry On 10/5/05, Hassan Schroeder [EMAIL PROTECTED] wrote: Larry Meadors wrote: You may be able to use this instead: src=js/EdiHost.js It is nice, because you can rename your context, and not break your webapp. :) Or, if you're using JSTL, use: src=c:url value=/js/EditHost.js/ which has the added advantage of *not* being a relative path that'll only work if referenced from the base directory of the webapp, but *will* work regardless of changes to the webapp name... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question. /manager only gives the directory listing
Jimi, try /manager/html PJ [EMAIL PROTECTED] wrote: Hi all, I have been using Tomcat for some time now, but I still feel like a newbie in most regards. At least when it comes to configuring it. Tomcat has been working great, together with Apache 2, for several months now. But now, I find myself wanting to use the manager webapp for the first time. But it doesn't work. When I try to go to /manager all I get from Tomcat is the directory listing of the manager-folder. I know this request is handled by Tomcat, because I have the required JKMount's in the Apache httpd.conf file, and at the bottom of the directory listing it says Apache Tomcat/5.5.9. I have checked the archive for this maining list, and I have checked the documentation and searched on google, but I can't find any information on how to set up the default manager. All they say is that it is installed by default. And I'm sure that it worked at the beginning, but then I must have made something that messed it up, but since I haven't used it at all I have no idea when, how and why it got messed up. Is there a simply checklist that I can go through step by step, to check that my configuration is as it should be? Or maybe some kind soul could take a look at my configuration files and figure out what I'm doing wrong? Some info on my system: --- Windows XP Apache 2.0.54 (as service) Apache Tomcat 5.5.9 (as service) docBase changed so that my only webapp (located at c:\community) is reached when i type localhost:8080/ (se context.xml in configuration files below) the manager webapp is untouched, in Tomcat5.5\server\webapps\manager The configuration files can be found at: http://www.hullegard.com/tomcat/ The community folder is located under c:\ The httpd.conf is from the apache conf folder. All other files are from the Tomcat5.5\conf folder Anyone who can help me with this? Regards /Jimi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question. /manager only gives the directory listing
Ah, it worked like a charm! Thanks a bunch, Peter! :) /Jimi Quoting Peter Johnson [EMAIL PROTECTED]: Jimi, try /manager/html [EMAIL PROTECTED] wrote: Hi all, I have been using Tomcat for some time now, but I still feel like a newbie in most regards. At least when it comes to configuring it. Tomcat has been working great, together with Apache 2, for several months now. But now, I find myself wanting to use the manager webapp for the first time. But it doesn't work. When I try to go to /manager all I get from Tomcat is the directory listing of the manager-folder. I know this request is handled by Tomcat, because I have the required JKMount's in the Apache httpd.conf file, and at the bottom of the directory listing it says Apache Tomcat/5.5.9. [SNIP] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question: Tomcat/Apache settings
Have a look at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html for an overview of the different type of connectors. You need the web server type rather than the HTTP type. You should use the mod_jk with Apache. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html You should use CoyoteConnector with JkCoyoteHandler for Tomcat. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyotejk.html If you will only be accessing Tomcat through Apache, you can remove the HTTP connector on port 8080 but I would leave this until everything else is working. HTH, Mark Hong wu wrote: Hi, I have apache 1.3.x and tomcat 4.x installed on XP machine. apache is running at port 80 and tomcat running on port 8080. it seems that tomcat has its own web server, even i stopped the apache server process, tomcat was able to run on its own. my question is: how to integrate apache and tomcat? i think a simpler form to ask is: how to setup apache/tomcat so that apache serves the HTML/SHTML requests, and tomcat serving JSP/Servlets, while both running on port 80? please forgive me if this question has been posted and replied in the past, i am new to the list... thanks! hong - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
Am Donnerstag, 5. Mai 2005 20:30 schrieb Mário Gamito: I've just installed Tomcat 5.5 for Linux and so far so good, except... that i've installed also Tomcat Administration module (not the Manager one) and it asks me for a login and a password and i can't find how to define it. I see a file named admin.xml in $CATALINA_HOME/conf/Catalina/localhost saying to uncoment the valve and another two files, but i don't know how to set the login and the password. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
Hi Mário, Am Donnerstag, 5. Mai 2005 20:30 schrieb Mário Gamito: Hi, Sorry for this newbie question :( I've just installed Tomcat 5.5 for Linux and so far so good, except... that i've installed also Tomcat Administration module (not the Manager one) and it asks me for a login and a password and i can't find how to define it. I see a file named admin.xml in $CATALINA_HOME/conf/Catalina/localhost saying to uncoment the valve and another two files, but i don't know how to set the login and the password. you can do that in the following file: $CATALINA_HOME/conf/tomcat-users.xml For using the Tomcat Manager and the Tomcat Administration, you need two set up two additional roles there: manager admin Then you have to assign these roles to a user you would like to use for the login. Best wishes Lutz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
See - http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access From what I remember, admin access follows that same rules as manager app access, so the instructions on that page are the same except the role should be admin not manager. Mário Gamito wrote: Hi, Sorry for this newbie question :( I've just installed Tomcat 5.5 for Linux and so far so good, except... that i've installed also Tomcat Administration module (not the Manager one) and it asks me for a login and a password and i can't find how to define it. I see a file named admin.xml in $CATALINA_HOME/conf/Catalina/localhost saying to uncoment the valve and another two files, but i don't know how to set the login and the password. Any help would be apreciated. Warm Regards, Mário Gamito - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Question: conext.xml
Bob, Welcome, fellow newbie! I struggled with this one also. It turns out that the context element for a root directory MUST be nested inside the host element in server.xml. The relevant documentation reads: You may define as many Context elements as you wish. Each such Context MUST have a unique context path, which is defined by the path attribute. In addition, you MUST define a Context with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path. Fritz -Original Message- From: Bob Bronson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 12:14 PM To: tomcat-user@jakarta.apache.org Subject: Newbie Question: conext.xml Hello everyone, [snip...] Let me explain what I want to do. I'm hoping someone could tell me where I'm going wrong, in a polite way. :) I'm trying to use TC 5.5.9 on Win 2k. I want the document base directory (the Context's docBase) for my default web application to be something other than ROOT. Please don't ask, why?, this is a simplification of a different but equivalent problem. [snip...] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question: conext.xml
Hello Fritz, Thank you for the welcome. I have comments below - Original Message - From: Fritz Schneider [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org; 'Bob Bronson' [EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 3:22 PM Subject: RE: Newbie Question: conext.xml Bob, Welcome, fellow newbie! I struggled with this one also. It turns out that the context element for a root directory MUST be nested inside the host element in server.xml. The relevant documentation reads: I don't think this is right. First, here's another quote form the TC docs: In addition to nesting Context elements inside a Host element, you can also store them... then there are 4 bullet points listed which I refered to in my original posting. The TC goes on to say: Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file. So, it looks like it should NOT be in the server.xml. And, I was actually able to get it working without putting it in server.xml. You may define as many Context elements as you wish. Each such Context MUST have a unique context path, which is defined by the path attribute. In addition, you MUST define a Context with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path. yes, I knowthis quote preceeds the four bullet points. I must have read this a dozen times. Fritz -Original Message- From: Bob Bronson [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 12:14 PM To: tomcat-user@jakarta.apache.org Subject: Newbie Question: conext.xml Hello everyone, [snip...] Let me explain what I want to do. I'm hoping someone could tell me where I'm going wrong, in a polite way. :) I'm trying to use TC 5.5.9 on Win 2k. I want the document base directory (the Context's docBase) for my default web application to be something other than ROOT. Please don't ask, why?, this is a simplification of a different but equivalent problem. [snip...] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question: conext.xml
Fritz Schneider wrote: Welcome, fellow newbie! I struggled with this one also. It turns out that the context element for a root directory MUST be nested inside the host element in server.xml. No, no, no. That's simply not true. I have multiple installations of 5.5.x systems running and not one has a Context element inside the server.xml. The dead simplest approach is to put ROOT.xml as $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml Within that ROOT.xml file you can specify the docbase as ROOT or WhAtTheHeyEver or any appropriate arbitrary path... The name of the file is a Tomcat convention; the docbase *path* you specify is entirely up to you. -Original Message- From: Bob Bronson [mailto:[EMAIL PROTECTED] I want the document base directory (the Context's docBase) for my default web application to be something other than ROOT. Please don't ask, why?, this is a simplification of a different but equivalent problem. -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question: conext.xml
Hassan, I know you are 100% correct... But using the $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml approach is only one of 4 documented approaches (and the only approach I was able to get working). Why don't the other three work? And why can't I name the file context.xml, as the documentation indicates. - Original Message - From: Hassan Schroeder [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Cc: 'Bob Bronson' [EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 3:46 PM Subject: Re: Newbie Question: conext.xml Fritz Schneider wrote: Welcome, fellow newbie! I struggled with this one also. It turns out that the context element for a root directory MUST be nested inside the host element in server.xml. No, no, no. That's simply not true. I have multiple installations of 5.5.x systems running and not one has a Context element inside the server.xml. The dead simplest approach is to put ROOT.xml as $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml Within that ROOT.xml file you can specify the docbase as ROOT or WhAtTheHeyEver or any appropriate arbitrary path... The name of the file is a Tomcat convention; the docbase *path* you specify is entirely up to you. -Original Message- From: Bob Bronson [mailto:[EMAIL PROTECTED] I want the document base directory (the Context's docBase) for my default web application to be something other than ROOT. Please don't ask, why?, this is a simplification of a different but equivalent problem. -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question: conext.xml
Bob Bronson wrote: But using the $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml approach is only one of 4 documented approaches (and the only approach I was able to get working). Why don't the other three work? Well, I'm absolutely certain that this: 4: {appbase}/{docbase}/META-INF/context.xml :: works just fine -- I use that approach sometimes. Both of these: 1: $CATALINA_HOME/conf/context.xml 2: $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default :: I've never tried, so I'd have to fiddle around a bit. But since the other two work fine, and to me represent the optimal approach to managing my webapps, I'm not overly motivated :-) As always, YMMV! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question on Database and struts
In the controller, read form values, query the database, store result in Collection and save it to session or request-scope. On jsp, use iterate tag to display elements in Collection. -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: December 23, 2004 10:25 PM To: tomcat-user@jakarta.apache.org Subject: Newbie question on Database and struts I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. !DSPAM:41cb8bf8315651569845034!
Re: Newbie question on Database and struts
This isn't exactly answering your question but... Check out iBATIS SQL Maps: http://www.ibatis.com/common/sqlmaps.html I won't go into how to use it. They have an excellent manual and tutorial. It is ridiculously easy to learn and use. Especially with Struts. Basically, you set up a query in an XML file, make a call, and it will return the results as a bean you've created or a list of beans. My description, I'm sure, does not do this software justice. It has numerous features. Check it out. You'll never look back. Dustin --- Manisha Sathe [EMAIL PROTECTED] wrote: I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question on Database and struts
I tried SQLMaps. It is wonderful but is there any easy manual (except PDF that come with ibatis) available on net? Amit Gupta -Original Message- From: Dustin [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 1:28 AM To: Tomcat Users List Subject: Re: Newbie question on Database and struts This isn't exactly answering your question but... Check out iBATIS SQL Maps: http://www.ibatis.com/common/sqlmaps.html I won't go into how to use it. They have an excellent manual and tutorial. It is ridiculously easy to learn and use. Especially with Struts. Basically, you set up a query in an XML file, make a call, and it will return the results as a bean you've created or a list of beans. My description, I'm sure, does not do this software justice. It has numerous features. Check it out. You'll never look back. Dustin --- Manisha Sathe [EMAIL PROTECTED] wrote: I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question on Database and struts
Hi Manisa, I'm not sure what you mean by 'create array of databeans'. Your result set contains multiple rows, your bean should be able to return the entire result set. Why do you need an array of a bean? -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 7:25 PM To: tomcat-user@jakarta.apache.org Subject: Newbie question on Database and struts I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question on Database and struts
Hi Manisha, I was also struggling with problem similar to you. I came you with following: package forklifts; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForm; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import java.util.Collection; import java.sql.*; public final class registrationAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { javax.sql.DataSource dataSource; Connection conn; try { dataSource = getDataSource(request); conn = dataSource.getConnection(); Statement stmt = null; ResultSet rs = null; String sqlquery=select * from my_table where username='+request.getParameter(username)+'; stmt = conn.createStatement(); rs=stmt.executeQuery(sqlquery); if(rs.next()) { request.setAttribute(msg,h5 class=errorUser with username '+request.getParameter(username)+' is already registered. Try another username./h5 ); if(rs!=null) rs.close(); if(stmt!=null) stmt.close(); if(conn!=null) conn.close(); return mapping.findForward(success); } else { sqlquery=Insert into my_table set username='+request.getParameter(username)+',password='+request.getParameter(password)+',FirstName='+request.getParameter(FirstName)+',LastName='+request.getParameter(LastName)+',Address='+request.getParameter(Address)+',Street='+request.getParameter(Street)+',City='+request.getParameter(City)+',State='+request.getParameter(State)+',Country='+request.getParameter(Country)+',Zip='+request.getParameter(Zip)+',Email='+request.getParameter(Email)+',Phone1='+request.getParameter(Phone)+',title='+request.getParameter(title)+',company='+request.getParameter(company)+',website='+request.getParameter(website)+',fax='+request.getParameter(fax)+'; try { stmt = conn.createStatement(); stmt.executeUpdate(sqlquery); request.setAttribute(msg,h5 class=successYour account created successfully/h5); if(rs!=null) rs.close(); if(stmt!=null) stmt.close(); if(conn!=null) conn.close(); return mapping.findForward(success);} catch(SQLException ex1) { request.setAttribute(msg,h5 class=errorSorry! regsitration failed/h5 ); return mapping.findForward(sqlexception); } } } catch(SQLException ex) { request.setAttribute(msg,h5 class=errorSorry! regsitration failed/h5 ); return mapping.findForward(sqlexception); } } } I hope above code will give you sufficient idea you to pass data to JSP page. -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 8:55 AM To: tomcat-user@jakarta.apache.org Subject: Newbie question on Database and struts I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
RE: Newbie question on Database and struts
Following code fetch records from database table , populate them to hastable and create vector of these hashtables . Then we pass this vector to JSP through request attribute. Action class import org.apache.struts.action.*; import javax.servlet.http.*; import java.sql.*; import java.util.*; import org.apache.commons.beanutils.*; public class viewWsForkliftsAction extends org.apache.struts.action.Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { HttpSession session=request.getSession(); if(session.getAttribute(username)!=null) { request.setAttribute(username, session.getAttribute(username)); } javax.sql.DataSource dataSource; Connection conn; try { dataSource = getDataSource(request); conn = dataSource.getConnection(); Statement stmt = null; ResultSet rs = null; String sqlquery=select * from my_table; sqlquery=sqlquery+and dcc_forklifts.status=\Active\; stmt = conn.createStatement(); rs= stmt.executeQuery(sqlquery); ResultSetMetaData rsmd = rs.getMetaData(); int numberOfColumns = rsmd.getColumnCount(); Vector rows=new Vector(); while(rs.next()) { rs=stmt.getResultSet(); Hashtable fields=new Hashtable(); for(int j=1; j=numberOfColumns;j++) { fields.put(rsmd.getColumnName(j),rs.getString(rsmd.getColumnName(j))); } rows.add(fields); } request.setAttribute(rows,rows); conn.close(); return mapping.findForward(request.getParameter(page)); } catch (SQLException sqle) { request.setAttribute(val,sqle); return mapping.findForward(sqlexception); } } } In JSP page , I access this vector as Vector rows =(Vector)request.getAttribute(rows); int sz=rows.size(); for(int i=0;i sz;i++) { Hashtable row=(Hashtable)rows.get(i); ... } With regards, Amit Gupta -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 8:55 AM To: tomcat-user@jakarta.apache.org Subject: Newbie question on Database and struts I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
RE: Newbie question on Database and struts
what i mean to array of databeans means - I have created employee data bean and for each row of result set i am creating one object of bean. So in a way i will get array of databeans. regards Manisha John Najarian [EMAIL PROTECTED] wrote: Hi Manisa, I'm not sure what you mean by 'create array of databeans'. Your result set contains multiple rows, your bean should be able to return the entire result set. Why do you need an array of a bean? -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 7:25 PM To: tomcat-user@jakarta.apache.org Subject: Newbie question on Database and struts I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? All your favorites on one personal page Try My Yahoo!
Re: Newbie question on Database and struts
You dont need an array of data beans. Store your data bean in an ArrayList or in a Vector. e.g ArrayList empList = new ArrayList(); Employee emp = null; while(rst.next()) { emp = new Employee(); /* Fill the employee object with the records from the database. */ empList.add(emp); } return empList; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question on Database and struts
Hi Manisha, this looks very simple thing in action class you can just set that array of databean in request attribute and get it back on jsp like: req.setAttribute(databeanarray,databeanarray); cheers Manish -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 9:40 AM To: Tomcat Users List Subject: RE: Newbie question on Database and struts what i mean to array of databeans means - I have created employee data bean and for each row of result set i am creating one object of bean. So in a way i will get array of databeans. regards Manisha John Najarian [EMAIL PROTECTED] wrote: Hi Manisa, I'm not sure what you mean by 'create array of databeans'. Your result set contains multiple rows, your bean should be able to return the entire result set. Why do you need an array of a bean? -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 7:25 PM To: tomcat-user@jakarta.apache.org Subject: Newbie question on Database and struts I am new to struts (even new to java also) I have one form developed in struts. What i want to do is depending on form values, run sql qry in Action form, get result set and display it on JSP. I have created a databean for the results. But with result set - How to create array of databeans ? and how to post it on JSP ? if anybody can pass me the samples pls would be of great help regards Manisha - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? All your favorites on one personal page - Try My Yahoo! *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question
Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question
Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question
Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it seems like it goes through the entire deployment in the conventional manner. But instead of staying open, that second DOS window eventually closes. And then when I try to request pages against the second Tomcat instance I don't get anything back in the browser. The Sakai instance still serves pages correctly. However, if the Sakai Tomcat server is turned off I can turn on my other instance and serve pages from it. Is there a way to make both Tomcat engines run simultaneously without conflict? Cheers, Luke Fernandez [EMAIL PROTECTED] 10/28/2004 11:11:05 AM Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question
you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat, call catalina.bat run to have the windows stay the same and not shutdown on you FIlip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it seems like it goes through the entire deployment in the conventional manner. But instead of staying open, that second DOS window eventually closes. And then when I try to request pages against the second Tomcat instance I don't get anything back in the browser. The Sakai instance still serves pages correctly. However, if the Sakai Tomcat server is turned off I can turn on my other instance and serve pages from it. Is there a way to make both Tomcat engines run simultaneously without conflict? Cheers, Luke Fernandez [EMAIL PROTECTED] 10/28/2004 11:11:05 AM Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question
Ok I'll research that. Any chance you could give me an example of how to write this in the server.xml? I've got the following webapp folder structure. balancer jsp-examples ROOT_OLD sakai-chef-tool sakai-dav sakai-embedded sakai-framework-component sakai-james sakai-legacy-component sakai-provider sakai-shared sakai-z-last servlets-examples TomProj The Sakai app should continue to be served (as it is currently) using the 8080 port. I'd like the TomProj app to be served from port 80. If you feel like I should figure this out myself maybe point me to a clear tutorial? Cheers, Luke [EMAIL PROTECTED] 10/28/2004 10:23:13 AM Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question
There would be port conflict even though the Sakai Tomcat app serves from port 8080 while my Tomcat instance serves from port 80? Luke [EMAIL PROTECTED] 10/28/2004 12:28:46 PM you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat, call catalina.bat run to have the windows stay the same and not shutdown on you FIlip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it seems like it goes through the entire deployment in the conventional manner. But instead of staying open, that second DOS window eventually closes. And then when I try to request pages against the second Tomcat instance I don't get anything back in the browser. The Sakai instance still serves pages correctly. However, if the Sakai Tomcat server is turned off I can turn on my other instance and serve pages from it. Is there a way to make both Tomcat engines run simultaneously without conflict? Cheers, Luke Fernandez [EMAIL PROTECTED] 10/28/2004 11:11:05 AM Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question
did you look at the other connectors? catalina.bat run - will tell you the message, try that Filip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:52 PM To: [EMAIL PROTECTED] Subject: RE: newbie question There would be port conflict even though the Sakai Tomcat app serves from port 8080 while my Tomcat instance serves from port 80? Luke [EMAIL PROTECTED] 10/28/2004 12:28:46 PM you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat, call catalina.bat run to have the windows stay the same and not shutdown on you FIlip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it seems like it goes through the entire deployment in the conventional manner. But instead of staying open, that second DOS window eventually closes. And then when I try to request pages against the second Tomcat instance I don't get anything back in the browser. The Sakai instance still serves pages correctly. However, if the Sakai Tomcat server is turned off I can turn on my other instance and serve pages from it. Is there a way to make both Tomcat engines run simultaneously without conflict? Cheers, Luke Fernandez [EMAIL PROTECTED] 10/28/2004 11:11:05 AM Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question
at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:318) at java.net.ServerSocket.init(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:496 ) at org.apache.catalina.startup.Catalina.await(Catalina.java:619) at org.apache.catalina.startup.Catalina.start(Catalina.java:579) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) Oct 28, 2004 12:59:07 PM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 C:\tomcat\jakarta-tomcat-5.0.28\bin Any ideas? Luke [EMAIL PROTECTED] 10/28/2004 12:28:46 PM you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat, call catalina.bat run to have the windows stay the same and not shutdown on you FIlip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it seems like it goes through the entire deployment in the conventional manner. But instead of staying open, that second DOS window eventually closes. And then when I try to request pages against the second Tomcat instance I don't get anything back in the browser. The Sakai instance still serves pages correctly. However, if the Sakai Tomcat server is turned off I can turn on my other instance and serve pages from it. Is there a way to make both Tomcat engines run simultaneously without conflict? Cheers, Luke Fernandez [EMAIL PROTECTED] 10/28/2004 11:11:05 AM Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question
you can have them run at the same time but you need to configure them to run on separate ports. for your standard TC 5.0.28 the file to edit is CATALINA_HOME/conf/server.xml - see the docs at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html for an explanation of how server.xml works (click links in the left margin to access further pages) -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Thursday 28 October 2004 19:29 To: Tomcat Users List Subject: RE: newbie question you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat, call catalina.bat run to have the windows stay the same and not shutdown on you FIlip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it seems like it goes through the entire deployment in the conventional manner. But instead of staying open, that second DOS window eventually closes. And then when I try to request pages against the second Tomcat instance I don't get anything back in the browser. The Sakai instance still serves pages correctly. However, if the Sakai Tomcat server is turned off I can turn on my other instance and serve pages from it. Is there a way to make both Tomcat engines run simultaneously without conflict? Cheers, Luke Fernandez [EMAIL PROTECTED] 10/28/2004 11:11:05 AM Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question
yes, and if you actually read the message StandardServer.await: create[8005]: java.net.BindException: Address already in u se: JVM_Bind java.net.BindException: Address already in use: JVM_Bind look for 8005 in your server.xml and you will find out that this is the shutdown port. Filip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 2:10 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Ok. When I use catalina.bat run instead of startup the window stays open but the second instance (on port 80) still isnt serving pages. I've included the screen output that happens after running catalina.bat run. Looks like its saying something about address already in use: C:\tomcat\jakarta-tomcat-5.0.28\bincatalina.bat run Using CATALINA_BASE: C:\tomcat\jakarta-tomcat-5.0.28 Using CATALINA_HOME: C:\tomcat\jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: C:\tomcat\jakarta-tomcat-5.0.28\temp Using JAVA_HOME: C:\j2sdk1.4.2_05 Oct 28, 2004 12:58:57 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-80 Oct 28, 2004 12:58:57 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1953 ms Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\tomcat\jakarta-tomcat-5. 0.28\conf\Catalina\localhost\admin.xml Oct 28, 2004 12:58:59 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e Oct 28, 2004 12:58:59 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true Oct 28, 2004 12:58:59 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\tomcat\jakarta-tomcat-5. 0.28\conf\Catalina\localhost\balancer.xml Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\tomcat\jakarta-tomcat-5. 0.28\conf\Catalina\localhost\manager.xml Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:C:\ tomcat\jakarta-tomcat-5.0.28\webapps\jsp-examples Oct 28, 2004 12:59:03 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /Login from URL file:C:\tomcat\ jakarta-tomcat-5.0.28\webapps\Login Oct 28, 2004 12:59:04 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e Oct 28, 2004 12:59:04 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true Oct 28, 2004 12:59:04 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='ApplicationResources', returnNull=true Oct 28, 2004 12:59:04 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:C:\tomcat\jakart a-tomcat-5.0.28\webapps\ROOT Oct 28, 2004 12:59:04 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL fil e:C:\tomcat\jakarta-tomcat-5.0.28\webapps\servlets-examples Oct 28, 2004 12:59:05 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:C:\t omcat\jakarta-tomcat-5.0.28\webapps\tomcat-docs Oct 28, 2004 12:59:05 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /TomProj from URL file:C:\tomca t\jakarta-tomcat-5.0.28\webapps\TomProj Oct 28, 2004 12:59:06 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:C:\tomcat \jakarta-tomcat-5.0.28\webapps\webdav Oct 28, 2004 12:59:07 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-80 Oct 28, 2004 12:59:07 PM org.apache.jk.common.ChannelSocket init INFO: Port busy 8009 java.net.BindException: Address already in use: JVM_Bind Oct 28, 2004 12:59:07 PM org.apache.jk.common.ChannelSocket init
RE: newbie question
So its more complicated than configuring server.xml for first instance (e.g. Sakai) as: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / And the second server.xml for the second tomcat instance to be (notice 8080 is now 80): !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / I need to go read the doc? Luke [EMAIL PROTECTED] 10/28/2004 1:08:28 PM you can have them run at the same time but you need to configure them to run on separate ports. for your standard TC 5.0.28 the file to edit is CATALINA_HOME/conf/server.xml - see the docs at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html for an explanation of how server.xml works (click links in the left margin to access further pages) -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Thursday 28 October 2004 19:29 To: Tomcat Users List Subject: RE: newbie question you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat, call catalina.bat run to have the windows stay the same and not shutdown on you FIlip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it seems like it goes through the entire deployment in the conventional manner. But instead of staying open, that second DOS window eventually closes. And then when I try to request pages against the second Tomcat instance I don't get anything back in the browser. The Sakai instance still serves pages correctly. However, if the Sakai Tomcat server is turned off I can turn on my other instance and serve pages from it. Is there a way to make both Tomcat engines run simultaneously without conflict? Cheers, Luke Fernandez [EMAIL PROTECTED] 10/28/2004 11:11:05 AM Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778 / Virus Database: 525 - Release Date: 10/15/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.778
RE: newbie question
Hi, The shutdown port is also in server.xml, at the top of the file. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 3:19 PM To: [EMAIL PROTECTED] Subject: RE: newbie question So its more complicated than configuring server.xml for first instance (e.g. Sakai) as: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / And the second server.xml for the second tomcat instance to be (notice 8080 is now 80): !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / I need to go read the doc? Luke [EMAIL PROTECTED] 10/28/2004 1:08:28 PM you can have them run at the same time but you need to configure them to run on separate ports. for your standard TC 5.0.28 the file to edit is CATALINA_HOME/conf/server.xml - see the docs at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html for an explanation of how server.xml works (click links in the left margin to access further pages) -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Thursday 28 October 2004 19:29 To: Tomcat Users List Subject: RE: newbie question you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat, call catalina.bat run to have the windows stay the same and not shutdown on you FIlip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it seems like it goes through the entire deployment in the conventional manner. But instead of staying open, that second DOS window eventually closes. And then when I try to request pages against the second Tomcat instance I don't get anything back in the browser. The Sakai instance still serves pages correctly. However, if the Sakai Tomcat server is turned off I can turn on my other instance and serve pages from it. Is there a way to make both Tomcat engines run simultaneously without conflict? Cheers, Luke Fernandez [EMAIL PROTECTED] 10/28/2004 11:11:05 AM Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked
RE: newbie question
I would advise that you read the doc, because it only takes a few mins, and then you'll understand what's really happening ;) But to get you going, assuming that you have not changed the standard server.xml significantly: 1. Change any active connector ports. The one you mention below is the first, but you need to change any others that are active, that are the same in both servers. 2. Locate the server tag (at the top of the file) and change its shutdown port (it can't be the same for both, otherwise both servers try to run a shutdown listener service on the same port) e.g. Server port=8005 shutdown=SHUTDOWN debug=0 These are the main things. If you have customised server.xml at all you might want to be sure there are no others by searching for port in server.xml in your text editor, and this will highlight all the possible places where port numbers might need to be changed. Note that any parts of server.xml commented out between !-- and -- are not active so you can ignore them for the time being. -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday 28 October 2004 20:19 To: [EMAIL PROTECTED] Subject: RE: newbie question So its more complicated than configuring server.xml for first instance (e.g. Sakai) as: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / And the second server.xml for the second tomcat instance to be (notice 8080 is now 80): !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / I need to go read the doc? Luke [EMAIL PROTECTED] 10/28/2004 1:08:28 PM you can have them run at the same time but you need to configure them to run on separate ports. for your standard TC 5.0.28 the file to edit is CATALINA_HOME/conf/server.xml - see the docs at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html for an explanation of how server.xml works (click links in the left margin to access further pages) -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Thursday 28 October 2004 19:29 To: Tomcat Users List Subject: RE: newbie question you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat, call catalina.bat run to have the windows stay the same and not shutdown on you FIlip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it seems like it goes through the entire deployment in the conventional manner. But instead of staying open, that second DOS window eventually closes. And then when I try to request pages against the second Tomcat instance I don't get anything back in the browser. The Sakai instance still serves pages correctly. However, if the Sakai Tomcat server is turned off I can turn on my other instance and serve pages from it. Is there a way to make both Tomcat engines run simultaneously without conflict? Cheers, Luke Fernandez [EMAIL PROTECTED] 10/28/2004 11:11:05 AM Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:16 PM To: [EMAIL PROTECTED] Subject: newbie question Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e
RE: newbie question
Am I spamming if I say thanks to all of you for your help? I changed the following line in server.xml and now both instances run: !-- Server port=8005 shutdown=SHUTDOWN debug=0 -- Server port=8007 shutdown=SHUTDOWN debug=0 I hope I wasn't imposing by asking all these naive questions.for me this is a great way to learn. Like you said, I actually have to read the message (although I didn't know that create[8005] was referring to a port). I wonder if there's a way to filter out some of all the stuff that is outputted on startup so one can zero in more easily on the error? And why not output attempting to create port 8005 instead of create[8005]? But those are standard quibbles about cryptic error messages.thanks again for your help. Luke [EMAIL PROTECTED] 10/28/2004 1:09:55 PM yes, and if you actually read the message StandardServer.await: create[8005]: java.net.BindException: Address already in u se: JVM_Bind java.net.BindException: Address already in use: JVM_Bind look for 8005 in your server.xml and you will find out that this is the shutdown port. Filip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 2:10 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Ok. When I use catalina.bat run instead of startup the window stays open but the second instance (on port 80) still isnt serving pages. I've included the screen output that happens after running catalina.bat run. Looks like its saying something about address already in use: C:\tomcat\jakarta-tomcat-5.0.28\bincatalina.bat run Using CATALINA_BASE: C:\tomcat\jakarta-tomcat-5.0.28 Using CATALINA_HOME: C:\tomcat\jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: C:\tomcat\jakarta-tomcat-5.0.28\temp Using JAVA_HOME: C:\j2sdk1.4.2_05 Oct 28, 2004 12:58:57 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-80 Oct 28, 2004 12:58:57 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1953 ms Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\tomcat\jakarta-tomcat-5. 0.28\conf\Catalina\localhost\admin.xml Oct 28, 2004 12:58:59 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e Oct 28, 2004 12:58:59 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true Oct 28, 2004 12:58:59 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\tomcat\jakarta-tomcat-5. 0.28\conf\Catalina\localhost\balancer.xml Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\tomcat\jakarta-tomcat-5. 0.28\conf\Catalina\localhost\manager.xml Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:C:\ tomcat\jakarta-tomcat-5.0.28\webapps\jsp-examples Oct 28, 2004 12:59:03 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /Login from URL file:C:\tomcat\ jakarta-tomcat-5.0.28\webapps\Login Oct 28, 2004 12:59:04 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e Oct 28, 2004 12:59:04 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true Oct 28, 2004 12:59:04 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='ApplicationResources', returnNull=true Oct 28, 2004 12:59:04 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:C:\tomcat\jakart a-tomcat-5.0.28\webapps\ROOT Oct 28, 2004 12:59:04 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL fil e:C:\tomcat\jakarta-tomcat-5.0.28\webapps\servlets-examples Oct 28, 2004 12:59:05 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application
RE: newbie question
Some more thooughts that came to mind after hitting send: You might find it easier to use server-minimal.xml if you are using TC 5.0.28 standalone. It's much smaller and easier to follow if you are just getting started. Restart the server after you have replaced the file. Re your changed TC 5.0.28 config below, two minor points: (a) you have not edited 8080 to 80 in the comment line. Of course this has no functional impact, but might cause to to mis-read the config file later. It's a good habit to always review and edit the comments associated with your code when you edit the code itself. (b) you have left the redirectPort as 8443 in both cases. Again, this won't affect you at first, and might even be what you want, but if it's not what you want, it might catch you our later if you don't change it now. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Thursday 28 October 2004 20:27 To: 'Tomcat Users List' Subject: RE: newbie question I would advise that you read the doc, because it only takes a few mins, and then you'll understand what's really happening ;) But to get you going, assuming that you have not changed the standard server.xml significantly: 1. Change any active connector ports. The one you mention below is the first, but you need to change any others that are active, that are the same in both servers. 2. Locate the server tag (at the top of the file) and change its shutdown port (it can't be the same for both, otherwise both servers try to run a shutdown listener service on the same port) e.g. Server port=8005 shutdown=SHUTDOWN debug=0 These are the main things. If you have customised server.xml at all you might want to be sure there are no others by searching for port in server.xml in your text editor, and this will highlight all the possible places where port numbers might need to be changed. Note that any parts of server.xml commented out between !-- and -- are not active so you can ignore them for the time being. -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday 28 October 2004 20:19 To: [EMAIL PROTECTED] Subject: RE: newbie question So its more complicated than configuring server.xml for first instance (e.g. Sakai) as: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / And the second server.xml for the second tomcat instance to be (notice 8080 is now 80): !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true / I need to go read the doc? Luke [EMAIL PROTECTED] 10/28/2004 1:08:28 PM you can have them run at the same time but you need to configure them to run on separate ports. for your standard TC 5.0.28 the file to edit is CATALINA_HOME/conf/server.xml - see the docs at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html for an explanation of how server.xml works (click links in the left margin to access further pages) -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Thursday 28 October 2004 19:29 To: Tomcat Users List Subject: RE: newbie question you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat, call catalina.bat run to have the windows stay the same and not shutdown on you FIlip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely separate jakarta-tomcat-5.0.28 folder) a new DOS window pops up and it seems like it goes through the entire deployment in the conventional manner. But instead of staying open, that second DOS window eventually closes. And then when I try to request pages against the second Tomcat instance I don't get anything back in the browser. The Sakai instance still serves pages correctly. However, if the Sakai Tomcat server is turned off I can turn
RE: newbie question
On Thu, 2004-10-28 at 15:34, Luke FERNANDEZ wrote: Am I spamming if I say thanks to all of you for your help? No, there is nothing wrong with a thank you. I changed the following line in server.xml and now both instances run: !-- Server port=8005 shutdown=SHUTDOWN debug=0 -- Server port=8007 shutdown=SHUTDOWN debug=0 I hope I wasn't imposing by asking all these naive questions.for me this is a great way to learn. It's a great way to get out of a bind. Out of courtesy to everyone else though, it's good to exhaust all other avenues before posting to the list. These include, the Tomcat docs, Google, and the archives to this list. You may have noticed this link on your way to signing up for the list: http://www.catb.org/~esr/faqs/smart-questions.html There are a handful of questions that get asked here every single day, bloating the list with endless repetition. They are all answered in the FAQ so they often get ignored. Like you said, I actually have to read the message (although I didn't know that create[8005] was referring to a port). I wonder if there's a way to filter out some of all the stuff that is outputted on startup so one can zero in more easily on the error? Before you go too far down the road, you might want to look at log4j. http://logging.apache.org/log4j It's easy to set up and use, and it can be tuned to throttle the amount of logging you see without having to change your soure. There are others out there too but this IMHO is the best. But those are standard quibbles about cryptic error messages.thanks again for your help. Luke Good luck with your project, -Ben [EMAIL PROTECTED] 10/28/2004 1:09:55 PM yes, and if you actually read the message StandardServer.await: create[8005]: java.net.BindException: Address already in u se: JVM_Bind java.net.BindException: Address already in use: JVM_Bind look for 8005 in your server.xml and you will find out that this is the shutdown port. Filip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 2:10 PM To: [EMAIL PROTECTED] Subject: RE: newbie question Ok. When I use catalina.bat run instead of startup the window stays open but the second instance (on port 80) still isnt serving pages. I've included the screen output that happens after running catalina.bat run. Looks like its saying something about address already in use: C:\tomcat\jakarta-tomcat-5.0.28\bincatalina.bat run Using CATALINA_BASE: C:\tomcat\jakarta-tomcat-5.0.28 Using CATALINA_HOME: C:\tomcat\jakarta-tomcat-5.0.28 Using CATALINA_TMPDIR: C:\tomcat\jakarta-tomcat-5.0.28\temp Using JAVA_HOME: C:\j2sdk1.4.2_05 Oct 28, 2004 12:58:57 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-80 Oct 28, 2004 12:58:57 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1953 ms Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Oct 28, 2004 12:58:57 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\tomcat\jakarta-tomcat-5. 0.28\conf\Catalina\localhost\admin.xml Oct 28, 2004 12:58:59 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru e Oct 28, 2004 12:58:59 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true Oct 28, 2004 12:58:59 PM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur nNull=true Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\tomcat\jakarta-tomcat-5. 0.28\conf\Catalina\localhost\balancer.xml Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:C:\tomcat\jakarta-tomcat-5. 0.28\conf\Catalina\localhost\manager.xml Oct 28, 2004 12:59:02 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:C:\ tomcat\jakarta-tomcat-5.0.28\webapps\jsp-examples Oct 28, 2004 12:59:03 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /Login from URL file:C:\tomcat\ jakarta-tomcat-5.0.28\webapps\Login
RE: Newbie Question
Yes! two different machines... I will name it as machine 1 and machine 2... machine 1 and machine 2 both have CES_DS datasource name declared.. MS Access DB resides inside machine 2... so machine 2 does not have any problems.. while machine 1 have problems connecting to MS Access DB inside machine 2... if Sun's jdbc:odbc:CES_DS connection is wrong for machine 1 then what connection will i use? Machine 1 have Exchange Server while Machine 2 have Sharepoint Server... just for info... Please Help Me!!! -Original Message- From: Dave Bender [mailto:[EMAIL PROTECTED] Sent: Fri 7/23/2004 9:11 PM To: Tomcat Users List Cc: Subject:RE: Newbie Question Can you provide some more detail? When you say you're running two servers accessing an Access database, do you mean two different machines or just different server instances on the same machine? If you're trying to access Access from a different machine, you may have to use a different jdbc driver. I don't think the Sun jdbc:odbc driver can reach a data source running on a different machine. Dave -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 4:55 AM To: Tomcat Users List Subject: Newbie Question Hello! This is a newbie question... =) I have two servers running accessing single MS Access database I used jdbc:odbc:CES_DS in server.xml CES_DS is the data source name I used for both servers... pointing to MS Access DB... However this error occurs... org.apache.commons.dbcp.DbcpException: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides. How to access a single database using two servers using DSN connection...? Please Help! Thanks a lot! aris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Question
Can you provide some more detail? When you say you're running two servers accessing an Access database, do you mean two different machines or just different server instances on the same machine? If you're trying to access Access from a different machine, you may have to use a different jdbc driver. I don't think the Sun jdbc:odbc driver can reach a data source running on a different machine. Dave -Original Message- From: Aris Javier [mailto:[EMAIL PROTECTED] Sent: Friday, July 23, 2004 4:55 AM To: Tomcat Users List Subject: Newbie Question Hello! This is a newbie question... =) I have two servers running accessing single MS Access database I used jdbc:odbc:CES_DS in server.xml CES_DS is the data source name I used for both servers... pointing to MS Access DB... However this error occurs... org.apache.commons.dbcp.DbcpException: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides. How to access a single database using two servers using DSN connection...? Please Help! Thanks a lot! aris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question: Error 503 Service Temp. Unavailable
I too am running Linux (Fedora 1). Another chap posted after me having similar problems with Windows (IIS). I've confirmed that apache is running as user apache which belongs to the group apache. User tomcat of the group tomcat owns the tomcat directory (and I'm running tomcat as user tomcat). I've added the apache group to the tomcat group (I think) like this #usermod -G apache,tomcat apache I read through some more of the Tomcat 5 docs last night and I'll give it another whack today. Thanks, Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Tim Wills [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 11:18 PM To: Birt, Jeffrey Cc: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I had the same Error 503 on Linux (not Windows) and found that was caused by Apache running as Nobody. Apache couldn't write to the socket because the owner was tomcat and Nobody was not a member of the group tomcat. Check your apache error_log and see what it says. I have never run a Windows server so can't be more helpful. Cheers Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question: Error 503 Service Temp. Unavailable
I finally got this working I used the min configuration given in the jk docs of. jk2.properties: # The default port is 8009 but you can use another one # channelSocket.port=8019 workers2.properties: # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp And this works, which means my problem, is in trying to create the Unix channel. I don't know why the Unix channel config did not work, heck I don't even know the difference between a Unix channel and socket channel! Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 8:06 AM To: Tim Wills Cc: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I too am running Linux (Fedora 1). Another chap posted after me having similar problems with Windows (IIS). I've confirmed that apache is running as user apache which belongs to the group apache. User tomcat of the group tomcat owns the tomcat directory (and I'm running tomcat as user tomcat). I've added the apache group to the tomcat group (I think) like this #usermod -G apache,tomcat apache I read through some more of the Tomcat 5 docs last night and I'll give it another whack today. Thanks, Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 -Original Message- From: Tim Wills [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 11:18 PM To: Birt, Jeffrey Cc: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I had the same Error 503 on Linux (not Windows) and found that was caused by Apache running as Nobody. Apache couldn't write to the socket because the owner was tomcat and Nobody was not a member of the group tomcat. Check your apache error_log and see what it says. I have never run a Windows server so can't be more helpful. Cheers Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question: Error 503 Service Temp. Unavailable
I think you might have to create the file yourself. touch /opt/tomcat/work/jk2.socket Ta Matt -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:11 To: [EMAIL PROTECTED] Subject: Newbie question: Error 503 Service Temp. Unavailable Hello all, I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play nice together via mod_jk2 connector. Both work fine separately and I get the dreaded 503 Service Temp. Unavailable error. (which seems to have come up a lot on various list but I've yet to find a solution). I've been following along with this guide. http://www.opq.se/sxs/internet_serving/c875.html I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both Apache and Tomcat were installed form RPM's, and as mentioned both seem to work fine separately. The only relevant thing I've found in the logs is in the Apache error_log and is as follows: [error] chanelUn.connect() connect failed 2 No such file or directory [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket Etc. My jk2.properties is as follows: # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so and workers2.properties: # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/opt/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/tomcat/work/jk2.socket] channel=channel.un:/opt/tomcat/work/jk2.socket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/examples/*] # Uri mapping for MyFirst [uri:/MyFirst/*] I've added the LoadModule jk2_module etc. in httpd.conf When Tomcat starts a jk2.shm file is created but no jk2.socket file. I'm running everything as root (to make it simpler at this point) and have checked that everything is owned by root (I think). I'm guessing this is caused by incorrect configuration but I don't have a clue as to where to look. Can you guys help a newbie out? Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question: Error 503 Service Temp. Unavailable
I am trying to do the same thing as you guys. I have a windows 2000 box. How did you configure the two so far? And what goes in the jk2.socket file? Tonté -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:16 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I think you might have to create the file yourself. touch /opt/tomcat/work/jk2.socket Ta Matt -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:11 To: [EMAIL PROTECTED] Subject: Newbie question: Error 503 Service Temp. Unavailable Hello all, I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play nice together via mod_jk2 connector. Both work fine separately and I get the dreaded 503 Service Temp. Unavailable error. (which seems to have come up a lot on various list but I've yet to find a solution). I've been following along with this guide. http://www.opq.se/sxs/internet_serving/c875.html I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both Apache and Tomcat were installed form RPM's, and as mentioned both seem to work fine separately. The only relevant thing I've found in the logs is in the Apache error_log and is as follows: [error] chanelUn.connect() connect failed 2 No such file or directory [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket Etc. My jk2.properties is as follows: # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so and workers2.properties: # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/opt/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/tomcat/work/jk2.socket] channel=channel.un:/opt/tomcat/work/jk2.socket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/examples/*] # Uri mapping for MyFirst [uri:/MyFirst/*] I've added the LoadModule jk2_module etc. in httpd.conf When Tomcat starts a jk2.shm file is created but no jk2.socket file. I'm running everything as root (to make it simpler at this point) and have checked that everything is owned by root (I think). I'm guessing this is caused by incorrect configuration but I don't have a clue as to where to look. Can you guys help a newbie out? Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question: Error 503 Service Temp. Unavailable
The file must exist and be readable and writable by both the tomcat user and the apache user. You won't be able to get UNIX sockets working on a windows 2000 box, obviously. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:24 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I am trying to do the same thing as you guys. I have a windows 2000 box. How did you configure the two so far? And what goes in the jk2.socket file? Tonté -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:16 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I think you might have to create the file yourself. touch /opt/tomcat/work/jk2.socket Ta Matt -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:11 To: [EMAIL PROTECTED] Subject: Newbie question: Error 503 Service Temp. Unavailable Hello all, I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play nice together via mod_jk2 connector. Both work fine separately and I get the dreaded 503 Service Temp. Unavailable error. (which seems to have come up a lot on various list but I've yet to find a solution). I've been following along with this guide. http://www.opq.se/sxs/internet_serving/c875.html I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both Apache and Tomcat were installed form RPM's, and as mentioned both seem to work fine separately. The only relevant thing I've found in the logs is in the Apache error_log and is as follows: [error] chanelUn.connect() connect failed 2 No such file or directory [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket Etc. My jk2.properties is as follows: # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so and workers2.properties: # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/opt/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/tomcat/work/jk2.socket] channel=channel.un:/opt/tomcat/work/jk2.socket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/examples/*] # Uri mapping for MyFirst [uri:/MyFirst/*] I've added the LoadModule jk2_module etc. in httpd.conf When Tomcat starts a jk2.shm file is created but no jk2.socket file. I'm running everything as root (to make it simpler at this point) and have checked that everything is owned by root (I think). I'm guessing this is caused by incorrect configuration but I don't have a clue as to where to look. Can you guys help a newbie out? Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question: Error 503 Service Temp. Unavailable
Do you know how to do this on a windows box? -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:28 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable The file must exist and be readable and writable by both the tomcat user and the apache user. You won't be able to get UNIX sockets working on a windows 2000 box, obviously. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:24 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I am trying to do the same thing as you guys. I have a windows 2000 box. How did you configure the two so far? And what goes in the jk2.socket file? Tonté -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:16 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I think you might have to create the file yourself. touch /opt/tomcat/work/jk2.socket Ta Matt -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:11 To: [EMAIL PROTECTED] Subject: Newbie question: Error 503 Service Temp. Unavailable Hello all, I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play nice together via mod_jk2 connector. Both work fine separately and I get the dreaded 503 Service Temp. Unavailable error. (which seems to have come up a lot on various list but I've yet to find a solution). I've been following along with this guide. http://www.opq.se/sxs/internet_serving/c875.html I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both Apache and Tomcat were installed form RPM's, and as mentioned both seem to work fine separately. The only relevant thing I've found in the logs is in the Apache error_log and is as follows: [error] chanelUn.connect() connect failed 2 No such file or directory [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket Etc. My jk2.properties is as follows: # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so and workers2.properties: # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/opt/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/tomcat/work/jk2.socket] channel=channel.un:/opt/tomcat/work/jk2.socket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/examples/*] # Uri mapping for MyFirst [uri:/MyFirst/*] I've added the LoadModule jk2_module etc. in httpd.conf When Tomcat starts a jk2.shm file is created but no jk2.socket file. I'm running everything as root (to make it simpler at this point) and have checked that everything is owned by root (I think). I'm guessing this is caused by incorrect configuration but I don't have a clue as to where to look. Can you guys help a newbie out? Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question: Error 503 Service Temp. Unavailable
Have a read through this, http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if you have any more specific questions. But basically you should have a JK2 connector defined in your server.xml, its on port 8009 by default. And you need to define a worker in your workers2.properties in your apache/conf directory that points to this port. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:30 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable Do you know how to do this on a windows box? -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:28 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable The file must exist and be readable and writable by both the tomcat user and the apache user. You won't be able to get UNIX sockets working on a windows 2000 box, obviously. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:24 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I am trying to do the same thing as you guys. I have a windows 2000 box. How did you configure the two so far? And what goes in the jk2.socket file? Tonté -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:16 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I think you might have to create the file yourself. touch /opt/tomcat/work/jk2.socket Ta Matt -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:11 To: [EMAIL PROTECTED] Subject: Newbie question: Error 503 Service Temp. Unavailable Hello all, I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play nice together via mod_jk2 connector. Both work fine separately and I get the dreaded 503 Service Temp. Unavailable error. (which seems to have come up a lot on various list but I've yet to find a solution). I've been following along with this guide. http://www.opq.se/sxs/internet_serving/c875.html I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both Apache and Tomcat were installed form RPM's, and as mentioned both seem to work fine separately. The only relevant thing I've found in the logs is in the Apache error_log and is as follows: [error] chanelUn.connect() connect failed 2 No such file or directory [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket Etc. My jk2.properties is as follows: # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so and workers2.properties: # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/opt/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/tomcat/work/jk2.socket] channel=channel.un:/opt/tomcat/work/jk2.socket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/examples/*] # Uri mapping for MyFirst [uri:/MyFirst/*] I've added the LoadModule jk2_module etc. in httpd.conf When Tomcat starts a jk2.shm file is created but no jk2.socket file. I'm running everything as root (to make it simpler at this point) and have checked that everything is owned by root (I think). I'm guessing this is caused by incorrect configuration but I don't have a clue as to where to look. Can you guys help a newbie out? Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying
RE: Newbie question: Error 503 Service Temp. Unavailable
Okay, will do. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:35 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable Have a read through this, http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if you have any more specific questions. But basically you should have a JK2 connector defined in your server.xml, its on port 8009 by default. And you need to define a worker in your workers2.properties in your apache/conf directory that points to this port. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:30 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable Do you know how to do this on a windows box? -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:28 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable The file must exist and be readable and writable by both the tomcat user and the apache user. You won't be able to get UNIX sockets working on a windows 2000 box, obviously. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:24 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I am trying to do the same thing as you guys. I have a windows 2000 box. How did you configure the two so far? And what goes in the jk2.socket file? Tonté -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:16 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I think you might have to create the file yourself. touch /opt/tomcat/work/jk2.socket Ta Matt -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:11 To: [EMAIL PROTECTED] Subject: Newbie question: Error 503 Service Temp. Unavailable Hello all, I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play nice together via mod_jk2 connector. Both work fine separately and I get the dreaded 503 Service Temp. Unavailable error. (which seems to have come up a lot on various list but I've yet to find a solution). I've been following along with this guide. http://www.opq.se/sxs/internet_serving/c875.html I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both Apache and Tomcat were installed form RPM's, and as mentioned both seem to work fine separately. The only relevant thing I've found in the logs is in the Apache error_log and is as follows: [error] chanelUn.connect() connect failed 2 No such file or directory [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket Etc. My jk2.properties is as follows: # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so and workers2.properties: # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/opt/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/tomcat/work/jk2.socket] channel=channel.un:/opt/tomcat/work/jk2.socket # Announce a status worker [status:status] info=Status worker. Displays runtime information. [uri:/jkstatus/*] group=status:status # Uri mapping [uri:/examples/*] # Uri mapping for MyFirst [uri:/MyFirst/*] I've added the LoadModule jk2_module etc. in httpd.conf When Tomcat starts a jk2.shm file is created but no jk2.socket file. I'm running everything as root (to make it simpler at this point) and have checked that everything is owned by root (I think). I'm guessing this is caused by incorrect configuration but I don't have a clue as to where to look. Can you guys help a newbie out? Jeff Birt Electronics Engineer Integrated Systems Facility University of Missouri - Rolla 573.341.6058 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question: Error 503 Service Temp. Unavailable
Arrgg Still no luck. This is a copy of my error log. I still can't seem to get Apache2 and Tomcat 5 to work together. I tried creating an emty file called jk2.socket in /opt/tomcat/work. When Apache starts jk2.shm is created and the jk2.socket file I created disappeared. This error report looks like the unix socket is not being created but I don't know why. BTW, I added a group and user called tomcat and made tomcat owner of opt/tomcat and added the user apache to the tomcat group. AFAIK this should give Apache appropriate permissions to the needed files in teh tomcaat folders. My jk2.properties file etc are listed with the original post. Any other ideas guys? Thanks, Jeff_Birt [Thu Jul 08 14:48:04 2004] [error] channelUn.connect() connect failed 2 No such file or directory [Thu Jul 08 14:48:04 2004] [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket [Thu Jul 08 14:48:04 2004] [error] ajp13.service() failed to connect endpoint errno=2 No such file or directory [Thu Jul 08 14:48:04 2004] [error] ajp13.service() Error forwarding ajp13:/opt/tomcat/work/jk2.socket 1 1 [Thu Jul 08 14:48:04 2004] [error] lb.service() worker failed 12 for ajp13:/opt/tomcat/work/jk2.socket [Thu Jul 08 14:48:04 2004] [error] lb_worker.service() all workers in error or disabled state [Thu Jul 08 14:48:04 2004] [error] mod_jk2.handler() Error connecting to tomcat 12, status 503 -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thu 7/8/2004 10:34 AM To: Tomcat Users List Cc: Subject:RE: Newbie question: Error 503 Service Temp. Unavailable Have a read through this, http://jakarta.apache.org/tomcat/connectors-doc/jk2/index.html and then let me know if you have any more specific questions. But basically you should have a JK2 connector defined in your server.xml, its on port 8009 by default. And you need to define a worker in your workers2.properties in your apache/conf directory that points to this port. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:30 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable Do you know how to do this on a windows box? -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:28 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable The file must exist and be readable and writable by both the tomcat user and the apache user. You won't be able to get UNIX sockets working on a windows 2000 box, obviously. Ta Matt -Original Message- From: Tonte Pouncil [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:24 To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I am trying to do the same thing as you guys. I have a windows 2000 box. How did you configure the two so far? And what goes in the jk2.socket file? Tont -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 10:16 AM To: Tomcat Users List Subject: RE: Newbie question: Error 503 Service Temp. Unavailable I think you might have to create the file yourself. touch /opt/tomcat/work/jk2.socket Ta Matt -Original Message- From: Birt, Jeffrey [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 16:11 To: [EMAIL PROTECTED] Subject: Newbie question: Error 503 Service Temp. Unavailable Hello all, I've been working on getting Apache 2.0.49 and Tomcat 5.0.25 to play nice together via mod_jk2 connector. Both work fine separately and I get the dreaded 503 Service Temp. Unavailable error. (which seems to have come up a lot on various list but I've yet to find a solution). I've been following along with this guide. http://www.opq.se/sxs/internet_serving/c875.html I'm running Fedora Core 1 with Apache 2.0.49 and Tomcat 5.0.25, both Apache and Tomcat were installed form RPM's, and as mentioned both seem to work fine separately. The only relevant thing I've found in the logs is in the Apache error_log and is as follows: [error] chanelUn.connect() connect failed 2 No such file or directory [error] ajp13.connect() failed ajp13:/opt/tomcat/work/jk2.socket Etc. My jk2.properties is as follows: # jk2.properties # Configured for channel UNIX # Set the desired handler list handler.list=apr,request,channelUnix # UNIX Domain socket location channelUnix.file=/opt/tomcat/work/jk2.socket # Dynamic Library serverRoot=/etc/httpd apr.NativeSo=/usr/lib/httpd/modules/libjkjni.so and workers2.properties: # workers2.properties # Shared memory handling. Needs to be set. [shm] info=Scoreboard. Required for reconfiguration and status with multiprocess serve rs file=/opt/tomcat/logs/jk2.shm size=1048576 debug=0 disabled=0 # UNIX domain socket [channel.un:/opt/tomcat/work/jk2.socket] tomcatId=localhost:8009 debug=0 # define the worker [ajp13:/opt/tomcat/work/jk2.socket] channel=channel.un:/opt
RE: Newbie question: Error 503 Service Temp. Unavailable
I had the same Error 503 on Linux (not Windows) and found that was caused by Apache running as Nobody. Apache couldn't write to the socket because the owner was tomcat and Nobody was not a member of the group tomcat. Check your apache error_log and see what it says. I have never run a Windows server so can't be more helpful. Cheers Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms
Thanks marco, However, can I also set this datasource for the Engine element ? (I thought I read something about a bug, although I'm not quite sure). Then, after I specified this new datasource in the either context or engine element, how do i confiugre the UserDatabase in the JNDI lookup ? For example: GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true/ !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3/ !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/build_jplanner connectionName=*** connectionPassword=** userTable=JT_USER userNameCol=LOGINNAME userCredCol=PASSWORD userRoleTable=JT_GROUP roleNameCol=NAME/ Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host /Engine /Service How does the GlobalNamingResources relate to the REALM specified in the engine element ? Can someone tell me if the UserBase as specified in the GlobalNamingResources is being used by for the JSP security stuff ? (for example the /webapps/jsp-examples/security/protected/login.jsp) T.i.a, Leonard -Original Message- From: Marco Pöhler [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 10:45 AM To: Tomcat Users List Subject: AW: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms Hi Leonard, this works for me: Context path= docBase=/home/user1/trustedfeed debug=0 ResourceLink name=jdbc/db global=jdbc/db type=javax.sql.DataSource / Realm className=org.apache.catalina.realm.DataSourceRealm debug=99 dataSourceName=jdbc/db userTable=users userNameCol=username userCredCol=password userRoleTable=roles roleNameCol=rolename/ /Context Of course, you have to define the jdbc/db Datasource in the GlobalNamingResources, too. hth Marco --- http://www.optik-preisvergleich.de http://www.kontaktlinsen-preisvergleich.de -Ursprüngliche Nachricht- Von: Leonard Wolters [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. März 2004 09:22 An: [EMAIL PROTECTED] Betreff: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms Hi, I've got a question concerning the different REALM available for Tomcat 5.x. The main (basic) question is that I want to secure my context annex websites / jsp pages. I have some experience with JAAS (JBOSS) and was investigating the possibility to use / implement JAAS for Tomcat. After some efforts I stopped since I to noticed it would take me to much pain ;-( (I needed to create to much source code hence it would take me to much time). Then I investigated the JDBC Realm and was trying to use this for securing my website. The question: Tomcat 5 delivers a pre-installed security JSP example (/jsp-examples/security/protected) which (as stated in the documentation) only works with the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my own implementation) as well. Does anyone can provide me some configurations of how to achieve this ? Basically, I think I need to change the default JNDI UserBase (MemoryRealm) with my own
RE: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms
Hi, How does the GlobalNamingResources relate to the REALM specified in the engine element ? Can someone tell me if the UserBase as specified in the GlobalNamingResources is being used by for the JSP security stuff ? (for example the /webapps/jsp-examples/security/protected/login.jsp) In my thoughts, a realm in the context (or engine) overwrites the global realm. So if you have defined a security-constraint in your localhost-applicaions web.xml the user and roles used there for access control are taken from the database. The memory-realm /tomcat-users.xml won't be used. The security-constraints in the web.xml looks like: security-constraint display-nameAdmin Authentication/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name url-pattern/*/url-pattern http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint hth. Marco --- http://www.druckerpatronen--preisvergleich.de http://www.tintenpatronen-preisvergleich.de -Ursprüngliche Nachricht- Von: Leonard Wolters [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. März 2004 11:21 An: Tomcat Users List Betreff: RE: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms Thanks marco, However, can I also set this datasource for the Engine element ? (I thought I read something about a bug, although I'm not quite sure). Then, after I specified this new datasource in the either context or engine element, how do i confiugre the UserDatabase in the JNDI lookup ? For example: GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 disableUploadTimeout=true/ !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3/ !-- Define the top level container in our container hierarchy -- Engine name=Catalina defaultHost=localhost debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/build_jplanner connectionName=*** connectionPassword=** userTable=JT_USER userNameCol=LOGINNAME userCredCol=PASSWORD userRoleTable=JT_GROUP roleNameCol=NAME/ Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ /Host /Engine /Service How does the GlobalNamingResources relate to the REALM specified in the engine element ? Can someone tell me if the UserBase as specified in the GlobalNamingResources is being used by for the JSP security stuff ? (for example the /webapps/jsp-examples/security/protected/login.jsp) T.i.a, Leonard -Original Message- From: Marco Pöhler [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 10:45 AM To: Tomcat Users List Subject: AW: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms Hi Leonard, this works for me: Context path= docBase=/home/user1/trustedfeed debug=0 ResourceLink name=jdbc/db global=jdbc/db type=javax.sql.DataSource / Realm className=org.apache.catalina.realm.DataSourceRealm debug=99 dataSourceName=jdbc/db userTable=users userNameCol
Re: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms
Leonard, I went the other way. I wrote a login module for tomcat's JAAS implementation and recently found it relatively easy to adapt it to JBoss. However I see you're going down the JDBC route. Adam On 03/23/2004 09:22 AM Leonard Wolters wrote: Hi, I've got a question concerning the different REALM available for Tomcat 5.x. The main (basic) question is that I want to secure my context annex websites / jsp pages. I have some experience with JAAS (JBOSS) and was investigating the possibility to use / implement JAAS for Tomcat. After some efforts I stopped since I to noticed it would take me to much pain ;-( (I needed to create to much source code hence it would take me to much time). Then I investigated the JDBC Realm and was trying to use this for securing my website. The question: Tomcat 5 delivers a pre-installed security JSP example (/jsp-examples/security/protected) which (as stated in the documentation) only works with the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my own implementation) as well. Does anyone can provide me some configurations of how to achieve this ? Basically, I think I need to change the default JNDI UserBase (MemoryRealm) with my own one (JDBCRealm for example). However, is this the only thing I need to do ? If so, please provide me a server.xml configuration T.i.a, Leonard Leonard Wolters JTeam B.V. E: [EMAIL PROTECTED] T: +31(0)20 486 20 36 M: +31(0)6 24 111 401 F: +31(0)8 48 370 000 W: www.jteam.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question
FRANCOIS Dufour [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i read an eror in tomcat apache log 2004-01-02 08:09:46 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463) at java.net.ServerSocket.implAccept(ServerSocket.java:238) at java.net.ServerSocket.accept(ServerSocket.java:217) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590) at java.lang.Thread.run(Thread.java:479) how do i fix this eror? Dump Warp ;-)? It is probably harmless, since it most likely means that the Apache child died. _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question
thanks [EMAIL PROTECTED] crazy-wilys webmaster From: Bill Barker [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: newbie question Date: Wed, 7 Jan 2004 00:07:29 -0800 FRANCOIS Dufour [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i read an eror in tomcat apache log 2004-01-02 08:09:46 [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests java.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463) at java.net.ServerSocket.implAccept(ServerSocket.java:238) at java.net.ServerSocket.accept(ServerSocket.java:217) at org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590) at java.lang.Thread.run(Thread.java:479) how do i fix this eror? Dump Warp ;-)? It is probably harmless, since it most likely means that the Apache child died. _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN Messenger : discutez en direct avec vos amis ! http://messenger.fr.msn.ca/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
First: Did Netbeans create a deployment descriptor for you (WEB-INF/web.xml)? If so, look for a servlet mapping in the descriptor. It will look something like this: servlet-mapping servlet-nameHelloWorldServlet/servlet-name url-pattern/HelloWorld/url-pattern /servlet-mapping HelloWorldServlet being the name of your servlet and and HelloWorld being the mapping. If so, you can access your servlet with the following URL: http://localhost:8080/YOUR_APP_NAME/HelloWorld Second: If you create your own directory under TOMCAT_HOME/webapps, you will need to create a sub-directory called WEB-INF in order for Tomcat to autoDeploy it as an application. On Thursday 11 December 2003 11:50 am, you wrote: Hello All, Hope someone can help me out. I developed a servlet using Netbeans and when I tried to deploy it I had problem In an attempt to debug, I went back to Netbeans and created the simplest servlet I could, it just prints out some text. Works fine in development environment. Netbeans has option to build test.war file for me, did that. put test.war file in $CATALINA_HOME/webapps restarted tomcat I can see new directory test with WEB-INF/classes/test.class in it point browser an http:/www.xxx.yyy.zzz:8080/test and I get directory listing with nothing in it if I make junk.html file in $CATALINA_HOME/webapps/test. I can load it like $CATALINA_HOME/webapps/test/junk.html if I just give it http:/www.xxx.yyy.zzz:8080/test I see directory listing with junk.html shouldn't I see WEB-INF in directory listing?? I've messed with Netbeans/Tomcat in the past and I thought all I had to do was make war file dump it in webapps dir and restart Tomcat seems like a path problem to the servlet linux 2.4.18 tomcat 5.0.16 Anybody see what I'm missing Thanx Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question
I figured it out :-) the path to the servlet name foo is http:/www.xxx.yyy.zzz:8080/test/servlet/foo -Original Message- From: Dave Robbins [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 11:51 AM To: '[EMAIL PROTECTED]' Subject: Newbie question Hello All, Hope someone can help me out. I developed a servlet using Netbeans and when I tried to deploy it I had problem In an attempt to debug, I went back to Netbeans and created the simplest servlet I could, it just prints out some text. Works fine in development environment. Netbeans has option to build test.war file for me, did that. put test.war file in $CATALINA_HOME/webapps restarted tomcat I can see new directory test with WEB-INF/classes/test.class in it point browser an http:/www.xxx.yyy.zzz:8080/test and I get directory listing with nothing in it if I make junk.html file in $CATALINA_HOME/webapps/test. I can load it like $CATALINA_HOME/webapps/test/junk.html if I just give it http:/www.xxx.yyy.zzz:8080/test I see directory listing with junk.html shouldn't I see WEB-INF in directory listing?? I've messed with Netbeans/Tomcat in the past and I thought all I had to do was make war file dump it in webapps dir and restart Tomcat seems like a path problem to the servlet linux 2.4.18 tomcat 5.0.16 Anybody see what I'm missing Thanx Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie question
Tomcat will not serve any files in WEB-INF or below that directly to a user, so that's probably why it's not in the dir listing. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 9:55 AM To: Tomcat Users List Subject: Re: Newbie question First: Did Netbeans create a deployment descriptor for you (WEB-INF/web.xml)? If so, look for a servlet mapping in the descriptor. It will look something like this: servlet-mapping servlet-nameHelloWorldServlet/servlet-name url-pattern/HelloWorld/url-pattern /servlet-mapping HelloWorldServlet being the name of your servlet and and HelloWorld being the mapping. If so, you can access your servlet with the following URL: http://localhost:8080/YOUR_APP_NAME/HelloWorld Second: If you create your own directory under TOMCAT_HOME/webapps, you will need to create a sub-directory called WEB-INF in order for Tomcat to autoDeploy it as an application. On Thursday 11 December 2003 11:50 am, you wrote: Hello All, Hope someone can help me out. I developed a servlet using Netbeans and when I tried to deploy it I had problem In an attempt to debug, I went back to Netbeans and created the simplest servlet I could, it just prints out some text. Works fine in development environment. Netbeans has option to build test.war file for me, did that. put test.war file in $CATALINA_HOME/webapps restarted tomcat I can see new directory test with WEB-INF/classes/test.class in it point browser an http:/www.xxx.yyy.zzz:8080/test and I get directory listing with nothing in it if I make junk.html file in $CATALINA_HOME/webapps/test. I can load it like $CATALINA_HOME/webapps/test/junk.html if I just give it http:/www.xxx.yyy.zzz:8080/test I see directory listing with junk.html shouldn't I see WEB-INF in directory listing?? I've messed with Netbeans/Tomcat in the past and I thought all I had to do was make war file dump it in webapps dir and restart Tomcat seems like a path problem to the servlet linux 2.4.18 tomcat 5.0.16 Anybody see what I'm missing Thanx Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question
Your windoze path is probably being interpreted as a url without a protocol. The drive letter C is being interpreted as a hostname. Try with something like file:///c:\path\to\war\app.war HTH, Jon Jesús Gutiérrez Ramírez wrote: Hi, I'm new using tomcat (over windows xp) and ANT, I was doing the example exercise http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html, using the files included. When I want to install my app on the tomcat server using the ANT INSTALL command I receive the next message. BUILD FAILED C:\jspsrc\miapl\build.xml:364: java.net.UnknownHostException: C Somebody has an idea what could be wrong? If this is not the correct place to put this question, just let me know it. TIA Jesus Gutierrez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question: Tomcat 3.2.3 + JDK1.3.1_09 + Win2K
I just took a quick look in the CVS, and it looks like you are right. I don't know why the batch file doesn't run. At least it's not me then:-) You could try: set JAVA_HOME=c:\progra~1\jdk1.3.1_09 and see if it helps. Tried that and it didn't work. Same message as before. Thanks for helping and clarifying things for me. G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question: Tomcat 3.2.3 + JDK1.3.1_09 + Win2K
I haven't used 3.2.x in a very very long time. My first guess would be to check the batch files. From the error you are getting, it may just not be quoting the initial Java command. Of course, it is useless to submit a bug-report, since the 3.2.x line is no longer maintained. Graham Reeds [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I finally got Tomcat working last night. Nothing odd in that, you'd think, but the problems I have been having is quite frustrating. The reason was I would get a 'Unable to find Program ' message when trying to start the Tomcat server. However, at various stages of installation things would seemingly work fine. So I sat down with a clean system. I had removed all traces of JDK and Tomcat (not that there was any) from my registry and installed them both to their default locations, C:\jakarta-tomcat-3.2.3 and C:\jdk1.3.1_09. I then Modified the scripts and stuff to point to these locations (as mentioned in this tutorial: ) and it worked fine: I compiled a couple of scripts and ran them. I then rebooted and tried again. Still worked. Then I moved Tomcat to C:\Program Files\Apache Group\jakarta-tomcat-3.2.3 and modified the scripts accordingly. That worked (I could view the sample pages and compile my own), so I rebooted and tried again. That worked too. I then uninstalled the JDK, rebooted and installed the JDK to C:\Program Files\jdk1.3.1_09, modified the scripts and hey presto! It wouldn't work. I double checked the scripts. I rebooted, and it still didn't work. Uninstalled and reinstalled JDK to root, changed the scripts and then it worked. Conclusion: I think that Tomcat 3.2.3 has a flaw that can't work with the JDK having spaces in its JAVA_HOME path, but it can have spaces in the TOMCAT_HOME path. The reason I am not using a version higher than 3.2.3 is that I have seen enough to know that the layout of the file system can change drastically between versions in the same release and I'd rather work with an identical system to my Service Provider. And the reason I want the JDK in Program Files is that I like to have a clean PC with an elegant filing system. Having something break that system is irritating. So my question is: Is it possible to run Tomcat 3.2.3 with the JDK installed to some where other than Root which has spaces in the directory path (i.e: 'Program Files') ? -- Graham Reeds, [EMAIL PROTECTED] | http://omnieng.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question: Tomcat 3.2.3 + JDK1.3.1_09 + Win2K
Bill Barker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I haven't used 3.2.x in a very very long time. My first guess would be to check the batch files. From the error you are getting, it may just not be quoting the initial Java command. They are both in quotes - I forgot to mention that in my original post. That's why it is suprising. One works with quotes (TOMCAT_HOME) and the other doesn't (JAVA_HOME). Of course, it is useless to submit a bug-report, since the 3.2.x line is no longer maintained. True. Just wondering if anyone else had encountered this. If one person can honestly say 'I have had it working' then it comes down to me. However I am in a limbo where I don't know if it is me or not. -- Graham Reeds, [EMAIL PROTECTED] | http://omnieng.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie Question: Tomcat 3.2.3 + JDK1.3.1_09 + Win2K
Graham Reeds [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Bill Barker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I haven't used 3.2.x in a very very long time. My first guess would be to check the batch files. From the error you are getting, it may just not be quoting the initial Java command. They are both in quotes - I forgot to mention that in my original post. That's why it is suprising. One works with quotes (TOMCAT_HOME) and the other doesn't (JAVA_HOME). I just took a quick look in the CVS, and it looks like you are right. I don't know why the batch file doesn't run. You could try: set JAVA_HOME=c:\progra~1\jdk1.3.1_09 and see if it helps. Of course, it is useless to submit a bug-report, since the 3.2.x line is no longer maintained. True. Just wondering if anyone else had encountered this. If one person can honestly say 'I have had it working' then it comes down to me. However I am in a limbo where I don't know if it is me or not. -- Graham Reeds, [EMAIL PROTECTED] | http://omnieng.co.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question on Tomcat security
First, no direct requests for anything under WEB-INF is allowed. Second, check out the welcome-file element in web.xml. Make sure it says index.jsp. Third, check out the listings parameter, make sure it is set to off or false. Fourth, TURN OFF the Invoker, and DON'T use it. Fifth, use the security manager. Sixth, don't put ANYTHING confidential in a JSP...move it (like a database connection URL, a username, or a password) to web.xml or server.xml, or a properties file under WEB-INF. Seventh, if you really want to obscure paths when people view HTML source, simply make all URLs a call to a servlet with a parameter. This is a lot of extra work for not much benefit, but it can be done. The servlet reads the file from a protected area (like WEB-INF/*), sets the appropriate Content-Type, and spools the file to the client. This will work for any file, CSS, GIF, JPEG, whatever, as in a sense your servlet will just be a web server...the client doesn't care where the file is coming from, as long as the request is satisfied and the Content-Type is correct. Thus, when viewing HTML source, the path to a CSS file would not be myApp/my.css but soemthing like /servlet/fileGet?file=my.css. And, if you still want more info, consider the Apache Tomcat Security Handbook published by Wrox Press. John On Mon, 14 Jul 2003 19:05:18 -0500, epyonne [EMAIL PROTECTED] wrote: Thanks for the reply. Actually, I don't worry about people can do view source. I just don't like the fact that they can type in the folder and list the whole directory tree on the browser. They can open any file on the directory and potentially alter the code. Most web sites I've been to, if you type in the folder directory, you will get an access deny or something like that. I am wondering if I can set up something similar in Tomcat? By the way, I do have an index.jsp. Thanks. - Original Message - From: Reginald Oake [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 14, 2003 5:58 PM Subject: Re: Newbie question on Tomcat security Hi. I'm not certain about this but it seems to me that it would be next to impossible to keep the html source from being viewed by someone using any browser (this is not a server side issue). The source has to be uploaded to the browser and, once it is uploaded anyone can view source on the page. As far as keeping your directory structure at least a little bit more obscured you can do two things. You can never fully obscure the directory structure as the browser requires this information to load images, style sheets and links. The first is to put an index.jsp or index.html file in so that people cannot view your directory structure directly (there is probably a better way to do this). The second is to use servlet mappings. I'm not sure if this needs to be said but even though people can determine your directory structure with fairly little effort this does not, in itself, pose a security risk. Thanx Reg On Mon, 2003-07-14 at 15:49, substring wrote: Hello All, I just developed a JSP application called myapp, running on Tomcat 4.1.24. How can I keep people from accessing my files under tomcat/webapps/myapp? For example, people can do a simple view source and find the path to my css file, then they can type in the path on the browser to access my files. What kind of security that I should set up for that? I am pretty new to Tomcat so I need help. By the way, my OS is Windows 2000 Pro. Any help will be very much appreciated. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question on Tomcat security
Hi. I'm not certain about this but it seems to me that it would be next to impossible to keep the html source from being viewed by someone using any browser (this is not a server side issue). The source has to be uploaded to the browser and, once it is uploaded anyone can view source on the page. As far as keeping your directory structure at least a little bit more obscured you can do two things. You can never fully obscure the directory structure as the browser requires this information to load images, style sheets and links. The first is to put an index.jsp or index.html file in so that people cannot view your directory structure directly (there is probably a better way to do this). The second is to use servlet mappings. I'm not sure if this needs to be said but even though people can determine your directory structure with fairly little effort this does not, in itself, pose a security risk. Thanx Reg On Mon, 2003-07-14 at 15:49, substring wrote: Hello All, I just developed a JSP application called myapp, running on Tomcat 4.1.24. How can I keep people from accessing my files under tomcat/webapps/myapp? For example, people can do a simple view source and find the path to my css file, then they can type in the path on the browser to access my files. What kind of security that I should set up for that? I am pretty new to Tomcat so I need help. By the way, my OS is Windows 2000 Pro. Any help will be very much appreciated. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question on Tomcat security
Thanks for the reply. Actually, I don't worry about people can do view source. I just don't like the fact that they can type in the folder and list the whole directory tree on the browser. They can open any file on the directory and potentially alter the code. Most web sites I've been to, if you type in the folder directory, you will get an access deny or something like that. I am wondering if I can set up something similar in Tomcat? By the way, I do have an index.jsp. Thanks. - Original Message - From: Reginald Oake [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 14, 2003 5:58 PM Subject: Re: Newbie question on Tomcat security Hi. I'm not certain about this but it seems to me that it would be next to impossible to keep the html source from being viewed by someone using any browser (this is not a server side issue). The source has to be uploaded to the browser and, once it is uploaded anyone can view source on the page. As far as keeping your directory structure at least a little bit more obscured you can do two things. You can never fully obscure the directory structure as the browser requires this information to load images, style sheets and links. The first is to put an index.jsp or index.html file in so that people cannot view your directory structure directly (there is probably a better way to do this). The second is to use servlet mappings. I'm not sure if this needs to be said but even though people can determine your directory structure with fairly little effort this does not, in itself, pose a security risk. Thanx Reg On Mon, 2003-07-14 at 15:49, substring wrote: Hello All, I just developed a JSP application called myapp, running on Tomcat 4.1.24. How can I keep people from accessing my files under tomcat/webapps/myapp? For example, people can do a simple view source and find the path to my css file, then they can type in the path on the browser to access my files. What kind of security that I should set up for that? I am pretty new to Tomcat so I need help. By the way, my OS is Windows 2000 Pro. Any help will be very much appreciated. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question on Tomcat security
Hi. I don't know if this will be helpful but I have heard of people putting their JSPs and other ancilliary files inside the WEB-INF directory. I'm not sure what you have to do to make this work but it may well be worth looking into. Reg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question on Tomcat security
Actually, it is easier than that: They can just go the the browser's cache folder and view it from there. As such, you should consider that your .css files are public info, and leave it at that. epyonne =) [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello All, I just developed a JSP application called myapp, running on Tomcat 4.1.24. How can I keep people from accessing my files under tomcat/webapps/myapp? For example, people can do a simple view source and find the path to my css file, then they can type in the path on the browser to access my files. What kind of security that I should set up for that? I am pretty new to Tomcat so I need help. By the way, my OS is Windows 2000 Pro. Any help will be very much appreciated. _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question on Tomcat security
Look here: http://jakarta.apache.org/tomcat/faq/misc.html#listing At 19:05 14.07.2003 -0500, you wrote: Thanks for the reply. Actually, I don't worry about people can do view source. I just don't like the fact that they can type in the folder and list the whole directory tree on the browser. They can open any file on the directory and potentially alter the code. Most web sites I've been to, if you type in the folder directory, you will get an access deny or something like that. I am wondering if I can set up something similar in Tomcat? By the way, I do have an index.jsp. Thanks. - Original Message - From: Reginald Oake [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 14, 2003 5:58 PM Subject: Re: Newbie question on Tomcat security Hi. I'm not certain about this but it seems to me that it would be next to impossible to keep the html source from being viewed by someone using any browser (this is not a server side issue). The source has to be uploaded to the browser and, once it is uploaded anyone can view source on the page. As far as keeping your directory structure at least a little bit more obscured you can do two things. You can never fully obscure the directory structure as the browser requires this information to load images, style sheets and links. The first is to put an index.jsp or index.html file in so that people cannot view your directory structure directly (there is probably a better way to do this). The second is to use servlet mappings. I'm not sure if this needs to be said but even though people can determine your directory structure with fairly little effort this does not, in itself, pose a security risk. Thanx Reg On Mon, 2003-07-14 at 15:49, substring wrote: Hello All, I just developed a JSP application called myapp, running on Tomcat 4.1.24. How can I keep people from accessing my files under tomcat/webapps/myapp? For example, people can do a simple view source and find the path to my css file, then they can type in the path on the browser to access my files. What kind of security that I should set up for that? I am pretty new to Tomcat so I need help. By the way, my OS is Windows 2000 Pro. Any help will be very much appreciated. __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question: mod_jk not working Win 2000
Hi Keith - What's the URL you're accessing? Is it one of the examples servlets, or one of your own? John On Fri, 6 Jun 2003 13:39:24 -0400, Keith Adams [EMAIL PROTECTED] wrote: Hi I've laboriously followed instructions for linking Tomcat and Apache. When I try to run a servlet through Apache I get an internal server error. The mod_jk log contains one record saying that Tomcat was likely not listening for connections. But I used the default port in my workers.properties file (8009), so I'm not sure why it's not listening. I'm on a Windows 2000 Server, using tomcat 4.1.18 and Apache 2.0.43. Please bear in mind that I'm a relative newbie to Tomcat, Apache and jsps. Thanks! Keith Keith Adams Senior Application Developer SAS Institute 1 Montgomery Street #3400 San Francisco, CA 94104 Tel (415) 421-2227 Ext 1252 Cell (415) 531-3875 Fax (415) 421-1213 Approximate work hours 8.45-4.15 --- -- SAS Institute - The Power to Know -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question: mod_jk not working Win 2000
John It's the first example servlet: http://localhost:8090/examples/jsp/num/numguess.jsp (I have Apache installed on port 8090 since we run IIS also.) Thanks, Keith -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 11:27 AM To: Tomcat Users List Subject: Re: newbie question: mod_jk not working Win 2000 Hi Keith - What's the URL you're accessing? Is it one of the examples servlets, or one of your own? John On Fri, 6 Jun 2003 13:39:24 -0400, Keith Adams [EMAIL PROTECTED] wrote: Hi I've laboriously followed instructions for linking Tomcat and Apache. When I try to run a servlet through Apache I get an internal server error. The mod_jk log contains one record saying that Tomcat was likely not listening for connections. But I used the default port in my workers.properties file (8009), so I'm not sure why it's not listening. I'm on a Windows 2000 Server, using tomcat 4.1.18 and Apache 2.0.43. Please bear in mind that I'm a relative newbie to Tomcat, Apache and jsps. Thanks! Keith Keith Adams Senior Application Developer SAS Institute 1 Montgomery Street #3400 San Francisco, CA 94104 Tel (415) 421-2227 Ext 1252 Cell (415) 531-3875 Fax (415) 421-1213 Approximate work hours 8.45-4.15 --- -- SAS Institute - The Power to Know -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question: mod_jk not working Win 2000
I have a feeling this is going to be a stumper...I just bumped my Win2K Apache to 8090 and its fine with both JSPs and servlets. Oh wait...the problem is numguess.jsp? Not a servlet? What's the error message on the screen? Is there anything in Tomcat's log files? John On Fri, 6 Jun 2003 14:35:36 -0400, Keith Adams [EMAIL PROTECTED] wrote: John It's the first example servlet: http://localhost:8090/examples/jsp/num/numguess.jsp (I have Apache installed on port 8090 since we run IIS also.) Thanks, Keith -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 11:27 AM To: Tomcat Users List Subject: Re: newbie question: mod_jk not working Win 2000 Hi Keith - What's the URL you're accessing? Is it one of the examples servlets, or one of your own? John On Fri, 6 Jun 2003 13:39:24 -0400, Keith Adams [EMAIL PROTECTED] wrote: Hi I've laboriously followed instructions for linking Tomcat and Apache. When I try to run a servlet through Apache I get an internal server error. The mod_jk log contains one record saying that Tomcat was likely not listening for connections. But I used the default port in my workers.properties file (8009), so I'm not sure why it's not listening. I'm on a Windows 2000 Server, using tomcat 4.1.18 and Apache 2.0.43. Please bear in mind that I'm a relative newbie to Tomcat, Apache and jsps. Thanks! Keith Keith Adams Senior Application Developer SAS Institute 1 Montgomery Street #3400 San Francisco, CA 94104 Tel (415) 421-2227 Ext 1252 Cell (415) 531-3875 Fax (415) 421-1213 Approximate work hours 8.45-4.15 -- - -- SAS Institute - The Power to Know -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question: mod_jk not working Win 2000
John Thanks for getting back to me. The only log msg is in mod_jk.log and it reads: [Fri Jun 06 11:35:00 2003] [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 61 The error msg is below. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.0.46 (Win32) mod_jk/1.2.2-beta-1 DAV/2 Server at localhost Port 8090 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question: mod_jk not working Win 2000
Can you post mod_jk.conf, server.xml, and workers.properties? Sounds to me like Tomcat isn't starting up, or there is something goofy with workers.properties. John On Fri, 6 Jun 2003 14:57:03 -0400, Keith Adams [EMAIL PROTECTED] wrote: John Thanks for getting back to me. The only log msg is in mod_jk.log and it reads: [Fri Jun 06 11:35:00 2003] [jk_ajp_common.c (1198)]: Error connecting to tomcat. Tomcat is probably not started or is listenning on the wrong port. Failed errno = 61 The error msg is below. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -- -- Apache/2.0.46 (Win32) mod_jk/1.2.2-beta-1 DAV/2 Server at localhost Port 8090 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question: mod_jk not working Win 2000
John Tomcat seems to start fine - no error msgs. Here's mod_jk.conf * ## Auto generated on Wed Jul 31 12:53:26 EDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile D:\jakarta-tomcat-4.1.18\conf\jk\workers.properties JkLogFile D:/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel error VirtualHost localhost ServerName localhost localhost:/manager # Static files Alias /manager D:/jakarta-tomcat-4.1.18/webapps/manager Directory D:/jakarta-tomcat-4.1.18/webapps/manager Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /manager/WEB-INF/* AllowOverride None deny from all /Location Location /manager/META-INF/* AllowOverride None deny from all /Location JkMount /manager/* ajp13 JkMount /manager/*.jsp ajp13 JkMount /manager/servlet/* ajp13 localhost:/examples # Static files Alias /examples D:/jakarta-tomcat-4.1.18/webapps/examples Directory D:/jakarta-tomcat-4.1.18/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/SendMailServlet ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/snoop ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servlet/* ajp13 localhost:/tomcat-docs # Static files Alias /tomcat-docs D:/jakarta-tomcat-4.1.18/webapps/tomcat-docs Directory D:/jakarta-tomcat-4.1.18/webapps/tomcat-docs Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /tomcat-docs/WEB-INF/* AllowOverride None deny from all /Location Location /tomcat-docs/META-INF/* AllowOverride None deny from all /Location JkMount /tomcat-docs/*.jsp ajp13 JkMount /tomcat-docs/servlet/* ajp13 localhost:/webdav # Static files Alias /webdav D:/jakarta-tomcat-4.1.18/webapps/webdav Directory D:/jakarta-tomcat-4.1.18/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all /Location JkMount /webdav/*.jsp ajp13 JkMount /webdav/servlet/* ajp13 /VirtualHost * server.xml * !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !--Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=D:/Program files/Apache group/Apache2/modules/mod_jk-2.0.43.dll /-- !-- Comment these entries out to disable JMX MBeans support -- !-- You may also configure custom components (e.g. Valves/Realms) by including your own mbean-descriptor file(s), and setting the descriptors attribute to point to a ';' seperated list of paths (in the ClassLoader sense) of files to add to the default list. e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value
Re: newbie question: mod_jk not working Win 2000
I notice that the LoadModule line in mod_jk.conf and the modJk parameter in server.xml are different, mod_jk.dll vs. mod_jk-2.0.43.dll. Can you verify that the mod_jk.conf file you posted is actually the mod_jk.conf file that Apache is loading? Also verify syntax with apache.exe -t from the command line. -t should return Syntax OK John On Fri, 6 Jun 2003 15:09:07 -0400, Keith Adams [EMAIL PROTECTED] wrote: John Tomcat seems to start fine - no error msgs. Here's mod_jk.conf * ## Auto generated on Wed Jul 31 12:53:26 EDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile D:\jakarta-tomcat-4.1.18\conf\jk\workers.properties JkLogFile D:/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel error VirtualHost localhost ServerName localhost localhost:/manager # Static files Alias /manager D:/jakarta-tomcat-4.1.18/webapps/manager Directory D:/jakarta-tomcat-4.1.18/webapps/manager Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /manager/WEB-INF/* AllowOverride None deny from all /Location Location /manager/META-INF/* AllowOverride None deny from all /Location JkMount /manager/* ajp13 JkMount /manager/*.jsp ajp13 JkMount /manager/servlet/* ajp13 localhost:/examples # Static files Alias /examples D:/jakarta-tomcat- 4.1.18/webapps/examples Directory D:/jakarta-tomcat-4.1.18/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /examples/WEB-INF/* AllowOverride None deny from all /Location Location /examples/META-INF/* AllowOverride None deny from all /Location JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/SendMailServlet ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/snoop ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servlet/* ajp13 localhost:/tomcat-docs # Static files Alias /tomcat-docs D:/jakarta-tomcat- 4.1.18/webapps/tomcat-docs Directory D:/jakarta-tomcat-4.1.18/webapps/tomcat-docs Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /tomcat-docs/WEB-INF/* AllowOverride None deny from all /Location Location /tomcat-docs/META-INF/* AllowOverride None deny from all /Location JkMount /tomcat-docs/*.jsp ajp13 JkMount /tomcat-docs/servlet/* ajp13 localhost:/webdav # Static files Alias /webdav D:/jakarta-tomcat-4.1.18/webapps/webdav Directory D:/jakarta-tomcat-4.1.18/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all /Location JkMount /webdav/*.jsp ajp13 JkMount /webdav/servlet/* ajp13 /VirtualHost * server.xml * !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !--Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=D:/Program files/Apache group/Apache2/modules/mod_jk-2.0.43.dll /- - !-- Comment these entries out to disable JMX MBeans support -- !-- You may also configure custom components (e.g. Valves/Realms) by including your own mbean-descriptor file(s), and setting the descriptors attribute to point to a ';' seperated list of paths (in the ClassLoader sense) of files to add to the default list. e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams
RE: newbie question: mod_jk not working Win 2000
John You're correct in the first point. I fixed that (using the correct name mod_jk-2.0.43.dll). Yes, it's loading the mod_jk.conf, because if I run apache.exe -t from the command line and deliberately introduce an error into the mod_jk.conf, Apache reports the syntax error. When I remove the deliberate error, I get Syntax Ok. Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question: mod_jk not working Win 2000
Sorry, I'm stumped. Things look OK to me. Anyone else? John On Fri, 6 Jun 2003 15:35:27 -0400, Keith Adams [EMAIL PROTECTED] wrote: John You're correct in the first point. I fixed that (using the correct name mod_jk-2.0.43.dll). Yes, it's loading the mod_jk.conf, because if I run apache.exe -t from the command line and deliberately introduce an error into the mod_jk.conf, Apache reports the syntax error. When I remove the deliberate error, I get Syntax Ok. Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question: mod_jk not working Win 2000
I would suggest your answer to another user a few minutes ago. Make sure you start tomcat before apache. I usaully wait 30 secs bewteen tomcat and apache Also after you start tomcat try telnet localhost 8009 to truly determine if the ajp connector is working. If you get connection refused, there is no listener Jeff -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 1:40 PM To: Tomcat Users List Subject: Re: newbie question: mod_jk not working Win 2000 Sorry, I'm stumped. Things look OK to me. Anyone else? John On Fri, 6 Jun 2003 15:35:27 -0400, Keith Adams [EMAIL PROTECTED] wrote: John You're correct in the first point. I fixed that (using the correct name mod_jk-2.0.43.dll). Yes, it's loading the mod_jk.conf, because if I run apache.exe -t from the command line and deliberately introduce an error into the mod_jk.conf, Apache reports the syntax error. When I remove the deliberate error, I get Syntax Ok. Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question: mod_jk not working Win 2000
Thanks for your help. I did start tomcat before apache, and waited 1 minute. When I tried: telnet localhost 8009 I got a connection refused message. I also tried: telnet localhost:8090 8009 (since my apache is on 8090), same result. What do you mean, there is no listener? I'm a newbie, remember. Thanks , Keith -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 12:46 PM To: 'Tomcat Users List' Subject: RE: newbie question: mod_jk not working Win 2000 I would suggest your answer to another user a few minutes ago. Make sure you start tomcat before apache. I usaully wait 30 secs bewteen tomcat and apache Also after you start tomcat try telnet localhost 8009 to truly determine if the ajp connector is working. If you get connection refused, there is no listener Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question: mod_jk not working Win 2000
He means there's no Connector listening on port 8009. You have a Connector configured in your server.xml for 8009 (the JK connection port). Do you have any firewalling software on this PC that would prohibit a connection on port 8009? John On Fri, 6 Jun 2003 15:54:16 -0400, Keith Adams [EMAIL PROTECTED] wrote: Thanks for your help. I did start tomcat before apache, and waited 1 minute. When I tried: telnet localhost 8009 I got a connection refused message. I also tried: telnet localhost:8090 8009 (since my apache is on 8090), same result. What do you mean, there is no listener? I'm a newbie, remember. Thanks , Keith -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 12:46 PM To: 'Tomcat Users List' Subject: RE: newbie question: mod_jk not working Win 2000 I would suggest your answer to another user a few minutes ago. Make sure you start tomcat before apache. I usaully wait 30 secs bewteen tomcat and apache Also after you start tomcat try telnet localhost 8009 to truly determine if the ajp connector is working. If you get connection refused, there is no listener Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question: mod_jk not working Win 2000
John I'm pretty sure there's no firewall. Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question: mod_jk not working Win 2000
Hello, Keith Adams wrote: * ## Auto generated on Wed Jul 31 12:53:26 EDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile D:\jakarta-tomcat-4.1.18\conf\jk\workers.properties Since this file was generated automatically, so somewhere you entered the above path. But anyway, please change the backward slashes to forward slashes, which works both in windows and unix env. The backslash also means escape character in many environments. Best Bao JkLogFile D:/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel error VirtualHost localhost ServerName localhost localhost:/manager - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question: mod_jk not working Win 2000
Bao Thanks. Did so, but made no diff. Keith -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 1:09 PM To: Tomcat Users List Subject: Re: newbie question: mod_jk not working Win 2000 * ## Auto generated on Wed Jul 31 12:53:26 EDT 2002## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.dll /IfModule JkWorkersFile D:\jakarta-tomcat-4.1.18\conf\jk\workers.properties Since this file was generated automatically, so somewhere you entered the above path. But anyway, please change the backward slashes to forward slashes, which works both in windows and unix env. The backslash also means escape character in many environments. Best Bao - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question: mod_jk not working Win 2000
On Sat, 7 Jun 2003 03:09, Keith Adams wrote: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Possibly connectionTimeout=0 is causing a problem, I notice mine from 4.1.18 was set to 2 and I re-used that for 4.1.24 but 4.1.24 has it set to 0 by default. I'm running mod_jk2 and tried to see what would happen setting it to 0 but it had no effect, so I don't think this is it but it can't hurt to try. Also are there any cannot bind to port related errors in your log files when starting up, either CATALINA_HOME\logs\localhost_date.txt or APACHE_HOME\logs\stderr.log? For some reason it seems like the listener on port 8009 isn't starting up. Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question: mod_jk not working Win 2000
You might try setting debug=99 in the connector tag so as to generate a good deal of logging in catalina.out when the server starts up You might also want to try the non-coyote connector right below the one you are using. !-- Define an AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- -Original Message- From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 2:28 PM To: Tomcat Users List Subject: Re: newbie question: mod_jk not working Win 2000 On Sat, 7 Jun 2003 03:09, Keith Adams wrote: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Possibly connectionTimeout=0 is causing a problem, I notice mine from 4.1.18 was set to 2 and I re-used that for 4.1.24 but 4.1.24 has it set to 0 by default. I'm running mod_jk2 and tried to see what would happen setting it to 0 but it had no effect, so I don't think this is it but it can't hurt to try. Also are there any cannot bind to port related errors in your log files when starting up, either CATALINA_HOME\logs\localhost_date.txt or APACHE_HOME\logs\stderr.log? For some reason it seems like the listener on port 8009 isn't starting up. Regards, -- Jason Bainbridge http://jblinux.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question: mod_jk not working Win 2000
-Original Message- From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Possibly connectionTimeout=0 is causing a problem, I notice mine from 4.1.18 was set to 2 and I re-used that for 4.1.24 but 4.1.24 has it set to 0 by default. It should not be a problem, otherwise it would not have come to the default value in the first place. Like in Apache, I think here the value '0' means 'forever'. Best Bao I'm running mod_jk2 and tried to see what would happen setting it to 0 but it had no effect, so I don't think this is it but it can't hurt to try. Also are there any cannot bind to port related errors in your log files when starting up, either CATALINA_HOME\logs\localhost_date.txt or APACHE_HOME\logs\stderr.log? For some reason it seems like the listener on port 8009 isn't starting up. Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question: mod_jk not working Win 2000
Bao No, no errors. But the weird thing is that there is no Tomcat log - only a mod_jk log. Thanks, Keith Also are there any cannot bind to port related errors in your log files when starting up, either CATALINA_HOME\logs\localhost_date.txt or APACHE_HOME\logs\stderr.log? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie question
If you are only going to serve html, jpg, gif, css, etc. pages. (i.e. static text files) then you should not be using tomcat at all. Instead you should use Apache web server. Only use Tomcat if you want to run Java based Web-applications. If for some reason you MUST you Tomcat then put the files in a directory you create under the webapps directory. then put the name of your directory on the end of your URL. One other thing you must do though is create a directory in your sub-directory called WEB-INF and in it put a text-file called web.xml which has the following contents: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app /web-app Hope that helps, Andoni. - Original Message - From: Pascal Platteeuw [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 28, 2002 12:11 PM Subject: newbie question Hello, I've installed tomcat but I still have some problems to make it run as I want... Tomcat is an Http server right ? Then how do I see the HTML page I write and that are not in the tomcat root (my html pages, my images, and css are on a separate disk...) ? Is there something I miss ? Please help... I want to have tomcat installed in one place and all the web site (html, css, image, jps, servlets,...) installed on another drive ? How do i tell tomcat to go looking on the other drive... Many thanks in advance... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie question -- help.
Start Tomcat (from the Start Menu on Windows if that is what you are using) and then point your browser to http://localhost:8080/. -Original Message- From: Shiva Paranandi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 27 November 2002 3:05 PM To: [EMAIL PROTECTED] Subject: Newbie question -- help. How do I access the ROOT web app in the default webapps directory in tomcat? I want to access it with a browser. Thanks, Shiva. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.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: newbie question creating and serving a context
Try docBase=jsp_public At 06:02 PM 11/17/02, you wrote: Hi, I'm having a really frustrating problem just creating a simple context using Tomcat 4 on a Linux server. I edit server.xml in my conf directory to include: Context path=/jsp_public docBase=/var/tomcat4/webapps/jsp_public debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_manager_log. suffix=.txt timestamp=true/ /Context then in /var/tomcat4/webapps/ I created the folder jsp_public as well as a subdirectory WEB-INF where I added empty folders classes and lib and the following web.xml: ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-namePublic JSP directory/display-name descriptionjust trying to create a context for public development./description context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value descriptionThe EMAIL address of the administrator to whom questions and comments about this application should be addressed./description /context-param session-config session-timeout30/session-timeout /session-config /web-app but when I restart the server it always fails to recognize my context. It serves the built in examples contexts just fine out of the same directory. Anyways, what am I doing wrong? Can anyone help? Thanks! Jim _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- 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: newbie question creating and serving a context
I you are serving out of Tomcat's webapps directory, try changing docBase to docBase=jsp_public instead of the full path from the root of the filesystem. Jake At 02:02 AM 11/18/2002 +, you wrote: Hi, I'm having a really frustrating problem just creating a simple context using Tomcat 4 on a Linux server. I edit server.xml in my conf directory to include: Context path=/jsp_public docBase=/var/tomcat4/webapps/jsp_public debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_manager_log. suffix=.txt timestamp=true/ /Context then in /var/tomcat4/webapps/ I created the folder jsp_public as well as a subdirectory WEB-INF where I added empty folders classes and lib and the following web.xml: ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-namePublic JSP directory/display-name descriptionjust trying to create a context for public development./description context-param param-namewebmaster/param-name param-value[EMAIL PROTECTED]/param-value descriptionThe EMAIL address of the administrator to whom questions and comments about this application should be addressed./description /context-param session-config session-timeout30/session-timeout /session-config /web-app but when I restart the server it always fails to recognize my context. It serves the built in examples contexts just fine out of the same directory. Anyways, what am I doing wrong? Can anyone help? Thanks! Jim _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: newbie question on connectors
JK2 is still in development, you might be better off with JK, which would be isapi_redirector.dll. You can create workers.properties and uriworkermap.properties, they are just text files. Resources on using IIS with Tomcat are pretty scarce. I have this bookmark, which is for an older version of Tomcat, but it might help: http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm also http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html John -Original Message- From: [EMAIL PROTECTED] [mailto:BillP;DigitalGarden.com] Sent: Thursday, October 17, 2002 2:06 PM To: [EMAIL PROTECTED] Subject: newbie question on connectors I'm completely new to Tomcat. We looking at switching to it from JRun because version 4 seems to be increasing the bugs rather than decreasing. I've installed Tomcat (4.1.12) on my local dev machine to test it out and everything went fine. Surprisingly easy install. Kudos to Apache. However, I'm really confused about connectors for IIS (IIS 5 in my case). There seems to be several different connectors and a couple version a piece. I'm not even sure which one to use. My best guess is jk2? The docs seem to indicate that the three components are isapi_redirect.dll, workers.properties, uriworkermap.properties. I can't find these anywhere in the Tomcat distribution. In the download area I can find those in the release 3 but not in release 4. In the /builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/bin/win32 directory, I find isapi_redirector2.dll http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk 2/release/v2.0 .1/bin/win32/isapi_redirector2.dll , perhaps a new version, but not a zip with the properties file. I downloaded the connector source build and found workers2.properties but not the other. So I'm pretty confused about all this connector stuff. Any directions, help, pointers would be appreciated. thanks bill page [EMAIL PROTECTED] Digital Garden Software, Inc. 856 US Hwy 206 Bldg B Ste 15 Hillsborough, NJ 08844 908.904.0664 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: newbie question on connectors
thanks John; exactly what I needed. Worked almost perfect. 1 I had to change references to the home directory to reference the 4.1.12 install 2 The unzip of the dll and properties went into the right place, but the *.reg file went to home rather than the specified home\conf\iisnt directory. Having spent some hours trying to figure this out, I get it up and running in about 15 minutes. And that included munging the instructions a little to check whether a couple things were actually necessary. bp -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, October 17, 2002 2:18 PM To: 'Tomcat Users List' Subject: RE: newbie question on connectors JK2 is still in development, you might be better off with JK, which would be isapi_redirector.dll. You can create workers.properties and uriworkermap.properties, they are just text files. Resources on using IIS with Tomcat are pretty scarce. I have this bookmark, which is for an older version of Tomcat, but it might help: http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm also http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html John -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: newbie question on connectors
Great! Glad those docs helped you out. If you are so inclined, perhaps you could write a quick HOWTO with the changes you described, updated for 4.1.12? I'm sure there are others out there that would appreciate a recently updated HOWTO on IIS + Tomcat, and if you have changes to the JK2 doc at jakarta.apache.org, I'm sure the developers there would appreciate them as well. John -Original Message- From: [EMAIL PROTECTED] [mailto:BillP;DigitalGarden.com] Sent: Thursday, October 17, 2002 3:53 PM To: [EMAIL PROTECTED] Subject: RE: newbie question on connectors thanks John; exactly what I needed. Worked almost perfect. 1 I had to change references to the home directory to reference the 4.1.12 install 2 The unzip of the dll and properties went into the right place, but the *.reg file went to home rather than the specified home\conf\iisnt directory. Having spent some hours trying to figure this out, I get it up and running in about 15 minutes. And that included munging the instructions a little to check whether a couple things were actually necessary. bp -Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, October 17, 2002 2:18 PM To: 'Tomcat Users List' Subject: RE: newbie question on connectors JK2 is still in development, you might be better off with JK, which would be isapi_redirector.dll. You can create workers.properties and uriworkermap.properties, they are just text files. Resources on using IIS with Tomcat are pretty scarce. I have this bookmark, which is for an older version of Tomcat, but it might help: http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm also http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html John -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Newbie question
You might also need to set CATALINA_HOME to the directory where you installed tomcat. Try the examples URL: http://localhost:8080/examples or http://localhost:8080/examples/ There should be logs in CATALINA_HOME/logs. John Turner [EMAIL PROTECTED] -Original Message- From: Eldridge, Michael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 10:41 AM To: '[EMAIL PROTECTED]' Subject: Newbie question I am new to Tomcat and new to JDK. So please be gentle with me ... I installed JDK 1.3.1 on an NT server. I then installed Tomcat on the same server. Following the information in the document tomcat-ug.html, I set JAVA_HOME=c:/jdk1.3.1 set PATH=%JAVA_HOME%\BIN;%path% Then, through a DOS window I issued the command bin\startup Another window opened and Tomcat appeared to start -- at least, according to the task manager it started. Now, comes the question setup. When I launch my browser (IE 5.x) and point it at http://localhost:8080 http://localhost:8080 I get a DNS error page. And the questions are Is there a better documentation document? How do I capture logs so I can get a better idea what is happening? Are there other configurations I need to do? Thank you for any suggestions. Michael Eldridge Team Leader E-Business Services Graphic Arts Center Indianapolis 317-388-5487 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie question
Thank you John, I have no examples folder, and as far as I can tell, I have no Catalina_home/logs. Now I'm wondering if I downloaded the wrong file, or missed another download I needed. The file I downloaded was jakarta-tomcat-3.3.1.zip. Did I miss something as basic as an entire archive. Thanks Michael Eldridge Team Leader E-Business Services Graphic Arts Center Indianapolis 317-388-5487 -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 9:44 AM To: 'Tomcat Users List' Subject: RE: Newbie question You might also need to set CATALINA_HOME to the directory where you installed tomcat. Try the examples URL: http://localhost:8080/examples or http://localhost:8080/examples/ There should be logs in CATALINA_HOME/logs. John Turner [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie question
Hmmm...I didn't realize we were talking about 3.3.x. It's been awhile since I had to setup a tomcat 3.x instance, I'm not even sure it looks for CATALINA_HOME. Is there a reason you chose 3.x over 4? I'm not advocating one or the other, but most of the traffic on this list seems to deal with 4. 4.0.4 is the current production-quality release of tomcat 4, though I am working with 4.0.3. If you unzip the 4.0.x zip file, there's definitely a CATALINA_HOME/logs and an examples folder. John Turner [EMAIL PROTECTED] -Original Message- From: Eldridge, Michael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 11:12 AM To: 'Tomcat Users List' Subject: RE: Newbie question Thank you John, I have no examples folder, and as far as I can tell, I have no Catalina_home/logs. Now I'm wondering if I downloaded the wrong file, or missed another download I needed. The file I downloaded was jakarta-tomcat-3.3.1.zip. Did I miss something as basic as an entire archive. Thanks Michael Eldridge Team Leader E-Business Services Graphic Arts Center Indianapolis 317-388-5487 -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 9:44 AM To: 'Tomcat Users List' Subject: RE: Newbie question You might also need to set CATALINA_HOME to the directory where you installed tomcat. Try the examples URL: http://localhost:8080/examples or http://localhost:8080/examples/ There should be logs in CATALINA_HOME/logs. John Turner [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]