Hi

> Howdy,
> 
> >     <servlet-mapping>
> >             <servlet-name>MessageServlet1</servlet-name>
> >             <url-pattern>/servlet/MessageServlet1</url-pattern>
> >     </servlet-mapping>
> >
> >The problem is when I add the above code to the xml file nothing
Under
> >servlets-examples will run.  What am I doing wrong?
> 
> You need to have a <servlet> element in your web.xml file defining
what
> class MessageServlet1 is, e.g.
> <servlet>
>   <servlet-name>MessageServlet1</servlet-name>
>   <servlet-class>com.mycompany.SomeServlet</servlet-class>
> </servlet>
> 
> It's preferable to put this servlet element before the servlet-mapping
> one ;)
> 
> Yoav Shapira
> 
ok got it :-)  Thanks now I am getting the following error

HTTP Status 500 - 

------------------------------------------------------------------------
--------

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

javax.servlet.ServletException: No servlet class has been specified for
servlet MessageServlet1
        
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:509)
        
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:164)
        
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
        
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
8)
        
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:700)
        
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
4)
        
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
        java.lang.Thread.run(Thread.java:534)


note The full stack trace of the root cause is available in the Tomcat
logs.

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

Reply via email to