web.xml definitions or spindel bug?!

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

web.xml definitions or spindel bug?!

Tomas Jucius
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: web.xml definitions or spindel bug?!

Andreas Andreou-4
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: [hidden email]
>For additional commands, e-mail: [hidden email]
>
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: web.xml definitions or spindel bug?!

corsair
In reply to this post by Tomas Jucius
Need

<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>
         <servlet-name>second</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-mapping>
         <servlet-name>second</servlet-name>
         <url-pattern>/second/app</url-pattern>
     </servlet-mapping>

</web-app>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: web.xml definitions or spindel bug?!

Geoff Longman
In reply to this post by Tomas Jucius
There is not enough information to determine the root cause of the
problem. Log a bug against Spindle over at sourceforge and please
*attach* (not paste) the complete web.xml and the contents of the
Eclipse log file.

http://sourceforge.net/tracker/?func=add&group_id=50321&atid=459328

thx

Geoff

On 5/27/05, Tomas Jucius <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]