John Patrick created AXIS2-5383:
-----------------------------------
Summary: JNDI issue with ServiceTCCL Mac vs Win
Key: AXIS2-5383
URL: https://issues.apache.org/jira/browse/AXIS2-5383
Project: Axis2
Issue Type: Bug
Components: Integration
Affects Versions: 1.6.2
Environment: Mac - Java 6, Tomcat 6.0.35, Axis2 1.6.2
Win - Java 6, Tomcat 6.0.35, Axis2 1.6.2
Reporter: John Patrick
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>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]