Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 1025 invoked from network); 29 Jan 2007 21:11:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2007 21:11:56 -0000 Received: (qmail 60531 invoked by uid 500); 29 Jan 2007 21:11:56 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 60520 invoked by uid 500); 29 Jan 2007 21:11:56 -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 60508 invoked by uid 99); 29 Jan 2007 21:11:56 -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 13:11:56 -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 jeffgbutler@gmail.com designates 209.85.132.248 as permitted sender) Received: from [209.85.132.248] (HELO an-out-0708.google.com) (209.85.132.248) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 13:11:47 -0800 Received: by an-out-0708.google.com with SMTP id c10so627986ana for ; Mon, 29 Jan 2007 13:11:26 -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=GoEjMsSvWAxIhVJDplCPlL0usyUDEPUIyzjsVmERxOWDAB1vHXwR3X46Wqr81JUC8PI0LrCamOOtn3ZkkZJ2zKTVjji/lVj3Py7juCGjQMg2/kk9pFLmxvd0RLnOFVLh6YSevKSjj0RkQCuuDxUlstNbYbjDo1+0PRwn0qRoDoY= Received: by 10.115.50.1 with SMTP id c1mr301553wak.1170105085952; Mon, 29 Jan 2007 13:11:25 -0800 (PST) Received: by 10.114.72.19 with HTTP; Mon, 29 Jan 2007 13:11:25 -0800 (PST) Message-ID: Date: Mon, 29 Jan 2007 15:11:25 -0600 From: "Jeff Butler" To: user-java@ibatis.apache.org Subject: Re: Problems compiling In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26248_15119274.1170105085910" References: <1170087964.3091.10.camel@dev02lt> <1170089771.3568.2.camel@dev02lt> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_26248_15119274.1170105085910 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline See here: http://msdn2.microsoft.com/en-us/library/ms378428.aspx I think it will be this value in your case: jdbc:sqlserver://localhost:1455;databaseName=3DPDV Jeff Butler On 1/29/07, Andr=E9 Rodrigues Pena wrote: > > Jeff, thanks for replying > > I really skipped ConnectionURL property because the DataSource component > that comes with the JDBC driver I'm using does ask for connection URL and= I > don't know how to set it. > > On 1/29/07, Jeff Butler wrote: > > > > You are missing the JDBC.ConnectionURL property in your datasource > > configuration. SIMPLE datasource is documented in the iBATIS developer= s > > guide. > > > > Jeff Butler > > > > > > > > On 1/29/07, Andr=E9 Rodrigues Pena < andre.ufrj@gmail.com> wrote: > > > > > > 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 no= t > > > 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" exist= s > > > > 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. Then > > > > > I would set Eclipse to use the same directories. > > > > > > > > > > Cheers, > > > > > topher > > > > > > > > > > > > > > > > -- > > > Andr=E9 Rodrigues Pena > > > > > > > > > -- > Andr=E9 Rodrigues Pena ------=_Part_26248_15119274.1170105085910 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
See here:
 
 
I think it will be this value in your case:
 
jdbc:sqlserver://localhost:1455;databaseName=3DPDV
 
 
Jeff Butler


 
On 1/29/07, = Andr=E9 Rodrigues Pena <andr= e.ufrj@gmail.com> wrote:
Jeff, thanks for replying
I really skipped ConnectionURL property because the DataSource component t= hat comes with the JDBC driver I'm using does ask for connection URL an= d I don't know how to set it.=20


On 1/29/07, = Jeff Butler <jeffgbutler@gm= ail.com > wrote:=20
You are missing the JDBC.ConnectionURL property in your datasource con= figuration.  SIMPLE datasource is documented in the iBATIS developers = guide.
 
Jeff Butler


 
On 1/29/07, Andr=E9 Rodrigues Pena < andre.ufrj@gmail.com > wrote:
Brandon, thanks, in = this moment I'm seeing some of the material you suggested me

Ch= ris, thanks but my project seems ok. As you know, After the application ini= tializes 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:=20

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?=20

Thank you all in advance=20




On 1/29/07, = Chris Lamey <clamey@local= matters.com=20 > wrote:=20
On Mon, 2007-01-29 a= t 09:26 -0700, Chris Lamey wrote:
> On Mon, 2007-01-29 at 11:43 -0200= , Andr=E9 Rodrigues Pena wrote:=20
>
> > >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 :)=20
>
> 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=20
> - 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=20
> 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:=20
>
> - 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=20
> - 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=20
> I would set Eclipse to use the same directories.
>
> C= heers,
> topher



--
Andr=E9 Rodrigues Pena




--
= Andr=E9 Rodrigues Pena

------=_Part_26248_15119274.1170105085910--