Is Tomcat part of this product?
*Hello Everyone, Pardon my ignorance, its been a while since, I've been on this list. I have a question and I'm not trying to start a flame war or anything like that I really am just interested in the differences. I would like to know what the differences are between Tomcat 5.x and Sun Java System Application Server Platform Edition 8 Update 1. I know that the Sun product allows EJBs and such. I guess what I'm after is besides that, is there any real value to using Tomcat over it or vice-versa? Either technically or legally (licensing)? Its my understanding that part of the Sun product comes with a version of Tomcat, is it version 5.x? Can I get the same functionality from Tomcat that I can from the Sun product? Is Tomcat better? I know I'm asking a lot of questions about this, but I want to setup an Apache 2, PHP and Java website with MySQL. Any insight that can be provided would be much appreciated. Thanks, John * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: connecting to mysql database
Chad Wray wrote: I am trying to access a mysql database on a linux box. I am getting the following error: javax.servlet.ServletException: Unable to load class org.gjt.mm.mysql.Driver at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1.java:185) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.ClassNotFoundException: Unable to load class org.gjt.mm.mysql.Driver at org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffantasyFootball_0002ejspfantasyFootball_jsp_1.java:72) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Is there anything special I need to do get Tomcat to talk to mysql? Thanks, -- Chad __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ Hi, Looks like the mysql driver isn't in your classpath. Place the driver in your classpath and it should work. I hope this helps. John Brosan
RE: Servlet web hosting?
Hi Lloyd, Webhosting may be a bit off topic for this list, but I would be glad to help you out. I just moved from an M$ centric host as well. What I've done may be a little different than what you want. First off I will say that my new webhost does not support servlets at this time. However, they do support PHP. I use PHP to redirect to my Linux server at my home that is setup with Apache, Tomcat and mySQL. That way I don't have to worry about E-mail setups and such and I can just focus on getting my server setup and coding. :-) I use... http://www.pronicsolutions.com I have the $10.95 a month plan and I get a LOT more than I really use. If you would like to compare and contrast different webhosting companies, I recomend checking out the following site. http://www.hostsearch.com I like the control panel that ProNicSolutions gives you to use, very nice. Hope this helps. Sorry, for the kinda, sorta off topic reply everyone. Thanks John Brosan -Original Message- From: Lloyd Llewellyn [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 9:32 AM To: [EMAIL PROTECTED] Subject: Servlet web hosting? Hello - I'm new to the list, and pretty new to Tomcat (and Java in general). I'm in the process of moving all my personal MS stuff over to Linux and Java. My current web hosting provider is very MS-centric, so I'm looking for a new one that supports servlets. Does anyone on this list use such a provider with whom they are satisfied? wrt servlet hosting, I'm primarily interested in having the latest and greatest software available (like the latest beta of Tomcat, e.g.) than I am with rock-solid stability. Also, domain hosting, multiple mail accounts (IMAP would be nice), and the ability to create users with file permissions as well. Thanks very much for your recommendations. I know there are a lot of web hosting service guides out there, but it's hard to get a true feel of how a service performs without speaking with actual users.
Re: Problems with a simple JSP and mySQL connect
Hello everyone, Thanks for your help on this. My problem did indeed turn out to be MySQL related. After doing some more digging on Dejanews I found the following link. http://groups.google.com/groups?hl=ensafe=offth=976ec1cd8689bfcb,8seekm=3a5df3ac%241%40newsgate.hknet.com#p I followed these directions exactly replacing my own userid and password there and POOF! Everything worked. Thanks to the author of this solution! :-) Thanks John Brosan This what I did after researching here and in mysql web site: 1. Shutdown your mysql server and kill mysql process alive. 2. Start the server with command: ./bin/safe_mysqld --skip-grant-tables 3. start mysql with command: ./bin/mysql --user root mysql 4. Once inside SQL: Issue the following commands ( replace with appropriate user name and passwd etc. ) mysql INSERT INTO user VALUES('localhost','monty',PASSWORD('some_pass'), 'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y') mysql INSERT INTO user VALUES('%','monty',PASSWORD('some_pass'), 'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y') mysql INSERT INTO user SET Host='localhost',User='admin', Reload_priv='Y', Process_priv='Y'; mysql INSERT INTO user (Host,User,Password) VALUES('localhost','dummy',''); mysql FLUSH PRIVILEGES; 5. quit from mysql and kill any mysql process alive 6. start the server with command: ./bin/safe_mysqld Now you should be able to use user monty and passwd some_pass to connect to the server. Hope it helps. susilkp Simon Chan wrote: Your connection string should be jdbc:mysql://localhost/howlerdb?user=howlerpassword=winston2644 if howlerdb is your db name skc Howler D. Wolfe wrote: Currently, I have it all on 1 machine, Tomcat, Apache, and MySQL, larry, and I am logged in as howler Simon Chan wrote: Which machine (host) and what db account you access the database from? Howler D. Wolfe wrote: I have data in this table as follows HOST USER PW PRIVS (shortened to save space) ---+-+---+--- localhost root All are set to 'Y' larry root (empty) All are set to 'Y' localhost (empty) (empty) All are set to 'N' larry (empty) (empty) All are set to 'N' localhost howler All are set to 'Y' Not sure whats going on with this or what exactly should be here. Any suggestions would be helpful Thanks John Brosan Simon Chan wrote: Please check your mysql.user table to make sure that your client machine is in the host field. skc Howler D. Wolfe wrote: Hello Everyone, I apologize if this has been answered in a previous post. I've been digging through old posts and and searching on the net for an answer to this problem. I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest version). I am able to run the examples without a hitch. I am new to Java, JSP and MySQL, I have created a database with two tables, when I try to use the MySQL driver to connect to the database I get the following error. I think I get this error because I don't have a user other than root setup on MySQL. In my searching for an answer, I read about using the URL of the MySQL db as part of getConnection(). I tried this and it failed due to the MySQL port not being open on my firewall. After I opened the appropriate port, I got the same error. What have I failed to do when setting up MySQL? I've installed it, ran the grants, I think I've done what was supposed to be done. I've used the user id of root with the password I set for it. Partial Error Text follows: * java.sql.SQLException: Server configuration denies access to data source* Thanks in advance John Brosan -- Simon Chan, Senior System Analyst, Rawmart.com, Inc. 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED] http://www.rawmart.com , the next dimension in the trading of raw materials, please register now. An initiative of the Noble Group. Please visit us at http://www.thisisnoble.com -- Simon Chan, Senior System Analyst, Rawmart.com, Inc. 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED] http://www.rawmart.com , the next dimension in the trading of raw materials, please register now. An initiative of the Noble Group. Please visit us at http://www.thisisnoble.com
Problems with a simple JSP and mySQL connect
Hello Everyone, I apologize if this has been answered in a previous post. I've been digging through old posts and and searching on the net for an answer to this problem. I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest version). I am able to run the examples without a hitch. I am new to Java, JSP and MySQL, I have created a database with two tables, when I try to use the MySQL driver to connect to the database I get the following error. I think I get this error because I don't have a user other than root setup on MySQL. In my searching for an answer, I read about using the URL of the MySQL db as part of getConnection(). I tried this and it failed due to the MySQL port not being open on my firewall. After I opened the appropriate port, I got the same error. What have I failed to do when setting up MySQL? I've installed it, ran the grants, I think I've done what was supposed to be done. I've used the user id of root with the password I set for it. Partial Error Text follows: * java.sql.SQLException: Server configuration denies access to data source* Thanks in advance John Brosan
Re: Problems with a simple JSP and mySQL connect
I have data in this table as follows HOST USER PW PRIVS (shortened to save space) ---+-+---+--- localhost root All are set to 'Y' larry root (empty) All are set to 'Y' localhost (empty) (empty) All are set to 'N' larry (empty) (empty) All are set to 'N' localhost howler All are set to 'Y' Not sure whats going on with this or what exactly should be here. Any suggestions would be helpful Thanks John Brosan Simon Chan wrote: Please check your mysql.user table to make sure that your client machine is in the host field. skc Howler D. Wolfe wrote: Hello Everyone, I apologize if this has been answered in a previous post. I've been digging through old posts and and searching on the net for an answer to this problem. I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest version). I am able to run the examples without a hitch. I am new to Java, JSP and MySQL, I have created a database with two tables, when I try to use the MySQL driver to connect to the database I get the following error. I think I get this error because I don't have a user other than root setup on MySQL. In my searching for an answer, I read about using the URL of the MySQL db as part of getConnection(). I tried this and it failed due to the MySQL port not being open on my firewall. After I opened the appropriate port, I got the same error. What have I failed to do when setting up MySQL? I've installed it, ran the grants, I think I've done what was supposed to be done. I've used the user id of root with the password I set for it. Partial Error Text follows: * java.sql.SQLException: Server configuration denies access to data source* Thanks in advance John Brosan
Re: Problems with a simple JSP and mySQL connect
Here is the code I am using. Please try not to laugh too much, keep in mind I am new to JSP and Java. ;-) Thanks John Brosan %@page contentType=text/html import=java.sql.* % html body %= new String(Hello there John) % % Class.forName(org.gjt.mm.mysql.Driver); Connection con = DriverManager.getConnection(jdbc:mysql:///howlerdb,howler, winston2644); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(SELECT * FROM tblMenu); while (rs.next()) { out.println(rs.getString(MnuItemName)); out.println(BR); } try { if ( rs!=null ) rs.close(); if ( stmt!=null) stmt.close(); if ( con!=null ) con.close(); } catch (SQLException ignored) {} % /body /html Matt Read wrote: You'll need to show the code you use to establish the connection, in the meantime here's an example of some lines of code I use to establish a connection that works, hopefully this will help... import java.sql.*; public class MyClass { public MyClass() throws SQLException { Class.forName(org.gjt.mm.mysql.Driver).newInstance(); Connection c = DriverManager.getConnection(jdbc:mysql://mymachine.mydomain.com/mySqlDataba seName?user=myUserNamepassword=myPassword); } } Matt. - Original Message - From: Howler D. Wolfe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 18 July 2001 14:19 Subject: Problems with a simple JSP and mySQL connect Hello Everyone, I apologize if this has been answered in a previous post. I've been digging through old posts and and searching on the net for an answer to this problem. I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest version). I am able to run the examples without a hitch. I am new to Java, JSP and MySQL, I have created a database with two tables, when I try to use the MySQL driver to connect to the database I get the following error. I think I get this error because I don't have a user other than root setup on MySQL. In my searching for an answer, I read about using the URL of the MySQL db as part of getConnection(). I tried this and it failed due to the MySQL port not being open on my firewall. After I opened the appropriate port, I got the same error. What have I failed to do when setting up MySQL? I've installed it, ran the grants, I think I've done what was supposed to be done. I've used the user id of root with the password I set for it. Partial Error Text follows: * java.sql.SQLException: Server configuration denies access to data source* Thanks in advance John Brosan
Re: Problems with a simple JSP and mySQL connect
Currently, I have it all on 1 machine, Tomcat, Apache, and MySQL, larry, and I am logged in as howler Simon Chan wrote: Which machine (host) and what db account you access the database from? Howler D. Wolfe wrote: I have data in this table as follows HOST USER PW PRIVS (shortened to save space) ---+-+---+--- localhost root All are set to 'Y' larry root (empty) All are set to 'Y' localhost (empty) (empty) All are set to 'N' larry (empty) (empty) All are set to 'N' localhost howler All are set to 'Y' Not sure whats going on with this or what exactly should be here. Any suggestions would be helpful Thanks John Brosan Simon Chan wrote: Please check your mysql.user table to make sure that your client machine is in the host field. skc Howler D. Wolfe wrote: Hello Everyone, I apologize if this has been answered in a previous post. I've been digging through old posts and and searching on the net for an answer to this problem. I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest version). I am able to run the examples without a hitch. I am new to Java, JSP and MySQL, I have created a database with two tables, when I try to use the MySQL driver to connect to the database I get the following error. I think I get this error because I don't have a user other than root setup on MySQL. In my searching for an answer, I read about using the URL of the MySQL db as part of getConnection(). I tried this and it failed due to the MySQL port not being open on my firewall. After I opened the appropriate port, I got the same error. What have I failed to do when setting up MySQL? I've installed it, ran the grants, I think I've done what was supposed to be done. I've used the user id of root with the password I set for it. Partial Error Text follows: * java.sql.SQLException: Server configuration denies access to data source* Thanks in advance John Brosan -- Simon Chan, Senior System Analyst, Rawmart.com, Inc. 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED] http://www.rawmart.com , the next dimension in the trading of raw materials, please register now. An initiative of the Noble Group. Please visit us at http://www.thisisnoble.com
Re: Problems with a simple JSP and mySQL connect
Simon, I miss read your question. The host machine is larry and the db account I use is root I hope that clarifies things. Thanks again John Brosan Simon Chan wrote: Which machine (host) and what db account you access the database from? Howler D. Wolfe wrote: I have data in this table as follows HOST USER PW PRIVS (shortened to save space) ---+-+---+--- localhost root All are set to 'Y' larry root (empty) All are set to 'Y' localhost (empty) (empty) All are set to 'N' larry (empty) (empty) All are set to 'N' localhost howler All are set to 'Y' Not sure whats going on with this or what exactly should be here. Any suggestions would be helpful Thanks John Brosan Simon Chan wrote: Please check your mysql.user table to make sure that your client machine is in the host field. skc Howler D. Wolfe wrote: Hello Everyone, I apologize if this has been answered in a previous post. I've been digging through old posts and and searching on the net for an answer to this problem. I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest version). I am able to run the examples without a hitch. I am new to Java, JSP and MySQL, I have created a database with two tables, when I try to use the MySQL driver to connect to the database I get the following error. I think I get this error because I don't have a user other than root setup on MySQL. In my searching for an answer, I read about using the URL of the MySQL db as part of getConnection(). I tried this and it failed due to the MySQL port not being open on my firewall. After I opened the appropriate port, I got the same error. What have I failed to do when setting up MySQL? I've installed it, ran the grants, I think I've done what was supposed to be done. I've used the user id of root with the password I set for it. Partial Error Text follows: * java.sql.SQLException: Server configuration denies access to data source* Thanks in advance John Brosan -- Simon Chan, Senior System Analyst, Rawmart.com, Inc. 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED] http://www.rawmart.com , the next dimension in the trading of raw materials, please register now. An initiative of the Noble Group. Please visit us at http://www.thisisnoble.com
Re: Problems with a simple JSP and mySQL connect
I've made the suggested changes and I now receive the foloowing eror: java.sql.SQLException: Invalid authorization specification: Access denied for user: 'root@larry' (Using password: YES) Here is the updated code...any more suggestions? Connection con = DriverManager.getConnection(jdbc:mysql://larry/howlerdb?user=rootpassword=winston2644); Thanks John Brosan Matt Read wrote: Your code should probably look something like this. Note there is no connection between Unix account and mySql accounts. Connection con = DriverManager.getConnection(jdbc:mysql://larry/howlerdb?user=rootpassword= rootpassword); or if you're trying to log in as howler Connection con = DriverManager.getConnection(jdbc:mysql://larry/howlerdb?user=howlerpasswor d=winston2644); Either should work as long as you're connecting from localhost. Matt. - Original Message - From: Howler D. Wolfe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 18 July 2001 15:14 Subject: Re: Problems with a simple JSP and mySQL connect Simon, I miss read your question. The host machine is larry and the db account I use is root I hope that clarifies things. Thanks again John Brosan Simon Chan wrote: Which machine (host) and what db account you access the database from? Howler D. Wolfe wrote: I have data in this table as follows HOST USER PW PRIVS (shortened to save space) ---+-+---+--- localhost root All are set to 'Y' larry root (empty) All are set to 'Y' localhost (empty) (empty) All are set to 'N' larry (empty) (empty) All are set to 'N' localhost howler All are set to 'Y' Not sure whats going on with this or what exactly should be here. Any suggestions would be helpful Thanks John Brosan Simon Chan wrote: Please check your mysql.user table to make sure that your client machine is in the host field. skc Howler D. Wolfe wrote: Hello Everyone, I apologize if this has been answered in a previous post. I've been digging through old posts and and searching on the net for an answer to this problem. I am runnin Tomcat 3.2.2 and Apache 1.3.19 and MySQL (I think the latest version). I am able to run the examples without a hitch. I am new to Java, JSP and MySQL, I have created a database with two tables, when I try to use the MySQL driver to connect to the database I get the following error. I think I get this error because I don't have a user other than root setup on MySQL. In my searching for an answer, I read about using the URL of the MySQL db as part of getConnection(). I tried this and it failed due to the MySQL port not being open on my firewall. After I opened the appropriate port, I got the same error. What have I failed to do when setting up MySQL? I've installed it, ran the grants, I think I've done what was supposed to be done. I've used the user id of root with the password I set for it. Partial Error Text follows: * java.sql.SQLException: Server configuration denies access to data source* Thanks in advance John Brosan -- Simon Chan, Senior System Analyst, Rawmart.com, Inc. 17/F MassMutual Tower, 38 Gloucester Rd, Hong Kong SAR, China Tel: +852 2861-4564. Fax: +852 2865-3865. Email: [EMAIL PROTECTED] http://www.rawmart.com , the next dimension in the trading of raw materials, please register now. An initiative of the Noble Group. Please visit us at http://www.thisisnoble.com
So what *IS* available? Formerly Tomcat SUCKS
Hello Everyone, I was just going through the posts and have been following this thread. Despite Tomcat not meeting Nick's needs and the frustration he must have had, he does bring up a good question. What is out there that can handle Nick's problems? I am still new to the Tomcat scene so please be patient with me. I've seen commercial solutions mentioned such as Resin, JRun and a few others. What about IBM WebSphere? Is that not a similar product? How do the commercial products compare to Tomcat as far as feature set, stability, scalability and speed? The thread just got me thinking is all. Thanks in advance John Brosan On 27 Jun 2001 17:28:19 -0700, Nick Stoianov wrote: Hey Milt, I guess you are right. Thanks, Nick On Wednesday 27 June 2001 05:23 pm, Milt Epstein wrote: On Wed, 27 Jun 2001, Nick Stoianov wrote: To all of you tomcat fans, Attacking me with these immature e-mails shows the following things: 1. not accepting other people's opinions and experiences 2. blindly repeating the same things over and over again. [ ... ] Frankly, you're the one that's being immature here -- as evidenced so well by the subject of your post. If you've got your mind made up and won't listen to legitimate suggestions from others, what's the point of coming in here and posting like you did. You're acting out, something a three year old does. Now, this doesn't mean you don't have some legitimate gripes. It may very well be that for your situation, Tomcat isn't suitable. That doesn't mean it sucks, or that it's not suitable for others. Your situation just may be complex enough, or idiosyncratic enough, that it will be problematic for you to use Tomcat. And perhaps for a number of reasons, it's just not possible for you to spend a lot of time trying to figure out how to get Tomcat to do what you want, you want it to work the way you want out of the box, or have someone else figure it out for you. So a heavy duty commercial product with support may be a better choice for you. But it's going to cost you (whereas Tomcat is free). But that's a choice you're making as to how best to allocate your resources (and it may perfectly well be a legitimate choice). Again, it doesn't mean Tomcat sucks, it's just not what you need (and I've probably heard complaints about most of the other products out there, including commercial ones). Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: Apache won't start with Tomcat
I had a similar problem with my Tomcat. My problem turned out to be that I am running Mandrake 8.0 and its using a version of Apache called Advanced Extranet Server http://www.advx.com . The mod_jk.so file for me had to be place in a different directory. I believe it was in /usr/lib/apache-extramodules. That my be a little off, but I know that the dir name is apache-extramodules. After placing mod_jk in the directory and making the link in httpd.conf to the Tomcat server, I had to hand modify the auto generated conf file. I stopped both Apache and Tomcat. Started Tomcat first and made sure it used my modified file and then started Apache. Everything seems to work ok. I did it this way simply cause I'm a 'noob and don't know any better. ;) If anyone has any suggestions on how to make Tomcat auto-generate a conf file that points to the REAL location of my mod_jk I'd love to hear from you. Also, if someone can tell me how to get Tomcat to start prior to Apache I'd like to know that as well. I'm not very familiar with all of the startup scripts so any help there is much appreciated. Hope this helps and thanks in advance. John Brosan -Original Message- From: Boris Niyazov [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 2:28 PM To: [EMAIL PROTECTED] Subject: Re: Apache won't start with Tomcat As the error msg says you probably do not have the module (mod_jserv or mod_jk) build for apache (should reside in libexec of apache tree) hth * * Boris NiyazovPh: 212-854-4094 Fax: 212-854-1749 * * Systems Manager Email: [EMAIL PROTECTED] * * Columbia Law School URL: http://www.law.columbia.edu * * Greetings: I have recently upgraded to Apache 1.3.14 with Tomcat 3.2.2. When I attempt to start Apache, I get the following error message: Syntax error on line 1 of /usr/local/jakarta-tomcat-3.2.2/conf/tomcat-apache.conf: Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl start: httpd could not be started Being a novice at this, I would appreciate any and all comments. Thanks! Greg Ferrara
Problems with Tomcat behind a firewall
Hello everyone, I've currently got Mandrake 8.0, Apache 1.3.19, and Tomcat 3.2.2 setup on a server at my home. I've been able to get Apache w/mod_jk and Tomcat setup. Everything seems to be working fine behind the Linksys router. All examples, both JSP and Servlet work flawlessly behing the firewall. However when I try http://howler.hn.org/examples from a machine outside my home the page with the examples never displays. It times out. I have port 80 and 21 forwarded to the Linux server. Is there something in a config file I missed? Is there a port that needs to be opened on the routre? Please help. Thank you in advance John Brosan
RE: Problems with Tomcat behind a firewall
Keng, Thanks for the info. Is there anyway to get past the dreaded 'trailing slash' problem? -Original Message- From: Keng Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 3:41 PM To: [EMAIL PROTECTED] Subject: RE: Problems with Tomcat behind a firewall Howler, Firstly, your website is accessible from outside. Secondly, I suspect it's the dreaded 'trailing slash' problem. These urls will work for you - just tried them :) http://howler.hn.org/examples/ http://howler.hn.org/examples/servlet/HelloWorldExample -keng wong -Original Message- From: Howler D. Wolfe [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 6:06 PM To: [EMAIL PROTECTED] Subject: Problems with Tomcat behind a firewall Hello everyone, I've currently got Mandrake 8.0, Apache 1.3.19, and Tomcat 3.2.2 setup on a server at my home. I've been able to get Apache w/mod_jk and Tomcat setup. Everything seems to be working fine behind the Linksys router. All examples, both JSP and Servlet work flawlessly behing the firewall. However when I try http://howler.hn.org/examples from a machine outside my home the page with the examples never displays. It times out. I have port 80 and 21 forwarded to the Linux server. Is there something in a config file I missed? Is there a port that needs to be opened on the routre? Please help. Thank you in advance John Brosan
RE: Problems with Tomcat behind a firewall
Thanks again Keng for the lead. I'm not real familiar with Apache, but I will do some digging and who knows, maybe I'll learn something! ;) -Original Message- From: Keng Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 3:55 PM To: [EMAIL PROTECTED] Subject: RE: Problems with Tomcat behind a firewall It's more of a configuration rather than a 'problem'. You may want to try the RewriteRule directive within apache. -keng wong -Original Message- From: Howler D. Wolfe [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 6:42 PM To: [EMAIL PROTECTED] Subject: RE: Problems with Tomcat behind a firewall Keng, Thanks for the info. Is there anyway to get past the dreaded 'trailing slash' problem? -Original Message- From: Keng Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 3:41 PM To: [EMAIL PROTECTED] Subject: RE: Problems with Tomcat behind a firewall Howler, Firstly, your website is accessible from outside. Secondly, I suspect it's the dreaded 'trailing slash' problem. These urls will work for you - just tried them :) http://howler.hn.org/examples/ http://howler.hn.org/examples/servlet/HelloWorldExample -keng wong -Original Message- From: Howler D. Wolfe [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 21, 2001 6:06 PM To: [EMAIL PROTECTED] Subject: Problems with Tomcat behind a firewall Hello everyone, I've currently got Mandrake 8.0, Apache 1.3.19, and Tomcat 3.2.2 setup on a server at my home. I've been able to get Apache w/mod_jk and Tomcat setup. Everything seems to be working fine behind the Linksys router. All examples, both JSP and Servlet work flawlessly behing the firewall. However when I try http://howler.hn.org/examples from a machine outside my home the page with the examples never displays. It times out. I have port 80 and 21 forwarded to the Linux server. Is there something in a config file I missed? Is there a port that needs to be opened on the routre? Please help. Thank you in advance John Brosan
RE: new tomcat user
Hi Richard, I have just finished installing Tomcat on a Linux server, but the basic software requirements are the same. I used the following software Apache 1.3.19 My webserver of choice Tomcat 3.2.2 And of course Tomcat ;) mod_jk mod_jk link between Tomcat and Apache J2SDKEE Java SDK Try this link. http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html Hope this helps John Brosan -Original Message-From: Richard Scott [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 21, 2001 4:34 PMTo: [EMAIL PROTECTED]Subject: new tomcat user Hi Everyone, I am trying to install tomcat 3.1.1 on my laptop to work with j2sdkee1.3. I am using NT workstation as my os. Ultimately I want to create server pages that will be loaded on a unix server. I have two questions: 1) where can I find installation notes to install it? 2) What software will be necessary to load on the unix box? Thanks for the help.Peace, Richard Scott
Missed a config statement???
Hello everyone, I am running Apache 1.3.19 and Tomcat 3.2.2 on Mandrake 8.0 Tomcat is installed and *appears* to be functioning fine. All examples work fine from the server as well as other machines on the network. However, when someone from the Internet attempts to hit http://howler.hn.org/examples it seems to time out. I have mod_jk installed as well. I must have missed a config option somewhere. Any ideas? Please help. Thank you John Brosan
Trouble execute jsp on Tomcat 3.2.2
Hello Everyone, I've got Tomcat 3.2.2 setup on Mandrake 8.0 running Apache 1.3.19. I've installed mod_jk. It seems that I can run servlets on Tomcat in standalone and via Apache, but I can't seem to run the JSP examples from either. I am getting the following error: Not found (404) Original request: /examples/jsp/num/numguess.jsp Not foun request: /examples/jsp/num/numguess.jsp Any ideas? Again the servlets seem to work just fine. Thanks John Brosan
Tomcat 3.2.2 Install problems
Hello Everyone, Before I begin, I would just like to say that I am a newbie when it comes to the Apache webserver, Tomcat, Java, JSP and to some respects Linux. I am trying to get a good clean grasp as to what I have to have installed and working in order to use JSP and Servlets. I am running Mandrake 8.0, Apache-AdvancedExtranetServer/1.3.19 mod_ssl/2.8.2 OpenSSL/0.9.6 PHP/4.0.4pl1. I downloaded... J2SDK1.3.1 Tomcat 3.2.2 Java servlet (was in the same directory where I downloaded Tomcat from, I assumed I needed it as well.) JRE (Can't quite get it to run with Mozilla) It was my understanding that the JavaSDK needed to be installed as well. So I downloaded it and installed it. I set it up so that all users could execute Java. I modified my path in /etc/profile so all users have access. However, when I log in as root, the path to the Java directory is not there. What have I missed? Also, I have installed Tomcat 3.2.2 and when I try to start it, it fails because I try to start it as root and since the Java dir is not in the path it cannot start. How can I fix this? Is there a good HOW-TO out there that I somehow missed? Thanks in advance. John Brosan JSP programmer in Training.
Tomcat 3.2.2 Install problems
Hello Everyone, Sorry for reposting this...but I could really use some help. Before I begin, I would just like to say that I am a newbie when it comes to the Apache webserver, Tomcat, Java, JSP and to some respects Linux. I am trying to get a good clean grasp as to what I have to have installed and working in order to use JSP and Servlets. I am running Mandrake 8.0, Apache-AdvancedExtranetServer/1.3.19 mod_ssl/2.8.2 OpenSSL/0.9.6 PHP/4.0.4pl1. I downloaded... J2SDK1.3.1 Tomcat 3.2.2 Java servlet (was in the same directory where I downloaded Tomcat from, I assumed I needed it as well.) JRE (Can't quite get it to run with Mozilla) It was my understanding that the JavaSDK needed to be installed as well. So I downloaded it and installed it. I set it up so that all users could execute Java. I modified my path in /etc/profile so all users have access. However, when I log in as root, the path to the Java directory is not there. What have I missed? Also, I have installed Tomcat 3.2.2 and when I try to start it, it fails because I try to start it as root and since the Java dir is not in the path it cannot start. How can I fix this? Is there a good HOW-TO out there that I somehow missed? Thanks in advance. John Brosan JSP programmer in Training.