Vijay Bhore

Greenhorn
+ Follow
since May 15, 2006
Merit badge: grant badges
For More
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 Vijay Bhore

Hii All,

In CORBA, I need to implement a mechanism which protects objects state when it is being accessed by remote objects.

I have an interface which lists a method increment() which is implemented as,

public synchronized int increment()
{ sum++;
return sum;
}

I am able to achieve the multiple clients access for this method when i m running it in a desktop. For that, i have synchronized the call to this method by keeping the servant object as a monitor.

But now i want to protect the state of the object when the remote objects are calling the same method.
Can anybody suggest about the approach i can follow to lock and unlock objects so that only one client can access/modify the state in distributed environment ?

I heard about two approaches
1) test and set approach
2) lock manager

It will be nice if i get a sample implementation of this..

Thanks in advance,
Vijay Bhore
Student, CA, USA

13 years ago
Dear All,

I am trying to deploy a web application developed in struts.

Once i deploy and run it, i am getting an error
503 Service Unavailable
Servlet error: Parsing error processing resource path /WEB-INF/struts-config.xml

I have defined a global forward for login.do
http://IP Address:Port/OM/Login.do

I have developed the application and packed it into an ear file.

Kindly suggest the way i can overcome this error.

Thanks and Regards,
Vijay Bhore



14 years ago
Dear All,

I am trying to read a date from excel file.
The category of the column is General.
In the date value is stored as 20090625 which i want to interpret as 25th June 2009.

When i am trying to read and print this value in java class, i am getting a wrong value as mentioned in the below log,
input docDate in String Format : 2.0090625E7

I can use the String manipulation functions to format the date according to my requirement but i guess there will be more precise approach for this.

Kindly suggest me about the right approach to read a date from excel sheet.

Thanks and Regards,
Vijay Bhore
24632268
14 years ago
Hi All,

I want to know if anybody can provide with me any documentation or information link from where i can find the way how to deploy webservices using axis specific WSDL(i mean WSDL is created using axis jars) on to the application server like Weblogic.

I would like to know the following,

1 - How to create the web.xml

2 - How to create the deployment descriptor.

3 - How to pack the EAR or WAR file.

Thanks and Regards,
Vijay Bhore
14 years ago
Dear All,

Currently i am using Oracle application server to deploy and execute webservices.

To generate the ear file, we are using a Oracle server specific jar.

The packWs.bat is written as below,

cls
@ echo off
echo ***************** Trying to Pack CMA webservices into ear *****************

del cmaWebServices.ear
echo " "
@ echo on

java -jar C:\Vijay\Software\oracle\product\10.1.0\db_1\oc4j\webservices\lib\WebServicesAssembler.jar -config config_sun.xml


As it is visible, we are using the WebServicesAssembler.jar which is oracle specific.

Now, i want to pack the webservice without using the WebServicesAssembler.jar so that the resulting ear will be generic and I will be able to deploy it on any web server e.g. Weblogic.

We are using the Axis to generate the webservices.
Kindly suggest me any idea of packing a webservice without considering the oracle specific jar.

Thanks in advance.

Regards,
Vijay Bhore




14 years ago
Dear All,

I am developing webservices for a external users.
I am new to webservices.

We were using Oracle Application server to deploy the webservices.
The architecture was as mentioned below
1) A interface class
2) A Implementation class for the above interface class

Now we are planning to migrate from Oracle application server to Weblogic Application server.
I have few doubts about the migration,
1) Will there be any difference between Oracle specific WSDL and WSDL created by Weblogic ant build command
2) As our external parties are referring our SOAP requests ans responses for their implementation, i am concerned about the changes in the SOAP request and response formats. Will there be changes due to application server change?

Thanks and Regards,
Vijay Bhore
14 years ago
Hi All,

I am calling a remote API.
While calling the API i am getting the following exception,

error marshalling arguments; nested exception is:
java.net.SocketException: Software caused connection abort: socket write error

Sometimes i am getting the other error as :

error marshalling arguments; nested exception is:
java.net.SocketException: Connection reset by peer: socket write error

It seems there is no connectivity issue as i am abe to get registry, lookup required services over it. But i am facing error while calling any method on the services obtained.

Kindly suggest ASAP.

Thanks in advance,

Vijay
16 years ago
I will follow the same thread,

It's working after i made two changes

1) Created three different descriptors for three different oracle arrays as

ArrayDescriptor descOne = ArrayDescriptor.createDescriptor("HOST_ARRAY", conn);
ArrayDescriptor descTwo = ArrayDescriptor.createDescriptor("SUBNET_ARRAY", conn);
ArrayDescriptor descThree = ArrayDescriptor.createDescriptor("NEW_HOST_ARRAY", conn);

2) I had initialized String arrays of size 20 whereas arrays can contain only 1-10 values.
Now i have initialized arrays dynamically according to number of actual number of elements in array.
Hence the chances of the oracle array containing null values got minimized.

Regards,

Vijay Bhore
Hi All,

Please excuse me if i am posting my concern at wrong place.

Actually I need to call a Java API from database stored procedure.
I am using Oracle 10g database.
I have a jar for the classes.
I need to call the methods from these classes.

I have never done it earlier.
Can anybody suggest me, what is the way for it.

Thanks and Regards,

Vijay Bhore
Hi All,

I am using oracle.sql.ARRAY in call to a database procedure.
I am providing the code snippet below.

First I have created an object of ArrayDescriptor 'desc'.

ArrayDescriptor desc = ArrayDescriptor.createDescriptor("HOST_ARRAY", conn);

Further I am using the same descriptor to create three Oracle arrays..

ARRAY inArrayCustIps = new ARRAY(desc, conn, changeSipsRequest.getCustIps());
ARRAY inArrayTotalHostIps = new ARRAY(desc, conn, changeSipsRequest.getTotalHostIps());
ARRAY inArraySelectedHostIps = new ARRAY(desc, conn, changeSipsRequest.getHostIps());

Further i have set the Arrays as input to proc according to correct index as

ocs.setARRAY(8, inArrayCustIps);
ocs.setARRAY(9, inArrayTotalHostIps);
ocs.setARRAY(10, inArraySelectedHostIps);

But the problem i am facing is that values are not being passed to proc.
Can anybody suggest, what is the problem and how can i resolve it.

Thanks in advance.

Regards,
Vijay
Hi friends I am consistently getting this error

javax.servlet.ServletException: Exception creating bean of class JavaSource.forms.registerform:

I have created a jsp file register.jsp as follow,

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="form" %>

<form:html>
<body>
<form:form action="/register.do">
User Name:<form:text property="username"/><br>
Enter Password:<form assword property="password1"/><br>
Re-Enter Password:<form assword property="password2"/><br>
<form:submit value="Register"/>
</form:form>
</body>
</form:html>

I am using Eclipse to create Dynamic web project.
For the above created register.jsp I have created a bean registerform.java
in forms folder under Javasource folder as..

package forms;

import org.apache.struts.action.*;
import org.apache.struts.action.ActionForm;

public class registerform extends ActionForm {
public String username=null;
public String password1=null;
public String password2=null;


public void setUsername(String aUsername)
{
username=aUsername;
}
public String getUsername()
{
return(username);
}

public void setPassword1(String aPassword1)
{
password1=aPassword1;
}
public String getPassword1()
{
return(password1);
}

public void setPassword2(String apassword2)
{
password2=apassword2;
}
public String getPassword2()
{
return(password2);
}
}

My struts-config.xml is as follows..

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-Apache Softaware Foundation 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">

<struts-config>
<form-beans>
<form-bean name="registerForm" type="JavaSource.forms.registerform"/>
</form-beans>

<action-mappings>
<action path="/register"
type="JavaSource.actions.registerAction"
name="registerForm"
input="/register.jsp" >
<forward name="success" path="/success.html"/>
<forward name="failure" path="/failure.html"/>
</action>
</action-mappings>

</struts-config>

Why the error javax.servlet.ServletException: Exception creating bean of class JavaSource.forms.registerform is coming ?
Can anybody help immediately..?
18 years ago