Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 14016 invoked from network); 13 Aug 2009 12:38:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Aug 2009 12:38:36 -0000 Received: (qmail 84940 invoked by uid 500); 13 Aug 2009 12:38:42 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 84909 invoked by uid 500); 13 Aug 2009 12:38:42 -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 84901 invoked by uid 99); 13 Aug 2009 12:38:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 12:38:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of clinton.begin@gmail.com designates 209.85.212.199 as permitted sender) Received: from [209.85.212.199] (HELO mail-vw0-f199.google.com) (209.85.212.199) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 12:38:35 +0000 Received: by vws37 with SMTP id 37so619616vws.27 for ; Thu, 13 Aug 2009 05:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=pKZmsnQisCLkhTnHwRs571b8ignNBUlbb4aN86GsEKs=; b=luvxdiQRsIm+wKzaH2u/eYHgUPoGgT7xI4e6dTcTzKQ6KG7gOJHvQG7MnD5ynqYMyc kEV8wyLb/Ssg/hInM8bniHjh0N3Q8cvXNGip6QXH3GJQAR1crEfEWhSzqsg4JLEQAJ0+ s4BD1MDeHug9Cn3xf92sX3Zx1o+lTAf6UoL2Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Mu1xd12sd8wgBuJrmVJpvwR9/cqV+hPyA0/Y+ZTEJ5xrdmik1viArwl/pLijbwKQh4 ea3NMUVfvZgcCkYMNJ/ZaxAgBeoDluVqPnsm+pWI9ZVyNP6awtWkWRlbvSmv3Zqio+We 5smRsyScuMcv500wPsbo/PSEKboT8Ua3ZXOMY= MIME-Version: 1.0 Received: by 10.220.76.79 with SMTP id b15mr1090197vck.76.1250167093740; Thu, 13 Aug 2009 05:38:13 -0700 (PDT) In-Reply-To: References: <16178eb10908122004y3fc0a141kfad86bc4d09836a1@mail.gmail.com> Date: Thu, 13 Aug 2009 06:38:13 -0600 Message-ID: <16178eb10908130538p3bd725afu405d902fdf784220@mail.gmail.com> Subject: Re: iBatis 3 Configuration.xml From: Clinton Begin To: user-java@ibatis.apache.org Content-Type: multipart/alternative; boundary=0016e64808f488436604710535a1 X-Virus-Checked: Checked by ClamAV on apache.org --0016e64808f488436604710535a1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm not sure.. did iBATIS 2.x work fine for you? There's very little difference in the actual parsing and entity resolvers. However, that XML parser seems a bit weird. Why would it be invoking a transformer and looking for a style sheet? We don't use XSLT for anything. Clinton 2009/8/13 Erdem Budak > Well hello again. Happy to see that the DTDs are in place now :). I > actually noticed that the DTD on the web was missing but didn't know it > could lead to problems. Now the dtd in place my error has changed to > something else. I am using Eclipse 3.5 Galileo with the standard parser w= ith > it (didn't know actually that every ide has its own one). The error now > is... > > 12:56:18,841 INFO [main] Main - > javax.xml.transform.TransformerFactory=3Dnull > 12:56:18,843 INFO [main] Main - java.endorsed.dirs=3DC:\Program Files > (x86)\Java\jre6\lib\endorsed > 12:56:18,845 INFO [main] Main - launchFile: > D:\erdm\development\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.= xsl.jaxp.launching\launch\launch.xml > 12:56:19,682 FATAL [main] Main - No embedded stylesheet instruction for > file: > file:/D:/erdm/development/eclipse/workspace/ibatistest/src/com/erdm/ibati= stest/Configuration.xml > org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedd= ed > stylesheet instruction for file: > file:/D:/erdm/development/eclipse/workspace/ibatistest/src/com/erdm/ibati= stest/Configuration.xml > at > org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.t= ransform(JAXPSAXProcessorInvoker.java:225) > at > org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.t= ransform(JAXPSAXProcessorInvoker.java:186) > at > org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(Main.java:73) > Caused by: org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException= : > No embedded stylesheet instruction for file: > file:/D:/erdm/development/eclipse/workspace/ibatistest/src/com/erdm/ibati= stest/Configuration.xml > at > org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.t= ransform(JAXPSAXProcessorInvoker.java:214) > ... 2 more > > Well my locale is different then engilish and java has real issues with > toUpper( i -> =C4=B0 instead of i -> I). I first thought that that was my > problem. Changing my locale didn't solve anything. What do you think migh= t > be the problem. > > Thanks in advance > > ------------------------------ > Date: Wed, 12 Aug 2009 21:04:10 -0600 > Subject: Re: iBatis 3 Configuration.xml > From: clinton.begin@gmail.com > To: user-java@ibatis.apache.org > > > LOL... you know what? I didn't upload the DTDs... > > The framework should use the DTD embedded in the JAR file, but if you're > using a weird parser or an external tool, it will fail. Sorry. I'll > upload them now, and they'll propogate across the mirrors over the next = 24 > hours. > > Clinton > > > > 2009/8/12 Erdem Budak > > Hey all. > > I am trying to build a simple swing java application using ibatis and > postgresql. What i am trying to do is persist some user class (id, > firstname, surname) to a table. I have managed to do it with 2.x.x versio= n > of ibatis but now when i try to use 3.x.x beta i can't seem to get it wor= k. > It may be a bug or something i am doing wrong. It seems to me that the er= ror > is in my Configuration.xml style sheet (which must be the doctype > statement). I am not very experienced with java so tell me if i am postin= g > something inessential. > > This is my Configuration.xml > > > > PUBLIC "-//ibatis.apache.org//DTD Config 3.0//EN" > "http://ibatis.apache.org/dtd/ibatis-3-config.dtd"> > > > > > &nb sp; > > > > > > > > > > > > > > > And the error i get is as follows > > 02:27:20,182 INFO [main] Main - > javax.xml.transform.TransformerFactory=3Dnull > 02:27:20,182 INFO [main] Main - java.endorsed.dirs=3DC:\Program Files > (x86)\Java\jre6\lib\endorsed > 02:27:20,182 INFO [main] Main - launchFile: > D:\erdm\development\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.= xsl.jaxp.launching\launch\launch.xml > 02:27:20,759 FATAL [main] Main - getAssociatedStylesheets failed > org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: > getAssociatedStylesheets failed > at > org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.t= ransform(JAXPSAXProcessorInvoker.java:225) > at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPS > AXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:186) > at > org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(Main.java:73) > Caused by: javax.xml.transform.TransformerConfigurationException: > getAssociatedStylesheets failed > at > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.getAs= sociatedStylesheet(Unknown > Source) > at > org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.t= ransform(JAXPSAXProcessorInvoker.java:207) > ... 2 more > Caused by: java.io.FileNotFoundException: > http://ibatis.apache.org/dtd/ibatis-3-config.dtd > at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEnti= ty(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unkn= own > Source)< br> at > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(U= nknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(= Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.= dispatch(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.= next(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriv= er.next(Unknown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unkno= wn > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unk= nown > Source) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.sc= anDocument(Unknown > Source) > at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.pars= e(Unknown Source) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkno= wn > Source) > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown > Source) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknow= n > Source) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse= (Unknown > Source) > ... 4 more > > Thanks is advance. > > ------------------------------ > What can you do with the new Windows Live? Find out > > > > ------------------------------ > What can you do with the new Windows Live? Find out > --0016e64808f488436604710535a1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm not sure.. did iBATIS 2.x work fine for you?=C2=A0 There's very= little difference in the actual parsing and entity resolvers.

