tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bjørn Wennberg <bjo...@cellnetwork.no>
Subject FW: MS SQL Server Datasouerce
Date Fri, 31 May 2002 08:30:19 GMT
Make sure you make a mapping in your WEB-INF/web.xml file

<resource-ref>
  <res-ref-name>jdbc/News</res-ref-name>
  <res-type>javax.sql.DataSource</res-type>
  <res-auth>Container</res-auth>
</resource-ref>

-----Original Message-----
From: Anibal Constante Brito [mailto:aconstante_00@hotmail.com] 
Sent: 31. mai 2002 02:41
To: Tomcat
Subject: MS SQL Server Datasouerce


A tried to create a datasource with SQL Server, but can I wiev even the index.htm page, why?

this is my datasource:

            <Resource name="jdbc/News" auth="Container"
                        type="javax.sql.DataSource"
                 description="Employees Database for HR Applications"/>

            <ResourceParams name="jdbc/News">
              <parameter>
                <name>driverClassName</name>
                <value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
              </parameter>
              <parameter>
                <name>driverName</name>
                </value>jdbc:microsoft:sqlserver</value>
              </parameter>
              <parameter>
                <name>user</name>
                <value>sa</value>
              </parameter>
              <parameter>
                <name>password</name>
                <value></value>
              </parameter>
            </ResourceParams>

what I did wrong?

best regards.

Owen.

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message