Mantis - Resin
Viewing Issue Advanced Details
36 minor always 03-15-05 00:00 05-11-05 00:00
ferg  
 
normal  
closed  
fixed  
none    
none 3.0.13  
0000036: CLONE -Hello World Tutorial Error with Deploytool of J2EE
RSN-27
Using the example web.xml file as shown on the website the following error occurs at deploy of the war file:

-----

distribute: C:\servletTest\servletTest.war
deployment started : 0%
Deploying application in domain failed; Error loading deployment descriptors for servletTest Line 11 Column 18 -- cvc-complex-type.2.4.a: Invalid content was found starting with element 'url-pattern'. One of '{"http://java.sun.com/xml/ns/j2ee":servlet-name}' [^] is expected.

; requested operation cannot be completed

!!! Operation Failed !!!
!!! With The Following Failure Messages !!!
Deploying application in domain failed; Error loading deployment descriptors for servletTest Line 11 Column 18 -- cvc-complex-type.2.4.a: Invalid content was found starting with element 'url-pattern'. One of '{"http://java.sun.com/xml/ns/j2ee":servlet-name}' [^] is expected.

; requested operation cannot be completed

Error loading deployment descriptors for servletTest Line 11 Column 18 -- cvc-complex-type.2.4.a: Invalid content was found starting with element 'url-pattern'. One of '{"http://java.sun.com/xml/ns/j2ee":servlet-name}' [^] is expected.



**********************************************************************
[Completed (time=2.1sec, status=13)]
**********************************************************************

-----

That means the line

  <servlet-mapping>
    <url-pattern>/hello</url-pattern>
    <servlet-name>hello</servlet-name>
  </servlet-mapping>

must be vise versa as follows:

  <servlet-mapping>
    <servlet-name>hello</servlet-name>
    <url-pattern>/hello</url-pattern>
  </servlet-mapping>

Please correct the tutorial so that unskilled users do not have to worry about that error

There are no notes attached to this issue.