« Back to CVP - All Versions

Axis2 and Rampart Deployment on tomcat

Combination View Flat View Tree View
Threads [ Previous | Next ]
I'm trying to write a studio app to call a webservice that uses Axis2 security with something called Rampart and this all goes over SSL.
 
From Studio I have written a test harness project (custom java project, not a Call Studio project):
- I created stubs using Axis2 generator from the customer WSDL
- Created a test client from code provided by the customer
- Setup the proper java keystore security to talk to the webservice.
- Tested and it works FINE from Call Studio running as a java app.
 
 
If I want this to run under VXML server, once I write a custom element, I'm going to need the Axis2 and Rampart JAR files to be loaded and referenceable.  I have two methods, copy them to local util\lib or copy to vxmlserver\common\lib...or maybe tomcat\common\lib, don't know.
 
So far I've had zero luck loading them in vxmlserver\common\lib and the messages are somewhat useless on where to look.
 
Has anyone done this before using Axis2 client "elements" and if so where did you put the lib jar files and their corresponding directories i believe they rely on (e..g /conf)?
 
I'm sure more info might be needed, but first thought I'd take a stab on finding someone I could reap the benefits from :-)
 
Thanks, Bill Westby
 

Bill,
You can try and deploy it under the util\lib dir of the app. For example on 8.X it would map to:
C:\Cisco\CVP\VXMLServer\applications\TestApp\java\util\lib
I have deployed similar apps and jar under util\lib works fine.

Please try and let me know.
Hemal

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Monday, October 10, 2011 6:59 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Bill Westby in Customer Voice Portal (CVP) - CVP - All Versions: Axis2 and Rampart Deployment on tomcat

Bill Westby has created a new message in the forum "CVP - All Versions":

--------------------------------------------------------------
I'm trying to write a studio app to call a webservice that uses Axis2 security with something called Rampart and this all goes over SSL.

From Studio I have written a test harness project (custom java project, not a Call Studio project):
- I created stubs using Axis2 generator from the customer WSDL
- Created a test client from code provided by the customer
- Setup the proper java keystore security to talk to the webservice.
- Tested and it works FINE from Call Studio running as a java app.


If I want this to run under VXML server, once I write a custom element, I'm going to need the Axis2 and Rampart JAR files to be loaded and referenceable. I have two methods, copy them to local util\lib or copy to vxmlserver\common\lib...or maybe tomcat\common\lib, don't know.

So far I've had zero luck loading them in vxmlserver\common\lib and the messages are somewhat useless on where to look.

Has anyone done this before using Axis2 client "elements" and if so where did you put the lib jar files and their corresponding directories i believe they rely on (e..g /conf)?

I'm sure more info might be needed, but first thought I'd take a stab on finding someone I could reap the benefits from :-)

Thanks, Bill Westby

--
To respond to this post, please click the following link:

<http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4587308>

or simply reply to this email.

Thanks Hemal. I'll try it. The main issue is it's dependency on other jars which are available in studio but not under vxml server at runtime.

Thx, Bill W. Sent from my iPhone

On Oct 10, 2011, at 8:19 PM, "Cisco Developer Community Forums" <cdicuser@developer.cisco.com> wrote:

> Hemal Mehta has created a new message in the forum "CVP - All Versions":
>
> --------------------------------------------------------------
> Bill,
> You can try and deploy it under the util\lib dir of the app. For example on 8.X it would map to:
> C:\Cisco\CVP\VXMLServer\applications\TestApp\java\util\lib
> I have deployed similar apps and jar under util\lib works fine.
>
> Please try and let me know.
> Hemal
>
> From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
> Sent: Monday, October 10, 2011 6:59 PM
> To: cdicuser@developer.cisco.com
> Subject: New Message from Bill Westby in Customer Voice Portal (CVP) - CVP - All Versions: Axis2 and Rampart Deployment on tomcat
>
> Bill Westby has created a new message in the forum "CVP - All Versions":
>
> --------------------------------------------------------------
> I'm trying to write a studio app to call a webservice that uses Axis2 security with something called Rampart and this all goes over SSL.
>
> From Studio I have written a test harness project (custom java project, not a Call Studio project):
> - I created stubs using Axis2 generator from the customer WSDL
> - Created a test client from code provided by the customer
> - Setup the proper java keystore security to talk to the webservice.
> - Tested and it works FINE from Call Studio running as a java app.
>
>
> If I want this to run under VXML server, once I write a custom element, I'm going to need the Axis2 and Rampart JAR files to be loaded and referenceable. I have two methods, copy them to local util\lib or copy to vxmlserver\common\lib...or maybe tomcat\common\lib, don't know.
>
> So far I've had zero luck loading them in vxmlserver\common\lib and the messages are somewhat useless on where to look.
>
> Has anyone done this before using Axis2 client "elements" and if so where did you put the lib jar files and their corresponding directories i believe they rely on (e..g /conf)?
>
> I'm sure more info might be needed, but first thought I'd take a stab on finding someone I could reap the benefits from :-)
>
> Thanks, Bill Westby
>
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4587308>
>
> or simply reply to this email.
> --
> To respond to this post, please click the following link:
>
> <http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4587438>
>
> or simply reply to this email.

