cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
213
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: deniz caglar on 09-01-2009 12:09:20 PM
Hi,

We are trying to use spring framework on our CVP application. For spring and other custom elements, we have a java project which works perfectly on our local machine. Then we export this project as a jar to application/lib folder of our cvp project. However, our decision elements (which contains methods from spring framework) can not be visible under elements view until we put all the spring related jars to application/lib folder. Our xml files for spring are also under application/classes folder(By the way, we are reading the xml configurations by giving fullpath, not from classpath which as a problem also). But here is the problem begins. If we deploy the project with this configuration, in the deployment stage, VXML Server tries to figure out all the dependencies of the jars located in application/lib folder which is almost impossible to achive. So we produce a new method to solve the problem. Firstly we stop the VXML Server. Then deploy the CVP application from CVP Call Studio. Then we delete all the jars under the application/lib folder on vxml server (So we avoid dependency_chek/Class not found errors). After that, we put the spring related jars and the jar we created by exporting our java project, under the CVP\VXMLServer\Tomcat\webapps\CVP\WEB-INF\lib folder. After all we start the VXML server and only in this situation our project works.

It doesn't make sense to do such things just to use spring framework in our cvp applications. So what we are doing wrong? Or where should we put our spring related jars to avoid from hard-dependecy-check which always throws NoClassDefFoundError. I mean we don't use ant task but since it is included in a class in one of the spring related jars, we can not even deploy our project.

Any help would be greatly appreciated.

Thanks.

Subject: Re: classpath jar problem with Spring Framework on CVP application
Replied by: Elam Birnbaum on 26-01-2009 06:19:03 PM
Please see the response to the post:

http://developer.cisco.com/web/cdc/forums?src=/forums/thread.jspa%3FthreadID%3D30375%26tstart%3D0

to see the answer to this question.

Subject: RE: Re: classpath jar problem with Spring Framework on CVP application
Replied by: James Heffernan on 03-03-2009 07:42:28 AM
Hi,
I've a similar issue I fear.  I'm using custom built Action and Decision elements, and one of these (an Action element) uses Spring to inject some dependencies.  I am using ClassPathApplicationContextLoader, with the various xml files under the java/application/classes path.  The 3.1 CVP Studio I am using codes up the app OK and even validates (occasionally) and once I managed to deploy, or so it seemed.  However a lot of the time the Studio app just hangs up, with javaw running in excess of 90% CPU utilisation, which is most frustrating as you can imagine.  I suspect there is something about the Spring it doesn't like, although I have got all the jar files I require in the ../lib path under the app path in Studio.  I tried to follow the link in the previous message in this thread but it did not seem to take me to a response for this type of issue.  Did the original poster manage to resolve this and if so are you able to offer some tips?
Thanks
 
James
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links