On Thu, 9 Dec 2004 08:41:40 -0500, Shapira, Yoav <[EMAIL PROTECTED]> wrote:
> I think we had a recent discussion on this exact NPE: you might want to
> search this list's archives (or a comparable mirror like MARC, GMANE,
> etc.)

Thanks for the reply, been busy so it has been a while now, but I
tested as the other mails suggested: moving axis jars from common/lib
to webapps/webappname/WEB-INF/lib.

Btw, I didn't find any mails about this NPE, only this thread, and one
other without any replies.

The problem is that I have a jaas login module and this must be
reached somewhere else (not WEB-INF/lib).

And if I move only the security  module to common/lib it complaints
about not finding the axis classes.  As for the other thread
concerning log4j, and axis -  I have no problems with thread death in
this case.

Does flag useContextClassLoader in the realm definition work?

This is the exception I get when I put all my axis jars and login
module in WEB-INF/lib:
[bite] DEBUG [http-8080-Processor25] LoginServlet.execute(240) |
Authenticating user 'olve'
[bite] DEBUG [http-8080-Processor25] LoginServlet.execute(255) | req:
/bite/j_security_check?j_username=olve&j_password=secret&j_uri=
Dec 16, 2004 11:14:58 AM org.apache.catalina.realm.JAASRealm authenticate
WARNING: Login exception authenticating username "olve"
javax.security.auth.login.LoginException: unable to find LoginModule
class: no.imb.bite.security.BiteLoginModule
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:808)
        at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
        at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:373)
        at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:230)
        at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:391)
        at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)


-- 
 \ Olve S. Hansen
  \ mailto:[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to