Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Roshini Sridharan

Ranch Hand
+ Follow
since Jan 16, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Roshini Sridharan

Hi All,

I have an issue with Web Service Client in RAD 7.5 and WAS 7.' I am new to Web Service. I would like to get advice on how to make the HTTP Authentication configuration for WEB SERVICE CLIENT CLASS.

Please find the details below

1. I have a Web Service [WSDL] that requires a HTTP Authentication to access it.
2. I generated a Dynamic Web Project and created the Web Service Client out of the WSDL through RAD 7.5
3. I have now JSP file through which i can invoke the Web Service
4. I have the HTTP Auth information configured in the WebService Binding Deployment Descriptor.[ibm-webservices-bnd.xmi]
<portQnameBindings.... .>
<basicAuth xmi:id="BasicAuth_1351130535775" userid="xxx" password="xxx"/>
</portQnameBindings>

The issue is when i run the TestWebClient.jsp on the Web Server, it displays the Web Service method and obtains the input, but when clicked on Invoke button the Response i get is

Exception: javax.xml.ws.WebServiceException: org.apache.axis2.AxisFault: HTTP ( 401 ) Authorization Required address : [URL]

I am not sure if there's any other place in the Java code i have to place the Authentication settings. The Web Service is based on JAX-WS.

Would appreciate if some one could shed some light on resolving this issue ASAP.

Thanks for the time.

Regards
Roshini Sridharan
5 years ago
I also would like to know, without compiling the Application for the JRE 5 or 6 does the application bring in Performance enhancement provided as part of the Java higher version [5/6/7] unless we use the language features ?

Thank you
Roshini S
6 years ago
Will be migrating to Java 6 or Java 7. This is just a test run kind.

Thank you Tim for your input.

Regards
Roshini S
6 years ago
Hi,

I work on migrating an Application that works with JRE1.4. As part of the migration, When i run the existing Application code without compiling to JDK 5, it works fine Java 5.

When I tried compiling my application using JDK 5, there's no error reported. But when I run the application find that it throws AbstractMethodError using JRE 5.

My application refers to proprietory Framework Jar files that's not recompiled for JRE 5, is that causing the AbstractMethodError issue ..?

Also would like to know in case of migration where we have reference to some proprietory/open source Jar files, is it required that we get the migrated/recompiled version of those files.. so that the application compiled on JDK 5 works seamlessly with the reference Jars.

Would appreciate if there are some insights on the migration process and correct the understanding.

Thank you.

Regards
Roshini S
6 years ago
Hi,

Can someone provide me some insight into this issue.

Thanks.
Hi,

There's a multithreaded code that creates N no. of threads, each thread creates a new DB Connection instance to connect to a DB using JDBC. So there are N no. of individual connections to the database created by each thread. In this context find that when one of thread is being created and it tries to get the DB Connection the below Exception is being throwed.

As per the exception, find its relevant to the JDBC URL formation. Please note the method that obtains the DB Connection is a synchronized one.



Would like to know the possible cause for this and the possble solution like implementing colleection pooling would help.

Thanks in advance.

Regards
Roshini
I have a similar requirement of disabling autocomplete in my existing web application that uses struts <html:text>, <html:form> tag. I understnd that we can extend either the struts text or form tag to achieve this.

Would like to know if by default i can set the autocomplete off in my extended tag class so that i dont need to modify my thousand lines of input element or 300 's of my form tag to include the autocomplete option.

Can i include a Javascript function i.e. referred from all the Web Pages where i can set the Form Element / Text Element as autocomplete="off" after extending the html:form or html:text tag instead of changing the individual forms/text elements.

I understand this would cause problem if few of the text/ forms needs to be set autocomplete true. But the immediate requirement is to set the autocomplete option off.

Request some insight on this.

Thanks in advance.

Regards
Roshini Sridharan
8 years ago
Hi,

I work on web application that's built on Struts framework and deployed in Websphere Application Server 6.1 [ND].

There's a requirement to exchange digitally signed cookie between the browser to server access.. Would like to know if we could configure the WAS to exchange digitally signed / hashed cookie or is to be done via the Java code by implementing some Servlet filters.. ?

Find that the we can configure Secure cookies -- Enabling the feature restricts the exchange of cookies to HTTPS sessions only. [ i understand that the cookie is encrypted and sent over the secure layer (SSL) ]. Does it include a digital signature when using secure cookies.. ?

Request some insights on the understanding and ideas on how this can be implemented.

Thanks
Roshini S
8 years ago
Is there a possibility of changing the default distributable behaviour of this servlet, by introducing some tag.. or through any property setting for this servlet? Please help.
9 years ago
Yes, your understanding is right.
9 years ago
hi,

Request to share your ideas or suggestions on this. The problem has occured after we have migrated from a non clustered to clustered environment.
9 years ago
request help in getting some ideas on the scenario below.

The application runs in Websphere Clustered Environment, and it has a servlet that invokes a batch job process that's scheduled to run at a specific time. This batch job servlet is set to load at startup like using <load-on-startup>0</load-on-startup> tag in web.xml

what happens is at the scheduled time the JVM's in the clustered environments ticks say xx:xx time and this in turn calls the batch Job Process.

The requirement is to execute only once the batch job at the time scheduled or to invoke it manually where again only once its to be executed..

Understand that for each jvm instance the servlet instances are created and served.when it comes to scheduled process even if try to synchronize the process.. find that the process starts with very few milli/micro second difference... and both the threads access the shared resources and the data's /process are messed

Welcome & Appreciate suggestions on this.
[ September 17, 2008: Message edited by: roshini sridhar ]
9 years ago
Thanks a lot for the reply.

Can you please tell how to set the codepage for the Reader, also is there any default codepage format for AS/400 files based on the ftp command we used to download to [quote type C 943 ]

Also would like to know how the file same is read when created in the Windows machine.
[ September 10, 2008: Message edited by: roshini sridhar ]
9 years ago
Hi,

Have a problem when reading a file that was transferred from AS400 through FTP via the following command
------------------
bin
quote type C 943
get source destfile
------------------
This creates a xxx.txt file in the Application Server in Linux.

When the Servlet uses the BufferedReader to read the file it returns the below exception when it tries to read the file..



This works fine when the file is read from windows OS. Understand that there's some problem understanding the Japanese character while the read. Request your valuable inputs on this .. since we are hang up here.

Thanks in advance for the inputs and time.
[ September 10, 2008: Message edited by: roshini sridhar ]
9 years ago
The thing is the error occurs when we try to retrieve a value to return to the home page from the request.getServletPath() method.

We expect url like /xxx/index.jsp but sometimes the request.getServletPath() method returns /null/index.jsp.

Also, is there any reason for the behaviour difference when its run in the Websphere Application Server 5.1 and 6.1
[ May 27, 2008: Message edited by: roshini sridhar ]
10 years ago