Ram N Sharma

Greenhorn
+ Follow
since Feb 19, 2005
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 Ram N Sharma

Hi

I am getting the following error when I invoke the client (created with axis)from a servlet running on Jrun:

javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Lja
va/lang/String V.
java.lang.NoSuchMethodError:

I fixed the problem for stand-alone java application by adding -djava.endorsed.dirs=xxx in the jvm argument where xxx is the folder containing the overriding jwsdp +axis jars. What is an equivalent configuration in jrun?.

Thanks
17 years ago
Are you getting a SOAPAction error?. I ran into a problem with a java client consuming a service written in .Net. I wrote the client using SAAJ and for some reason it was erroring out. I re-wrote the client (after generating stubs using axis) and it started working!!.
17 years ago
I am getting the following error when I invoke the client (created with axis)from a servlet running on Jrun:

javax.xml.namespace.QName.<init>(Ljava/lang/String;Ljava/lang/String;Lja
va/lang/String;)V.
java.lang.NoSuchMethodError:

I fixed the problem for stand-alone java application by adding -djava.endorsed.dirs=xxx in the jvm argument where xxx is the folder containing the overriding jwsdp +axis jars. What is an equivalent configuration in jrun?.

Thanks
17 years ago
Does anybody know of a java user group in Irvine or in the vicinity?. Your feedback will be greatly appreciated.
17 years ago
I ma not able to get the correct signature in the methods within the client stub generated by using wsdl2java. Can someone check the wsdl and tell me if they are getting a different result? Thanks.

Notably the operation named "compose" is cerated without an input parameter:
------Start WSDL ---

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:exst="urn:exstream-services"
targetNamespace="urn:exstream-services">
<types>
<xsd:schema>
<xsd:element name="PreviewRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="PubFile" type="xsd:string"
maxOccurs="1" minOccurs="1" />
<xsd:element name="Driver">
<xsd:complexType>
<xsd:sequence>
<xsd:any namespace="##local"
processContents="skip" maxOccurs="unbounded" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="filename"
type="xsd:string" use="optional" default="INPUT" />
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="includeheader"
type="xsd:boolean" use="optional" default="false" />
</xsd:complexType>
</xsd:element>
<xsd:element name="PreviewResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="PreviewHeaders">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Version"
type="xsd:integer" maxOccurs="1" minOccurs="0" />
<xsd:element name="PDL"
type="xsd:integer" maxOccurs="1" minOccurs="0" />
<xsd:element name="OutputLength"
type="xsd:integer" maxOccurs="1" minOccurs="0" />
<xsd:element name="MessageLength"
type="xsd:integer" maxOccurs="1" minOccurs="0" />
<xsd:element name="UserDataLength"
type="xsd:integer" maxOccurs="1" minOccurs="0" />
<xsd:element name="PageCount"
type="xsd:integer" maxOccurs="1" minOccurs="0" />
<xsd:element name="ReturnCode"
type="xsd:integer" maxOccurs="1" minOccurs="0" />
<xsd:element name="FileType"
type="xsd:string" maxOccurs="1" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</types>
<message name="getPreviewRequest">
<part name="Document" element="exst reviewRequest" />
</message>
<message name="getPreviewResponse">
<part name="Document" element="exst reviewResponse" />
<part name="Content" type="xsd:base64Binary" />
</message>
<portType name="PreviewReportPortType">
<operation name="compose">
<input name="PreviewRequest"
message="exst:getPreviewRequest" />
<output name="PreviewResponse"
message="exst:getPreviewResponse" />
</operation>
</portType>
<binding name="PreviewReportBinding"
type="exst reviewReportPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<operation name="compose">
<soap peration soapAction="urn:exstream-services" />
<input>
<soap:body use="literal" />
</input>
<output>
<mime:multipartRelated>
<mime art>
<soap:body use="literal" />
</mime art>
<mime art>
<mime:content part="Content" type="text/binary" />
</mime art>
</mime:multipartRelated>
</output>
</operation>
</binding>
<service name="EngineService">
<port name="EngineServicePort"
binding="exst reviewReportBinding">
<soap:address
location="http://cairvappd15:9080/exstream/services/EngineService" />
</port>
</service>
</definitions>

--- End WSDL ----
17 years ago
I am trying to decrypt an encrypted string created via a .NET application. The decryption fails with a "bad padding exception" error. SUre enough the string when converted toa byte array shows zero padding suffixed to the end. Both the java and .NET apps use PBE to perform the encrypt/decrypt routine. Any help would be greatly appreciated.

I get the following error:
javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_ab.b(DashoA12275)
at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA12275)
at javax.crypto.Cipher.doFinal(DashoA12275)
at Encr.DataEncrypting.getCryptoReadStream(DataEncrypting.java:214)
at Encr.DataEncrypting.readRecord(DataEncrypting.java:89)
at Encr.DataEncrypting.readData(DataEncrypting.java:66)
at Encr.DataEncrypting.main(DataEncrypting.java:45)
18 years ago
Sorry I meant new project not "perspective". I do not see an EJB project type in the "new projects".
Can someone tell me whether to install JbossIDE 1.5.0 M2 or to install JbossIDE 1.4.1?. I am trying to go through the trailblazer tutorial and the interface is different i.e. the perspective for new projects in the trail blazer has a EJB project.
I have downloaded the Jboss EJB3.0 but I dont see an eclipse plug-in. I need some direction at this point.

The main problem is that I cant target my project for a particular Jboss server.
Any help would be greatly appreciated

Thanks
Ram
Oh! yes. That's what meant. Thanks for your reply Jeanne.
Hello

Has anyone tried the 2 ides?. Which one is more popular? Any feedback will be appreciated.

Thanks
Hi, figured out the problem. I tracked the problem down to an incorrect JAVA_HOME path
18 years ago
Hi I am new to Jboss and am trying to set it up on my windows xp pc. As per documentaion I ran the batch file run.bat. But I am getting an error message :

The filename, directory name, or volume label syntax is incorrect.

Has anybody run into this problem?
Any feedback would be appreciated.

Thanks
18 years ago
Hello

I am a newbie to EJB development. I have worked with eclipse and java/j2ee but have not had a need to develop ejbs until now. I have downloaded lomboz for building an ejb project (as prototype). I would like to find out if there are better tools out there. I am using Jboss for the test implementation. Is this a good app-server to start with?
There's resin, geronimo etc... etc. Also if this is a good approach.

Any insight/feedback would be greatly appreciated.
Thanks
Valentin

Thanks for your feedback. I am new to ejb but I not new to development exp using java/j2ee and eclipse. I just have not had a need for ejb until now. So with existing tools what would be a good approach. Of course, the theoretcial aspects can be gleaned from books which is what I am doing. But I like to learn by example.

Ram