User development,
A new message was posted in the thread "[beginner] Deploying a ear file under JBoss
AS 5":
http://community.jboss.org/message/519288#519288
Author : Peter Johnson
Profile :
http://community.jboss.org/people/peterj
Message:
--------------------------------------------------------------
This extra error message helps:
sarko86 wrote:
The content
of element type "servlet-mapping" must match
"(servlet-name,url-pattern)". @ vfs
zip:/C:/Programmi/jBoss/server/default/deploy/example2.ear/example2.war/WEB-INF/
web.xml[16,21]
JBoss AS 5 is striucter whne it comes to following the web.xml file
layout thatn what AS 4.x was. The issue is that you have the servlet-name and url-pattern
in the wriong order; it should be:
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/servlet/HelloWorld</url-pattern>
</servlet-mapping>
--------------------------------------------------------------
To reply to this message visit the message page:
http://community.jboss.org/message/519288#519288