Hi!

I use Tomcat 3.2.1 on first Linux machine and Jboss 3.2.2 on another
(IP:213.25.69.82).  I'm able to execute Interest example from Jboss's
manual but when I converted it to JSP it doesn't work. This is the JSP
code:

<%@ page import="java.io.IOException, javax.naming.InitialContext,
javax.rmi.PortableRemoteObject, com.web_tomorrow.interest.*, java.util.
*,javax.ejb.*, javax.naming.Context" %>

<HTML><BODY>
<%
     Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
     env.put(Context.PROVIDER_URL, "213.25.69.82:1099");
  try{
      InitialContext jndiContext = new InitialContext(env);
      Object ref  = jndiContext.lookup("interest/Interest");
      out.println("Got reference");

      InterestHome home = (InterestHome)  PortableRemoteObject.narrow
(ref,InterestHome.class);
      Interest interest = home.create();

      out.println  ("Interest on 1000 units, at 10% per period, compounded
over 2 periods is:");
      out.println (interest.calculateCompoundInterest (1000, 0.10, 2));
    }
    catch(Exception e){
       out.println("Sth. wrong ...");
       out.println(e.toString());
    }
 %>
</BODY></HTML>

When it runs the output is:
Sth. wrong ...javax.naming.CommunicationException [Root exception is
java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome]

I believe I have all (not all necessary but ALL) client jars in my
classpath, com.web_tomorrow.interest package in my WEB-INF/classes
directory.

Please hear my cry and advice something.

Deep in sulk,
Dobrus



***********************************************************************************
This e-mail is confidential and may contain privileged information.
If you are not the addressee it may be unlawful for you to read, copy,
distribute, disclose or otherwise use the information in this e-mail.  Ify
 ou are not the intended recipient please notify us immediately.

Registered Office:
Cadbury Wedel Sp. z o.o.
ul. Zamoyskiego 28/30
03-801 Warsaw                                   tel +48 (22) 670-7700
Poland                                                    fax +48 (22) 670-7701
***********************************************************************************

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to