You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "John Patrick (JIRA)" <ji...@apache.org> on 2012/08/07 23:59:10 UTC

[jira] [Updated] (AXIS2-5383) JNDI issue with ServiceTCCL Mac vs Win

     [ https://issues.apache.org/jira/browse/AXIS2-5383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Patrick updated AXIS2-5383:
--------------------------------

    Attachment: service-tccl.zip

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/

                
> 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
>         Attachments: service-tccl.zip
>
>
> 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org