Whoops, looks like the stubs can be downloaded (check
runtime/ejipt_exports.jar), so they don't need to be in the WEB-INF/lib
directory. Of course that is what is causing your problem right now, trying
to download the stub for the LogonSession so at least things make sense even
if they aren't working right.
I'm sorry I can't go much further on this as it's out of my depth. You
shouldn't have to do anything with RMISecurityManager. Check out the docs
to learn about security managers. Perhaps you've got something on your
machine which is interfering with the permissions.
Cheers
Jay Walters
-----Original Message-----
From: Regina Moore [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 9:16 AM
To: JRun-Talk
Subject: RE: Error message
Is my ejb jar file (ShoppingCart.jar) supposed to go in the web application
directory under web-inf\lib? I thought I only needed to put it in the
deploy directory. I did try putting it in the web-inf\lib directory, and I
still get the same error. I've also tried putting the jar file in the
jrunroot\lib directory. Nothing seems to work.
I'm running SP2. Is there anything different I need to do to set up the
properties files in SP2? I'm wondering if there's something I need to do
with rt.jar file, since that's where the RMISecurityManager class is. Any
clues?
Thanks for all of your help!!!
-----Original Message-----
From: Jay Walters [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 8:57 AM
To: JRun-Talk
Subject: RE: Error message
It almost looks like the client (servlet) can't find the classes for the
home or remote interfaces. Are these class files either under
WEB-INF\classes or in a jar file in WEB-INF\lib?
Also what version of Jrun are you running, there was a bug fix around jar
files in WEB-INF\lib in SP2.
Cheers
Jay Walters
NetNumina Solutions
-----Original Message-----
From: Regina Moore [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 8:49 AM
To: JRun-Talk
Subject: RE: Error message
Thx for you reply, but it doesn't look like that's the problem. In JRun, I
specified the ejb.beanHomeName as just "ShoppingCart", so when I use JNDI to
look it up, doesn't that mean I just need to supply "ShoppingCart"? I did
try changing the call to include the package name, but then I got a
NamingException. Here's the calling code. Maybe it will shed some light?
I noticed that if I comment out the SECURITY_PRINCIPAL and
SECURITY_CREDENTIALS lines, I actually make it further. As in, the code
doesn't error off until right after the new InitialContext line. However,
the error I get still looks very similar to the one mentioned below.
Mainly, I'm getting "java.rmi.UnmarshalException: error unmarshalling
return; nested exception is:
java.lang.ClassNotFoundException:
allaire.ejipt.ejbeans.LoginSessionObject_Stub (no security manager: RMI
class loader disabled)"
Here is my code:
try
{
java.util.Properties p = new java.util.Properties();
p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
"allaire.ejipt.ContextFactory");
p.put(javax.naming.Context.PROVIDER_URL, "ejipt://localhost:2323");
p.put(javax.naming.Context.SECURITY_PRINCIPAL, "spender1");
p.put(javax.naming.Context.SECURITY_CREDENTIALS, "pass");
javax.naming.InitialContext ctx = new javax.naming.InitialContext(p);
ShoppingCartHome home = (ShoppingCartHome) ctx.lookup("ShoppingCart");
ShoppingCart cart = home.create( );
cart.addItem(user,dvdid);
}
catch (NamingException e)
{
}
Again, any help would be GREATLY appreciated. Thanks!
-----Original Message-----
From: Lin Lin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 8:25 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: Error message
Is you EJB in a package? If it is, then you need to include the package name
like
borrHome =
(BorrowerEnquiryHome)initialContext.lookup("package.BorrowerEnquiryHome");
-----Original Message-----
From: Regina Moore [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:52 PM
To: JRun-Talk
Subject: RE: Error message
I am also trying to deploy some 3rd party EJBs and am running into the same
exact error. Since this is the second time this question has been asked,
surely someone will respond...?
Thanks in advance!!
-----Original Message-----
From: Paul Walk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 26, 2000 6:05 AM
To: JRun-Talk
Subject: Error message
I am trying to deploy some 3rd party EJBs under JRun3.0. The
deployment appears to have worked.
One of the EJBs is called "BorrowerEnquiry" with a home
interface called "BorrowerEnquiryHome".
On testing this with a simple call to the EJB in a basic
JSP, the following happens:
1/. I set an initialContext, and set the context provider
URL without any exceptions being raised.
2/. When I try to access the EJB's home interface with the
line:
borrHome =
(BorrowerEnquiryHome)initialContext.lookup("BorrowerEnquiryHome");
I get the error: "javax.servlet.jsp.JspException: Failed to
unmarshal proxy"
Can anyone give me some pointers as to what might be raising
this exception?
Any help much appreciated!
Paul
----------------------------
Paul Walk
Intranet Services
University of North London
Email: [EMAIL PROTECTED]
Telephone (Direct Dial): 020 7753 3288
Telephone (Switchboard): 020 7607 2789 ext. 2690
----------------------------
----------------------------------------------------------------------------
--
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists