Nina Bui wrote:

> I'm testing EJB using the beta version of J2EE Reference Implementation.  I'm trying
> to get the Servlet example (Adder) to work. I'm having a problem creating a Servlet 
>Web
> Component Deployment Descriptor using the Web Component Descriptor Wizard (since the
> command line deploytool -packageWebComponent is deprecated in the beta version).  
>There
> are many steps to go through and fields that need proper values.  I could not create 
>the
> Web  .WAR file successfully.  If anyone gets this sample program to work, please 
>help.
> Thanks!

Nina,
    Here are a few tips to getting the Adder example to work.

    (Assuming you have already created the jar for the Adder ejb and added
it to the application)

    On screen 2 of the web component wizard :

        Set the two paths to the adder directory
: <J2EE_HOME>/doc/guides/ejb/examples/adder

        add "AdderServlet.class" to the topmost selection list ( where it
asks for class files )
        add "adder.html" into the bottom selection list  ( where it asks
for static content )

    On screen 3 of the web component wizard :

       Add a display name.
       Check the .WAR file path

    Skip screens 4-8

    On screen 9, choose "Describe a Servlet"

    On screen 10, type AdderServlet ( don't put the ".class" ) in the
Servlet Class text field and
    add a display name

    Skip screens 11-13

    On scrren 14, choose Create WAR now

    After adding the .war file to your application, select the application
in the deploytool by clicking the application name
    in the "Local Applications" tree.  Select the Web Context tab and set
the "WebContextRoot" to AdderContextRoot
    (Note : either press Enter after typing the context root name or click
on a different cell -- otherwise it won't be updated  properly. We'll be
fixing this problem in the next release)

    In the JNDI names tab, set the ejb jndi name to MyAdder ( same update
issue as above )

    Now you're ready to deploy.  After deployment, use the following url
to test the servlet :

        http://localhost:8000/AdderContextRoot/adder.html

    If you're still running into problems, try to post the specific error
message you are getting  Hope this helps.

    --Ken

Kenneth Saks
J2EE RI Core Team, Java Software
SUN Microsystems
[EMAIL PROTECTED]



>
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to