In your application.xml you should have a web module context defined.
...
<module>
    <web>
      <web-uri>sample.war</web-uri>
      <context-root>/sample</context-root>
    </web>
  </module>
....

To get to the servlet http://hostname:port/sample/servlet/ServletName

Alvin

Joe wrote:

> what context are you deploying the web app under ?
> and are you type the address correctly ? for some reason the address is case
> sensative it is for me anyways
> ----- Original Message -----
> From: "Patrick Buchinger" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 23, 2001 4:01 PM
> Subject: Re: [JBoss-user] how to access servlet within embedded tomcat??
>
> > Tahir Awan wrote:
> >
> > > Are u sure you .ear is deployed properly? I could never got it to work
> until
> > > I remove all the encodings from web.xml, application.xml, ejb-jar.xml
> etc.
> > >
> > > Tahir
> >
> > yes, the ear deploys without any error message. plus, i'm able to access
> > the ejb from the jar file in the ear file without any problems.
> >
> > tnx,
> >
> > patrick
> >
> > >
> > >
> > > -----Original Message-----
> > > From: Patrtick Buchinger [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 23, 2001 10:11 AM
> > > To: Jboss (E-mail)
> > > Subject: [JBoss-user] how to access servlet within embedded tomcat??
> > >
> > >
> > > hi everyone!
> > >
> > > i'm trying to access a servlet which is part of a web-application (well,
> > > the web-application itself is part of an enterprise application), but
> > > when i call the url
> > >
> > > http://192.168.0.2:8080/servlet/ExportStream
> > > i allways get the following error:
> > >
> > >
> > >   Not Found (404)
> > >
> > > *Original request:* /servlet/ExportStream
> > >
> > > *Not found request:* /servlet/ExportStream
> > >
> > >
> > > The web.xml in my WEB-INF directory looks like this:
> > >
> > > <?xml version="1.0" encoding="ISO-8859-1"?>
> > >
> > > <!DOCTYPE web-app
> > >    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> > >    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> > >
> > > <web-app>
> > >   <servlet>
> > >    <servlet-name>ExportStream</servlet-name>
> > >
> > >
> <servlet-class>com.ediorg.odyssey.inet.export.ExportStreamServlet</servlet-c
> > > lass>
> > >   </servlet>
> > >
> > >   <session-config>
> > >    <session-timeout>30</session-timeout>
> > >   </session-config>
> > >
> > >   <!--
> > >   <welcome-file-list>
> > >    <welcome-file>index.jsp</welcome-file>
> > >   </welcome-file-list>
> > >   -->
> > >   <!--
> > >   <security-constraint>
> > >    <web-resource-collection>
> > >      <web-resource-name>Protected Area</web-resource-name>
> > >      <url-pattern>/*</url-pattern>
> > >      <http-method>DELETE</http-method>
> > >      <http-method>GET</http-method>
> > >      <http-method>POST</http-method>
> > >      <http-method>PUT</http-method>
> > >    </web-resource-collection>
> > >
> > >    <auth-constraint>
> > >      <role-name>inet_export</role-name>
> > >    </auth-constraint>
> > >   </security-constraint>
> > >
> > >   <login-config>
> > >    <auth-method>BASIC</auth-method>
> > >    <realm-name>Atlas Export</realm-name>
> > >   </login-config>
> > >   -->
> > > </web-app>
> > >
> > > what am i doing wrong??
> > >
> > > thank you,
> > >
> > > patrick
> > >
> > >
> > > _______________________________________________
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > > _______________________________________________
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> > >
> >
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to