Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 256579446 for ; Sun, 23 Oct 2011 18:58:42 +0000 (UTC) Received: (qmail 96037 invoked by uid 500); 23 Oct 2011 18:58:38 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 95931 invoked by uid 500); 23 Oct 2011 18:58:38 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 95922 invoked by uid 99); 23 Oct 2011 18:58:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2011 18:58:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [184.107.169.10] (HELO iw9.ich-3.com) (184.107.169.10) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Oct 2011 18:58:31 +0000 Received: from bas1-toronto27-1279274342.dsl.bell.ca ([76.64.45.102] helo=Magnolia.local) by iw9.ich-3.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1RI3Ed-00053d-98 for users@tomcat.apache.org; Sun, 23 Oct 2011 14:57:36 -0400 Message-ID: <4EA46395.50407@zuka.net> Date: Sun, 23 Oct 2011 14:57:25 -0400 From: Dave Filchak User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re:: tomcat error 404 References: <4EA43ECC.5050004@zuka.net> In-Reply-To: <4EA43ECC.5050004@zuka.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iw9.ich-3.com X-AntiAbuse: Original Domain - tomcat.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - zuka.net X-Virus-Checked: Checked by ClamAV on apache.org Alright well, I am having a hell of a time getting this to work. I am adding all my pertinent xml files so that maybe someone has some time to help me get this straightened out. I know everyone is busy and it is Sunday so I'll let it sit after this but at this point, I have pages that work but no database connectivity. My web.xml file @ /home/######/public_html/WEB-INF/ Mushroom Snap Media Mushroom Site webmaster support@######.com Please contact Nick should any questions or issues arise about this application. root /home/######/public_html Path to where the system begins xmlprops /home/######/public_html/WEB-INF/conf/environment.xml Used to find path to local XML props file. WebSystemController com.snapmedia.WebSystemController 1 WebSystemController /servlet/WebSystemController 30 Connection Pool jdbc/exodus javax.sql.DataSource Container My environment.xml file @ /home/######/public_html/WEB-INF/conf/ 2.0 005523 April 29, 2005 127.0.0.1 174.122.30.18 it-ops@quickplay.com N. Dingle true http://www.exodusdecoded.com http://www.exodusdecoded.com/tools /login.jsp /parentControl.jsp /home/exodus/public_html/ /data /home/exodus/public_html/WEB-INF/logs/ /home/exodus/public_html/WEB-INF/logs/archive/ /home/exodus/public_html/WEB-INF/logs/codelog.txt /home/exodus/public_html/WEB-INF/logs/scheduler.txt /home/exodus/public_html/WEB-INF/logs/broadcast.txt /home/exodus/public_html/WEB-INF/logs/memory.txt /home/exodus/public_html/WEB-INF/logs/security.txt /home/exodus/public_html/WEB-INF/logs/ipmanifest.txt /home/exodus/public_html/WEB-INF/logs/forum.txt false false true false AEFK67897PI30 AEFK6S897PI50 30 exodusdecoded.com 25 204800 0 true false 1 10 true 5 true 13 false 15 450 true sdeboer@snapmedia.com true 3 false true 10 1500 4000 10 5 true My server.xml file at /home/#####/public_html/conf/ /> My context file, which I created while again trying to solve why the database connection fails at /home/#####/public_html/META-INF/ I know this is probably screwed up now so I appreciate the help I have had so far and would seriously appreciate any input as to how to straighten this out and get the connection to the database functional. I really need to get the site up and running today. Thanks for your consideration and your time. Dave On 22/07/64 2:59 PM, Dave Filchak wrote: > Ok, perhaps this will be more helpful. To follow is the way the db > connection is set up now, and I am not sure it is correct because, as I > understand it, you are supposed to add a context to the server.xml file > defining the db connection through jdbc/mysql ( which I am not sure of > the format yet ), either in the main system one or the application > specific one, OR to the META-INF/content.xml file, which I do not have. > What I do have is this, in my application directory at > /home/XXXXXX/public_html/WEB-INF/conf/environment.xml: > > > com.mysql.jdbc.Driver > jdbc:mysql://###.###.###.###:3306/#######_exodus > #########_exodus > ##### > 10 > 10 > select now() > /home/#####/public_html/WEB-INF/logs/pool.txt > > > When I modify the, it does show up in the error that is generated > so the app must be reading from this entry while trying to make the > connection to the database. I do not believe there is any other location > where a reference to the database is made. > > Apparently, you are also supposed > to add an entry in the/WEB-INF/web.xml and I am not > sure if this is true but in my/home/#####/public_html/WEB-INF/web.xml > there is no reference to the database. However, this used to work on the > old server. So, in a nutshell, the only reference to a database > connection is in the environment.xml file. > > Dave > > > > On 22/07/64 2:59 PM, Dave Filchak wrote: >> Hi André, >> >> Sorry about the comments. Wasn't thinking. So, I did find that one of >> the closing comment tags in my web.xml was entered as ==>. Fixing that >> gave me some progress in that the site's homepage now comes up. However, >> I now get the following error when clicking on a few links, which >> obviously refer to a connection to the database: >> >> Error initializing sub-systems: >> Please check the following: >> 1. That your machine has a valid connection to >> jdbc:mysql://localhost/########_exodus Using: >> Username: ########_exodus >> Password: ###### >> Driver: com.mysql.jdbc.Driver >> >> >> *DETAILS FOLLOW:* >> java.lang.Exception: Unable to Initialize Environment: >> java.lang.NoClassDefFoundError: javax/mail/Address >> at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source) >> at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source) >> at com.snapmedia.SystemController.init(SystemController.java:86) >> at >> com.snapmedia.WebSystemController.init(WebSystemController.java:39) >> at >> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) >> at >> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) >> at >> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996) >> at >> org.apache.catalina.core.StandardContext.start(StandardContext.java:4266) >> at >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) >> at >> org.apache.catalina.core.StandardHost.start(StandardHost.java:736) >> at >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) >> at >> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) >> at >> org.apache.catalina.core.StandardService.start(StandardService.java:448) >> at >> org.apache.catalina.core.StandardServer.start(StandardServer.java:700) >> at org.apache.catalina.startup.Catalina.start(Catalina.java:552) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219) >> Caused by: java.lang.ClassNotFoundException: javax.mail.Address >> at >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438) >> at >> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284) >> ... 25 more >> >> I have verified that thew username and password are correct by logging >> into the MySQL server from the command line. Something with the driver? >> >> Dave >> >> >> >> On 22/07/64 2:59 PM, André Warnier wrote: >>> Hi. >>> >>> One thing at a time.. >>> >>> 1) When you send XML configuration files, please remove everything >>> that is a comment. >>> XML files are already being wrapped by the email program, and are >>> difficult to read as it is. Having plenty of comments in them in >>> addition makes is really a hassle to figure out what is being used >>> or not. >>> (Note: an XML comment is anything between a pair of ) >>> >>> 2) one error message below talks about an invalid XML file. >>> Inside one of the comments (between a leading ), there is another pair of -- . That is incorrect and causes the >>> entire file to be rejected/ignored. >>> Inspect that file carefully, remove the offending --, and try again. >>> >>> (Note: the extra -- may also be due to a previous bad edit of the >>> file. It may have been a , where someone tried to >>> comment or de-comment something, and either removed too much or >>> added not enough. >>> Remember that everything between a pair of is a comment >>> (normally ignored), and inside of such a comment, you cannot have >>> another pair of -- ) >>> >>> Do this carefully, as it may be the basic cause why the whole thing >>> is not working. >>> Keep a backup of the original, for each file that you start editing. >>> >>> (Another note: there exist text editors which can show you if a file >>> is correct XML or not. For a windows PC, look up Notepad++ in Google) >>> >>> 3) what happens when, in your browser, you enter the URL : >>> >>> http://your-host-name:8180 >>> >>> ? >>> (replace your-host-name by .. your real host name (or its IP address)) >>> >>> >>> >>> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org