Hi all,

I faced this problem too, and I have been doing some "investigations" :)

This "null pointer" exception occured only on the client side of my j2ee app. The 
login-config.xml was present on the server too as part of jaas authentication - 
{jboss}/server/default/config/, but there - no exception.
I noticed that if I put jboss.jar in the client classpath, the error misteriously 
dissapears... Browsing the files in jboss.jar I found some dtds, and one 
particullarily interesting - /org/jboss/metadata/security_config.dtd. Combined with 
the following snippet from XMLLoginConfigImpl.java:


  |    /** Local entity resolver to handle the security-policy DTD public id.
  |     */
  |    private static class LocalResolver implements EntityResolver
  |    {
  |       private static final String LOGIN_CIONFIG_PUBLIC_ID = "-//JBoss//DTD JBOSS 
Security Config 3.0//EN";
  |       private static final String LOGIN_CIONFIG_DTD_NAME = 
"/org/jboss/metadata/security_config.dtd";
  | [...]
  | 

I'm not an XML expert myself, but I think this "resolver" expects security_config.dtd 
to be at a specific location in the classpath, namely: /org/jboss/metadata/

So the solution, (or workaround ?) would be to put the dtd where it is expected to be.
In my app, I created an additional folder on the client side - /org/jboss/metadata/, 
put the dtd in there, and added the folder to the client's classpath. Works fine.
Another approach would be to include this folder into an existing jar, on the client's 
classpath.

That's it,
Cheers

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

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


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to