hi, 
i have a similar problem, i don't know what descriptors are needed here(do i 
need the ejb-jar.xml, what this have to contain?).

i have this:


  | ear
  | ---------META-INF/application.xml
  | ---------ejb3.jar------META-INF/jboss.xml (just with the security-domain 
line)
  | ---------ejb3.jar----------AuthenticationTest.class(without the 
@SecurityDomain, but with the  @PermitAll annotation)
  | 

i'm trying to acces with a remote swing client, but always i get the same error:
users.properties not found.
the server always is searching the plains files and not my login-config.xml 
policy

login-config.xml 

  |  <!-- OpenCrx Standard Servlet policy -->
  |         <application-policy name="opencrx-core-CRX">
  |                 <authentication>
  |                         <login-module 
code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
  |                                 <module-option 
name="dsJndiName">java:/jdbc_opencrx_CRX</module-option>
  |                                 <module-option name="principalsQuery">
  |                                         SELECT c.passwd FROM 
security_Principal p, security_Credential c
  |                                         WHERE (p.object_rid IN (SELECT 
object_rid FROM security_REF WHERE "c$0"='org:openmdx:security:realm1' AND
  |                                                 "c$1"='provider' AND 
"c$2"='CRX' AND "c$3"='segment' AND "c$4"='Root' AND "c$5"='realm' AND 
"c$6"='Default'
  | AND
  |                                                 "c$7"='principal' AND n=8)) 
AND (p."p$$credential__rid" = c.object_rid) AND (p."p$$credential__oid" = c.obje
  | ct_oid) AND
  |                                                 (p.object_idx = 0) AND 
(p.object_oid = ?)
  |                                 </module-option>
  |                                 <module-option name="rolesQuery">SELECT 
pg."p$$granted_role__oid", 'Roles' FROM security_Principal pg,
  |                                         security_Principal p WHERE 
(pg.object_rid = p."p$$is_member_of__rid") AND (pg.object_oid = 
p."p$$is_member_of__oid")
  |  AND
  |                                         (p.object_rid IN (SELECT object_rid 
FROM security_REF WHERE "c$0"='org:openmdx:security:realm1' AND
  |                                         "c$1"='provider' AND "c$2"='CRX' 
AND "c$3"='segment' AND "c$4"='Root' AND "c$5"='realm' AND "c$6"='Default' AND
  |                                         "c$7"='principal' AND n=8)) AND 
(p.object_oid = ?)
  |                                 </module-option>
  |                                 <module-option 
name="ignorePasswordCase">true</module-option>
  |                                 <module-option 
name="hashCharset">UTF-8</module-option>
  |                                 <module-option 
name="hashEncoding">base64</module-option>
  |                                 <module-option 
name="hashAlgorithm">MD5</module-option>
  |                         </login-module>
  |                 </authentication>
  |         </application-policy>
  | 
  | 

jboss.xml

  | <jboss>    
  |     <security-domain>java:/jaas/opencrx-core-CRX</security-domain>  
  | </jboss>
  | 
jndi call from the client

  | public static final String JNDI_FACTORY = 
"org.jnp.interfaces.NamingContextFactory";
  | public static final String 
JNDI_URL_PKG_PREFIXES="org.jboss.naming:org.jnp.interfaces";
  |   public static String JNDI_PROVIDER_URL = "localhost";
  |   public static String JNDI_PROVIDER_PORT = "1099";
  | 
  |         Properties prop = new Properties();   
  |         prop.put( Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY );
  |         prop.put( Context.URL_PKG_PREFIXES, JNDI_URL_PKG_PREFIXES );
  |         prop.put( Context.PROVIDER_URL, JNDI_PROVIDER_URL + ":"
  |             + JNDI_PROVIDER_PORT );
  |         prop.put( Context.SECURITY_PRINCIPAL, "tester01");
  |         prop.put( Context.SECURITY_CREDENTIALS, "tester01");
  |         ictxt = new InitialContext( prop );
  | 
do i need a empty ejb-jar.xml in somewhere?
do i need an special annotation in my remote interface in the SessionBean?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930399#3930399

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930399


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to