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</servlet-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