i imagined...but even if i get driverClass accepted, "Feature user" is
not....

i'm really impressed and happy with your presence and collaboration...it's
greatly encouraging to a newby ;)


Enric

2007/7/5, Luciano Resende <[EMAIL PROTECTED]>:

The XSD is available here [1]. I would need to give it a try using
MySQL, but giving it a quick look on the DAS config files, looks like
connection info other then the derby one hasn't been updated recently,
and you would need to make some small modifications to it.

       <ConnectionInfo>
               <ConnectionProperties
                       driverClass="
com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
                       databaseURL="java:comp/env/jdbc/dastest"
                       user="root"
                       password="yourpassword"
                       loginTimeout="600000">
               </ConnectionProperties>
       </ConnectionInfo>



[1]
https://svn.apache.org/repos/asf/incubator/tuscany/java/das/rdb/src/main/resources/config.xsd

On 7/5/07, Enric Staromiejski Torregrosa <[EMAIL PROTECTED]>
wrote:
> Yeah, but the path seems hard, hard.
>
> I just discovered the problem is not related with the code, but with the
> fact that i was trying to use another connection distinct to the derby
one.
> I'm working with the default Customer sample code Tuscany is
distributing.
> When using the derby connection configuration everything goes well, but
when
> uncommenting the Mysql ConnectionInfo configuration and commenting the
derby
> one i'm still getting errors like the one i paste below. I imagine
people
> are using other databases apart from derby, aren't they? and if so,
where's
> the problem? btw, where can i get the xsd for this xml? (the url in the
> namespace returns a 'not found page').
>
> Caused by: *org.eclipse.emf.ecore.resource.Resource$IOWrappedException*:
> Feature 'contextAvailable' not found. (http:///temp.xml, 46, 30)
>
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(*
XMLLoadImpl.java
> :80*)
>
> at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(*XMLLoadImpl.java
:275*)
>
> at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(*
> XMLResourceImpl.java:666*)
>
> at org.apache.tuscany.sdo.util.resource.SDOXMLResourceImpl.doLoad(*
> SDOXMLResourceImpl.java:465*)
>
> at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(*
XMLResourceImpl.java
> :634*)
>
> at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(*
XMLDocumentImpl.java
> :239*)
>
> at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(*
XMLDocumentImpl.java
> :217*)
>
> at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(*XMLHelperImpl.java
:78*)
>
> at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(*XMLHelperImpl.java
:72*)
>
> at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(*
ConfigUtil.java:52
> *)
>
>
> 2007/7/5, Luciano Resende <[EMAIL PROTECTED]>:
> >
> > Great news Enric
> >
> > Just FYI, I think this was fixed by TUSCANY-1401 [1]
> >
> > [1] https://issues.apache.org/jira/browse/TUSCANY-1401
> >
> > On 7/5/07, Enric Staromiejski Torregrosa <[EMAIL PROTECTED]>
> > wrote:
> > > The problem i reported in the mail below does not occur any more
with
> > the
> > > new "tuscany-das-1.0-incubating-beta1" binary version.
> > >
> > > Thks to all.
> > > Enric
> > >
> > > ---------- Forwarded message ----------
> > > From: Enric Staromiejski Torregrosa <[EMAIL PROTECTED]>
> > > Date: 02-jul-2007 20:06
> > > Subject: Trying to get started
> > > To: [email protected]
> > >
> > >
> > > Hi,
> > >
> > > i'm trying to load a sample configuration file (from the samples
> > distributed
> > > by tuscany) like this:
> > >
> > >
> > > Config config =
> > > ConfigUtil.*loadConfig*(t.getClass
> > ().getClassLoader().getResourceAsStream(configFile));
> > >
> > >
> > > where t is an instance of the current class, but I'm get the
following
> > > error:
> > >
> > > Exception in thread "main"
> > > *java.lang.RuntimeException*: *
> > > org.eclipse.emf.ecore.resource.Resource$IOWrappedException *:
Feature
> > > 'ConnectionInfo' not found. (http:///temp.xml, 22, 20)
> > >
> > > at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(
> > > *ConfigUtil.java:54*)
> > >
> > > at _test.CATest.main(
> > > *CATest.java:48*)
> > >
> > > Caused by:
> > > *org.eclipse.emf.ecore.resource.Resource$IOWrappedException*:Feature
> > > 'ConnectionInfo' not found. ( http:///temp.xml, 22, 20)
> > >
> > > at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(
> > > *XMLLoadImpl.java:80*)
> > >
> > > at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(
> > > *XMLLoadImpl.java:274*)
> > >
> > > at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(
> > > *XMLResourceImpl.java:666*)
> > >
> > > at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(
> > > *XMLResourceImpl.java:634*)
> > >
> > > at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(
> > > *XMLDocumentImpl.java:238*)
> > >
> > > at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(
> > > *XMLDocumentImpl.java:216*)
> > >
> > > at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(
> > > *XMLHelperImpl.java:75*)
> > >
> > > at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(
> > > *XMLHelperImpl.java:69*)
> > >
> > > at org.apache.tuscany.das.rdb.util.ConfigUtil.loadConfig(
> > > *ConfigUtil.java:52*)
> > >
> > > ... 1 more
> > >
> >
> >
> > --
> > Luciano Resende
> > Apache Tuscany Committer
> > http://people.apache.org/~lresende
> > http://lresende.blogspot.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to