Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 15800 invoked from network); 14 Mar 2006 08:12:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Mar 2006 08:12:26 -0000 Received: (qmail 11690 invoked by uid 500); 14 Mar 2006 08:12:24 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 11671 invoked by uid 500); 14 Mar 2006 08:12:24 -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 11660 invoked by uid 99); 14 Mar 2006 08:12:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2006 00:12:24 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of chemagogia@gmail.com designates 66.249.92.204 as permitted sender) Received: from [66.249.92.204] (HELO uproxy.gmail.com) (66.249.92.204) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2006 00:12:23 -0800 Received: by uproxy.gmail.com with SMTP id u40so726014ugc for ; Tue, 14 Mar 2006 00:12:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=kTfQivTUrfS6OnjUfx3D/ke+IwisLWSP2vgJrHP9kjEPZm7M7YrPmoV5ftpAKSqVnO8CR+LsAkH1mzNU+GjGKojk2OkhVUANyXCuwj2BENfpSSuOS9H2UxKZXcVPrzrlJSzqf6+tEWAp2HGt9JfNDkiJ4AxBVEjkL3velEYMj4M= Received: by 10.66.221.19 with SMTP id t19mr4126301ugg; Tue, 14 Mar 2006 00:12:02 -0800 (PST) Received: by 10.66.248.2 with HTTP; Tue, 14 Mar 2006 00:12:02 -0800 (PST) Message-ID: Date: Tue, 14 Mar 2006 09:12:02 +0100 From: Chema To: user-java@ibatis.apache.org Subject: Could not instantiate DataSourceFactory. Cause: java.lang.ClassCastException MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9537_464015.1142323922382" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_9537_464015.1142323922382 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello: Sorry if I send this message twice I'm using iBatis 2. I'm trying to deploy a WAR file into a SUNONE 7 AS instance but retrieve this exception: com.ibatis.common.exception.NestedRuntimeException: Error initializing iBatis SQLMap, Cause: com.ibatis.common.exception.NestedRuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath '/sqlMapConfig/transactionManager/dataSource/end()'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource. Could not instantiate DataSourceFactory. Cause: java.lang.ClassCastException Caused by: java.lang.ClassCastException - I set up datasource configuration in the application server as "jdbc/datasource" - I defined this datasorce in web.xml jdbc/datasource javax.sql.DataSource Container Shareable - I defined this datasorce in sun-web.xml jdbc/datasource jdbc/datasource - I defined sqlMap client config file I dont understand why java.lang.ClassCastException happens. Indeed, I get to initialize iBatis fine deploying a EAR file within these config files Where can stay the problem ? Thanks in advance Best regards ------=_Part_9537_464015.1142323922382 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello:

Sorry if I send this message twice

I'm using iBatis 2.=
I'm trying to deploy a WAR file into a SUNONE 7 AS instance but retriev= e this exception:

com.ibatis.common.exception
.Neste= dRuntimeException: Error initializing iBatis SQLMap, Cause:=20 com.ibatis.common.exception.NestedRuntimeException: Error occurred.  C= ause: com.ibatis.common.xml.NodeletException: Error parsing XML.  Caus= e: com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath = '/sqlMapConfig/transactionManager/dataSource/end()'.  Cause:=20 com.ibatis.sqlmap.client.SqlMapException: Error initializing DataSource.&nb= sp; Could not instantiate DataSourceFactory.  Cause: java.lang.ClassCa= stException
Caused by: java.lang.ClassCastException


- I set u= p datasource configuration in the application server as "jdbc/datasour= ce"=20

- I defined this datasorce in web.xml

<resource-ref>&= nbsp;           &nbs= p; 
          &= nbsp;     <res-ref-name>jdbc/datasource</res-r= ef-name>          &nbs= p;   
        &= nbsp;       <res-type>javax.sql.DataSou= rce </res-type>
         =        <res-auth>Container</res-auth= >
           &= nbsp;    <res-sharing-scope>Shareable</res-sharing-= scope>
</resource-ref>

- I defined this datasorce in=20 sun-web.xml

<resource-ref>      = ;    
       &n= bsp;        <res-ref-name>jdbc/dat= asource</res-ref-name>
       &= nbsp;        <jndi-name>jdbc/datas= ource</jndi-name>
</resource-ref>


- I defined sqlMap client config file

  <transa= ctionManager type=3D"JDBC">
    <dataSour= ce type=3D"JNDI">
      <proper= ty name=3D"DataSource" value=3D"jdbc/datasource"/>&n= bsp;   =20
    </dataSource>
  </transactionManage= r>


I dont understand why java.lang.ClassCastException happen= s.
Indeed, I get to initialize iBatis fine deploying a EAR file within t= hese config files

Where can stay the problem ?

Thanks in advance

Best r= egards
------=_Part_9537_464015.1142323922382--