You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by wb...@Ensign-BickfordInd.com on 2002/06/04 22:27:12 UTC
1.1B and data-source problems...
I cannot seem to get a data-source configured under 1.1b..
I have this entered into my struts-config
<data-sources>
<data-source
autoCommit="false"
description="Oracle"
driverClass="oracle.jdbc.driver.OracleDriver"
maxActive="4"
password="xxxxxx"
url="jdbc:oracle:thin:@db1:1521:WIZARD"
user="xxxxxx"/>
</data-sources>
I get sax Exceptions telling me I need autoCommit, description, etc...
but I have those...
HELP!
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: 1.1B and data-source problems...
Posted by Adam Hardy <ad...@cyberspaceroad.com>.
That's exactly what happened to me as well. I think I got the xml out of
the struts-blank app. Maybe somebody change it..
Adam
James Holmes wrote:
>That's because you are using attributes of the
><data-source> tag to define the values for those
>parameters. That method has been deprecated for some
>time now. You need to use the new <set-property>
>method for this.
>
>Take a look at the DTD for more info:
>http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd
>
>The Struts Console makes easy work of doing that:
>
>http://www.jamesholmes.com/struts/
>
>-james
>james@jamesholmes.com
>
>
>--- wbchmura@Ensign-BickfordInd.com wrote:
>
>
>>I cannot seem to get a data-source configured under
>>1.1b..
>>
>>I have this entered into my struts-config
>>
>> <data-sources>
>> <data-source
>> autoCommit="false"
>> description="Oracle"
>> driverClass="oracle.jdbc.driver.OracleDriver"
>> maxActive="4"
>> password="xxxxxx"
>> url="jdbc:oracle:thin:@db1:1521:WIZARD"
>> user="xxxxxx"/>
>> </data-sources>
>>
>>I get sax Exceptions telling me I need autoCommit,
>>description, etc...
>>but I have those...
>>
>>HELP!
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><ma...@jakarta.apache.org>
>>For additional commands, e-mail:
>><ma...@jakarta.apache.org>
>>
>>
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
>http://fifaworldcup.yahoo.com
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: 1.1B and data-source problems...
Posted by James Holmes <jh...@yahoo.com>.
That's because you are using attributes of the
<data-source> tag to define the values for those
parameters. That method has been deprecated for some
time now. You need to use the new <set-property>
method for this.
Take a look at the DTD for more info:
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd
The Struts Console makes easy work of doing that:
http://www.jamesholmes.com/struts/
-james
james@jamesholmes.com
--- wbchmura@Ensign-BickfordInd.com wrote:
>
> I cannot seem to get a data-source configured under
> 1.1b..
>
> I have this entered into my struts-config
>
> <data-sources>
> <data-source
> autoCommit="false"
> description="Oracle"
> driverClass="oracle.jdbc.driver.OracleDriver"
> maxActive="4"
> password="xxxxxx"
> url="jdbc:oracle:thin:@db1:1521:WIZARD"
> user="xxxxxx"/>
> </data-sources>
>
> I get sax Exceptions telling me I need autoCommit,
> description, etc...
> but I have those...
>
> HELP!
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>