Ramesh Sahu

Ranch Hand
+ Follow
since Jul 14, 2008
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 Ramesh Sahu

Hi All,

I am trying to a add a ldap attribute to one of the ldap repository under federated repository. The repository is microsoft Active Directory. I am providing the following data as the new supported ldap attribute creation -
Name - employeeID
Property Name - employeeID
syntax -
Entity Type - PersonAccount
.....

Trying to save the above , results in below error -

CWWIM4516E The 'employeeID' property is not defined for the 'PersonAccount' entity type.

Logs are below -

[8/15/12 12:37:12:419 EDT] 00000033 exception E com.ibm.ws.wim.config.LDAPRepositoryConfigHelper validateEntityTypeAndPropertyNames CWWIM4516E The 'employeeID' property is not defined for the 'PersonAccount' entity type.
[8/15/12 12:37:12:419 EDT] 00000033 exception E com.ibm.ws.wim.config.LDAPRepositoryConfigHelper validateEntityTypeAndPropertyNames
com.ibm.websphere.wim.exception.WIMConfigurationException: CWWIM4516E The 'employeeID' property is not defined for the 'PersonAccount' entity type.
at com.ibm.ws.wim.config.LDAPRepositoryConfigHelper.validateEntityTypesAndPropertyName(LDAPRepositoryConfigHelper.java:3007)
at com.ibm.ws.wim.config.LDAPRepositoryConfigHelper.addIdMgrLDAPAttr(LDAPRepositoryConfigHelper.java:2121)
at com.ibm.ws.wim.config.commands.LDAPRepositoryConfig.addIdMgrLDAPAttr(LDAPRepositoryConfig.java:414)
at com.ibm.ws.wim.config.commands.IdMgrRepositoryConfigCommandsProvider.addIdMgrLDAPAttr(IdMgrRepositoryConfigCommandsProvider.java:716)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.websphere.management.cmdframework.provider.SimpleCommandProvider.executeReal(SimpleCommandProvider.java:156)
at com.ibm.websphere.management.cmdframework.provider.SimpleCommandProvider.execute(SimpleCommandProvider.java:142)
at com.ibm.websphere.management.cmdframework.provider.SimpleAdminCommand.execute(SimpleAdminCommand.java:57)
at com.ibm.ws.console.security.AdminCommandsIdMgrConfig.createOrUpdateLDAPAttr(AdminCommandsIdMgrConfig.java:926)
at com.ibm.ws.console.security.IdMgrRepositoryLDAP.LDAPAttrDetailActionGen.updateLDAPAttr(LDAPAttrDetailActionGen.java:135)
at com.ibm.ws.console.security.IdMgrRepositoryLDAP.LDAPAttrDetailAction.execute(LDAPAttrDetailAction.java:97)
at org.apache.struts.action.RequestProcessor.processActionPerform(Unknown Source)
at org.apache.struts.action.RequestProcessor.process(Unknown Source)
at org.apache.struts.action.ActionServlet.process(Unknown Source)
at org.apache.struts.action.ActionServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1214)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:774)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:456)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistance(WSCUrlFilter.java:950)
at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:499)
at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:320)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:926)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1023)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3703)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:962)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)


Any idea on what the the problem might be or a way to map a ldap attribute to a particular entity type.

Thanks,
Ramesh
8 years ago
Hi All,

We have an J2EE application siting on top of WAS v7 . Global security is configured for federated repository with Active Directory being one of the repository . However with the dynamic nature of the organization, the plan is to expand the repository by adding more repositories into the Federated repository. So there are chances the user id (uid) could be duplicate, i.e. same user X may reside in repository A & B. This will be a problem if both A & B are added to the repository and user X tries to login .

However , we want to provide an option like county/uid i.e. us/X or ca/X as a login id . Is that an option or there is some way we can map additional LDAP attributes to federated repository properties as login parameter while logging in ?

Any inputs will be greatly appreciated

Thanks,
Ramesh
9 years ago

Ramesh Sahu wrote:Hi all,
I have installed J2EE 1.4 and learning EJB development using Head First EJB. The topics in it are discussed using J2EE 1.3 ,so there is small change
while deploying the application .
The problem is when we deploy the EJB on the default server that comes with J2EE bundle.
According to the book , in J2EE1.3 during the deployment process it will ask for JNDI name of the EJB component. But in 1.4 , it does not ask about the JNDI and completes.
My bean gets successfully deployed on the server .

