Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5383

JNDI issue with ServiceTCCL Mac vs Win

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.2
    • None
    • Integration
    • None
    • Mac - Java 6, Tomcat 6.0.35, Axis2 1.6.2
      Win - Java 6, Tomcat 6.0.35, Axis2 1.6.2

    Description

      Simple axis2 web service using JPA, when changing ServiceTCCL different results for Mac and Windows.

      Mac & Windows - Setting <parameter name="ServiceTCCL">default</parameter>, jpa can't see persistence.xml
      Mac & Windows - Setting <parameter name="ServiceTCCL">composite</parameter>, jpa sees persistence.xml, but can't find data source
      Windows - Setting <parameter name="ServiceTCCL">service</parameter> jpa sees persistence.xml but can't see data source
      Mac - Setting <parameter name="ServiceTCCL">service</parameter> jpa sees persistence.xml and can see data source

      Web Services work for developers using Mac.

      Same code, same config, same version of tomcat and it doesn't work for developers using Windows.

      We have temporary work around for deployments require on Windows by copying the jar using jpa plus it's dependencies into the tomcat lib.

      Plus the aar we did the following changes the standard tomcat and axis2 releases.

      Add the following to the axis2 context.xml;
      <ResourceLink name="jdbc/service-tccl-ds" global="jdbc/service-tccl-ds" />

      Add the following to the axis2 web.xml;
      <resource-ref>
      <description>jdbc/service-tccl-ds</description>
      <res-ref-name>jdbc/service-tccl-ds</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>

      Add the follow to tomcat server.xml and correct for local database;
      <GlobalNamingResources>
      <Resource
      name="jdbc/service-tccl-ds"
      auth="Container"
      type="javax.sql.DataSource"
      driverClassName="FIX_ME"
      url="FIX_ME"
      username="FIX_ME"
      password="FIX_ME"
      initialSize="1"
      maxActive="20"
      maxIdle="10"
      maxWait="-1"
      />
      </GlobalNamingResources>

      Attachments

        1. service-tccl.zip
          19 kB
          John Patrick

        Activity

          People

            Unassigned Unassigned
            nhoj.patrick John Patrick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: