This content has been marked as final.
Show 4 replies
-
1. Re: order of attributes in web-app node of web.xml seems to matter with JBoss 6 M2
jaikiran Mar 30, 2010 10:37 AM (in response to mpscholz)Try this
<web-app 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 web-app_3_0.xsd" version="3.0">
-
2. Re: order of attributes in web-app node of web.xml seems to matter with JBoss 6 M2
mpscholz Mar 30, 2010 11:20 AM (in response to jaikiran)As said above, placing the version attribute at the end of the web-app node works fine for me.
But I thought the order of the attributes should not matter?
-
3. Re: order of attributes in web-app node of web.xml seems to matter with JBoss 6 M2
jaikiran Mar 30, 2010 12:02 PM (in response to mpscholz)I copy pasted your exact same file contents into an app of mine:
<?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" 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/web-app_3_0.xsd"> <display-name>Web Application</display-name> </web-app>
Worked fine on 6.0.0.M2:
21:30:56,823 INFO [TomcatDeployment] deploy, ctxPath=/test ... 21:30:57,103 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.20100216-M2 (build: SVNTag=JBoss_6_0_0_20100216-M2 date=20100216)] Started in 22s:935ms
Can you post the entire exception stacktrace you are running into?
-
4. Re: order of attributes in web-app node of web.xml seems to matter with JBoss 6 M2
mpscholz Apr 1, 2010 9:16 AM (in response to jaikiran)After doing some more tests, I have come to the conclusion that it's in fact not a matter of the order of the version tag (as it appeared to me initially), but of some other interaction of circumstances (most presumably an incorrect ear file containing the same web components lingering around in the deployment directory in addition to the war file in question).
Sorry.
So this thread might be closed.