This is not really a support forum.

What I would try is unjar the _generated jar file in the same directory as your
class files.

I'm not too familiar with the way the JWS allows you to configure things, but I
suspect you've told it where the class files are, but not the _generated.  You
can either do as I suggested above, or there may be some way to specify several
jar files for the servlet.  Doing what I suggested above is probably the
easiest to try out.

----- Original Message -----
From: Robert Pimentel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 24, 1999 8:40 AM
Subject: Trouble running a servlet which calls an ejb(iiop protocol) through
JWS


> Hi, please allow me to provide a few details....
>
>
> Windows NT Workstation 4.0(sp3)
> JWS 1.1.3
> Oracle JDeveloper2.0(build 343)
> Oracle 8.1.5(remote)
>
>
> I've manged to load my servlet. I've implemented a few flags in my servlet
> code in order to track where it fails when i attempt to run it. Here is a
> sample...
>
>     String ejbUrl = "sess_iiop://usine:2481:con81/test/MyEJB1";
>     String username = "scott";
>     String password = "tiger";
>
>     PrintStream out;
>     response.setContentType("text/html");
>     out = new PrintStream(response.getOutputStream());
>     out.println("phase1");
>
>
>     // Setup the environment
>     Hashtable environment = new Hashtable();
>     // Tell JNDI to speak sess_iiop
>     environment.put(javax.naming.Context.URL_PKG_PREFIXES,
> "oracle.aurora.jndi");
>     // Tell sess_iiop who the user is
>     environment.put(Context.SECURITY_PRINCIPAL, username);
>     // Tell sess_iiop what the password is
>     environment.put(Context.SECURITY_CREDENTIALS, password);
>     // Tell sess_iiop to use credential authentication
>     environment.put(Context.SECURITY_AUTHENTICATION,
> ServiceCtx.NON_SSL_LOGIN);
>
>     out.println("phase2");
>
>     // Lookup the URL
>     MyEJB1Home homeInterface = null;
>     try {
>       System.out.println("Creating an initial context");
>       Context ic = new InitialContext(environment);
>       System.out.println("Looking for the EJB published as 'test/MyEJB1'");
>       homeInterface = (MyEJB1Home) ic.lookup(ejbUrl);
>     }
>     catch (ActivationException e) {
>       System.out.println("Unable to activate : " + e.getMessage());
>       e.printStackTrace();
>       out.println("activation exception");
>       return;
>     }
>     catch (CommunicationException e) {
>       System.out.println("Unable to connect: " + ejbUrl);
>       e.printStackTrace();
>       out.println("communication exception");
>       return;
>     }
>     catch (NamingException e) {
>       System.out.println("Exception occurred!");
>       System.out.println("Cause:  This may be an unknown URL, or some" +
>         " classes required by the EJB are missing from your classpath.");
>       System.out.println("Suggestion:  Check the components of the URL," +
>         " and make sure your project includes a library containing the" +
>         " EJB .jar files generated by the deployment utility.");
>       e.printStackTrace();
>       out.println("Naming exception");
>       return;
>     }
>
>  I receive this last exception when i run my servlet. the "Naming exception"
>
> Where must my _generated.jar file reside? Should i load the servlet as a
> beanservlet, specifying the _generated.jar as the jar file...?
>
> Here is some insight into how my JWS is structured.
>
> BeanServlet, BeanServlet.class are both located in <server_root>\servlets
> directory.
> MyEJB1.class, MyEJB1Home.class, MyEJB1Class.class are located in
> <server_root>\servlets\package_name directory.
>
> Note: I've tried keeping my _genereated.jar file in both directories,  to no
> avail.
>
> Any insight into the matter would be greatly appreciated :)
>
> Regards,
>
> Robert
>
> ===========================================================================
> 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