Howev= er, that XML parser seems a bit weird.=C2=A0 Why would it be invoking a tra= nsformer and looking for a style sheet?=C2=A0 We don't use XSLT for any= thing.

Clinton

2009/8/13 Erdem Budak <erdembudak@hotmail= .com>
Well hello again. Happy to see that the DTDs are in place now :). I actuall= y noticed that the DTD on the web was missing but didn't know it could = lead to problems. Now the dtd in place my error has changed to something el= se. I am using Eclipse 3.5 Galileo with the standard parser with it (didn&#= 39;t know actually that every ide has its own one). The error now is...

12:56:18,841 INFO=C2=A0 [main] Main=C2=A0 - javax.xml.transform.Transfo= rmerFactory=3Dnull
12:56:18,843 INFO=C2=A0 [main] Main=C2=A0 - java.endo= rsed.dirs=3DC:\Program Files (x86)\Java\jre6\lib\endorsed
12:56:18,845 I= NFO=C2=A0 [main] Main=C2=A0 - launchFile: D:\erdm\development\eclipse\works= pace\.metadata\.plugins\org.eclipse.wst.xsl.jaxp.launching\launch\launch.xm= l
12:56:19,682 FATAL [main] Main=C2=A0 - No embedded stylesheet instruction f= or file: file:/D:/erdm/development/eclipse/workspace/ibatistest/src/com/erd= m/ibatistest/Configuration.xml
org.eclipse.wst.xsl.jaxp.debug.invoker.Tr= ansformationException: No embedded stylesheet instruction for file: file:/D:/erdm/development/ec= lipse/workspace/ibatistest/src/com/erdm/ibatistest/Configuration.xml

