|
Replies:
9
-
Last Post:
Dec 4, 2008 5:34 PM
by: pedric
|
|
|
|
|
|
|
Web Service Wrapper over RMI call
Posted:
Dec 3, 2008 1:58 AM
|
|
|
I am trying to develop a web service for an existing RMI-SSL client by creating a web service wrapper over the RMI client and are facing problem with the keystore error below.
** trying to look up serverName = rmi://192.168.1.65:1099/AppServer java.rmi.ConnectIOException: Exception creating connection to: 192.168.1.65; nested exception is: java.net.SocketException: Default SSL context init failed: Keystore was tampered with, or password was incorrect
I have updated glassfish centralize keystore.jks and cacerts.jks with the application keystore. However, i am still getting this error. Please advise.
|
|
|
|
|
|
|
Re: Web Service Wrapper over RMI call
Posted:
Dec 4, 2008 1:01 AM
in response to: pedric
|
|
|
Anyone? I am new to web service and glassfish. If i run it over tomcat, it works perfectly.
|
|
|
|
|
|
|
|
Redeploying a web application
Posted:
Dec 4, 2008 1:19 AM
in response to: pedric
|
|
|
|
|
Hi I want to redeploy my web application.For it On Tomacat I just have to reload the application.But in GLASSFISH i have to again go to the directory and select it.Is there any way like tomcat to reload my application after making some changes in it.
________________________________
Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ [att1.html]
|
|
|
|
|
|
|
|
Re: Redeploying a web application
Posted:
Dec 4, 2008 5:01 AM
in response to: Rajeev Kumar
|
|
|
|
|
Rajeev Kumar wrote: > Hi > I want to redeploy my web application.For it On Tomacat I just have to > reload the application.But in GLASSFISH i have to again go to the > directory and select it.Is there any way like tomcat to reload my > application after making some changes in it. When GlassFish v3 prelude came out I wrote a brief blog about the various deployment features [1]. And have you looked in the documentation [2] because it contains a much more complete discussion of how you can deploy applications. Do any of these techniques help you do what you want?
[1] http://blogs.sun.com/quinn/entry/deployment_in_glassfish_v3_prelude [2] http://docs.sun.com/app/docs/doc/820-4502/
- Tim [att1.html]
|
|
|
|
|
|
|
|
Re: Redeploying a web application
Posted:
Dec 4, 2008 5:43 AM
in response to: Tim Quinn
|
|
|
|
|
Its working fine.Thanks.
________________________________ From: Tim Quinn <Timothy.Quinn@Sun.COM> To: users@glassfish.dev.java.net Sent: Thursday, 4 December, 2008 6:31:48 PM Subject: Re: Redeploying a web application
Rajeev Kumar wrote: Hi I want to redeploy my web application.For it On Tomacat I just have to reload the application.But in GLASSFISH i have to again go to the directory and select it.Is there any way like tomcat to reload my application after making some changes in it. When GlassFish v3 prelude came out I wrote a brief blog about the various deployment features [1].  And have you looked in the documentation [2] because it contains a much more complete discussion of how you can deploy applications. Do any of these techniques help you do what you want?
[1] http://blogs.sun.com/quinn/entry/deployment_in_glassfish_v3_prelude [2] http://docs.sun.com/app/docs/doc/820-4502/
- Tim
Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/ [att1.html]
|
|
|
|
|
|
|
|
RE: Redeploying a web application
Posted:
Dec 4, 2008 9:30 AM
in response to: Rajeev Kumar
|
|
|
|
|
We just use the commands
asadmin undeploy asadmin deploy
serially in a small script to execute a re-deployment.
== Eric ==
From: Rajeev Kumar [mailto:rajeevcoder@yahoo.com] Sent: Thursday, December 04, 2008 1:19 AM To: users@glassfish.dev.java.net Subject: Redeploying a web application
Hi I want to redeploy my web application.For it On Tomacat I just have to reload the application.But in GLASSFISH i have to again go to the directory and select it.Is there any way like tomcat to reload my application after making some changes in it.
________________________________
________________________________ Check out the all-new face of Yahoo! India. Click here.<http:// [att1.html]
|
|
|
|
|
|
|
|
Re: Web Service Wrapper over RMI call
Posted:
Dec 4, 2008 3:21 AM
in response to: pedric
|
|
|
> > > I have updated glassfish centralize keystore.jks and > cacerts.jks with the application keystore. However, i > am still getting this error. Please advise.
How did you do this. Did you overwrite the glassfish keystore.jks and cacerts.jks with the application ones ?.
If so then you have to ensure two things :
1. Make sure the password for the keystore and truststore matches the GlassFish master password 2. Make sure the Keystore has a certificate whose CN matches the hostname of the host on which glassfish is running (otherwise you will see an SSL setup failure).
If you are looking for SSL WebService the following Tip will help you : http://java.sun.com/developer/EJTechTips/2006/tt0527.html
|
|
|
|
|
|
|
|
Re: Web Service Wrapper over RMI call
Posted:
Dec 4, 2008 3:27 AM
in response to: kumarjayanti
|
|
|
Just to add,
if any of the keys in application keystore have key passwords which are different from the keystore password then again you would see an initialization failure.
The recommended way to overwrite GlassFish keystores is to set the following properties inside domain.xml to correct values :
<jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options> <jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
|
|
|
|
|
|
|
|
Re: Web Service Wrapper over RMI call
Posted:
Dec 4, 2008 5:32 PM
in response to: kumarjayanti
|
|
|
I have imported the application cert into cacerts.jks via keytool -import.
|
|
|
|
|
|
|
|
Re: Web Service Wrapper over RMI call
Posted:
Dec 4, 2008 5:34 PM
in response to: kumarjayanti
|
|
|
I have imported the application cert into cacerts.jks via keytool -import. Is this the correct way? My backend application server uses RMI SSL and my web service wraps over the RMI client to connect to my backend application server.
|
|
|
|
|