Mohit Goyal

Ranch Hand
+ Follow
since Nov 09, 2003
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 Mohit Goyal

I have followed the steps but i keep getting the following exception:

>java.net.SocketException: Default SSL context init failed: Invalid keystore format

i am able to c the tomcat page for https on port 443. I created a keystore using the following command:

>keytool -genkey alias tomcat -keypass changeit -keyalg RSA

and i filled the domain name value whn asked for frst and last name.

next i self signed the certificate:

>keytool -selfcert -alias tomcat -keypass changeit

and then i exported the certificate into the cacerts file:

>keytool -export -alias tomcat -file $JAVA_HOME/jre/lib/security/cacerts -keypass changeit

If I m doing something wrong thn please let me know.

and it would be gr8 if ne1, who's has practically generated keystores and certificates and was successful in running the application, can just provide me with th steps they followed.

Thanks
18 years ago
Hi Venkata

Sorry i haven't used JSP so i can't help you with this, But i too have developed a webservice using Axis1.3 which I need to deploy over https on Tomcat.

I am getting error while deploying the service.

Can you please tell me the steps which you followed for setting up SSL on Tomcat and generating the keystore and stuff and the steps for deployment.

I am really stuck because of this.

Thanks a lot in advance.
Mohit
18 years ago
Hi all
i developed the the web service and deployed it successsfully on the server. Now we need to deploy it on the production server which is SSL secured. I generated the wsdl frm the interface. but when i generate the bindings and stubs using the WSDL2Java tool...i recieve the following error:

java.io.IOException: Emitter failure. Invalid endpoint address in port SyncTrad
eLicense in service SyncTradeLicenseServiceLocator: https://IPAddress/axis/services/ServiceName
at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaS
erviceImplWriter.java:242)
at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:127)
at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWri
ter.java:112)
at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(Jav
aGeneratorFactory.java:421)
at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:476)
at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:45)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:362)
at java.lang.Thread.run(Unknown Source)

whn i remove the s in the http:// i don't get ne exception. plz help

thanx
18 years ago
hi all...

i have built a web service using axis..and deployed it on a machine. now i created a client using both jdeveloper and axis but i keep getting exceptions.

On the local system it works fine but as soon as i try to call it frm a client on other system.. which has generated the code using the same wsdl..it keeps throwin exceptions.

In JDeveloper it throws the following exception:

java.rmi.RemoteException: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: HTTPClient.AuthSchemeNotImplException: Negotiate; nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: HTTPClient.AuthSchemeNotImplException: Negotiate
at mypackage.runtime.SyncTradeLicenseSoapBinding_Stub.syncTradeLicense(SyncTradeLicenseSoapBinding_Stub.java:91)
at mypackage.SyncTradeLicenseClient.syncTradeLicense(SyncTradeLicenseClient.java:41)
at mypackage.Test1.main(Test1.java:32)
Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: HTTPClient.AuthSchemeNotImplException: Negotiate
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:93)
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:89)
at oracle.j2ee.ws.client.ClientTransportException.<init>(ClientTransportException.java:33)
at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:131)
at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:112)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:166)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:108)
at mypackage.runtime.SyncTradeLicenseSoapBinding_Stub.syncTradeLicense(SyncTradeLicenseSoapBinding_Stub.java:75)
... 2 more


plz help!!!
18 years ago
Hi all

I am a little confused about where to place the wsdl and wsdd files for an Axis generated web service for deployment. I know the classes go under axis\WEB-INF\classes but am really confused about the deployment files and WSDL.

cud ne1 plz help on this 1 it's very urgent.
18 years ago
Hi all

Thanks a lot for your support ..i already went throughthe documents you ppl listed in your replies..n eways i really appreciate all the help...

I have successfully deployed the service and it is working fine. As a next step i need to parse the XML document recieved as String and validate it against the schema and then update the database.

I am really confused as to which parser I should go for SAX or DOm.. i also came across JDOM and DOM4J. can you guide me on this as i m new to this whole thing.

Thanks
Mohit
SCJP1.4(98%)
18 years ago
thanks fr the reply..problem got solved..

i already had jdk1.4.2

actually i needed to include xml-apis.jar in my classpath... this file is under %tomcatinstallationdir%\common\endorsed.

Thanks neways...
18 years ago
Hi all

I m gettin the following error when i try to deploy my webservice on Axis1.3:

>java org.apache.axis.client.AdminClient deploy.wsdd
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/transform/Source


i have all the jars in my classpath..but i constantly get this error. if i just run the AdminClient it's running fine and displays all the options.
need urgent help with this

thanx
Mohit
SCJP 1.4
18 years ago
Hi all

for building document based web service which recieves and returns an XMl document as a string which api should I use - JAX-RPC or SAAJ??

Thanx in advance
18 years ago
Hi all,

i am workin on a project with very stiff deadline. I need to develop a web service which takes an xml document as a String, processes it and updates the database and returns a confirmation xml document. the service needs to b document based.

following is the method signature we will b exposing:

public String SomeMethod(String request){
return Confirmdoc;
}

i have gone thru some documents but i am a little confused as to how i shud send the XML document and how i shud recieve it and parse it and then validate it and update the database. there is very little help available online for Document based web services..most material i went thru just give a threotical overview..but no real case has been shown.

i am using Apache Tomcat and Apache Axis1.3.

the xml will be validated against a schema which will be avaialble at both ends.

I am new to Web services and any help will b greatly appreciated.

following are the things i need to know.:

1. how i'll pass the xml document to the service... using which apis
2. how i'll recieve the doc as a string and how will i generate the original XML doc frm it and validate it against the schema.


Thanx.
18 years ago
Is it necessary to know Servlets/JSPs before learning EJB. I m knew to server side Java Programming. I have started learning Servlets but my requirement is to learn EJBs as soon as possible.

Please help me.
hi
the indian edition of Khalid's second edition is available . It has a red cover.
Publication : Pearson Education
Low Price Edition
u can find information here:
web page
Congrats
Hi Sagrika don't feel disappointed. It's a great score given that u did give the exam on scheduled date. Cheer up.

in my opinion it doesn't matter much what ur score is. the real thing is that now u r in the league of sun certified java programmers and shud be great in itself. also the questions every person gets differ and that can be the difference in the score. So well done & hope that u succed in whatever u do.
Mohit
SCJP1.4
20 years ago
Thanx to all for making me feel on top of the world. yeah i did work hard for this one. Currently i have to switch to some other responsibilities which were neglected during my preparation.
But i will be around and wud try to help people out here as much as possible. and if in future i get a chance i might give the other certifications a go as well .
Once again Thanx a lot
20 years ago