« Return to Thread: [jira] Created: (CARGO-705) 'Username' attribute for Tomcat5x configuration

[jira] Commented: (CARGO-705) 'Username' attribute for Tomcat5x configuration

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View in Thread


    [ http://jira.codehaus.org/browse/CARGO-705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=193776#action_193776 ]

Savas Ali Tokmen commented on CARGO-705:
----------------------------------------

Both Tomcat 5.5. and 6.0 use "username" as attribute.

http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html says:

  <Resource name="jdbc/EmployeeDB" auth="Container"
            type="javax.sql.DataSource" username="dbusername" password="dbpassword"
            driverClassName="org.hsql.jdbcDriver" url="jdbc:HypersonicSQL:database"
            maxActive="8" maxIdle="4"/>

http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html says:

  <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
               maxActive="100" maxIdle="30" maxWait="10000"
               username="javauser" password="javadude" driverClassName="com.mysql.jdbc.Driver"
               url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>

As a result, looks like no Tomcat version has a "user" attribute.

Did anyone test with the "user" attribute?

Meanwhile, Tomcat 4.x and 5.0 have a completely different JDBC configuration. See http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html for details.

> 'Username' attribute for Tomcat5x configuration
> -----------------------------------------------
>
>                 Key: CARGO-705
>                 URL: http://jira.codehaus.org/browse/CARGO-705
>             Project: Cargo
>          Issue Type: Bug
>          Components: Tomcat
>    Affects Versions: 1.0
>            Reporter: Tomás Pollak
>             Fix For: 1.0.1
>
>         Attachments: AbstractTomcatConfigurationBuilder.diff
>
>
> From the mailing list:
> http://www.nabble.com/DataSource-configuration-for-Tomcat-5x%2C-Java-API-td23713677.html
> When Cargo is used like in the email example, the context.xml has a 'user' attribute for the DataSource. However Tomcat expects a 'username' attribute.
> The bug is located in AbstractTomcatConfigurationBuilder, line 96.
> However, as Matt pointed out, this behaviour may be different for different versions of Tomcat. 5x expects 'username', the other versions need to be checked.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: [jira] Created: (CARGO-705) 'Username' attribute for Tomcat5x configuration