Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.21 KB | None | 0 0
  1. <configuration>
  2. <!--add security domain-->
  3. <before-deployment>
  4. <commands>
  5. <!--<command>./subsystem=security/security-domain=walbangSecureRealm:add(cache-type="default")</command>-->
  6. <!--<command>cd ./subsystem=security/security-domain=walbangSecureRealm</command>-->
  7. <!--<command>./authentication=classic:add(login-modules=[{code="Database",flag="required",module-options={dsJndiName="java:/walbangDbDS",principalsQuery="select password from usercredential uc where uc.username = ?",rolesQuery="select role, 'Roles' from users u where u.username = ?",unauthenticatedIdentity="guest"}}])</command>-->
  8. <command>/subsystem=security/security-domain=walbangSecureRealm:add(cache-type=default)</command>
  9. <command>/subsystem=security/security-domain=walbangSecureRealm/authentication=classic:add(login-modules=[{"code"=>"Database","flag"=>"required","module-options"=>[("dsJndiName"=>"java:/walbangDbDS"),("principalsQuery"=>"select password from usercredential uc where uc.username = ?"),("rolesQuery"=>"select role, 'Roles' from users u where u.username = ?"),("unauthenticatedIdentity"=>"guest")]}])</command>
  10. <command>reload</command>
  11. </commands>
  12. </before-deployment>
  13. </configuration>
  14.  
  15. 12:18:54,236 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "walbang-0.0.1-SNAPSHOT.war")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => [
  16. "jboss.deployment.unit."walbang-0.0.1-SNAPSHOT.war".component.ManageMatchServiceImpl.CREATE is missing [jboss.security.security-domain.walbangSecureRealm]",...
  17.  
  18. <plugins>
  19. <plugin>
  20. <groupId>org.apache.maven.plugins</groupId>
  21. <artifactId>maven-compiler-plugin</artifactId>
  22. <version>3.3</version>
  23. <configuration>
  24. <source>1.8</source>
  25. <target>1.8</target>
  26. </configuration>
  27. </plugin>
  28. <plugin>
  29. <groupId>org.apache.maven.plugins</groupId>
  30. <artifactId>maven-war-plugin</artifactId>
  31. <version>2.6</version>
  32. <configuration>
  33. <warSourceDirectory>WebContent</warSourceDirectory>
  34. <failOnMissingWebXml>true</failOnMissingWebXml>
  35. </configuration>
  36. </plugin>
  37. <!--wildfly plugin-->
  38. <plugin>
  39. <groupId>org.wildfly.plugins</groupId>
  40. <artifactId>wildfly-maven-plugin</artifactId>
  41. <version>1.1.0.Alpha8</version>
  42.  
  43. <executions>
  44. <!-- Deploy the JDBC driver -->
  45. <execution>
  46. <id>deploy-driver</id>
  47. <phase>package</phase>
  48. <configuration>
  49. <groupId>mysql</groupId>
  50. <artifactId>mysql-connector-java</artifactId>
  51. <name>mysql-connector</name>
  52. </configuration>
  53. <goals>
  54. <goal>deploy-artifact</goal>
  55. </goals>
  56. </execution>
  57. <!-- Add a data source -->
  58. <execution>
  59. <id>add-datasource</id>
  60. <phase>package</phase>
  61. <configuration>
  62. <address>subsystem=datasources,data-source=java:/walbangDbDS</address>
  63. <resources>
  64. <resource>
  65. <enableResource>true</enableResource>
  66. <properties>
  67. <connection-url>jdbc:mysql://localhost:3306/forumcs</connection-url>
  68. <jndi-name>java:/walbangDbDS</jndi-name>
  69. <enabled>true</enabled>
  70. <enable>true</enable>
  71. <user-name>root</user-name>
  72. <password>123456</password>
  73. <driver-name>mysql-connector</driver-name>
  74. <use-ccm>false</use-ccm>
  75. </properties>
  76. </resource>
  77. </resources>
  78. </configuration>
  79. <goals>
  80. <goal>add-resource</goal>
  81. </goals>
  82. </execution>
  83. <!-- Deploy the application on install -->
  84. <execution>
  85. <id>deploy</id>
  86. <phase>install</phase>
  87. <goals>
  88. <goal>deploy</goal>
  89. </goals>
  90. </execution>
  91. </executions>
  92.  
  93.  
  94.  
  95. <configuration>
  96. <!--add security domain-->
  97. <before-deployment>
  98. <commands>
  99. <!--<command>./subsystem=security/security-domain=walbangSecureRealm:add(cache-type="default")</command>-->
  100. <!--<command>cd ./subsystem=security/security-domain=walbangSecureRealm</command>-->
  101. <!--<command>./authentication=classic:add(login-modules=[{code="Database",flag="required",module-options={dsJndiName="java:/walbangDbDS",principalsQuery="select password from usercredential uc where uc.username = ?",rolesQuery="select role, 'Roles' from users u where u.username = ?",unauthenticatedIdentity="guest"}}])</command>-->
  102. <command>/subsystem=security/security-domain=walbangSecureRealm:add(cache-type=default)</command>
  103. <command>/subsystem=security/security-domain=walbangSecureRealm/authentication=classic:add(login-modules=[{"code"=>"Database","flag"=>"required","module-options"=>[("dsJndiName"=>"java:/walbangDbDS"),("principalsQuery"=>"select password from usercredential uc where uc.username = ?"),("rolesQuery"=>"select role, 'Roles' from users u where u.username = ?"),("unauthenticatedIdentity"=>"guest")]}])</command>
  104. <command>reload</command>
  105. </commands>
  106. </before-deployment>
  107. </configuration>
  108.  
  109. </plugin>
  110. </plugins>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement