" /> WEB API - Genesys CTI User Forum

Author Topic: WEB API  (Read 7079 times)

Offline lekie

  • Jr. Member
  • **
  • Posts: 90
  • Karma: 0
WEB API
« on: April 20, 2009, 02:59:21 AM »
Advertisement
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

Offline elek

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Re: WEB API
« Reply #1 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.

Offline lekie

  • Jr. Member
  • **
  • Posts: 90
  • Karma: 0
Re: WEB API
« Reply #2 on: April 21, 2009, 12:32:08 PM »
I am using Tomcat

Thank you in advance,
Lekie

Offline idave

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: WEB API
« Reply #3 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.

Offline elek

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
Re: WEB API
« Reply #4 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?

Offline lekie

  • Jr. Member
  • **
  • Posts: 90
  • Karma: 0
Re: WEB API
« Reply #5 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

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: WEB API
« Reply #6 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.

Offline lekie

  • Jr. Member
  • **
  • Posts: 90
  • Karma: 0
Re: WEB API
« Reply #7 on: April 24, 2009, 12:00:55 PM »
JAVA_HOME=C:\Java\jdk1.5.0_17

I already point to jdk

Thank you,
Lekie

Offline Timur Karimov

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: WEB API
« Reply #8 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

Offline lekie

  • Jr. Member
  • **
  • Posts: 90
  • Karma: 0
Re: WEB API
« Reply #9 on: April 25, 2009, 01:21:43 PM »
I cannot find this file "catalina.properties" in KANA floder.


Thank you
Lekie

Offline lekie

  • Jr. Member
  • **
  • Posts: 90
  • Karma: 0
Re: WEB API
« Reply #10 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?

Offline lekie

  • Jr. Member
  • **
  • Posts: 90
  • Karma: 0
Re: WEB API
« Reply #11 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

Offline Timur Karimov

  • Sr. Member
  • ****
  • Posts: 415
  • Karma: 2
Re: WEB API
« Reply #12 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.