It's all about the answers!

Ask a question

Authentication exception


Christina Kettenacker (561) | asked Mar 02 '09, 4:58 a.m.
Hello,

I'm just about to setup LDAP (Tomcat, WinS2003, RTC 1.0.1).

When I test my LDAP connection via the setup wizzard, it tells me that it cannot connect to the LDAP Server (the LDAP server is correct and I can contact it when I paste the URL into Internet Explorer).

After editing the server.xml and restarting the tomcat service I'm not able to open the webUI. No error, no other message, it just not appears.

In the stdout.log I can see the following error:

Mar 2, 2009 10:04:48 AM org.apache.catalina.realm.JNDIRealm open
WARNING: Exception performing authentication
javax.naming.AuthenticationException:
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3000)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2946)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2747)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2661)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:298)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:190)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:208)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:151)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:81)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:679)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:259)
at javax.naming.InitialContext.init(InitialContext.java:235)
at javax.naming.InitialContext.<init>(InitialContext.java:209)
at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:1575)
at org.apache.catalina.realm.JNDIRealm.start(JNDIRealm.java:1664)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Mar 2, 2009 10:04:49 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: Exception opening directory server connection: javax.naming.CommunicationException: localhost:389
at org.apache.catalina.realm.JNDIRealm.start(JNDIRealm.java:1666)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Mar 2, 2009 10:04:49 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1063 ms


Can you please help me to find out what I might have done wrong? Please let me know if you need more information to help me out.

Thank you for your help!

7 answers



permanent link
Christina Kettenacker (561) | answered Mar 03 '09, 8:21 a.m.
Seems to be an issue with my domain user, and so I edited and specified the connectionName. Now the error code switched from 525 (user not found) to 52e (invalid credentials).

However I will try to fix.. Curious is that I use the same user for MailNotification, of course with the same password - works fine.

Well, we'll see :)

permanent link
Christina Kettenacker (561) | answered Mar 03 '09, 8:35 a.m.
Ok, after I changed the parameter "connectionName" and "connectionPassword" to userName and userPassword the WebUI started working again.

Just cannot login.

New error:

org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-9080
org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-9443
org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
org.apache.catalina.startup.Catalina stop
SEVERE: Catalina.stop
LifecycleException: Pipeline has not been started
at org.apache.catalina.core.StandardPipeline.stop(StandardPipeline.java:257)
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1060)
at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
at org.apache.catalina.core.StandardService.stop(StandardService.java:510)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\IBM\JazzTeamServer\server\win32\ibm-java2-i386-50\jre\bin;.;C:\Program Files\Support Tools\;C:\Program Files\Windows Resource Kits\Tools\;C:\Program Files\HP\NCU;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\NetIQ\AppManager\bin;C:\NetIQ\Common\bin
org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-9080
org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-9443
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1532 ms
org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: , , ]
org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-9080
org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-9443
org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:9009
org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
org.apache.catalina.startup.Catalina start
INFO: Server startup in 4453 ms

permanent link
Christina Kettenacker (561) | answered Mar 10 '09, 4:25 a.m.
Have I missed something?

Or do you need more information?

permanent link
Christina Kettenacker (561) | answered Mar 11 '09, 4:20 a.m.
Mar 11, 2009 9:14:01 AM org.apache.catalina.realm.JNDIRealm authenticate
SEVERE: Exception performing authentication
javax.naming.NamingException: ; remaining name 'dc=*****,dc=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3040)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2946)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2752)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1823)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1746)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:383)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:353)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:336)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:259)
at org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1051)
at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:959)
at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:908)
at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:809)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:810)

permanent link
Christophe Elek (2.9k13021) | answered Mar 17 '09, 12:22 p.m.
JAZZ DEVELOPER
external.christina.kettenacker@de.bosch-dot-com.no-spam.invalid (Lina)
wrote in news:gp7soi$a3b$1@localhost.localdomain:

javax.naming.NamingException: ;
remaining name 'dc=bosch,dc=com'


If you use command line like ldapsearch, do you need a userid/password when
you bind to the LDAP server ?
If so, did you enter the username/password in eth attributes in jazz admin
console ?
If so...I would open a defect if I were you...

--
Christophe Elek
Serviceability Architect
IBM Software Group - Rational

permanent link
Christina Kettenacker (561) | answered Mar 18 '09, 4:19 a.m.
Hello Christophe,

we need a password, I use the same User that I have for MailNotification
Curious is that I use the same user for MailNotification, of course with the same password - works fine.

I'm now in contact with IBM Support.

Seems that my attribute names were wrong. I changed from connectionName and connectionPassword to userName and userPassword. After that
the error code switched from 525 (user not found) to 52e (invalid credentials).

But after some more research I found out that I'd have to use connectionName and connectionPassword to make it work with tomcat.

For now the authentication works but I get another error message.. I can login via WebUI but when I want to access the Project area it says:

Error: com.ibm.team.repository.web.client.internal.AUTHENTICATED_CONTRIBUTOR cannot be null

I gave this error to IBM Support.

Comments
Kiran Nagara commented Jan 11 '15, 8:23 a.m.

Hi Christina,

Did you get any response from IBM on

"Error: com.ibm.team.repository.web.client.internal.AUTHENTICATED_CONTRIBUTOR cannot be null "

I have the same problem.

Regards,
-Kiran


permanent link
Kiran Nagara (10741823) | answered Jan 11 '15, 1:39 a.m.
Hi Christina,

Did you get any response from IBM on

"Error: com.ibm.team.repository.web.client.internal.AUTHENTICATED_CONTRIBUTOR cannot be null "

I have the same problem.

Regards,
-Kiran

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.