Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: lekie on April 20, 2009, 02:59:21 AM

Title: WEB API
Post by: lekie on April 20, 2009, 02:59:21 AM
Dear All,

  When I go to this web site to test my WEBAPI http://<webserver>/TestTool75
So, I got this an error "You are not authorized to view this page" have someone face this issue before?


Thank you in advance,
Lekie
Title: Re: WEB API
Post by: elek on April 20, 2009, 07:13:16 AM
Hi Lekie,
I deployed Multimedia 7.6 some while ago and everything went quite smoothly. I used tomcat to host a webapi server and Apache as a web server.
Frankly speaking it's hard for me to say what the problem in your case, but i would propose you to start from checking the security \ permission settings. Have you checked security settings \ permissions for the web server, TestTool75 web site \ corresponding directory on the file system? is your account \ computer your accessing the site from allowed to access it?
Should everything appears to be ok, check whether you can access other (not mapped to the tomcat) sites on this web server and the applications directly on the tomcat.
Also let us know what webserver are you using (i assume application server is a tomcat).
Regards,
K.
Title: Re: WEB API
Post by: lekie on April 21, 2009, 12:32:08 PM
I am using Tomcat

Thank you in advance,
Lekie
Title: Re: WEB API
Post by: idave on April 22, 2009, 05:08:26 AM
You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file will contain the credentials to let you use this webapp.
Title: Re: WEB API
Post by: elek on April 23, 2009, 08:26:16 AM
Hi lekie,
have you checked all the things mentioned above and conducted tests? What were the results?
And re TOmcat - did you mean you don't use Web server at all in your multimedia deployment?
Title: Re: WEB API
Post by: lekie on April 24, 2009, 05:09:26 AM
Right now I can go to webpage by http://<webserverhost>:8080/TestTool75 or http://<webserverhost>/WebAPISamples75 but when i click on the link for example chat.jsp the error is shown "unable to compile class for JSP".

what does it mean this error??


Thank you in advance,
Lekie
Title: Re: WEB API
Post by: René on April 24, 2009, 09:02:18 AM
Hi Lekie,

Tomcat requires Java Software Development Kit (JDK) as it compiles JSP pages on fly. I assume you have JRE (Java Runtime Environment) so Tomcat raises an error as JRE doesn't contain Java compiler.

If you have JDK installed then check JAVA_HOME environment variable - that should point to JDK not to JRE.

R.
Title: Re: WEB API
Post by: lekie on April 24, 2009, 12:00:55 PM
JAVA_HOME=C:\Java\jdk1.5.0_17

I already point to jdk

Thank you,
Lekie
Title: Re: WEB API
Post by: Timur Karimov on April 24, 2009, 12:14:30 PM
check the catalina.properties and log files - u may need add path to the MCR class library
Title: Re: WEB API
Post by: lekie on April 25, 2009, 01:21:43 PM
I cannot find this file "catalina.properties" in KANA floder.


Thank you
Lekie
Title: Re: WEB API
Post by: lekie on April 25, 2009, 01:25:11 PM
#########################################################
# Configuration for the /CONAV context starts.
#########################################################

/CONAV/FWS/*=ajp13FWS
/CONAV/IMG/*=ajp13IMG
/CONAV/*=ajp13

######################################################
# Configuration for the /CONAV context ends.
#######################################################

/TestTool75/*.jsp=ajp13
/WebAPISamples75/*.jsp=ajp13
/CompoundSample75/*.jsp=ajp13
/WebAPI75/*.jsp=ajp13


do you mean this file?
Title: Re: WEB API
Post by: lekie on April 27, 2009, 03:15:41 AM
I've gotten this error form webpage

"java.lang.NoCalssDefFoundError: Genesys/webapi/confserv/ChangeListner"

What does it mean and where can i get it?


Best regards,
Lekie
Title: Re: WEB API
Post by: Timur Karimov on April 27, 2009, 02:18:20 PM
in u tomcat root folder, find config folder and catalina.properties file in there. open it and check the classloader path - common.loader, server.loader, shared.loader. it's mast consist the path to MCR class library.
and whether - spend same time to read the .... tomcat manuals or samething else about it.