Does it work when you only have the first servlet? I guess it does :)
This is not a spindle bug,
it has to do (I guess) with the fact that
your systems (or eclipse's) XML parser is set up to perform XML validation,
in which case order matters.
So, put all the servlet tags together, and after them all the servlet-mappings together and it should work.


Tomas Jucius wrote:

I have such web.xml definition.. With two servlets.. Spindle throws
parse error.. And autocomplition stops working.. What could be wrong?
Or just spindle bug?

<web-app>
   <display-name>name</display-name>
   <filter>
       <filter-name>redirect</filter-name>
       <filter-class>org.apache.tapestry.RedirectFilter</filter-class>
   </filter>
   <filter-mapping>
       <filter-name>redirect</filter-name>
       <url-pattern>/</url-pattern>
   </filter-mapping>

   <servlet>
       <servlet-name>first</servlet-name>
       <servlet-class>xx.xxx.Servlet</servlet-class>
       <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet-mapping>
       <servlet-name>first</servlet-name>
       <url-pattern>/app</url-pattern>
   </servlet-mapping>
        
  <servlet>
       <servlet-name>second</servlet-name>
       <servlet-class>xx.xxx.Servlet</servlet-class>
       <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet-mapping>
       <servlet-name>second</servlet-name>
       <url-pattern>/second/app</url-pattern>
   </servlet-mapping>

</web-app>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to