You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by dtoffe <dt...@yahoo.com.ar> on 2007/11/14 16:21:21 UTC

Problem in servlet configuration, migrating 1.2.6 to 1.3

Hi !

I've just finished changing the libraries and fixing the code, the
application is small and not even finished. Now it won't run, Tomcat gives
me this error:

HTTP 404 - Servlet MyApplication is not available

My working web.xml was:

    <servlet>
        <servlet-name>MyApplication</servlet-name>
        <servlet-class>wicket.protocol.http.WicketServlet</servlet-class>
        <init-param>
            <param-name>applicationClassName</param-name>
            <param-value>com.myapp.pages.MyApplication</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
    </servlet>
	<servlet-mapping>
        <servlet-name>MyApplication</servlet-name>
        <url-pattern>/wicket/*</url-pattern>
    </servlet-mapping>

Now I changed this to the new packages in 1.3:

   
<servlet-class>org.apache.wicket.protocol.http.WicketServlet</servlet-class>

    I've seen in the wiki that now it's recommended to use Filters instead
of Servlets, but Servlet support is still ok. I've already tried with
variations in the url-pattern.

Any hints ??

Thanks,

Daniel

-- 
View this message in context: http://www.nabble.com/Problem-in-servlet-configuration%2C-migrating-1.2.6-to-1.3-tf4805722.html#a13748584
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problem in servlet configuration, migrating 1.2.6 to 1.3

Posted by dtoffe <dt...@yahoo.com.ar>.
You are right, it was something about slf4j being missing. In 1.2.6 the
commons logging jar file was included in /lib, but I forgot that slf4j was
required now. I don't use Maven, perhaps that's why I missed it, now that I
check again the release notes, slf4j is mentioned there. With slf4j in place
now I'm getting other errors that I'm checking now.

Thanks and excuse me,

Daniel



Johan Compagner wrote:
> 
> please try to get to the real exception.
> I guess it is somehow a class loading problem
> How to configure the servlet is not really changed if you want to use a
> servlet in 1.3
> 
> On Nov 14, 2007 4:21 PM, dtoffe <dt...@yahoo.com.ar> wrote:
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-in-servlet-configuration%2C-migrating-1.2.6-to-1.3-tf4805722.html#a13751449
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problem in servlet configuration, migrating 1.2.6 to 1.3

Posted by Johan Compagner <jc...@gmail.com>.
please try to get to the real exception.
I guess it is somehow a class loading problem
How to configure the servlet is not really changed if you want to use a
servlet in 1.3

On Nov 14, 2007 4:21 PM, dtoffe <dt...@yahoo.com.ar> wrote:

>
> Hi !
>
> I've just finished changing the libraries and fixing the code, the
> application is small and not even finished. Now it won't run, Tomcat gives
> me this error:
>
> HTTP 404 - Servlet MyApplication is not available
>
> My working web.xml was:
>
>    <servlet>
>        <servlet-name>MyApplication</servlet-name>
>        <servlet-class>wicket.protocol.http.WicketServlet</servlet-class>
>        <init-param>
>            <param-name>applicationClassName</param-name>
>            <param-value>com.myapp.pages.MyApplication</param-value>
>        </init-param>
>        <load-on-startup>2</load-on-startup>
>    </servlet>
>        <servlet-mapping>
>        <servlet-name>MyApplication</servlet-name>
>        <url-pattern>/wicket/*</url-pattern>
>    </servlet-mapping>
>
> Now I changed this to the new packages in 1.3:
>
>
> <servlet-class>org.apache.wicket.protocol.http.WicketServlet
> </servlet-class>
>
>    I've seen in the wiki that now it's recommended to use Filters instead
> of Servlets, but Servlet support is still ok. I've already tried with
> variations in the url-pattern.
>
> Any hints ??
>
> Thanks,
>
> Daniel
>
> --
> View this message in context:
> http://www.nabble.com/Problem-in-servlet-configuration%2C-migrating-1.2.6-to-1.3-tf4805722.html#a13748584
> Sent from the Wicket - User mailing list archive at Nabble.com<http://nabble.com/>
> .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>