Guest User

Untitled

a guest
Sep 2nd, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. Why is Cargo generating duplicate data sources for Weblogic 10.3.x container?
  2. <plugin>
  3. <groupId>org.codehaus.cargo</groupId>
  4. <artifactId>cargo-maven2-plugin</artifactId>
  5. <version>1.0.6</version>
  6. <configuration>
  7. <wait>false</wait>
  8. <!--Configure the Container -->
  9. <container>
  10. <containerId>weblogic103x</containerId>
  11. <timeout>1800000</timeout>
  12. <home>${weblogic.10.3.home}</home>
  13. <systemProperties>
  14. <server.logs>${project.build.directory}</server.logs>
  15. <net.sf.ehcache.disabled>true</net.sf.ehcache.disabled>
  16. <javax.xml.soap.MessageFactory>
  17. com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
  18. </javax.xml.soap.MessageFactory>
  19. <cargo.jvmargs>-XX:MaxPermSize=256M -Xmx512m</cargo.jvmargs>
  20. </systemProperties>
  21. <output>${project.build.directory}/weblogic.log</output>
  22. <append>true</append>
  23. <log>${project.build.directory}/cargo.log</log>
  24. </container>
  25.  
  26. <!--configure the deployer -->
  27. <deployer>
  28. <type>local</type>
  29. <deployables>
  30. <deployable>
  31. <groupId>my.group.id</groupId>
  32. <artifactId>my.artifact.id</artifactId>
  33. <type>ear</type>
  34. </deployable>
  35. </deployables>
  36. </deployer>
  37.  
  38. <configuration>
  39. <type>standalone</type>
  40. <home>c:/bea/user_projects/domains/cargo_domain</home>
  41. <properties>
  42. <cargo.servlet.port>7001</cargo.servlet.port>
  43. <cargo.logging>medium</cargo.logging>
  44. <cargo.java.home>${jrockit.1.6.home}</cargo.java.home>
  45. <cargo.datasource.datasource.my_connection>
  46. cargo.datasource.id=my_connection_id|
  47. cargo.datasource.type=javax.sql.XADataSource|
  48. cargo.datasource.driver=weblogic.jdbcx.oracle.OracleDataSource|
  49. cargo.datasource.jndi=jdbc/MyConnection|
  50. cargo.datasource.username=MyUserName|
  51. cargo.datasource.password=MyPassword|
  52. cargo.datasource.properties=portNumber=1521;SID=my_sid;serverName=my_server_url
  53. </cargo.datasource.datasource.my_connection>
  54. </properties>
  55. </configuration>
  56. </configuration>
  57.  
  58. <executions>
  59. <execution>
  60. <id>setup-server</id>
  61. <phase>pre-integration-test</phase>
  62. <goals>
  63. <goal>start</goal>
  64. </goals>
  65. </execution>
  66. <execution>
  67. <id>stop-server</id>
  68. <phase>post-integration-test</phase>
  69. <goals>
  70. <goal>stop</goal>
  71. </goals>
  72. </execution>
  73. </executions>
  74.  
  75. <jdbc-system-resource>
  76. <name>my_connection_id</name>
  77. <target>AdminServer</target>
  78. <descriptor-file-name>jdbc/my_connection-jdbc.xml</descriptor-file-name>
  79. </jdbc-system-resource>
  80. <jdbc-system-resource>
  81. <name>my_connection_id</name>
  82. <target>AdminServer</target>
  83. <descriptor-file-name>jdbc/my_connection-jdbc.xml</descriptor-file-name>
  84. </jdbc-system-resource>
Add Comment
Please, Sign In to add comment