[Security & JAAS/JBoss] - Missing class in jbosssx-client.jar (jboss-5.0.0.Beta1-src)
by flessa
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
17Â years, 10Â months
[JBossWS] - jbossws 1.2.0.GA installation instructions confusion!!
by sursha
Hi,
I was looking into the jbossws 1.2.0.GA installation instructions and confused about the same!!
The unzipped jbossws 1.2.0.GA.zip file structure looks like as follows:
-rw-r--r-- 1 suresh users 28406 2007-02-28 14:06 jboss-jaxrpc.jar
-rw-r--r-- 1 suresh users 58454 2007-02-28 14:06 jboss-jaxws.jar
-rw-r--r-- 1 suresh users 26468 2007-02-28 14:06 jboss-saaj.jar
drwxr-xr-x 4 suresh users 4096 2007-02-28 14:06 jbossws40.sar
drwxr-xr-x 4 suresh users 4096 2007-02-28 14:06 jbossws42.sar
drwxr-xr-x 3 suresh users 4096 2007-02-28 14:06 jbossws50-deployer
drwxr-xr-x 3 suresh users 4096 2007-02-28 14:06 jbossws50.sar
-rw-r--r-- 1 suresh users 1345381 2007-02-28 14:06 jbossws-client.jar
Instructions say
1.) Copy lib/jbossws-client.jar to $JBOSS_HOME/client/
2.) Unzip lib/jbossws.sar to $JBOSS_HOME/server/default/deploy/
3.) Replacing jboss-xml-binding.jar
Only step clear for me is step (1). Which directory to use for jbossws.sar?
Can someone rewrite the installation instructions please?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023903#4023903
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023903
17Â years, 10Â months
[JBoss Seam] - Re: Seam/Hibernate meetup in San Francisco, Friday, March 2
by gavin.kingï¼ jboss.com
The plan is for drinkies, and conversation ;-)
We'll be having meetings during the day to plan roadmap, etc, and then we're inviting anyone who is interested to join us socially after that.
Shane, Emmanuel, Norman, Steve, Max, Pete and I will be there. Christian and Michael ended up not being able to make it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023900#4023900
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023900
17Â years, 10Â months