Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Why is Cargo generating duplicate data sources for Weblogic 10.3.x container?
- <plugin>
- <groupId>org.codehaus.cargo</groupId>
- <artifactId>cargo-maven2-plugin</artifactId>
- <version>1.0.6</version>
- <configuration>
- <wait>false</wait>
- <!--Configure the Container -->
- <container>
- <containerId>weblogic103x</containerId>
- <timeout>1800000</timeout>
- <home>${weblogic.10.3.home}</home>
- <systemProperties>
- <server.logs>${project.build.directory}</server.logs>
- <net.sf.ehcache.disabled>true</net.sf.ehcache.disabled>
- <javax.xml.soap.MessageFactory>
- com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
- </javax.xml.soap.MessageFactory>
- <cargo.jvmargs>-XX:MaxPermSize=256M -Xmx512m</cargo.jvmargs>
- </systemProperties>
- <output>${project.build.directory}/weblogic.log</output>
- <append>true</append>
- <log>${project.build.directory}/cargo.log</log>
- </container>
- <!--configure the deployer -->
- <deployer>
- <type>local</type>
- <deployables>
- <deployable>
- <groupId>my.group.id</groupId>
- <artifactId>my.artifact.id</artifactId>
- <type>ear</type>
- </deployable>
- </deployables>
- </deployer>
- <configuration>
- <type>standalone</type>
- <home>c:/bea/user_projects/domains/cargo_domain</home>
- <properties>
- <cargo.servlet.port>7001</cargo.servlet.port>
- <cargo.logging>medium</cargo.logging>
- <cargo.java.home>${jrockit.1.6.home}</cargo.java.home>
- <cargo.datasource.datasource.my_connection>
- cargo.datasource.id=my_connection_id|
- cargo.datasource.type=javax.sql.XADataSource|
- cargo.datasource.driver=weblogic.jdbcx.oracle.OracleDataSource|
- cargo.datasource.jndi=jdbc/MyConnection|
- cargo.datasource.username=MyUserName|
- cargo.datasource.password=MyPassword|
- cargo.datasource.properties=portNumber=1521;SID=my_sid;serverName=my_server_url
- </cargo.datasource.datasource.my_connection>
- </properties>
- </configuration>
- </configuration>
- <executions>
- <execution>
- <id>setup-server</id>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>start</goal>
- </goals>
- </execution>
- <execution>
- <id>stop-server</id>
- <phase>post-integration-test</phase>
- <goals>
- <goal>stop</goal>
- </goals>
- </execution>
- </executions>
- <jdbc-system-resource>
- <name>my_connection_id</name>
- <target>AdminServer</target>
- <descriptor-file-name>jdbc/my_connection-jdbc.xml</descriptor-file-name>
- </jdbc-system-resource>
- <jdbc-system-resource>
- <name>my_connection_id</name>
- <target>AdminServer</target>
- <descriptor-file-name>jdbc/my_connection-jdbc.xml</descriptor-file-name>
- </jdbc-system-resource>
Add Comment
Please, Sign In to add comment