Re: Virtual hosts with standalone tomcat 5.5.9
how do you have mail.external.mysite.com set up in your dns?? Does it point to the same IP as your tomcat server that mysite.com is hosted on? Drew. On Fri, 2005-06-24 at 18:16 -0400, [EMAIL PROTECTED] wrote: mail.external.mysite.com
Re: Illegal IMail List Server Command!
Very annoying! On Mon, 2005-05-16 at 12:28 -0400, List Server wrote: New Atlanta List Server General Help File - Lists hosted by this server are: bluedragon-interest servletexec-interest jturbo-interest Use one of these list names where you see list name in the command syntax below. All list server commands must be addressed to: [EMAIL PROTECTED] Commands must be placed on the first line of the message body and may not be preceded by blanks, whitespace, or other characters. Valid Commands are: To subscribe to a list: subscribe list name your full name For example: subscribe servletexec-interest John Smith If you don't include your name in the subscribe command you'll receive an Invalid Syntax error message from the list server. To unsubscribe from a list: unsubscribe list name To receive help send after subscribing to a list: help list name If you have any questions or need additional help, send email to: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
deploy WAR to /
Hey list, I am trying to deploy a war file to tomcat 5.5.4 and naming the war file ROOT.war and for some reason it is not getting deployed to / of the virtual host that it's being deployed on. Any suggestions? Drew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Hang on Linux (hangs the entire system)
Check your RAM, might be bad Drew. On Wed, 2005-03-30 at 23:38, Steve Vanspall wrote: Hi there, I am posting this in a few areas because I cannot pinpoint where the problem stems from. I have a standard Pentium III bases pc running linux. It has only 380 meg (or therabouts) of ram Using IBM JVM 1.4.1 and tomcat 4.1.18 (I know there are later version, but they all hang) I have 2 webapps running. One of them uses Apache to translate two different domain to the right ibay for it's content but uses the same code base. The second webapp is accessed, currently, using http://www.mycomapny.com:8080/MyApp style URL. The webapp just hangs. It will not load any pages, and when it hangs, both webapps hang. So I think this is a Tomcat or Java or Linux error. Once the hang occurs I cannot do a ps -ef as this also hangs. My only option is to reboot the machine. But it hangs half way and has to be physically powered off. We are going to put a new, more powerful computer in there, but for now I wanted to see if anyone else had experienced such a problem. Can you give me some pointers as to where to look for the source of the problem. This has happened before, and I got no information about it. I know it's a pretty vague explanation, but I don't know what more informationI can give you. The log files do not show any errors, and it never happens at the same point in the web application. At first I thought it happen when concurrent users logged in, but that's not the case either, and I have trimmed down the sychornicity management when accesing Singletons in my web app. Now I have been through all my code, and cannot find anything that should be causing an error. I have run the code under a number of different cirsumstances on my development machine (Windows 2000) and everything runs without a problem. Any help would be appreciated Regards Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wild Card Hosting
OK, so you will eventually want to have wild card domains for more than one domain, correct? Drew On Thu, 2005-03-24 at 17:46, George Sexton wrote: Oh, I see where you are headed. One way to go would be to have a new service, with a new IP address, and make that the default host. That's out of the question since I host for so many people. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Drew Jorgenson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:14 PM To: Tomcat Users List Subject: Re: Wild Card Hosting Are you able to assign a static IP address to your virtual host, meaning do you have a static IP available? Drew. On Wed, 2005-03-23 at 10:42, George Sexton wrote: Does anyone know if Tomcat supports Wild card hosting? Can I specify a pattern say *.domain.com And have all requests get forwarded to a specific host? Making the host the default host is not an option, because there is already another default host that is used. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - 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: Wild Card Hosting
I think that would still be up to your dns settings. You could have something like * IN CNAME mydomain.com correct me if I'm wrong ;-) Drew. On Thu, 2005-03-24 at 17:46, George Sexton wrote: Oh, I see where you are headed. One way to go would be to have a new service, with a new IP address, and make that the default host. That's out of the question since I host for so many people. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Drew Jorgenson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:14 PM To: Tomcat Users List Subject: Re: Wild Card Hosting Are you able to assign a static IP address to your virtual host, meaning do you have a static IP available? Drew. On Wed, 2005-03-23 at 10:42, George Sexton wrote: Does anyone know if Tomcat supports Wild card hosting? Can I specify a pattern say *.domain.com And have all requests get forwarded to a specific host? Making the host the default host is not an option, because there is already another default host that is used. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - 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: Wild Card Hosting
Woops, I don't think that will work with Tomcat since the subdomain.mydomain.com would be passed to it and Tomcat won't know which container it goes to. The way I normally do this, is assign a static IP to a virtual host and set the IP as one of its aliases. That way all wild card domains point to the same container. Drew P.S. I will think about this a bit more since it is valid point, I wouldn't want to give out all my static IPs just for the wild cards to work. On Fri, 2005-03-25 at 12:36, Drew Jorgenson wrote: I think that would still be up to your dns settings. You could have something like * IN CNAME mydomain.com correct me if I'm wrong ;-) Drew. On Thu, 2005-03-24 at 17:46, George Sexton wrote: Oh, I see where you are headed. One way to go would be to have a new service, with a new IP address, and make that the default host. That's out of the question since I host for so many people. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Drew Jorgenson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:14 PM To: Tomcat Users List Subject: Re: Wild Card Hosting Are you able to assign a static IP address to your virtual host, meaning do you have a static IP available? Drew. On Wed, 2005-03-23 at 10:42, George Sexton wrote: Does anyone know if Tomcat supports Wild card hosting? Can I specify a pattern say *.domain.com And have all requests get forwarded to a specific host? Making the host the default host is not an option, because there is already another default host that is used. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wild Card Hosting
That set-up would only work for specific subdomains, what George is trying to accomplish I think is point any (wild card) subdomain to a specific virtual host without the use of static IPs for each virtual host. Although George, if you only need this done for a few virtual hosts and you have a few static IPs available, use them if you can. This is what I do: 1. Set this in my DNS: mydomain.comIN A 1.2.3.4 www.mydomain.comIN A 1.2.3.4 *IN A 1.2.3.4 2. Assign the static IP as an alias in my virtual host Host name=www.mydomain.com Aliasmydomain.com/Alias Alias1.2.3.4/Alias . I hope this helps solve your problem somewhat. Drew. On Fri, 2005-03-25 at 12:47, Robert r. Sanders wrote: I have a sort of similar setup; we have shell script that simple adds an Aliashostname/Alias to Tomcat's server.xml file; not the optimal solution, but it works for us for now. Drew Jorgenson wrote: Woops, I don't think that will work with Tomcat since the subdomain.mydomain.com would be passed to it and Tomcat won't know which container it goes to. The way I normally do this, is assign a static IP to a virtual host and set the IP as one of its aliases. That way all wild card domains point to the same container. Drew P.S. I will think about this a bit more since it is valid point, I wouldn't want to give out all my static IPs just for the wild cards to work. On Fri, 2005-03-25 at 12:36, Drew Jorgenson wrote: I think that would still be up to your dns settings. You could have something like * IN CNAME mydomain.com correct me if I'm wrong ;-) Drew. On Thu, 2005-03-24 at 17:46, George Sexton wrote: Oh, I see where you are headed. One way to go would be to have a new service, with a new IP address, and make that the default host. That's out of the question since I host for so many people. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Drew Jorgenson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:14 PM To: Tomcat Users List Subject: Re: Wild Card Hosting Are you able to assign a static IP address to your virtual host, meaning do you have a static IP available? Drew. On Wed, 2005-03-23 at 10:42, George Sexton wrote: Does anyone know if Tomcat supports Wild card hosting? Can I specify a pattern say *.domain.com And have all requests get forwarded to a specific host? Making the host the default host is not an option, because there is already another default host that is used. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wild Card Hosting
Are you able to assign a static IP address to your virtual host, meaning do you have a static IP available? Drew. On Wed, 2005-03-23 at 10:42, George Sexton wrote: Does anyone know if Tomcat supports Wild card hosting? Can I specify a pattern say *.domain.com And have all requests get forwarded to a specific host? Making the host the default host is not an option, because there is already another default host that is used. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 - 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: host tag in server.xml
Hey Michael, The way I do it is first of all set the wildcard in the DNS config for the domain and point it to a certain IP address, e.g. * IN A 1.2.3.4 then I set up the virtual host in server.xml to contain the IP address as an alias Host name=www.mydomain.com debug=0 appBase=mydomain.com unpackWARs=true autoDeploy=true Aliasmydomain.com/Alias Alias1.2.3.4/Alias Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true / !-- Tomcat Root Context -- Context path= docBase=ROOT reloadable=true debug=0/ /Host Now, everytime that the IP 1.2.3.4 is invoked through the browser it points to the mydomain.com container, so all subdomains that resolve through the wildcard to this IP address will also point to that container. Of course the drawback to that is that you need a dedicated IP address to your domain. Drew. On Fri, 2005-03-11 at 13:45, Michael Sharkey wrote: Hi - I am running tomcat 5.5 as a standalone web server. I want to know how to use wildcards in the host tag (or alias tag) so that when someone types xxx.mydomain.com, the xxx can be anything at all and they go to the same place. In apache, I know you could say something like: *.mydomain.com This doesn't seem to work in tomcat. Any help would be great! Thanks. -mjs - 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 having problems with MySQL JDBC/JNDI Datasource example
javax.servlet.ServletException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' what is your connection URL? it doesn't seem like you're supplying one to the driver. If you're passing it as a string, make sure it's not null. Drew. On Tue, 2005-03-01 at 17:31, Parsons Technical Services wrote: What version are you running of Tomcat? Did you put in your resource link? Doug - Original Message - From: Darryl Wagoner [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, March 01, 2005 5:09 PM Subject: newbie having problems with MySQL JDBC/JNDI Datasource example Greetings, Not sure if this made it the first time. I didn't see it show up on the list I am trying to get the example in the MySQL JDBC/JNDI HOWTO to work and I am missing something. I get this error: My webapp directory is /DBTest. What am I missing? thanks -darryl --- Error Page --- *type* Exception report *message* *description* _The server encountered an internal error () that prevented it from fulfilling this request._ *exception* javax.servlet.ServletException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:845) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:778) org.apache.jsp.testDB_jsp._jspService(org.apache.jsp.testDB_jsp:81) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *root cause* javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276) org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159) org.apache.jsp.testDB_jsp._jspx_meth_sql_query_0(org.apache.jsp.testDB_jsp:100) org.apache.jsp.testDB_jsp._jspService(org.apache.jsp.testDB_jsp:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) --- Server.xml --- ?xml version='1.0' encoding='utf-8'? !-- $Id$ -- Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListen er/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated an d saved name=UserDatabase type=org.apache.catalina.UserDatabase pathname=conf/tomcat-users.xml factory=org.apache.catalina.users.MemoryUs erDatabaseFactory/ /GlobalNamingResources Service name=Catalina Connector port=8080 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8081 proxyName=dax.shecora.com proxyPort=80 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Resource name=TestDB type=javax.sql.DataSource password=javadude driverClassName=com.mysql.jdbc.Driver maxIdle=2 maxWait=5000 username=javauser url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true maxActive=4/ /Context --- 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 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/20 01/XMLSchema-instance xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
Re: newbie having problems with MySQL JDBC/JNDI Datasource example
Woops, my bad, that's not it, I should have read the entire message :( Drew. On Tue, 2005-03-01 at 18:51, Drew Jorgenson wrote: javax.servlet.ServletException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' what is your connection URL? it doesn't seem like you're supplying one to the driver. If you're passing it as a string, make sure it's not null. Drew. On Tue, 2005-03-01 at 17:31, Parsons Technical Services wrote: What version are you running of Tomcat? Did you put in your resource link? Doug - Original Message - From: Darryl Wagoner [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, March 01, 2005 5:09 PM Subject: newbie having problems with MySQL JDBC/JNDI Datasource example Greetings, Not sure if this made it the first time. I didn't see it show up on the list I am trying to get the example in the MySQL JDBC/JNDI HOWTO to work and I am missing something. I get this error: My webapp directory is /DBTest. What am I missing? thanks -darryl --- Error Page --- *type* Exception report *message* *description* _The server encountered an internal error () that prevented it from fulfilling this request._ *exception* javax.servlet.ServletException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:845) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:778) org.apache.jsp.testDB_jsp._jspService(org.apache.jsp.testDB_jsp:81) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *root cause* javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276) org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159) org.apache.jsp.testDB_jsp._jspx_meth_sql_query_0(org.apache.jsp.testDB_jsp:100) org.apache.jsp.testDB_jsp._jspService(org.apache.jsp.testDB_jsp:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) --- Server.xml --- ?xml version='1.0' encoding='utf-8'? !-- $Id$ -- Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListen er/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated an d saved name=UserDatabase type=org.apache.catalina.UserDatabase pathname=conf/tomcat-users.xml factory=org.apache.catalina.users.MemoryUs erDatabaseFactory/ /GlobalNamingResources Service name=Catalina Connector port=8080 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8081 proxyName=dax.shecora.com proxyPort=80 redirectPort=8443 maxSpareThreads=75 maxThreads=150 minSpareThreads=25 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine defaultHost=localhost name=Catalina Host appBase=webapps name=localhost Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Resource name=TestDB type=javax.sql.DataSource password=javadude driverClassName=com.mysql.jdbc.Driver maxIdle=2 maxWait=5000 username=javauser url=jdbc:mysql://localhost:3306/javatest?autoReconnect=true maxActive=4/ /Context --- web.xml --- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC
Re: Very Straneg problem with MySQL-Connector
OK, the problem normally does not come from the driver, just try this: from your freshly installed MySQL database, remove the test database and also the test user from the database permissions table and from any global user definitions, then flush-privileges and you should be ready to go. Drew. On Thu, 2005-02-24 at 03:01, monkiboy wrote: Hi everybody! I have a weird problem to use the MySQL-connector under Linux (Debian). I heard it can come from Tomcat. I have no problem in windows XP, all is working fine ! But under Linux when I try to connect to mysql throught mysql-connector wrote in a Servlet I have this message : Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 I am Using : Tomcat 5.0.28 MySQL-Connector version is : mysql-connector-java-3.0.15-ga-bin.jar JDK Version : 1_5_0_01. Servlet-Examples and JSP works fine! So I don't think the problem come from JDK. MySQL version : MySQL-SERVER-4.1.9-2 : All is working under console mode ! Here's My Servlet TESt1.java: Code: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.sql.DriverManager; public class TEST1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String url = jdbc:mysql://localhost:3306/HeroDB; String user = root; String password = password; try{ Class.forName(com.mysql.jdbc.Driver); out.println(br DRIVERS JDBC : OK!); Connection connection = DriverManager.getConnection(url,user,password); out.println(br Database connection : OK!); } catch (ClassNotFoundException e) { out.println(Error with JDBC Drivers !); } catch(SQLException ex) { out.println(br ERROR MESSAGE br); while (ex != null) { out.println(brMessage: + ex.getMessage ()); out.println(brSQLState: + ex.getSQLState ()); out.println(brErrorCode: + ex.getErrorCode ()); ex = ex.getNextException(); out.println(); } } } } AND THE HTML PAGE in order to access to the Servlet : Code: HTML HEAD TITLEDataBase Test/TITLE /HEAD BODY BGCOLOR=#FDF5E6 H2 ALIGN=CENTERDataBase TEST/H2 FORM ACTION=http://localhost:8080/TEST1; CENTER INPUT TYPE=SUBMIT VALUE = CONNEXION TEST /CENTER /FORM /BODY /HTML Theses codes works very well under windows, but under linux system here what I've got : DRIVERS JDBC : OK! ERROR MESSAGE Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 Well, the web.xml file is well configured. Anyway : I already tried with class: org.gjt.mm.mysql.driver, but I have the same message error ! By the way, it's very strange that I can play with MySQL under the terminal but not throught tomcat. Any suggestions please , because it's giving me a very hard time ! ? Thank you ! ++ monkiboy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can servlet mappings be done somewhere other than web.xml?
Looks like the invoker servlet is being used, which is declared in the global web.xml file. The servlet-name and servlet-class that you see are used to map a name to a servlet, which are all accessed through /servlet/* Drew. On Tue, 2005-02-22 at 10:43, Beckle, Steven R wrote: I'm currently working on a legacy Tomcat 3.3 project that was developed (not by me) a couple of years ago, and I am having a heck of a time understanding how servlets are getting mapped properly. A typical URL in the application is of the form CONTEXT/servlet/servletName - nothing fancy there. However, the webapp's web.xml file contains no servlet-mapping tags, but just the servlet-name and servlet-class tags. Is there another way in Tomcat to map URL's to servlets, either through a server configuration setting or some other global information contained in a conf/xml file that I'm not aware of? My problem isn't that the servlets aren't being accessed - they display content fine. I'm for now just trying to understand how Tomcat is associating the URL string with the actual servlet class since there is no servlet mapping being done in the web.xml file. The servlets themselves reside in jar files under CONTEXT/WEB-INF/lib. Thank you. Steve Beckle Computer Associates tel: +1 (630) 505 6855 fax: +1 (630) 505 6983 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.IllegalStateException in tomcat 5.5.4
Check your source code and make sure your session is initialized correctly. Drew. On Wed, 2005-02-16 at 22:13, ssk 2001 wrote: How to solve this error , pls advice java.lang.IllegalStateException: getAttribute: Session already invalidated at org.apache.catalina.session.StandardSession.getAttribute (StandardSession.java:984) at org.apache.catalina.session.StandardSessionFacade.getAttribute (StandardSessionFacade.java:109) at gnu.beanfactory.SessionScope.get(Unknown Source) at gnu.beanfactory.BeanFactory.findInstance(Unknown Source) at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown Source) at gnu.beanfactory.BeanFactory.getObjectInstance(Unknown Source) at gnu.beanfactory.BeanContext.lookup(Unknown Source) at gnu.beanfactory.BeanContext.lookup(Unknown Source) at org.apache.jsp.include.nav_jsp.checkAccess (org.apache.jsp.include.nav_jsp:62) at org.apache.jsp.include.nav_jsp._jspService (org.apache.jsp.include.nav_jsp:1601) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:325) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:214) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:105) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:526) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke (JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:383) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection (ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) thanks SSK - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Shutdown not working under SLES8 and FC2
OK, guys, hate to bring this up again, but I found the cause for my tomcat not shutting down. After upgrading to 5.5.4 I did not move all virtual domains to the new container, while the server.xml still had all the entries for the virtual domains I had in the previous setup. Tomcat was not able to shut down because it was not able to find the virtual domain directories and respective web.xml files. Drew. On Wed, 2005-02-02 at 12:47, Drew Jorgenson wrote: Mine won't shutdown either, I have to killall -9 java. The server this is happening to is running RH 3AS with jdk1.5 and Tomcat 5.5.4 Drew. On Wed, 2005-02-02 at 12:05, Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! Al. - 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: Shutdown not working under SLES8 and FC2
Mine won't shutdown either, I have to killall -9 java. The server this is happening to is running RH 3AS with jdk1.5 and Tomcat 5.5.4 Drew. On Wed, 2005-02-02 at 12:05, Al Sutton wrote: Has anyone else had problems with the shutdown script not shutting down Tomcat on Fedora Core 2 and/or SuSE Linux Enterprise Server 8 using Suns JDK 1.4.2? I've tried reporting it to the dev list as a bug all, but I got was the bug closed when someone couldn't get the same thing under Cygwin?!?!?!?! Al. - 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: Edit session timeout
session-config session-timeout120/session-timeout /session-config Look, at the web.xml file inside the conf directory, the global web.xml file that is. You can usually find this right above the mime-type mapping definitions. Drew. On Sun, 2005-01-30 at 20:28, Aris Javier wrote: I looked at my web.xml, and no sessionTimeout found there... can you give me an example on how to write it down in web.xml? thanks! aris -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 12:25 PM To: Tomcat Users List Subject: Re: Edit session timeout From: Aris Javier [EMAIL PROTECTED] How to edit session timeout? Tomcat's default value is 30mins... Look in web.xml instead of server.xml. You can change it for the entire container, or on a per-webapp basis, depending on which web.xml you edit. (Works for Tomcat 4.1, I haven't moved to 5 yet...) -- Wendy Smoak - 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: Unable to access Tomcat Admin Application
I don't think admin comes bundled with Tomcat 5 by default, you need to install it yourself. Drew. On Fri, 2005-01-28 at 12:22, Punit Duggal wrote: I installed Tomcat 5.0.30 on my PC and added the admin role to the tomcat-users.xml file. When I try to access the admin app using http://localhost:8080/admin nothing shows up in the browser and here is the error that I get in the cmd prompt window : Jan 28, 2005 12:17:21 PM org.apache.catalina.authenticator.FormAuthenticator au henticate WARNING: Unexpected error forwarding to login page javax.servlet.ServletException: Cannot find message resources under key org.apa he.struts.action.MESSAGE at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(Page ontextImpl.java:846) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCo textImpl.java:779) at admin.login_jsp._jspService(login_jsp.java:115) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App icationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application ilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDis atcher.java:696) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applic tionDispatcher.java:474) Anyone has an idea as to what I am doing wrong ?? Thanks ! _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - 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: Unable to access Tomcat Admin Application
ok, my bad ;-) On Fri, 2005-01-28 at 14:48, Caldarale, Charles R wrote: From: Drew Jorgenson [mailto:[EMAIL PROTECTED] Subject: Re: Unable to access Tomcat Admin Application I don't think admin comes bundled with Tomcat 5 by default, you need to install it yourself. He's using 5.0.30, which includes the admin app in the regular download. It's only the 5.5 series that has a separate download for admin. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Unable to access Tomcat Admin Application
Does Tomcat come with a full installer on Windows? if not did you unzip/tar to a FAT or NTFS partition? On Fri, 2005-01-28 at 12:22, Punit Duggal wrote: I installed Tomcat 5.0.30 on my PC and added the admin role to the tomcat-users.xml file. When I try to access the admin app using http://localhost:8080/admin nothing shows up in the browser and here is the error that I get in the cmd prompt window : Jan 28, 2005 12:17:21 PM org.apache.catalina.authenticator.FormAuthenticator au henticate WARNING: Unexpected error forwarding to login page javax.servlet.ServletException: Cannot find message resources under key org.apa he.struts.action.MESSAGE at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(Page ontextImpl.java:846) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCo textImpl.java:779) at admin.login_jsp._jspService(login_jsp.java:115) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App icationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Application ilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDis atcher.java:696) at org.apache.catalina.core.ApplicationDispatcher.processRequest(Applic tionDispatcher.java:474) Anyone has an idea as to what I am doing wrong ?? Thanks ! _ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Bug?
OK, look inside TOMCAT_INSTALL_DIR/work/Catalina/localhost (or whatever other virtual host you may be running) delete the cached file in question or all of them and restart tomcat ;-) Drew. On Mon, 2005-01-24 at 20:11, Aris Javier wrote: Hello! Please Help! It seems Tomcat won't refresh the page... I have this logout.jsp page.. have configured it so many times... deployed it to webapps/elog/web folder but still it's initial logout.jsp appeared... restarted tomcat, restarted browser, and even restarted my pc... but to no avail. im using tomcat 5.0.25 on windows 2000... is this tomcat 5.0.25 bug? Thanks! Aris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat setups
Hey guys, I'm just trying to see how many clients/sessions you guys get Tomcat to support at the same time, and what kind of setup did you have to consider for each case (clustering, load balancing), I would like to be able to support over 1000 users, is that possible with one instance of Tomcat running? or would I have to resort to something else? Thanks in advance for your comments! Drew. P.S. I'm considering the latest release of tomcat and jdk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]web development fee
Epyonne, Please email me directly, I have sent you a reply, but the email returned unsent. Drew. On Wed, 2005-01-05 at 22:02, Daniel Watrous wrote: I have heard of http://www.merchantspace.com/product/index.jsp. I haven't used it though. A search on Google will likely give you a handful to choose from. Also you might consider taking ideas from the Java Pet Store. The hourly rate depends on a lot of things. I can't make a good generalization about hourly rate... Daniel - Original Message - From: epyonne [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 10:30 AM Subject: Re: [OT]web development fee Daniel, Thanks for the response. No, what I develop for my employer is not eCommerce related. They are mostly for internal processing. Some of my web application are used by our call centers. Among the 3 options that you have stated, I think I will go with either #1 or #3. If I go with #3, do you know where I can find such application? Also, can you tell me what is the going rate for a contract job like this? $50/hr, $100/hr, or more? I don't have any idea at all. Thank you very much for your help and all the other posters' help! - Original Message - From: Daniel Watrous [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 10:00 AM Subject: Re: [OT]web development fee Epyonne, First off, I don't think that you hijacked anyone's thread, but this list seems to be very sensitive to that (and perhaps more affected by it than other lists I have seen). From my experience there are a couple of options you can pursue: 1) You could build the application from the ground up and charge an hourly rate. The rate will have to be agreed upon by you and the person contracting you. 2) You could develop the eCommerce application at your own cost and sell a license to it. In this case you would have more direct control over the features you build into it. Also, while this costs you more up front there is more possibility to recover the cost in selling multiple licenses. 3) You could purchase a license to an existing application and adapt it to meet your clients' needs. In this case you would likely charge a flat fee to recover your hard costs for the purchase and an hourly after that for any adaptations. In this case I personally would ask for the hard costs up front so as to not go to the expense and then have the client change his/her mind. Now about the way you asked your question, I'm not sure if the web application you have developed for your employer is an eCommerce application. In the event that it is eCommerce related you will likely use that as a base for whatever you build for your new client. In this case you should discuss with your employer how he feels about you building off of a code base that he has funded. It may be that you could work out an arrangement with your employer to accomplish option 3 above, and that your employer will give you a license at a significant savings to you. As far as contracts go, you should probably consult with a lawyer for that. Daniel - Original Message - From: epyonne [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, January 05, 2005 7:26 AM Subject: [OT]web development fee Since I am using Outlook Express, I did not realize that I was attaching to someone else thread and I apologize for that. I am starting a new thread here and hopefully someone can help me. I have been developing Java web application for my employer for a few years, but these are all running on our company's intranet only. Now someone is asking me to develop an eCommerce site. I don't know how to charge him. Can someone please give me some ideas of the going rate and what kind of contractual agreement I need? Is there anything else I need to watch out for? I am in the United States and I plan to use a commercial hosting company to host the site. It will cost around $30-40 a month. Any help will be very much appreciated. - 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]