[jboss-user] [Security & JAAS/JBoss] - Missing class in jbosssx-client.jar (jboss-5.0.0.Beta1-src)
flessa
do-not-reply at jboss.com
Wed Feb 28 14:48:23 EST 2007
While writting a test application for Jboss 5 (jboss-5.0.0.Beta1-src) I found out that the class org.jboss.security.jndi.SecurityAssociationActions is not included in the jbosssx-client.jar. That's probably because there's no line for it in this section of the pom.xml file:
| <jar jarfile="${basedir}/output/lib/jbosssx-client.jar"
| manifest="${basedir}/src/etc/default.mf">
| <fileset dir="${basedir}/output/classes">
| <exclude name="META-INF/MANIFEST.MF" />
| <!-- HACK -->
| <include name="org/jboss/crypto/JBossSXProvider.class" />
| <include name="org/jboss/crypto/digest/*" />
| <include name="org/jboss/security/*" />
| <include name="org/jboss/security/auth/callback/*" />
| <include name="org/jboss/security/auth/login/*" />
| <exclude
| name="org/jboss/security/auth/login/XMLLoginConfig.class" />
| <exclude
| name="org/jboss/security/auth/login/XMLLoginConfigMBean.class" />
| <include
| name="org/jboss/security/jndi/LoginInitialContextFactory.class" />
| <include
| name="org/jboss/security/jndi/JndiLoginInitialContextFactory.class" />
| <include name="org/jboss/security/plugins/PBEUtils.class" />
| <include
| name="org/jboss/security/ssl/ClientSocketFactory.class" />
| <include
| name="org/jboss/security/ssl/RMISSLClientSocketFactory.class" />
| </fileset>
| <fileset file="${basedir}/JBossORG-EULA.txt" />
| </jar>
|
There should be one of:
| <include name="org/jboss/security/jndi/SecurityAssociationActions.class" />
|
I was going to open an issue in jira, but thought I should post it here first...
This is the section of my code where the error occurs:
| Properties env = new Properties();
| env.setProperty(Context.SECURITY_PRINCIPAL, "flessa");
| env.setProperty(Context.SECURITY_CREDENTIALS, "****");
| env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
| "org.jboss.security.jndi.JndiLoginInitialContextFactory");
| env.setProperty(Context.PROVIDER_URL, "localhost");
| InitialContext ctx = new InitialContext(env);
|
and this is the error:
| Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/security/jndi/SecurityAssociationActions
| at org.jboss.security.jndi.JndiLoginInitialContextFactory.getInitialContext(JndiLoginInitialContextFactory.java:79)
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| at javax.naming.InitialContext.init(InitialContext.java:223)
| at javax.naming.InitialContext.<init>(InitialContext.java:197)
| at br.org.energia.client.Main.main(Main.java:43)
|
Cheers
Fabio
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023909#4023909
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023909
More information about the jboss-user
mailing list