Here is my file/directory structure for the Product
application. Why do you think I am not able to invoke
the ProductServlet. Thanks

The following is my directory/file structure. I am not
able to succesfully invoke ProductServlet thus:
http://localhost/ejbsamples/servlet/ProductServlet

You'll notice that I've copied ProductServlet to a
couple of places

c:\orion\demo\ejb\ejb-web\WEB-INF\web.xml
this web.xml contains:
<?xml version="1.0"?>
<!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>
        <display-name>ejbsamples</display-name>
        <description>The ejb Application</description>
        <servlet>
                <servlet-name>product</servlet-name>
                <display-name>product</display-name>
                <servlet-class>ProductServlet</servlet-class>
        </servlet>
        <servlet-mapping> 
               <servlet-name>product</servlet-name> 
               <url-pattern> /ProductServlet
</url-pattern> 
        </servlet-mapping> 

</web-app>

c:\orion\demo\ejb\ejb-web\WEB-INF\classes\ProductServlet.class
c:\orion\demo\ejb\product\META-INF\ejb-jar.xml,
application-client.xml, orion-application-client.xml
c:\orion\demo\ejb\product\orion-product.jar which
contains jndi.properties, Product.class,
ProductClient.class, ProductEJB.class,
ProductHome.class, ProductServlet.class and the
corresponding Java source files.

c:\orion\config\default-web-site.xml contains the
following:
<?xml version="1.0"?>
<!DOCTYPE web-site PUBLIC "Orion Web-site"
"http://www.orionserver.com/dtds/web-site.dtd">
<web-site host="[ALL]" port="80" display-name="Default
Orion WebSite">
        <!-- The default web-app for this site, bound to the
root -->
        <default-web-app application="default"
name="defaultWebApp" />
        <!-- Uncomment this to activate the news app -->
        <!-- <web-app application="news" name="news-web"
root="/news" /> -->
        <!-- Access Log, where requests are logged to -->
        <access-log path="../log/default-web-access.log" />
        <!-- <web-app application="orion-primer"
name="orion-primer-web" root="/orion-primer" /> -->
        <!-- <web-app application="atm" name="atm-web"
root="/atm" /> --> 
        <!-- <web-app application="taglib-tutorial"
name="taglib-tutorial-web" root="/taglib" /> -->
        <web-app application="ejbsamples" name="ejb-web"
root="/ejbsamples" />
</web-site>

c:\orion\config\server.xml contains:
<?xml version="1.0"?>
<!DOCTYPE application-server PUBLIC "Orion Application
Server Config" 

"http://www.orionserver.com/dtds/application-server.dtd">

<application-server
application-directory="../applications"
deployment-directory="../application-deployments">
        <rmi-config path="./rmi.xml" />
        <!-- JMS-server config link, uncomment to activate
the JMS service -->
        <jms-config path="./jms.xml" />
        <principals path="./principals.xml" />
        <log>   <file path="../log/server.log" /> </log>
        <global-application name="default"
path="application.xml" />
        <global-web-app-config
path="global-web-application.xml" />
        <web-site path="./default-web-site.xml" />
        <!-- Compiler, activate this to specify an
alternative compiler such as jikes for EJB/JSP
compiling. -->
        <!-- <compiler executable="jikes"
classpath="/myjdkdir/jre/lib/rt.jar" /> -->
        <!-- <application name="taglib-tutorial"
path="../applications/taglib-tutorial" /> -->
        <!-- <application name="atm"
path="../applications/atm.ear" /> -->   
        <!-- <application name="orion-primer"
path="c:\orion\orion-primer\rel\orion-primer.ear" />
-->
        <application name="ejbsamples" path="../demo/ejb" />
</application-server>





--- Globetrot Communications <[EMAIL PROTECTED]>
wrote:
> Date: Sat, 20 Jan 2001 17:57:43 -0800 (PST)
> From: Globetrot Communications
> <[EMAIL PROTECTED]>
> Subject: How to configure to invoke ProductServlet
> To: [EMAIL PROTECTED]
> 
> I'd appreciate it if somebody could explain how to
> configure the Orion installation to invoke
> ProductServlet in the product application. It'd be
> great to see a detailed explanation of reasoning
> behind the configuration. Orion documentation hasn't
> been very illuminating to a newbie like myself.
> 
> Thanks
> 
> Satish Gupta
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great
> prices. 
> http://auctions.yahoo.com/
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

Reply via email to