Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Authentication exception

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!

0 votes



7 answers

Permanent link
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 :)

0 votes


Permanent link
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

0 votes


Permanent link
Have I missed something?

Or do you need more information?

0 votes


Permanent link
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)

0 votes


Permanent link
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

0 votes


Permanent link
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.

0 votes

Comments

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
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 02 '09, 4:58 a.m.

Question was seen: 12,840 times

Last updated: Jan 11 '15, 8:23 a.m.

Confirmation Cancel Confirm