In addition; public static String getPortFromServerConfig(String property) {
ports are always integers. Is it possible for you to change that? On Mon, May 16, 2011 at 11:01 PM, Hasini Gunasinghe <has...@wso2.com> wrote: > Hi Azeez, > > I didn't clearly get the problem here. Let me explain the LDAP port usage. > There are two places where LDAP port is used in code. > > 1. When starting embedded-ldap - this is done in ldap-server component > which starts before user-core. > Earlier the port was in embedded-ldap.xml and AmilaJ has fixed it to > read it from carbon.xml > > 2. When user manager connects to the user store - this is done in > user-core. > Earlier port was in user-mgt.xml and I made it overridden from > carbon.xml. > > I understand it is done in two ways. Can you please explain where I should > fix this? > Do I need to make both places read directly from carbon.xml or both places > read port through CarbonUtils.getPortFromServerConfig method? > > Thanks, > Hasini. > > On Mon, May 16, 2011 at 10:39 PM, Afkham Azeez <az...@wso2.com> wrote: > >> [2011-05-16 22:33:15,402] INFO >> {org.wso2.carbon.ldap.server.DirectoryActivator} - Starting directory >> service on port 10399 >> [2011-05-16 22:33:18,567] ERROR >> {org.wso2.carbon.user.core.ldap.LDAPConnectionContext} - Error obtaining >> connection. localhost:10401 >> >> The port creation is done by directly reading form the carbon.xml file, >> but connecting to that is done using the CarbonUtils.getPortFromServerConfig >> method. Because of this, I cannot get the port Offset to work. Please fix >> this ASAP. >> >> -- >> *Afkham Azeez* >> Director of Architecture; WSO2, Inc.; http://wso2.com >> Member; Apache Software Foundation; http://www.apache.org/ >> * <http://www.apache.org/>** >> email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919 >> blog: **http://blog.afkham.org* <http://blog.afkham.org>* >> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >> * >> linked-in: **http://lk.linkedin.com/in/afkhamazeez* >> * >> * >> *Lean . Enterprise . Middleware* >> >> >> _______________________________________________ >> Carbon-dev mailing list >> Carbon-dev@wso2.org >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *Afkham Azeez* Director of Architecture; WSO2, Inc.; http://wso2.com Member; Apache Software Foundation; http://www.apache.org/ * <http://www.apache.org/>** email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware*
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev