Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000036 [Resin] minor always 03-15-05 00:00 05-11-05 00:00
Reporter ferg View Status public  
Assigned To
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.13 Product Version
  Product Build
Summary 0000036: CLONE -Hello World Tutorial Error with Deploytool of J2EE
Description 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
Steps To Reproduce
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
03-15-05 00:00 ferg New Issue
11-30-05 00:00 administrator Fixed in Version  => 3.0.13


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker