« Back to General Discussion - All Versions

classpath jar problem with Spring Framework on CVP application

Combination View Flat View Tree View
Threads [ Previous | Next ]
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.

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.

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