So if anyone is interested, if you are using Axis2 with Rampart with client and wssecurity properties and a java keystore, you have to put those files in:



C:\Cisco\CVP\VXMLServer\Tomcat\common\classes



And restart VXML Server as they cached at startup.



Whew! That was tedious.



Thanks,

Bill Westby.



From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Monday, October 10, 2011 8:01 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Hemal Mehta in Customer Voice Portal (CVP) - CVP - All Versions: RE: New Message from Bill Westby in Customer Voice Portal (CVP) - CVP - All



Hemal Mehta has created a new message in the forum "CVP - All Versions":

--------------------------------------------------------------
Bill,
You can try and deploy it under the util\lib dir of the app. For example on 8.X it would map to:
C:\Cisco\CVP\VXMLServer\applications\TestApp\java\util\lib
I have deployed similar apps and jar under util\lib works fine.

Please try and let me know.
Hemal

From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Monday, October 10, 2011 6:59 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Bill Westby in Customer Voice Portal (CVP) - CVP - All Versions: Axis2 and Rampart Deployment on tomcat

Bill Westby has created a new message in the forum "CVP - All Versions":

--------------------------------------------------------------
I'm trying to write a studio app to call a webservice that uses Axis2 security with something called Rampart and this all goes over SSL.

From Studio I have written a test harness project (custom java project, not a Call Studio project):
- I created stubs using Axis2 generator from the customer WSDL
- Created a test client from code provided by the customer
- Setup the proper java keystore security to talk to the webservice.
- Tested and it works FINE from Call Studio running as a java app.


If I want this to run under VXML server, once I write a custom element, I'm going to need the Axis2 and Rampart JAR files to be loaded and referenceable. I have two methods, copy them to local util\lib or copy to vxmlserver\common\lib...or maybe tomcat\common\lib, don't know.

So far I've had zero luck loading them in vxmlserver\common\lib and the messages are somewhat useless on where to look.

Has anyone done this before using Axis2 client "elements" and if so where did you put the lib jar files and their corresponding directories i believe they rely on (e..g /conf)?

I'm sure more info might be needed, but first thought I'd take a stab on finding someone I could reap the benefits from :-)

Thanks, Bill Westby

--
To respond to this post, please click the following link:

<http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4587308>

or simply reply to this email.
--
To respond to this post, please click the following link:

<http://developer.cisco.com/web/cvp/forums/-/message_boards/view_message/4587438>

or simply reply to this email.

Were you ever able to get Axis 2 working properly? Where did you wind up putting all the Axis 2 jar files from the distribution? In the past I've had to scatter them across four different directories to get it working, but now that I am using CVP 8.5 I'm having no such luck.

Axis works fine for me – the libraries have to be carefully located. I’ll tell you where I have them.

Regards,
Geoff

OK, perhaps there are issues. I am using CVP 7.0(2) and axis 1.4.

I’ll jump onto the system and tell you where I put them.

Regards,
Geoff

Update:

We were able to place all the Axis2 jars into the java/util/lib directory and get Axis2 to function properly. We then removed them and added them to the Tomcat/common/lib directory which works fine as well.

>>>>>>We were able to place all the Axis2 jars into the java/util/lib directory and get Axis2 to function properly. We then removed them and added them to the Tomcat/common/lib directory which works fine as well.

Sorry – I meant to post. I have:

axis.jar, commons-discovery-0.2.jar, wsdl4j-1.5.1.jar in VXMLServer\common\lib

and

jaxrpc.jar, saaj.jar in VXMLServer\Tomcat\common\endorsed

That is all. This is a working combination. I try to put as many JARs in server\common\lib and just had to put 2 jars in tomcat\common\endorsed (this is a better dir if the classes refer to javax)

Regards,
Geoff