tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45975] New: JAAS Login Module fails to load on Windows in directories with spaces in the path
Date Thu, 09 Oct 2008 12:39:18 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45975

           Summary: JAAS Login Module fails to load on Windows in
                    directories with spaces in the path
           Product: Tomcat 5
           Version: Unknown
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: firevelocity@gmail.com


Tomcat is unable to load jaas configuration file, if tomcat installtion path
contains spaces in them.


Following is stack trace.


SEVERE: Unexpected error
java.lang.SecurityException: C:\tomcat%205526\webapps\apps\WEB-INF\classes\c
om\login.conf (The system cannot find the path specified)
        at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at
javax.security.auth.login.Configuration$3.run(Configuration.java:216)

        at java.security.AccessController.doPrivileged(Native Method)
        at
javax.security.auth.login.Configuration.getConfiguration(Configuratio
n.java:210)
        at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
        at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
        at org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:348)
        at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(Form
Authenticator.java:258)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:417)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:108)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:174)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:874)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:665)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:528)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:81)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:689)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.FileNotFoundException: C:\tomcat%205526\webapps\apps\WEB-
INF\classes\com\login.conf (The system cannot find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at
com.sun.security.auth.login.ConfigFile.getInputStream(ConfigFile.java
:552)
        at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:216)
        at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:163)
        at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:95)
        ... 26 more


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message