geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xh <xhsaymyn...@yahoo.co.uk>
Subject G1.1 to G2.0-M6 migration: JNDI problems
Date Mon, 16 Jul 2007 09:22:39 GMT
Hi All,

I'm making some progress while moving my app to G2.0-M6.
I have some questions about JNDI.

first I've noticed that when connecting to remote EJB (for tests I use 127.0.0.1:4201) 
I don't have to provide principals and credentials, when I provide system/manager I get "AuthenticationException:
This principal is not authorized"

to successfully connect to 4201 port I need to comment out java.naming.security properties:

Properties p = new Properties();
p.put("java.naming.factory.initial", "org.openejb.client.RemoteInitialContextFactory"); 
p.put("java.naming.provider.url", "127.0.0.1:4201");
//p.put("java.naming.security.principal", "system");
//p.put("java.naming.security.credentials", "manager");
// now I can connect
Context c = new InitialContext(p);

quick question: how to turn security back?

i'm using EJB 2.x (G1.1) and I'm trying to connect to EJB through the "remote" JNDI but I
get:

"java.lang.RuntimeException: javax.naming.NameNotFoundException:
/ejb/ModuleFactory does not exist in the system.  Check that the app
was successfully deployed."

well,
yes, my EAR app is successfully deployed in G2.0, no errors were reported during deployment...

it all worked on G1.1...

maybe it's because I didn't provide any principals and credentials?

any ideas?

best regards
Lukasz




	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
Mime
View raw message