Makrand Pare

Greenhorn
+ Follow
since Dec 07, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Makrand Pare

Hi,

I want to lookup some names in Microsoft AD LDAP server. I'm using JNDI APIs to connect and lookup names from that LDAP server.
I'm successfully able to make a connection to the LDAP server however while looking up the name it gives me the following exception:

Lookup failed: javax.naming.NamingException: [LDAP: error code 1 - 000020D6: Svc
Err: DSID-031006CC, problem 5012 (DIR_ERROR), data 0 ]; remaining name 'cn=parema'
javax.naming.NamingException: [LDAP: error code 1 - 000020D6: SvcErr: DSID-03100
6CC, problem 5012 (DIR_ERROR), data 0
]; remaining name 'cn=parema'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3025)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737)
at com.sun.jndi.ldap.LdapCtx.c_lookup(LdapCtx.java:993)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_lookup(ComponentContext.java:526)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.lookup(PartialCompositeContext.java:159)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.lookup(PartialCompositeContext.java:148)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at Lookup.main(Lookup.java:61)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I'm using the following code to connect to the LDAP:

Hashtable<String, Object> env = new Hashtable<String, Object>(11);
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "LDAP://CORP.WEYER.PRI");
env.put(Context.SECURITY_PRINCIPAL, "parema@CORP");
env.put(Context.SECURITY_CREDENTIALS, "mycorppassword!");

Context ctx = new InitialContext(env);
// Perform lookup and cast to target type
LdapContext b = (LdapContext) ctx.lookup("cn=parema");

I'm sure that I'm able to connect to the LDAP server as I'm using my corp username and password to connect to it. In case I use any other username and password, it gives me an javax.naming.AuthenticationException.

Please let me know if this is the right way to lookup values from an LDAP server?

Thanks,
Makrand
12 years ago
Hi,

Iam using JSDK1403 to generate Stub classes in order to call a Web Service.
However this is a secured web-service and hence it gives me an error as:

javax.xml.rpc.soap.SOAPFaultException: Missing <wsse:Security> in SOAP Header

I have seen some posts to add SOAP Headers using AXIS, however since I'm using JSDK1403, can
anyone please suggest me pointers to add wsse:Security headers in webservice call through JSDK?

Thanks,
Makrand
12 years ago
I'm really sorry to be so vague while asking my question.

Actually we have an old application developed in jsp.

There is another application developed in JSF which renders pages at run time.
For this the layout of the page is stored in an XML file.

The problem is, the layout in the old jsp pages now needs to be written in xml so that the new application can parse that XML and render the page.

we have an xsd for the xml files which need to be generated.
For example if in the old jsp page if there was a text field

<input type ="text" name="startDate" value=""/>

the equivalent tab in XML should be like:

<Field label="Start Date (mm/dd/yyyy)" name="startDate" position="3" type="inputText" value="" />

Definitely looking at each JSP and constructing XML by hand will be one option. But I was thinking is there a way of generating the XML automatically based on the JSP.
Hi,

Is there a way to convert jsp files to XML?

Thanks,
Makrand
Hi,

Stripes is coming out to be as a cool web ui development technology.

Can any one point me to links where I can learn basic things about Stripes to start developing my own web applications.
I've done development using JSP/Servlets and Struts. Please suggest me how should I began with Stripes.

Thanks and regards,
Makrand.
Hi,

I've a query regarding callableStatement. When we call callableStatement.execute() and then call getInt or getString or any getter method to get the out parameters of the procedure does it hit the database each time we call those getters or it returns the value from the object?

Thanks,
Makrand
Hi people,

I'm trying to deploy an ear file in Websphere 6.0.

When I give the location of ear file and click next I get the following error:

WSWS0020E: Internal Error: WebServicesPublishWSDLInfo

Please help me out..

Thanks and regards,
Makrand
16 years ago
Hi Marcos,

Even I'm getting the same problem while using ejbc with weblogic 8.1. However I'm sure that I'm not using ne package name as java.util.logging and also no I/O operations are there in my Code.
Plz suggest.

Thanks and regards,
Makrand