ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Butler <jeffgbut...@gmail.com>
Subject Re: ibator build from source 1.2.1 running error
Date Wed, 27 Jan 2010 15:25:08 GMT
I'm not sure, but you could try compiling with the latest source.
There have been a lot of changes in Ibator since 1.2.1.  You can
checkout the latest source tree here:

http://svn.apache.org/repos/asf/ibatis/java/ibator/trunk/core/

Ibator now builds with Maven2 so you should already have everything you need.

Jeff Butler




On Wed, Jan 27, 2010 at 2:23 AM, kevin zhao <kevin223@gmail.com> wrote:
> Hi there,
>
> I'm trying to build ibator from source that I downloaded form this address
> http://people.apache.org/builds/ibatis/ibator/ibator-1.2.1-681.zip.
>
> The tool I'm building with is Maven2 and the build is OK as I got the jar
> file generated.
> However, I got some error when I was trying to run it from the command line.
>
> The error is as follows
> java.net.MalformedURLException
>  at java.net.URL.<init>(URL.java:601)
>  at java.net.URL.<init>(URL.java:464)
>  at java.net.URL.<init>(URL.java:413)
>  at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:650)
>  at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1315)
>  at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1282)
>  at
> com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283)
>  at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1192)
>  at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1089)
>  at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1002)
>  at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
>  at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
>  at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
>  at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
>  at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
>  at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)
>  at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
>  at
> org.apache.ibatis.ibator.config.xml.IbatorConfigurationParser.parseIbatorConfiguration(IbatorConfigurationParser.java:134)
>  at
> org.apache.ibatis.ibator.config.xml.IbatorConfigurationParser.parseIbatorConfiguration(IbatorConfigurationParser.java:107)
>  at
> org.apache.ibatis.ibator.config.xml.IbatorConfigurationParser.parseIbatorConfiguration(IbatorConfigurationParser.java:99)
>  at org.apache.ibatis.ibator.api.IbatorRunner.main(IbatorRunner.java:95)
>
> The command line I typed is as follows
> D:\Java\ibatorTest>java -jar ibator.jar -configfile config.xml
>
> The content of the config.xml file is as follows,
>  <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE ibatorConfiguration PUBLIC "-//Apache Software Foundation//DTD
> Apache iBATIS Ibator Configuration 1.0//EN"
> "http://ibatis.apache.org/dtd/ibator-config_1_0.dtd" >
> <ibatorConfiguration >
>   <classPathEntry location="D:\Temp\mysql-connector-java-5.1.6.jar" />
>   <ibatorContext id="context1" targetRuntime="Ibatis2Java5">
>
>     <jdbcConnection driverClass="com.mysql.jdbc.Driver"
> connectionURL="jdbc:mysql://localhost:3306/piratebase" userId="piratebase"
> password="hello123" >
>
>     </jdbcConnection>
>     <javaModelGenerator targetPackage="com.meidusa.pirateweb.dal.model"
> targetProject="pirateweb-dal" />
>     <sqlMapGenerator targetPackage="com.meidusa.pirateweb.dal.sqlmap"
> targetProject="pirateweb-dal/src/main/resources" />
>     <daoGenerator targetPackage="com.meidusa.pirateweb.dal"
> targetProject="pirateweb-dal" type="SPRING" >
>      <property name="rootInterface"
> value="com.meidusa.pirateweb.dal.AbstractDAO&lt;PostReply,
> PostReplyExample&gt;"/>
>     </daoGenerator>
>     <table schema="piratebase" tableName="pb_post_reply"
> domainObjectName="PostReply"/>
>   </ibatorContext>
> </ibatorConfiguration>
>
> However, it's running fine if I use the precompiled jar instead inlcluded in
> the distribution.
>
> Is there any light to be shed on?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message