Hi

 

I am trying to configure tyrex to work with tomcat to get transaction
management working.

 

I've downloaded the six jar files as per the documentation and placed them
in the $TOMCAT_HOME$/common/lib

 

I have created myself a domain-config.xml file which looks as follows:

 

<domain>

  <name>default</name>

  <!-- Limit to 50 concurrent transactions -->

  <maximum>50</maximum>

  <!-- Default transaction timeout: 2 minutes -->

  <timeout>120</timeout>

            <resources>

    <!-- Specification for data source myDataSource -->

        <dataSource>

      <name>myDatasource</name>

      <jar>C:\Program Files\Apache Group\Tomcat
4.1\webapps\NDEIS\WEB-INF\lib\oracle.jar</jar>

      <class>oracle.jdbc.xa.OracleXADataSource</class>

      <config>

        <user>someusername</user>

        <password>somepassword</password>

        <serverName>labdbsdev</serverName>

        <port>1521</port>

        <database>ndeis</database>

      </config>

    </dataSource>

      <limits>

        <!-- Start with 5 connections, never go below 5,

             and never go above 50 -->

        <maximum>50</maximum>

        <minimum>5</minimum>

        <initial>5</initial>

        <!-- Discard connections idle for 5 minutes -->

        <maxRetain>300</maxRetain>

        <!-- If maximum reached, block for 10 seconds -->

        <timeout>10</timeout>

      </limits>

 

  </resources>

</domain>

 

I also have modified my server.xml to include the following code snippet

 

      <Context path="/NDEIS" docBase="NDEIS" debug="0"

                 reloadable="true" crossContext="true">

 

                            <!-- Entry for tyrex -->

                            <Environment name="tyrexDomainConfig"
type="java.lang.String" value="domain-config.xml"/>

                                    <Environment name="tyrexDomainName"
type="java.lang.String" value="default"/>

 

                                    <Resource name="myDataSource"
auth="Container" type="tyrex.resource.Resource"/>

                                    <ResourceParams name="myDataSource">

                                      <parameter>

                                        <name>name</name>

                                        <value>myDataSource</name>

                                      </parameter>

                                    </ResourceParams>

        </Context>

 

After making these changes tomcat refuses to startup. 

                                    <Resource name="myDataSource"
auth="Container" type="tyrex.resource.Resource"/>

                                    <ResourceParams name="myDataSource">

                                      <parameter>

                                        <name>name</name>

                                        <value>myDataSource</name>

                                      </parameter>

                                    </ResourceParams>

I've noticed that when I remove the above bold section from the
<context></context> element then tomcat starts up. So the problem most
probably lies with the domain-config.xml but I cant figure it out. 

 

Can anybody please help.

 

Regards

Ian Venter



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager ([EMAIL PROTECTED])

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

Reply via email to