I have successfully made a JAASRealm implementation, loosely based on
JAASMemoryLoginModule (a simple jaas test class).
My jaas implementation interfaces a .net user database over ssl for
authentication purposes, and it works almost flawlessly.


My problem occurs when I restart the context, the first login attempt
results in this message:

[bite] DEBUG [http-8080-Processor25] NasjonaleProverWSLogin.<init>(58)
| using wsUrl: 
https://www.nasjonaleprover.no/npwsauthenticatetest/studentloginservice.asmx
09.des.2004 13:55:03 org.apache.catalina.loader.WebappClassLoader
findResourceInternal
INFO: Illegal access: this web application instance has been stopped
already.  Could not load
META-INF/services/org.apache.axis.EngineConfigurationFactory.  The
eventual following stack trace is caused by an error thrown for
debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
09.des.2004 13:55:03 org.apache.catalina.loader.WebappClassLoader
findResourceInternal
INFO: Illegal access: this web application instance has been stopped
already.  Could not load
org/apache/axis/configuration/EngineConfigurationFactoryServlet.class.
 The eventual following stack trace is caused by an error thrown for
debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
09.des.2004 13:55:03 org.apache.catalina.loader.WebappClassLoader
findResourceInternal
INFO: Illegal access: this web application instance has been stopped
already.  Could not load
org/apache/axis/configuration/EngineConfigurationFactoryDefault.class.
 The eventual following stack trace is caused by an error thrown for
debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
[bite] ERROR [http-8080-Processor25]
EngineConfigurationFactoryFinder$1.run(144) | Unable to locate a valid
EngineConfigurationFactory
[bite] WARN [http-8080-Processor25] BiteLoginModule.login(278) |
Problems contacting nasjonaleprover.no
[bite] WARN [http-8080-Processor25] BiteLoginModule.login(279) | ....
using local authentication
java.lang.NullPointerException
        at 
org.apache.axis.client.Service.getEngineConfiguration(Service.java:802)
        at org.apache.axis.client.Service.getAxisClient(Service.java:104)
        at org.apache.axis.client.Service.<init>(Service.java:113)
        at 
no.nasjonaleprover.www.NPWSAuthenticate.StudentLoginServiceLocator.<init>(StudentLoginServiceLocator.java:12)
        at 
no.imb.bite.security.NasjonaleProverWSLogin.login(NasjonaleProverWSLogin.java:93)
        at no.imb.bite.security.BiteLoginModule.login(BiteLoginModule.java:274)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
        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)


For me it looks like the the axis stuff isn't reloaded properly
reloaded, but I really don't who is to blame, axis or tomcat. This is
quite serious for us as we have to restart tomcat each time we deploy
a new version of our webapp. The axis jar files is added to common/lib

My realm is defined in the context configuration:
<Context path="/bite" docBase="bite" debug="99" reloadable="true">
...
        <Realm className="org.apache.catalina.realm.JAASRealm"
                appName="bite" useContextClassLoader="true"
                userClassNames="no.imb.bite.security.BiteJAASUser"
                roleClassNames="no.imb.bite.security.BiteJAASRole"
                debug="99"/>
...
</Context>

Have anyone here experienced something similar, or should I take my
question to the axis mailing list?

Thanks in advance, 

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

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

Reply via email to