You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by David Brown <db...@sexingtechnologies.com> on 2009/06/09 19:22:33 UTC

IBatis noob/hibernate refugee

Hello IBatis dev, gurus and mortals, I'm an IBatis noob fleeing from hibernate. I have a legacy database that will fair better under IBatis if I can get over the learning curve hump. In-all-likelihood this has been review before but my time constraints will not allow me to languish. I have installed both the Eclipse Ibatis plugin and the command line version. I both cases I am failing to generate anything. In Eclipse I have filled in the ibatorConfig.xml but when I right-click the ibatorConfig.xml file in the Eclipse to run the menu item: Generate IBATIS Artifacts I get a big red-X pop dialog the exclaims: Generation Failed. Reason: Unexpected error while running IBator: Exception getting JDBC driver.

IF I attempt largely the same thing using the command-line:

java -jar ..\..\..\st\dev_tools\ibatis\lib\ibatis-2.3.4.726.jar -configfile ibatorConfig.xml -overwrite


I get the following error condition:


***************************************************
Failed to load Main-Class manifest attribute from
..\..\..\st\dev_tools\ibatis\lib\ibatis-2.3.4.726.jar



Any and all ideas for an IBatis noob will be greatly appreciated. Please advise, David.

















There are 10 kinds of people in this world: those who understand binary and those who don’t (Valid only for 2's complement).

Re: IBatis noob/hibernate refugee

Posted by Jeff Butler <je...@gmail.com>.
Here's the sample config file from the Ibator documentation:
http://ibatis.apache.org/docs/tools/ibator/configreference/xmlconfig.html

<http://ibatis.apache.org/docs/tools/ibator/configreference/xmlconfig.html>Note
that <classPathEntry> is not a child of <jdbcConnection> - rather it is a
child of <ibatorConfiguration>.  You've probably been reading some old
documentation for the prior version of the tool.

BTW - welcome to iBATIS!

Jeff Butler



On Tue, Jun 9, 2009 at 2:13 PM, David Brown
<db...@sexingtechnologies.com>wrote:

> Hello Jeff, thanks for the speedy and informative reply. I am leaning
> toward Eclipse (if possible). I have Googled and read some IBatis doco but I
> can't find the reason for the error condition after adding the tag as
> requested: <classPathEntry>. Please find included below the <jdbcConnection>
> criteria and the error condition. Thanks and please advise, David.
>
> <jdbcConnection
>  driverClass="com.mysql.jdbc.Driver"
>  connectionURL="jdbc:mysql://localhost:3306/test"
>  userId="user"
>  password="test">
>  <classPathEntry location="c:/Program Files/DbVisualizer-6.5.4/jdbc/mysql"
> />
> </jdbcConnection>
>
> *************************************
> The content of element type "jdbcConnection" must match "(property)*"
>
>
>
>
>
> ----- Original Message -----
> From: "Jeff Butler" <je...@gmail.com>
> To: user-java@ibatis.apache.org
> Sent: Tuesday, June 9, 2009 12:26:08 PM GMT -06:00 US/Canada Central
> Subject: Re: IBatis noob/hibernate refugee
>
> With the eclipse plugin, you should add a <classPathyEntry> element to
> state
> where the JDBC driver JAR is.
>
> With command line, don't add the *iBATIS* JAR, instead add the *Ibator*
> JAR.
>
> HTH -
> Jeff Butler
>
> On Tue, Jun 9, 2009 at 12:22 PM, David Brown
> <db...@sexingtechnologies.com>wrote:
>
> > Hello IBatis dev, gurus and mortals, I'm an IBatis noob fleeing from
> > hibernate. I have a legacy database that will fair better under IBatis if
> I
> > can get over the learning curve hump. In-all-likelihood this has been
> review
> > before but my time constraints will not allow me to languish. I have
> > installed both the Eclipse Ibatis plugin and the command line version. I
> > both cases I am failing to generate anything. In Eclipse I have filled in
> > the ibatorConfig.xml but when I right-click the ibatorConfig.xml file in
> the
> > Eclipse to run the menu item: Generate IBATIS Artifacts I get a big red-X
> > pop dialog the exclaims: Generation Failed. Reason: Unexpected error
> while
> > running IBator: Exception getting JDBC driver.
> >
> > IF I attempt largely the same thing using the command-line:
> >
> > java -jar ..\..\..\st\dev_tools\ibatis\lib\ibatis-2.3.4.726.jar
> -configfile
> > ibatorConfig.xml -overwrite
> >
> >
> > I get the following error condition:
> >
> >
> > ***************************************************
> > Failed to load Main-Class manifest attribute from
> > ..\..\..\st\dev_tools\ibatis\lib\ibatis-2.3.4.726.jar
> >
> >
> >
> > Any and all ideas for an IBatis noob will be greatly appreciated. Please
> > advise, David.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > There are 10 kinds of people in this world: those who understand binary
> and
> > those who don’t (Valid only for 2's complement).
> >
>

Re: IBatis noob/hibernate refugee

Posted by David Brown <db...@sexingtechnologies.com>.
Hello Jeff, thanks for the speedy and informative reply. I am leaning toward Eclipse (if possible). I have Googled and read some IBatis doco but I can't find the reason for the error condition after adding the tag as requested: <classPathEntry>. Please find included below the <jdbcConnection> criteria and the error condition. Thanks and please advise, David.

<jdbcConnection 
  driverClass="com.mysql.jdbc.Driver" 
  connectionURL="jdbc:mysql://localhost:3306/test" 
  userId="user" 
  password="test"> 
  <classPathEntry location="c:/Program Files/DbVisualizer-6.5.4/jdbc/mysql" />
</jdbcConnection>

*************************************
The content of element type "jdbcConnection" must match "(property)*"





----- Original Message -----
From: "Jeff Butler" <je...@gmail.com>
To: user-java@ibatis.apache.org
Sent: Tuesday, June 9, 2009 12:26:08 PM GMT -06:00 US/Canada Central
Subject: Re: IBatis noob/hibernate refugee

With the eclipse plugin, you should add a <classPathyEntry> element to state
where the JDBC driver JAR is.

With command line, don't add the *iBATIS* JAR, instead add the *Ibator* JAR.

HTH -
Jeff Butler

On Tue, Jun 9, 2009 at 12:22 PM, David Brown
<db...@sexingtechnologies.com>wrote:

> Hello IBatis dev, gurus and mortals, I'm an IBatis noob fleeing from
> hibernate. I have a legacy database that will fair better under IBatis if I
> can get over the learning curve hump. In-all-likelihood this has been review
> before but my time constraints will not allow me to languish. I have
> installed both the Eclipse Ibatis plugin and the command line version. I
> both cases I am failing to generate anything. In Eclipse I have filled in
> the ibatorConfig.xml but when I right-click the ibatorConfig.xml file in the
> Eclipse to run the menu item: Generate IBATIS Artifacts I get a big red-X
> pop dialog the exclaims: Generation Failed. Reason: Unexpected error while
> running IBator: Exception getting JDBC driver.
>
> IF I attempt largely the same thing using the command-line:
>
> java -jar ..\..\..\st\dev_tools\ibatis\lib\ibatis-2.3.4.726.jar -configfile
> ibatorConfig.xml -overwrite
>
>
> I get the following error condition:
>
>
> ***************************************************
> Failed to load Main-Class manifest attribute from
> ..\..\..\st\dev_tools\ibatis\lib\ibatis-2.3.4.726.jar
>
>
>
> Any and all ideas for an IBatis noob will be greatly appreciated. Please
> advise, David.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> There are 10 kinds of people in this world: those who understand binary and
> those who don’t (Valid only for 2's complement).
>

Re: IBatis noob/hibernate refugee

Posted by Jeff Butler <je...@gmail.com>.
With the eclipse plugin, you should add a <classPathyEntry> element to state
where the JDBC driver JAR is.

With command line, don't add the *iBATIS* JAR, instead add the *Ibator* JAR.

HTH -
Jeff Butler

On Tue, Jun 9, 2009 at 12:22 PM, David Brown
<db...@sexingtechnologies.com>wrote:

> Hello IBatis dev, gurus and mortals, I'm an IBatis noob fleeing from
> hibernate. I have a legacy database that will fair better under IBatis if I
> can get over the learning curve hump. In-all-likelihood this has been review
> before but my time constraints will not allow me to languish. I have
> installed both the Eclipse Ibatis plugin and the command line version. I
> both cases I am failing to generate anything. In Eclipse I have filled in
> the ibatorConfig.xml but when I right-click the ibatorConfig.xml file in the
> Eclipse to run the menu item: Generate IBATIS Artifacts I get a big red-X
> pop dialog the exclaims: Generation Failed. Reason: Unexpected error while
> running IBator: Exception getting JDBC driver.
>
> IF I attempt largely the same thing using the command-line:
>
> java -jar ..\..\..\st\dev_tools\ibatis\lib\ibatis-2.3.4.726.jar -configfile
> ibatorConfig.xml -overwrite
>
>
> I get the following error condition:
>
>
> ***************************************************
> Failed to load Main-Class manifest attribute from
> ..\..\..\st\dev_tools\ibatis\lib\ibatis-2.3.4.726.jar
>
>
>
> Any and all ideas for an IBatis noob will be greatly appreciated. Please
> advise, David.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> There are 10 kinds of people in this world: those who understand binary and
> those who don’t (Valid only for 2's complement).
>

Re: IBatis noob/hibernate refugee

Posted by David Brown <db...@sexingtechnologies.com>.
Hello Jeremy, I will reply off list. Thanks, David.

----- Original Message -----
From: "jthomerson" <je...@wickettraining.com>
To: user-java@ibatis.apache.org
Sent: Sunday, June 14, 2009 5:12:20 PM GMT -06:00 US/Canada Central
Subject: Re: IBatis noob/hibernate refugee



David Brown-48 wrote:
> 
> I sent some money via paypal to: wickettraining.com but never heard
> anything back.
> 

FYI,
  My name is Jeremy Thomerson, owner of WicketTraining.com.  I did receive a
payment from Mr. Brown Tuesday, June 9, at 5:12pm.  The payment was for
three hours of prepaid support.  I was engaged in another project and
replied to Mr. Brown Thursday, June 11, at 4:34pm telling him that to get
started, he would be best served by asking specific questions or asking me
to assist with building a certain component and teaching him the ins and
outs of Wicket and how to build that component.

  Unfortunately, since May 29, when I was first contacted by Mr. Brown,
every time that I have sent him a reply, I have received the error message
that appears at the bottom of this message returned from his mail servers.  

  Mr. Brown, please feel free to contact me at any time.  I would be happy
to assist you with your project this week.  If you are unsatisfied with the
service you have received thusfar, please let me know and I will gladly give
you a full refund and terminate our support contract.  Please let me know
how I can assist you.

Best Regards,

Jeremy Thomerson
http://www.wickettraining.com

PS - this is the error message that I get every time I send you an email.  I
have also forwarded this message to you several times over the past two and
one half weeks.  If it assists you in trouble shooting it, I am sending my
messages from Google Apps, which hosts the email for wickettraining.com.



> This is an automatically generated Delivery Status Notification
> 
> THIS IS A WARNING MESSAGE ONLY.
> 
> YOU DO NOT NEED TO RESEND YOUR MESSAGE.
> 
> Delivery to the following recipient has been delayed:
> 
>     david@davidwbrown.name
> 
> Message will be retried for 1 more day(s)
> 
> Technical details of temporary failure:
> DNS Error: Timeout while contacting DNS servers
> 


-- 
View this message in context: http://www.nabble.com/IBatis-noob-hibernate-refugee-tp23947506p24026291.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: IBatis noob/hibernate refugee

Posted by jthomerson <je...@wickettraining.com>.

David Brown-48 wrote:
> 
> I sent some money via paypal to: wickettraining.com but never heard
> anything back.
> 

FYI,
  My name is Jeremy Thomerson, owner of WicketTraining.com.  I did receive a
payment from Mr. Brown Tuesday, June 9, at 5:12pm.  The payment was for
three hours of prepaid support.  I was engaged in another project and
replied to Mr. Brown Thursday, June 11, at 4:34pm telling him that to get
started, he would be best served by asking specific questions or asking me
to assist with building a certain component and teaching him the ins and
outs of Wicket and how to build that component.

  Unfortunately, since May 29, when I was first contacted by Mr. Brown,
every time that I have sent him a reply, I have received the error message
that appears at the bottom of this message returned from his mail servers.  

  Mr. Brown, please feel free to contact me at any time.  I would be happy
to assist you with your project this week.  If you are unsatisfied with the
service you have received thusfar, please let me know and I will gladly give
you a full refund and terminate our support contract.  Please let me know
how I can assist you.

Best Regards,

Jeremy Thomerson
http://www.wickettraining.com

PS - this is the error message that I get every time I send you an email.  I
have also forwarded this message to you several times over the past two and
one half weeks.  If it assists you in trouble shooting it, I am sending my
messages from Google Apps, which hosts the email for wickettraining.com.



> This is an automatically generated Delivery Status Notification
> 
> THIS IS A WARNING MESSAGE ONLY.
> 
> YOU DO NOT NEED TO RESEND YOUR MESSAGE.
> 
> Delivery to the following recipient has been delayed:
> 
>     david@davidwbrown.name
> 
> Message will be retried for 1 more day(s)
> 
> Technical details of temporary failure:
> DNS Error: Timeout while contacting DNS servers
> 


-- 
View this message in context: http://www.nabble.com/IBatis-noob-hibernate-refugee-tp23947506p24026291.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.