cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
569
Views
0
Helpful
4
Replies
Highlighted

CVP Common library

Hi,

I'm facing an issue for couple of days with common library. All of my CVP application are using a common library (a jar file with all of my custom element).

It works when I put my "custom element" jar file into each application under java/application/lib and all of "util" jar files (like log4j, custom jar to connect to backend, ...) under java/util/lib.

And my problem is when I move my libraries into common libraries.

So, I try :

1) to move the contents of java/application/lib and java/util/lib under CVP_HOME\VXMLServer\common and I have problem with NoClassDefFoundError when I deploy or update an application 

2) to move the contents of java/application/lib under CVP_HOME\VXMLServer\common and java/util/lib under CVP_HOME\VXMLServer\Tomcat\common\lib. I can deploy / upadte my applications (and upadte commonclasses) but the error NoClassDefFoundError appears when I try to call the application.

Thanks in advance.

Olivier

 

 

 

4 REPLIES 4
Highlighted
Collaborator

did you try restarting VXML server after putting you Custom element files in VXML common lib?

also did you try putting individual jars in tomacat lib? some jars you have put in there e.g sqljdbc,jar etc.

 

are you also moving your custom element to VXML common lib?

Highlighted

Hi Chintan,

I tried to restart VXML Server (that's also the only way to see what classes is missing when I deploy a application)

When you said "putting indicidual jars in a tomcat lib", that's what I mentionned in my point 2.

 

 

Highlighted

Ok, This is what i do:

my all custom elements (if classes) goes under VXML\common\classes

my all custom elements (if jars) goes under VXML\common\lib

 

i also make sure that framework.jar and servlet-api.jar is listed under VXML\common\lib or Tomcat\common\lib

 

all general purpose jars i put under Tomcat\common\lib

Restart the VXML server.

 

Could please post logs from the VXML server , and i will see if i can help you with that.

 

regards

Chintan

 

Highlighted

We are close from the solution ... probably a tomcat configuration issue

I have this configuration :

- my custom element goes under VXML\common\lib

- my util libraries goes under Tomcat\common\lib

I can deploy my applications and update common classes.

When I call CVP, i heard the CVP error message. In my application error log (see below), i see that a configuration parameter (confDir) is missing. This parameter is set in the web.xml file (JNDI context under C:\Cisco\CVP\VXMLServer\Tomcat\conf)   :

<env-entry>

                <env-entry-name>confDir</env-entry-name>

                <env-entry-type>java.lang.String</env-entry-type>

                <env-entry-value>C:\Cisco\CVP\VXMLServer\conf</env-entry-value>

</env-entry>

 

 

Here is the log :

 

22.174.222.15.1432825155387.0.C_Prompt,05/28/2015 16:59:15.418,A custom element encountered an exception. The error was: java.lang.ExceptionInInitializerError

java.lang.ExceptionInInitializerError

                at com.cetelem.lib.util.log.LogConfig.lookupFile(LogConfig.java:129)

                at com.cetelem.lib.util.log.LogConfig.findLog4jFile(LogConfig.java:114)

                at com.cetelem.lib.util.log.LogConfig.configure(LogConfig.java:37)

                at fr.cetelem.svicisco.util.SviUtilInternal.<clinit>(SviUtilInternal.java:31)

                at fr.cetelem.svicisco.util.SviUtil.setLogDebug(SviUtil.java:29)

                at fr.cetelem.svicisco.localelement.util.SviUtilInterface.doAction(SviUtilInterface.java:131)

                at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:387)

                at com.audium.server.controller.Controller.goToAction(Controller.java:2911)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2643)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.enterVoiceApplication(Controller.java:1163)

                at com.audium.server.controller.Controller.newCall(Controller.java:1099)

                at com.audium.server.controller.Controller.doPost(Controller.java:552)

                at com.audium.server.controller.Controller.doGet(Controller.java:388)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)

                at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

                at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

                at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

                at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)

                at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.RuntimeException: le répertoire conf n'existe pas

                at com.cetelem.lib.util.EnvParameters.findConfDir(EnvParameters.java:310)

                at com.cetelem.lib.util.EnvParameters.<clinit>(EnvParameters.java:56)

                ... 43 more

 

22.174.222.15.1432825155387.0.C_Prompt,05/28/2015 16:59:15.418, The error was: A custom element encountered an exception. The root cause was: java.lang.ExceptionInInitializerError

com.audium.server.AudiumException: A custom element encountered an exception.

                at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:413)

                at com.audium.server.controller.Controller.goToAction(Controller.java:2911)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2643)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.continueCall(Controller.java:2468)

                at com.audium.server.controller.Controller.goToElement(Controller.java:2694)

                at com.audium.server.controller.Controller.enterVoiceApplication(Controller.java:1163)

                at com.audium.server.controller.Controller.newCall(Controller.java:1099)

                at com.audium.server.controller.Controller.doPost(Controller.java:552)

                at com.audium.server.controller.Controller.doGet(Controller.java:388)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)

                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)

                at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

                at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

                at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

                at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)

                at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.ExceptionInInitializerError

                at com.cetelem.lib.util.log.LogConfig.lookupFile(LogConfig.java:129)

                at com.cetelem.lib.util.log.LogConfig.findLog4jFile(LogConfig.java:114)

                at com.cetelem.lib.util.log.LogConfig.configure(LogConfig.java:37)

                at fr.cetelem.svicisco.util.SviUtilInternal.<clinit>(SviUtilInternal.java:31)

                at fr.cetelem.svicisco.util.SviUtil.setLogDebug(SviUtil.java:29)

                at fr.cetelem.svicisco.localelement.util.SviUtilInterface.doAction(SviUtilInterface.java:131)

                at com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase.java:387)

                ... 36 more

Caused by: java.lang.RuntimeException: le répertoire conf n'existe pas

                at com.cetelem.lib.util.EnvParameters.findConfDir(EnvParameters.java:310)

                at com.cetelem.lib.util.EnvParameters.<clinit>(EnvParameters.java:56)

                ... 43 more