=C2=A0=C2=A0=C2=A0 at org.eclipse.wst.xsl.jaxp.debug.invoker= .internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:22= 5)
=C2=A0=C2=A0=C2=A0 at org.eclipse.wst.xsl.jaxp.debug.invoker.internal= .JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:186)

=C2=A0=C2=A0=C2=A0 at org.eclipse.wst.xsl.jaxp.debug.invoker= .internal.Main.main(Main.java:73)
Caused by: org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationExcep= tion: No embedded stylesheet instruction for file: file:/D:/erdm/developmen= t/eclipse/workspace/ibatistest/src/com/erdm/ibatistest/Configuration.xml =C2=A0=C2=A0=C2=A0 at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPS= AXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:214)
=C2=A0=C2= =A0=C2=A0 ... 2 more

Well my locale is different then engilish and j= ava has real issues with toUpper( i -> =C4=B0 instead of i -> I). I first thought that = that was my problem. Changing my locale didn't solve anything. What do = you think might be the problem.

Thanks in advance


Date: W= ed, 12 Aug 2009 21:04:10 -0600
Subject: Re: iBatis 3 Configuration.xml
From: clinton.begin@gmail.com
To: user-java@ibati= s.apache.org


LOL... you know what?=C2=A0 I didn'= ;t upload the DTDs...

The framework should use the DTD embedded in = the JAR file, but if you're using a weird parser or an external tool, i= t will fail.=C2=A0 Sorry.=C2=A0 I'll upload=C2=A0 them now, and they= 9;ll propogate across the mirrors over the next 24 hours.

Clinton



2009/8/12 Erdem Budak <= ;erdembudak@hot= mail.com>
Hey all.

I am trying to build a simple swing java application using = ibatis and postgresql. What i am trying to do is persist some user class (i= d, firstname, surname) to a table. I have managed to do it with 2.x.x versi= on of ibatis but now when i try to use 3.x.x beta i can't seem to get i= t work. It may be a bug or something i am doing wrong. It seems to me that = the error is in my Configuration.xml style sheet (which must be the doctype= statement). I am not very experienced with java so tell me if i am posting= something inessential.

This is my Configuration.xml

<?xml version=3D"1.0" = encoding=3D"UTF-8" ?>

