When you say "com.web_tomorrow.interest package in my WEB-INF/classes", do you mean 
interest.jar or the interest .class files? If the former, the jar goes in WEB-INF/lib.

[EMAIL PROTECTED] wrote:

> 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

--
Fred Loney
Spirited Software, Inc.
[EMAIL PROTECTED]



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

Reply via email to