• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need urgent help: iplanet 6.5 start/stop/deployment problem

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all j2ee guru.
l installed iplanet 6.5 on a solaris 8 box. After installation, l can run the "fortune" sample to quickly test out successful setup. However, as l try out various iplanet command at command prompt, l encountered lots of error message as follows
1) when l used "iasdeploy" to try to deploy sample "Helloworld" application, following error message occured.
[
iasdeploy for iPlanet Application Server 6.5
Could not connect to LDAP server on xyz.test.com. port 389...retrying
Could not connect to LDAP server on xyz.test.com. port 389...retrying
Could not connect to LDAP server on xyz.test.com. port 389 as user cn=Directory Manager : Can't connect to the LDAP server
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[12/Nov/2002 17:42:20:0] error: ENGINE-context_init_failed: EngineClassSpace ContextModule.createContextInit failed:
error: could not get context
java.lang.NullPointerException
at com.kivasoft.tools.KSReg.getSubKey(Unknown Source)
at com.kivasoft.tools.KSReg.getSubKey(Unknown Source)
at com.iplanet.ias.tools.iascli.DestInfo.initialize(Unknown Source)
at com.iplanet.ias.tools.iascli.DestInfo.initLocalHost(Unknown Source)
at com.iplanet.ias.tools.iascli.DestInfo.<init>(Unknown Source)
at com.iplanet.ias.tools.iascli.IasCommand.getDestInfo(Unknown Source)
at com.iplanet.ias.tools.iascli.IasCommand.preExecute(Unknown Source)
at com.iplanet.ias.tools.buzz.cli.DeployAppCommand.preExecute(Unknown Source)
at com.iplanet.ias.tools.iascli.IasCommand.execute(Unknown Source)
at com.iplanet.ias.tools.iascli.IasCommandLineHandler.executeCommand(Unknown Source)
at com.iplanet.ias.tools.iascli.IasCommandLineHandler.execute(Unknown Source)
at com.iplanet.ias.tools.buzz.cli.IasDeploy.main(Unknown Source)
]
2) l used "ps" command to verify exisitence of LDAP server. Result is as follows. Why the owner of this process of "iplanet" even l run LDAP startup script in "root" identity ???
[
root@node0 /d01/iplanet/ias6/ias/bin> ps -ef | grep slapd
iplanet 7908 1 0 17:17:38 ? 0:01 ./ns-slapd -D /d01/iplanet/ias6/slapd-websams-ed -i /d01/iplanet/ias6/slapd-web
root 8477 7522 0 17:47:34 pts/3 0:00 grep slapd
]
3) then l tried out "iascontrol" command to try to shutdown an instance of iplanet app server. Following errors occured
Could not connect to LDAP server on xyz.test.com. port 389...retrying
Could not connect to LDAP server on xyz.test.com. port 389...retrying
Could not connect to LDAP server on xyz.test.com. port 389 as user cn=Directory Manager : Can't connect to the LDAP server
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[12/Nov/2002 17:53:18:7] error: ENGINE-context_init_failed: EngineClassSpace ContextModule.createContextInit failed:
error: could not get context
Error in command. Please check arguments.
It is very thankful someone can help me out !!!
fox
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
There might be a better solution , but when I was faced with the same problem I had to reinstall as I was running out of time and could not hunt for the cause. If reinstallation is allright with you then please go ahead and do the same .
 
Author
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is perfectly normal for the LDAP server to be running as a non-privileged user. The reason that you have to run the startup script as root is because port 389 is privileged. The server starts up as root so that it can bind the privileged port and then is switched over to a non-privileged user for security reasons.
You are definitely having some sort of LDAP connectivity problem. My first troubleshooting steps would be :
1. Check netstat to see if there is a listener on port 389.
2. Test the resolution of the domain name from the command line. Perhaps xyz.test.com is not resolving properly.
3. Check the LDAP logs. The access log will tell you if the LDAP requests are reaching the LDAP server. The errors log will tell you whether the LDAP log is able to successfully start up and bind to the port.
4. Test the LDAP server with another LDAP client, such as an LDAP browser.
David
 
fox hk
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear David
thx a lot for your advice. In fact, l have already checked the log file before, it can startup properly. Would u please telling me where l can get LDAP browser ?
By the way, Yesterday, l just brought the book, iplanet app server: Design and Building J2EE app written by u.
regards
Danny
 
David Ogren
Author
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Netscape 4.x could accept LDAP queries right in the browser window. (Which was incredibly useful.) If (not surprisingly) you don't have a copy of NN 4.x around, most mail clients also allow you to connect to LDAP servers.
There are also some dedicated LDAP browsing tools. Doing a freshmet.net or google.com search will turn up a bunch of them, most of which are freely available.
David
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. Sorry, similar problem here; appears to be ldap related, but don't really know where to go from here. With iPlanet app server 6.5 new install...

C:/iPlanet/ias6/ias/>
>kxs
Connected to LDAP server on 903051IT-SLA port 389
Initializing LDAP cache from server 903051IT-SLA port 389
ldap_search_ext: No such object

iPlanet Application Server (tm)
Version 6.5
Copyright (c) 1996-1997 KIVA Software Corporation.
Copyright (c) 1998-1999 Netscape Communications Corporation.
Copyright (c) 2000 Sun Microsystems, Inc. Some preexisting portions Copyright (c
) 2000 Netscape Communications Corp. All rights reserved.

Use of this software is governed by the terms of the executed license agreement
between you and iPlanet E-Commerce Solutions.

[21/Oct/2005 14:35:26:9] info: SERVER-024: initializing iPlanet Executive Server
...
GXBindInit: GXBindBasic failed
GXContextInit: GXBindInit failed 2
[21/Oct/2005 14:35:26:9] warning: SERVER-030: could not initialize engine
[21/Oct/2005 14:35:26:9] error: SERVER-069: engine 0 not configured properly in
the registry

C:/iPlanet/ias6/ias/>
>

any guesses anyone?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic