Problems with starting Tomcat 4.1 ?!

Hi.

Is there some issue with Tomcat4.1 and IDEA (v4.5.1) ?
I managed to set Tomcat 5.0.x to start normally, but when I try same with Tomcat 4.1.30, it raises following exception when booting :

SEVERE: Parse Error at line 16 column 11: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param,filter,filter-mapping,listener,servlet,servlet-mapping,session-config?,mime-mapping,welcome-file-list?,error-page,taglib,resource-env-ref,resource-ref,security-constraint,login-config?,security-role,env-entry,ejb-ref,ejb-local-ref)".
org.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param,filter,filter-mapping,listener,servlet,servlet-mapping,session-config?,mime-mapping,welcome-file-list?,error-page,taglib,resource-env-ref,resource-ref,security-constraint,login-config?,security-role,env-entry,ejb-ref,ejb-local-ref)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

2 comments

I found what was the problem... Listener tag was after servlet tag in web.xml, although Tomcat 5 accepts it.

0

Correct. Servlet 2.3 required that elements in the web.xml appear in a
specific order. Servlet 2.4 removed that restriction.

You should have seen a message stating that the element could not go
there.

Norris Shelton
Sun Certified Java Programmer




John Smith wrote:

>I found what was the problem... Listener tag was after servlet tag in web.xml, although Tomcat 5 accepts it.
>

>

0

Please sign in to leave a comment.