Also note that this /servlet/ directory is a virtual one. And it could be
changed in
<orion-dir>/application-deployments/<app-name>/<web-app-name>/orion-web.xml

<orion-web-app
        deployment-version="1.4.4"
        development="true"
        jsp-cache-directory="./persistence"
        temporary-directory="./temp"
        servlet-webdir="/whatever-dir-name-you-need/">
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Also it could be changed to the "/" so you'll be able to run your servlets
from the root of your web-application. Just like in the URLs you tried.

Stas.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Santosh Kumar
> Sent: Wednesday, January 17, 2001 12:12 PM
> To: Orion-Interest
> Subject: Re: Servlet Mapping and Access
>
>
> try  http://localhost/junitee/servlet/TestServlet
>
> ----- Original Message -----
> From: hartmut wilms <[EMAIL PROTECTED]>
> To: Orion-Interest <[EMAIL PROTECTED]>
> Sent: Wednesday, January 17, 2001 2:17 PM
> Subject: Servlet Mapping and Access
>
>
> > Hi there,
> >
> > I'm really lost. I can't figure out how to access a mapped
> servlet from a
> > Web-Browser. I tried several URLs, like:
> >
> > - http://localhost/gamsytest/TestServlet
> > - http://localhost/gamsytest/junitee/TestServlet
> > - http://localhost/junitee/TestServlet
> > - ...
> >
> > Accessing JSPs in the example applications works fine. My
> problem is that
> I
> > don't understand the relationships between all the orion xml
> > configuration/descriptor files. I know that they are documented, but
> > sometimes some pieces are missing or I don't get enough
> information. After
> > all I'm a Newbie to Orion.
> >
> > My configuration:
> >
> > server.xml
> > ...
> > <application name="gamsytest"
> >
> > path="../applications/junitee-orion.ear" />
> > ...
> >
> > default-web-site.xml
> > ...
> > <web-app application="gamsytest" name="gamsytest-web"
> > root="/gamsytest" />
> > ...
> >
> > ??? What values are expected for name and root?
> >
> > web.xml
> > ...
> >    <servlet>
> >       <servlet-name>TestServlet</servlet-name>
> >       <description>Servlet that calls the TestRunner bean</description>
> >
> >
> <servlet-class>com.itellium.aeservices.junit.htmlui.TestServlet</s
ervlet-cla
> > ss>
> >    </servlet>
> >    <servlet-mapping>
> >       <servlet-name>TestServlet</servlet-name>
> >       <url-pattern>/TestServlet</url-pattern>
> >    </servlet-mapping>
> > ...
> >
> > application.xml
> > ...
> >    <module>
> >       <web>
> >          <web-uri>junitee-web.war</web-uri>
> >          <context-root>/junitee</context-root>
> >       </web>
> >    </module>
> >    ...
> >
> > What are the relationships between all these name/mapping attributes. I
> used
> > the web.xml and application.xml with jBOSS and WebLogic without
> having any
> > problems:
> >
> > http://.../junitee/TestServlet WORKED!
> >
> > Can anybody help me and explain the orion way?
> >
> > Regards
> >
> > Hartmut Wilms
> >
> >
> >
>
>


Reply via email to