cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
460
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Pietro Angelo Corrao on 02-09-2013 03:54:32 AM
Hi Everybody,

In my CVP prj i use some APIs that implement the common logging patter to make log/debug the classes, where should i put the logging.properties file to set up the common logging behaviour both under the Cisco Unified call studio and under the CVP/VXML server? or which script have i to edit to setup the jvmargs for the CVP processes?

Thanks,


Subject: RE: CVP - Apache Common Logging Configuration
Replied by: Janine Graves on 02-09-2013 09:47:42 AM
Pietro Angelo Corrao:
Hi Everybody,

In my CVP prj i use some APIs that implement the common logging patter to make log/debug the classes, where should i put the logging.properties file to set up the common logging behaviour both under the Cisco Unified call studio and under the CVP/VXML server? or which script have i to edit to setup the jvmargs for the CVP processes?

Thanks,
1. If your classes interact directly with the CVP API  then they must go either into:

1A. (App specific) VxmlServer:C:\Cisco\CVP\VXMLServer\applications\MyApp\java\application\lib (or classes)
or
1B. (All of VxmlServer): C:\Cisco\CVP\VXMLServer\common\lib (or classes)

2. If they don't use the CVP API, then they will go into one of these directories (and it's just trial and error (restart VxmlServer service after each try)
2A) (App specific) C:\Cisco\CVP\VXMLServer\applications\MyApp\java\util\lib (or classes)
or
2  (All of VxmlServer)  Either  C:\Cisco\CVP\VXMLServer\lib  or  C:\Cisco\CVP\VXMLServer\Tomcat\common\lib (or classes)


3. To use with the Debugger, in the above just replace
3A) C:\Cisco\CVP\VXMLServer
with
C:\Cisco\CallStudio\eclipse\plugins\com.audiumcorp.studio.debug.runtime_9.0.1-SNAPSHOT\AUDIUM_HOME

3 C:\Cisco\CVP\VXMLServer\Tomcat
with
C:\Cisco\CallStudio\eclipse\plugins\com.audiumcorp.studio.debug.runtime_9.0.1-SNAPSHOT\CATALINA_HOME

--Janine

Subject: RE: CVP - Apache Common Logging Configuration
Replied by: Pietro Angelo Corrao on 02-09-2013 11:41:04 AM
Janine Graves:
Pietro Angelo Corrao:
Hi Everybody,

In my CVP prj i use some APIs that implement the common logging patter to make log/debug the classes, where should i put the logging.properties file to set up the common logging behaviour both under the Cisco Unified call studio and under the CVP/VXML server? or which script have i to edit to setup the jvmargs for the CVP processes?

Thanks,
1. If your classes interact directly with the CVP API  then they must go either into:

1A. (App specific) VxmlServer:C:\Cisco\CVP\VXMLServer\applications\MyApp\java\application\lib (or classes)
or
1B. (All of VxmlServer): C:\Cisco\CVP\VXMLServer\common\lib (or classes)

2. If they don't use the CVP API, then they will go into one of these directories (and it's just trial and error (restart VxmlServer service after each try)
2A) (App specific) C:\Cisco\CVP\VXMLServer\applications\MyApp\java\util\lib (or classes)
or
2  (All of VxmlServer)  Either  C:\Cisco\CVP\VXMLServer\lib  or  C:\Cisco\CVP\VXMLServer\Tomcat\common\lib (or classes)


3. To use with the Debugger, in the above just replace
3A) C:\Cisco\CVP\VXMLServer
with
C:\Cisco\CallStudio\eclipse\plugins\com.audiumcorp.studio.debug.runtime_9.0.1-SNAPSHOT\AUDIUM_HOME

3 C:\Cisco\CVP\VXMLServer\Tomcat
with
C:\Cisco\CallStudio\eclipse\plugins\com.audiumcorp.studio.debug.runtime_9.0.1-SNAPSHOT\CATALINA_HOME

--Janine

Thanks Janine for you answer,

My problem is not to manage the lib of the API but to manage the configuration. Just to be much more detailed we are using Apache CXF to generate WS clients and log4j as application logging framework but CXF use Apache Common Logging API so i have two solutions:
  1. To configure the common logging property files (logging.properties) and configure the jvmargs -Djava.util.logging.config.file
  2. To switch CXF to instead use Log4J, this is possible to do in two ways:
  • Add the following system property to the classpath from which CXF is initialized:
        -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger
  • Add the file META-INF/cxf/org.apache.cxf.Logger to the classpath and make sure it contains the following content:
       org.apache.cxf.common.logging.Log4jLogger

My problem is that, in the CVP context, i don't know where to setup the jvm properties or where to create the dir. and the file 
META-INF/cxf/org.apache.cxf.Logger.

thanks,

Pietro
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