Advertisement

08.01.2007 at 08:35AM PDT, ID: 22734889
[x]
Attachment Details

servlets not found on second load

Asked by WhatIsTheJava in Java Server Pages (JSP), Apache Web Server, Java Servlets

Tags: adds, found, invoker, mappings

hi I am moving over from jetty 4.2 to jetty 6.1.0 embeded web server -  and in my web.xml I am using the following bit of xml

    <servlet>
        <servlet-name>invoker</servlet-name>
        <servlet-class>org.mortbay.jetty.servlet.Invoker</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>invoker</servlet-name>
        <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>


According to everything I read this should allow dynamic loading of all my servlets

BUT IT DOESNT !!!!

All my servlets work first time but some appear as error 404 when I try to reload them.


This is what I have tried.

Servlet A works
Servlet B does not
Copyy Servlet A over Servlet B - Change class name to Servlet A
recompile
No effect.

All my servlets live in the same directory.
Some servlets use POSt, some use GET , some use Ajax but the ones that do not work have nothing specifically in common.

Some Ajax work
Some POST work
some GET work


I seem to be able to statically add certain servlets in my web.xml and that solves some of them BUT not others and I am running out of ideas what this could be

Does anyone know why this could be.

All answers apreciatcted. Start Free Trial
[+][-]08.02.2007 at 12:59AM PDT, ID: 19615160

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.02.2007 at 01:23AM PDT, ID: 19615257

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.02.2007 at 02:24AM PDT, ID: 19615474

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Server Pages (JSP), Apache Web Server, Java Servlets
Tags: adds, found, invoker, mappings
Sign Up Now!
Solution Provided By: matthew016
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.02.2007 at 06:20AM PDT, ID: 19616579

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.02.2007 at 10:19AM PDT, ID: 19618923

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.07.2007 at 07:28AM PDT, ID: 19646136

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.07.2007 at 10:27AM PDT, ID: 19647938

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.10.2007 at 12:57AM PDT, ID: 19668273

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.13.2007 at 10:26AM PDT, ID: 19885532

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.13.2007 at 06:39PM PDT, ID: 19888452

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.21.2007 at 07:19PM PDT, ID: 19940328

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32