@H_403_1@liberty jpa2.0 可以和jaxws jaxb 2.2 和平共处
@H_403_1@liberty jpa2.1 就不行,不过项目里用的是hibernate 是不用他默认实现,直接不加载jpa组件。
@H_403_1@<server description="new server">
@H_403_1@<!-- Enable features -->
@H_403_1@<featureManager>
@H_403_1@<feature>jsp-2.2</feature>
@H_403_1@<feature>jaxb-2.2</feature>
@H_403_1@<feature>jdbc-4.0</feature>
@H_403_1@<feature>servlet-3.0</feature>
@H_403_1@<feature>jaxws-2.2</feature>
@H_403_1@<feature>ejbLite-3.1</feature>
@H_403_1@<feature>localConnector-1.0</feature>
@H_403_1@</featureManager>
@H_403_1@<!-- To access this server from a remote client add a host attribute to
@H_403_1@the following element,e.g. host="*" -->
@H_403_1@<httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>
@H_403_1@<jdbcDriver id="db2universal" libraryRef="db2Lib"/>
@H_403_1@<library id="db2Lib">
@H_403_1@ <fileset dir="${shared.resource.dir}/lib/db2" id="db2Fileset" includes="db2jcc.jar,db2jcc4.jar" caseSensitive="false"></fileset>
@H_403_1@</library>
@H_403_1@<dataSource id="regiedb" isolationLevel="TRANSACTION_READ_COMMITTED" jdbcDriverRef="db2universal" jndiName="jdbc/REGIEAPP" type="javax.sql.DataSource" transactional="true">
@H_403_1@<connectionManager numConnectionsPerThreadLocal="10" id="ConnectionManager" minPoolSize="1"/>
@H_403_1@<properties URL="" databaseName="" password="" portNumber="port" serverName="" user="" driverType="4"/>
@H_403_1@ </dataSource>
@H_403_1@<!-- Automatically expand WAR files and EAR files -->
@H_403_1@<applicationManager autoExpand="true"/>
@H_403_1@ <applicationMonitor updateTrigger="mbean"/>
@H_403_1@ <enterpriseApplication id="com-icss-regie-inspcert-ear" location="com-icss-regie-inspcert-ear-1.0-SNAPSHOT.ear" name="com-icss-regie-inspcert-ear"/>
@H_403_1@</server>
@H_403_1@-----------------------------------------------------------
@H_403_1@<server description="new server">
@H_403_1@ <!-- Enable features -->
@H_403_1@ <featureManager>
@H_403_1@ <feature>jaxrs-2.0</feature>
@H_403_1@ <feature>localConnector-1.0</feature>
@H_403_1@<feature>jaxws-2.2</feature>
@H_403_1@<feature>jdbc-4.1</feature>
@H_403_1@<feature>jndi-1.0</feature>
@H_403_1@</featureManager>
@H_403_1@ <httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>
@H_403_1@ <applicationManager autoExpand="true"/>
@H_403_1@ <applicationMonitor updateTrigger="mbean"/>
@H_403_1@
@H_403_1@ <jdbcDriver id="db2universal" libraryRef="db2Lib"/>
@H_403_1@<library id="db2Lib">
@H_403_1@ <fileset caseSensitive="false" dir="${shared.resource.dir}/lib/db2" id="db2Fileset" includes="db2jcc.jar,db2jcc4.jar"/>
@H_403_1@</library>
@H_403_1@<dataSource id="regiedb" isolationLevel="TRANSACTION_READ_COMMITTED" jdbcDriverRef="db2universal" jndiName="jdbc/REGIEAPP" transactional="true" type="javax.sql.DataSource">
@H_403_1@<connectionManager id="ConnectionManager" minPoolSize="1" numConnectionsPerThreadLocal="10"/>
@H_403_1@<properties URL="" databaseName="regiedb" driverType="4" password="" portNumber="" serverName="" user="/>
@H_403_1@ </dataSource>
@H_403_1@ <enterpriseApplication id="com-icss-regie-inspcert-ear" location="com-icss-regie-inspcert-ear-1.0-SNAPSHOT.ear" name="com-icss-regie-inspcert-ear"/>
@H_403_1@</server>
@H_403_1@------------------------------------------------------------------------------------------------------------------------
@H_403_1@<server description="new server">
@H_403_1@ <!-- Enable features -->
@H_403_1@ <featureManager>
@H_403_1@ <feature>jaxrs-2.0</feature>
@H_403_1@ <feature>localConnector-1.0</feature>
@H_403_1@<feature>jaxws-2.2</feature>
@H_403_1@<feature>jdbc-4.1</feature>
@H_403_1@<feature>jndi-1.0</feature>
@H_403_1@</featureManager>
@H_403_1@ <httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>
@H_403_1@ <applicationManager autoExpand="true"/>
@H_403_1@ <applicationMonitor updateTrigger="mbean"/>
@H_403_1@
@H_403_1@ <jdbcDriver id="db2universal" libraryRef="db2Lib"/>
@H_403_1@<library id="db2Lib">
@H_403_1@ <fileset caseSensitive="false" dir="${shared.resource.dir}/lib/db2" id="db2Fileset" includes="db2jcc.jar,db2jcc4.jar"/>
@H_403_1@</library>
@H_403_1@<dataSource id="regiedb" isolationLevel="TRANSACTION_READ_COMMITTED" jdbcDriverRef="db2universal" jndiName="jdbc/REGIEAPP" transactional="true" type="javax.sql.XADataSource">
@H_403_1@<connectionManager id="ConnectionManager" minPoolSize="1" numConnectionsPerThreadLocal="10"/>
@H_403_1@<propertie" databaseName="regiedb" driverType="4" password="password" portNumber="port" serverName="host" user="user"/>
@H_403_1@ </dataSource>
@H_403_1@<transaction recoverOnStartup="true" waitForRecovery="true" />
@H_403_1@ <enterpriseApplication id="com-icss-regie-inspcert-ear" location="com-icss-regie-inspcert-ear-1.0-SNAPSHOT.ear" name="com-icss-regie-inspcert-ear"/>
@H_403_1@</server>