« Back to General Discussion - All Versions

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.