code_junkie

How do you deploy a WAR that's inside an EAR as the root (/) context in Glassfish?

Nov 11th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <application version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
  3. <display-name>MyEAR</display-name>
  4. <module>
  5. <web>
  6. <web-uri>war1.war</web-uri>
  7. <context-root>/</context-root>
  8. </web>
  9. </module>
  10. <module>
  11. <web>
  12. <web-uri>war2.war</web-uri>
  13. <context-root>/war2location</context-root>
  14. </web>
  15. </module>
  16. </application>
  17.  
  18. RewriteEngine On
  19. RedirectMatch ^/(w[^/].*) /w/$1
  20. RedirectMatch ^/([^w].*) /w/$1
  21.  
  22. <context-root>ROOT</context-root>
Add Comment
Please, Sign In to add comment