Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 99757 invoked from network); 8 Nov 2007 17:53:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2007 17:53:16 -0000 Received: (qmail 60375 invoked by uid 500); 8 Nov 2007 17:52:53 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 59970 invoked by uid 500); 8 Nov 2007 17:52:52 -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 59959 invoked by uid 99); 8 Nov 2007 17:52:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Nov 2007 09:52:52 -0800 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.252.121.70] (HELO web43140.mail.sp1.yahoo.com) (216.252.121.70) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 08 Nov 2007 17:53:30 +0000 Received: (qmail 36189 invoked by uid 60001); 8 Nov 2007 17:52:31 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Ljq3DaIx9leKuk6fjTa43m2g06e7GHyOinuj3Noh4dXuiXL0f/G0TBz06HomBOiKjSuF+TRmNkpVDeZJJm2mEvATuhmO7lcR7J9t3sbkabCwefXUdqUMCZojhYcZipUhLrUH6MW/2Oz4wbH4CHLC5GqM9c+ZsD3DzMmPoxjC1jE=; X-YMail-OSG: lMXygpoVM1k9IN3zy_YigvjppDdjjglWVbsnOVvN96uciznmkv83QH56PgMaC4bmivfgHycNb9lVynw5c5o8zyDNfe1TtLErqdTKggyUIdPRwnlBG0eKayuKeoOn3A-- Received: from [86.132.203.196] by web43140.mail.sp1.yahoo.com via HTTP; Thu, 08 Nov 2007 09:52:31 PST Date: Thu, 8 Nov 2007 09:52:31 -0800 (PST) From: Asare Samuel Subject: specify class name in environment or system property...? To: users@tomcat.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1829924634-1194544351=:35953" Content-Transfer-Encoding: 8bit Message-ID: <897154.35953.qm@web43140.mail.sp1.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-1829924634-1194544351=:35953 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Making a web application sort of following: http://www.netbeans.org/kb/55/mysql-webapp.html#preparingDB I made a class that connects to the DB ie accessDB and have put two methods inside: public void insert(a,c) inserts record into database public String getContent() gets content I then put in little tester Main method to test the 2 methods thats when i get this error Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial null Please can anyone help me??? Thanks in advance. --------------------------------- Yahoo! Answers - Get better answers from someone who knows. Tryit now. --0-1829924634-1194544351=:35953--