<!DOCTYPE configuration
PUB= LIC "-//ib= atis.apache.org//DTD Config 3.0//EN"
"http://ibatis.apache.org/dtd/ibatis-3-config.dtd"><= br>
<configuration>
=C2=A0=C2=A0=C2=A0 <properties resource= =3D"com/erdm/ibatistest/Configuration.properties" />
=C2=A0=C2=A0=C2=A0 <environments default=3D"development">=C2=A0=C2=A0&nb sp; =C2=A0=C2=A0=C2=A0 <environment id=3D"development">=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 <transactionMa= nager type=3D"JDBC" />
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 <dataSource type=3D"POOLED">
=C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 &l= t;property name=3D"driver" value=3D"${driver}" /> =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= <property name=3D"url" value=3D"${url}" />
= =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= <property name=3D"username" value=3D"${username}" /= >
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 <property name=3D"password" value=3D"${password= }" />
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 </dataSource>= ;
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 </environment>
=C2=A0= =C2=A0=C2=A0 </environments>
=C2=A0=C2=A0=C2=A0 <m appers>
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 <mapper resource=3D= "com/erdm/ibatistest/UserMapper.xml" />
=C2=A0=C2=A0=C2=A0 = </mappers>
</configuration>

And the error i get is as= follows

02:27:20,182 INFO=C2=A0 [main] Main=C2=A0 - javax.xml.trans= form.TransformerFactory=3Dnull
02:27:20,182 INFO=C2=A0 [main] Main=C2=A0 - java.endorsed.dirs=3DC:\Program= Files (x86)\Java\jre6\lib\endorsed
02:27:20,182 INFO=C2=A0 [main] Main= =C2=A0 - launchFile: D:\erdm\development\eclipse\workspace\.metadata\.plugi= ns\org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml
02:27:20,759 FATAL [main] Main=C2=A0 - getAssociatedStylesheets failed
o= rg.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: getAssociate= dStylesheets failed
=C2=A0=C2=A0=C2=A0 at org.eclipse.wst.xsl.jaxp.debug= .invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker= .java:225)
=C2=A0=C2=A0=C2=A0 at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPS AXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:186)
=C2=A0= =C2=A0=C2=A0 at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(M= ain.java:73)
Caused by: javax.xml.transform.TransformerConfigurationExce= ption: getAssociatedStylesheets failed
=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.xalan.internal.xsltc.trax.Transfor= merFactoryImpl.getAssociatedStylesheet(Unknown Source)
=C2=A0=C2=A0=C2= =A0 at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvo= ker.transform(JAXPSAXProcessorInvoker.java:207)
=C2=A0=C2=A0=C2=A0 ... 2 more
Caused by: java.io.FileNotFoundException: = http://ibatis.apache.org/dtd/ibatis-3-config.dtd
=C2=A0=C2=A0=C2= =A0 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown S= ource)
=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.xerces.internal.impl.XMLEntityMana= ger.setupCurrentEntity(Unknown Source)
=C2=A0=C2=A0=C2=A0 at com.sun.org= .apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)&l= t; br>=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.xerces.internal.impl.XMLEnt= ityManager.startDTDEntity(Unknown Source)
=C2=A0=C2=A0=C2=A0 at com.sun.= org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown So= urce)
=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.xerces.internal.impl.XMLD= ocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.xerces.internal.impl.XMLDocumentSc= annerImpl$DTDDriver.next(Unknown Source)
=C2=A0=C2=A0=C2=A0 at com.sun.o= rg.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unk= nown Source)
=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.xerces.internal.im= pl.XMLDocumentScannerImpl.next(Unknown Source)
=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.xerces.internal.impl.XMLNSDocument= ScannerImpl.next(Unknown Source)
=C2=A0=C2=A0=C2=A0 at com.sun.org.apach= e.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown = Source)
=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.xerces.in ternal.parsers.XML11Configuration.parse(Unknown Source)
=C2=A0=C2=A0=C2= =A0 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(= Unknown Source)
=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.xerces.internal= .parsers.XMLParser.parse(Unknown Source)
=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.xerces.internal.parsers.AbstractSA= XParser.parse(Unknown Source)
=C2=A0=C2=A0=C2=A0 at com.sun.org.apache.x= erces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
= =C2=A0=C2=A0=C2=A0 ... 4 more

Thanks is advance.


What can you do with the new Windows Live? Find out



What can you do with the new Windows Live? <= a href=3D"http://www.microsoft.com/windows/windowslive/default.aspx" target= =3D"_blank">Find out

--0016e64808f488436604710535a1--