Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 95673 invoked from network); 29 Jan 2007 20:51:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2007 20:51:49 -0000 Received: (qmail 37837 invoked by uid 500); 29 Jan 2007 20:51:55 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 37241 invoked by uid 500); 29 Jan 2007 20:51:53 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 37230 invoked by uid 99); 29 Jan 2007 20:51:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 12:51:53 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of andre.ufrj@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 12:51:45 -0800 Received: by nf-out-0910.google.com with SMTP id l24so1985558nfc for ; Mon, 29 Jan 2007 12:51:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=pgYJm4+jujNa4OM7J3JRyI2Umd7e8I5JkHb/+LeMKBVIH0CakqoJ67JRPHQfu0T+E6zgI37+/sxH2cue9dJ9D96A1vs434VtJiNFKP7gre9b7aaDo4WLGI6gzyNVLFJvCenbzSGhw5xY5wrYaOEuaCkKpS1yYXUbNDVyhbzsoSw= Received: by 10.49.64.18 with SMTP id r18mr9648413nfk.1170103883859; Mon, 29 Jan 2007 12:51:23 -0800 (PST) Received: by 10.48.164.12 with HTTP; Mon, 29 Jan 2007 12:51:23 -0800 (PST) Message-ID: Date: Mon, 29 Jan 2007 18:51:23 -0200 From: "=?ISO-8859-1?Q?Andr=E9_Rodrigues_Pena?=" To: user-java@ibatis.apache.org, clamey@localmatters.com Subject: Re: Problems compiling In-Reply-To: <1170089771.3568.2.camel@dev02lt> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_41166_25781162.1170103883660" References: <1170087964.3091.10.camel@dev02lt> <1170089771.3568.2.camel@dev02lt> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_41166_25781162.1170103883660 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Brandon, thanks, in this moment I'm seeing some of the material you suggested me Chris, thanks but my project seems ok. As you know, After the application initializes it crashes with that message: "Could not find the main class. The program will exit". I did'nt mentioned it yet. May be it will help, but at the console, the first phrase is: SEVERE: SimpleDataSource: Error while loading properties. Cause: java.lang.RuntimeException: SimpleDataSource: Some properties were not set. At my first post I wrote the configuration XML file. Do you think a mis-configuration may be generating a message like that, or do you think that the mis-configuration error message is due to other issues? Thank you all in advance On 1/29/07, Chris Lamey wrote: > > On Mon, 2007-01-29 at 09:26 -0700, Chris Lamey wrote: > > On Mon, 2007-01-29 at 11:43 -0200, Andr=E9 Rodrigues Pena wrote: > > > > > >Is Tests your Main-Class in the mainfest? > > > > > > I don't have a MANIFEST file because I'm not packaging it into a JAR. > > > I'm just compiling and executing it locally :) > > > > Sounds like a CLASSPATH issue. > > > > Here's what I would do. > > > > - Select your main class in the Package Explorer > > - Right-click and select the "Run As"->"Run..." item > > - In the Main tab, verify that "Tests" is in the "Main class" textfield > > - In the Classpath tab, verify the project is listed in the "User > > Entries" list. > > > > If that is correct, I would delete that Run configuration for the class > > Tests and create a new one. > > Whups! I meant to say, if that looks correct *and* the problem still > happens, I would delete the current Run config and create a new one. > > Sorry about that. > > > If it's still not running your class correctly, I would: > > > > - Select the project in the Package Explorer > > - Right-click and select the "Properties" item > > - In the Source tab, verify that the "Default build folder" exists on > > the filesystem and you have read/write access to it > > - Also take a look at the "Order and Export" tab and make sure it all > > looks ok > > > > If after that it's still failing, I would exit Eclipse and use java and > > javac (probably with ant) at the shell to build and run the class. The= n > > I would set Eclipse to use the same directories. > > > > Cheers, > > topher > --=20 Andr=E9 Rodrigues Pena ------=_Part_41166_25781162.1170103883660 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Brandon, thanks, in this moment I'm seeing some of the material you sug= gested me

Chris, thanks but my project seems ok. As you know, After = the application initializes it crashes with that message: "Could not f= ind the main class. The program will exit". I did'nt mentioned it = yet. May be it will help, but at the console, the first phrase is:

SEVERE: SimpleDataSource: Error while loading properties. Cause: ja= va.lang.RuntimeException: SimpleDataSource: Some properties were not set.
At my first post I wrote the configuration XML file.

Do you th= ink a mis-configuration may be generating a message like that, or do you th= ink that the mis-configuration error message is due to other issues?

Thank you all in advance



On 1/29/07, Chris Lamey <clamey@localmatters.com> wrote:<= /span>
On Mon, 2007-01-2= 9 at 09:26 -0700, Chris Lamey wrote:
> On Mon, 2007-01-29 at 11:43 -0= 200, Andr=E9 Rodrigues Pena wrote:
>
> > >Is Tests your Main-Class in the mainfest?
>= >
> > I don't have a MANIFEST file because I'm not pac= kaging it into a JAR.
> > I'm just compiling and executing it = locally :)
>
> Sounds like a CLASSPATH issue.
>
> Here's = what I would do.
>
> - Select your main class in the Package Ex= plorer
> - Right-click and select the "Run As"->"Ru= n..." item
> - In the Main tab, verify that "Tests" is in the "M= ain class" textfield
> - In the Classpath tab, verify the projec= t is listed in the "User
> Entries" list.
>
> I= f that is correct, I would delete that Run configuration for the class
> Tests and create a new one.

Whups!  I meant to sa= y, if that looks correct *and* the problem still
happens, I would delete= the current Run config and create a new one.

Sorry about that.
<= br>> If it's still not running your class correctly, I would:
>
> - Select the project in the Package Explorer
> - Rig= ht-click and select the "Properties" item
> - In the Source= tab, verify that the "Default build folder" exists on
> th= e filesystem and you have read/write access to it
> - Also take a look at the "Order and Export" tab and mak= e sure it all
> looks ok
>
> If after that it's still= failing, I would exit Eclipse and use java and
> javac (probably wit= h ant) at the shell to build and run the class.  Then
> I would set Eclipse to use the same directories.
>
> C= heers,
> topher



-- Andr=E9 Rodrigues Pena ------=_Part_41166_25781162.1170103883660--