Now when I go on to write the client code ,
we need to look up the JNDI .....as mentioned


Can some one tell me how to configure EJB with JNDI in J2EE & how can I test that my EJB is visible to client. OR what is different way to deploy EJB in J2EE 1.4. I am using default server available with J2EE 1.4 & has followed every step of Tutorial.

Thanks in advance



Was hoping for some response ???
Hi all,
I have installed J2EE 1.4 and learning EJB development using Head First EJB. The topics in it are discussed using J2EE 1.3 ,so there is small change
while deploying the application .
The problem is when we deploy the EJB on the default server that comes with J2EE bundle.
According to the book , in J2EE1.3 during the deployment process it will ask for JNDI name of the EJB component. But in 1.4 , it does not ask about the JNDI and completes.
My bean gets successfully deployed on the server .

Now when I go on to write the client code ,
we need to look up the JNDI .....as mentioned


Can some one tell me how to configure EJB with JNDI in J2EE & how can I test that my EJB is visible to client. OR what is different way to deploy EJB in J2EE 1.4. I am using default server available with J2EE 1.4 & has followed every step of Tutorial.

Thanks in advance

Ulf Dittmer wrote:Because the stream of data contains other data in addition to the actual file contents. Under the "specification URLs" link in my signature you can find the HTTP file upload spec - it's not trivial!



Thanks a lot . It seems to clear the air .

11 years ago

Ulf Dittmer wrote:Handling HTTP file uploads is way more complicated that you think it is. A library like Apache Commons FileUpload makes it real easy, though.



Thanks for the reply....

Actually I was expecting the reason behind it. I have a stream of data , then why can't I direct it into any destination???
11 years ago
Hi All,

I want to upload a simple file from a html to a webserver running on apache tomcat.
I used html tag <input type="file" name="upload_file" /> to select and post my request to servlet.

In the servlet used the ServletInputStream of the request to write the bytes to any particular file. The file is getting created in the server but it's content seems to be missing.

Can anyone tell me what is wrong with my approach ?? Any help is truely appreciable.

Uploading Servlet portion

11 years ago
Thanks for your reply.

But I really want to know what happens when the static block calls any static function with assignments within it &

when main method calls up the static method ......

I actually what to know what happens to assignments??

I am a bit confused!!!
12 years ago
When I run the following code :


class cache
{
static{
initializeIfNecessary();
}


static int sum;

public static int getSum() {
initializeIfNecessary();
return sum;
}

static boolean initialized = false;

private static void initializeIfNecessary()
{
System.out.println("Initialized Called->"+initialized);
if(!initialized) {

sum+=1;
initialized = true;

}
}
}

class client {
public static void main(String args[])
{
System.out.println("Inside Main->"+cache.initialized +" "+ cache.sum);
System.out.println(cache.getSum());
}
}




I get the following output:
Initialized Called->false
Inside Main->false 1
Initialized Called->false
2

Can anyone explain me the output???
Thanks in advance!!
12 years ago
When I run the following code :



I get the following output:
Initialized Called->false
Inside Main->false 1
Initialized Called->false
2

Can anyone explain me the output???
Thanks in advance!!
12 years ago
My actual requirement is,

There are virtual earth sdk javascript functions which can be used to locate any place . When a user selects any place a javascript funtion will be called & the map will be loaded . We have to capture this content as we require it further.

Is there any way by which we can take a snapshot of particular section of a webpage & save it as a jpg , that will help a lot.

Hi all,

I have div tag whose content gets loaded by a java script function.
My requirement is to get the content(which is an image) & capture it, so that I can refer to it in future...
Is there any javascript method for this method / what should be my method ?
thank you for your help
12 years ago
thank you .
Can you please elaborate on how to set �Proxy-Authorization� param for the proxy & where do I need to add this?

[ December 17, 2008: Message edited by: Ramesh Sahu ]
[ December 17, 2008: Message edited by: Ramesh Sahu ]
12 years ago
Hi,

I am trying to generate proxy files for the microsoft virtual earth web service using WSDL2Java api .

java org.apache.axis.wsdl.WSDL2Java -W -s -S true -o src http://staging.dev.virtualearth.net/webservices/v1/metadata/sear
chservice/searchservice.wsdl

I get the following exception.....
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
...
....
.....
........

I am able to access the wsdl file from IE . What could be the possible reason ?
Is there any other way to access Micrsoft virtual Earth webservices from any Java Application?
12 years ago