FYI - Just successfully connected to the same EJB recompiled and running on
JBoss. Looks like JRun might not play nicely with Tomcat....
I'd still appreciate any info anyone can give...
Thanks
[EMAIL PROTECTED]
om T
To: [EMAIL PROTECTED]
cc:
bcc:
05/08/2001 01:38 PM Subject: Tomcat
calling JRun EJB
Please respond to
tomcat-user
Help!!!!(Thanks in advance for any assistance you can provide)
I am trying to call an EJB which is running on a remote JRun Enterprise
from a JSP page running on Tomcat.
I keep receiving the following error:
ERROR: javax.naming.NamingException: Failed to unmarshal proxy [Root
exception is java.lang.ClassCastException:
org.apache.tomcat.protocol.WARConnection]Failed to unmarshal proxy
I have installed the Home and Remote classes off of WEB_INF/classes.
I have put the ejipt_client.jar, ejb.jar, jta.jar, jms.jar, and jndi.jar in
WEB_INF/lib.
The JSP is:
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.*" %>
<%@ page import="ejbeans.*" %>
<%@ page import="javax.naming.InitialContext" %>
<%@ page import="javax.naming.Context" %>
<%@ page import="allaire.ejipt.*" %>
<%@ page import="java.rmi.*" %>
<%
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires",1000);
%>
<HTML>Test
<%
try
{
System.setSecurityManager(new RMISecurityManager());
Context _context;
Properties properties = new Properties();
properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"allaire.ejipt.ContextFactory");
properties.setProperty(Context.PROVIDER_URL,
"ejipt://172.22.8.54:2323");
_context = new InitialContext(properties);
//LossRunEJBHome home= (LossRunEJBHome)_context.lookup
("LossRun.LossRunEJBHome");
Object homeObject = _context.lookup("AgtLogin.AgtLoginHome");
...
}
Any ideas?
Thanks Again
Bob