Axis2
  1. Axis2
  2. AXIS2-5383

JNDI issue with ServiceTCCL Mac vs Win

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6.2
    • Fix Version/s: None
    • Component/s: Integration
    • Labels:
      None
    • Environment:
      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>

      1. service-tccl.zip
        19 kB
        John Patrick

        Activity

        John Patrick created issue -
        Hide
        John Patrick added a comment -

        unzip and mvn clean install should work with any maven 3 installation.

        copy webservice/target/service-tccl-webservice-0.6.1-SNAPSHOT.aar into axis2/WEB-INF/services/

        Show
        John Patrick added a comment - unzip and mvn clean install should work with any maven 3 installation. copy webservice/target/service-tccl-webservice-0.6.1-SNAPSHOT.aar into axis2/WEB-INF/services/
        John Patrick made changes -
        Field Original Value New Value
        Attachment service-tccl.zip [ 12539719 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            John Patrick
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development