I save my war file into deploy directory, but it is not deployed and I got error:
....
org.xml.sax.SAXParseException: Element "web-app" does not allow "filter" here.
.....
(web-app_2_3.dtd file is in the same directory as web.xml in WEB-INF)
and
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
[org.jboss.deployment.DeploymentInfo@c0aef3cd { url=file:/opt/jboss_306/server/all/deploy/aaa2/ }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/opt/jboss_306/server/all/deploy/aaa2/
lastDeployed: 1049585502626
lastModified: 1036949479000
mbeans:
]Incompletely deployed packages:
[org.jboss.deployment.DeploymentInfo@293b1db9 { url=file:/opt/jboss_306/server/all/deploy/aaa.war }
deployer: org.jboss.jetty.JettyService@1eda2c
status: Deployment FAILED reason: Element "web-app" does not allow "filter" here.; - nested throwable: (org.xml.sax.SAXParseException: Element "web-app" does not allow "filter" here.)
state: FAILED
watch: file:/opt/jboss_306/server/all/deploy/aaa.war
lastDeployed: 1049585499875
lastModified: 1049585499000
mbeans:
, org.jboss.deployment.DeploymentInfo@c0aef3cd { url=file:/opt/jboss_306/server/all/deploy/aaa2/ }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/opt/jboss_306/server/all/deploy/aaa2/
lastDeployed: 1049585502626
lastModified: 1036949479000
mbeans:
]MBeans waiting for classes:
MBeans waiting for other MBeans:
(aaa2 directory had the same structure as war file but it is without filter extension in web.xml)
Where is my mistake, why JBoss / Jetty does not deploy it? In the past, on Tomcat without app server, it was worked correctly ...
Thanks in advance