Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: kevinwang on February 24, 2011, 03:13:25 PM

Title: How to make a composer project to become a java related project?
Post by: kevinwang on February 24, 2011, 03:13:25 PM
Hi, Friend,

I tried to develop a backend jsp block in a composer project.
However, my jsp code can not be recognized as a java related code,
that means it will not be compiled automatically, it's very hard to debug.
Is there anything I can do to make my composer project become a automatic compiled java related project?

Thanks in advance.

Kevin
Title: Re: How to make a composer project to become a java related project?
Post by: kevinwang on February 24, 2011, 03:23:36 PM
another thing is if I add a external jar into this composer project, which directory should I put it in?

/include? /WEB-INF/lib ?  /src ?
Title: Re: How to make a composer project to become a java related project?
Post by: kevinwang on February 24, 2011, 03:36:34 PM
[quote author=kevinwang link=topic=6203.msg27009#msg27009 date=1298561016]
another thing is if I add a external jar into this composer project, which directory should I put it in?

/include? /WEB-INF/lib ?  /src ?
[/quote]

myabe it should be put into tomcat's lib directory,  I found json.jar there.
Title: Re: How to make a composer project to become a java related project?
Post by: René on February 25, 2011, 09:07:55 AM
Hi Kevin,

You can find the answer in Composer's help:

[quote]If any custom backend logic pages use libraries, place the libraries in the Java Composer Project’s WEB-INF/lib directory. This directory typically contains JAR files that contain Java class files (and associated resources) required for the application. Note: The Tomcat application server should be restarted after changing any JAR files in this folder.[/quote]
R.
Title: Re: How to make a composer project to become a java related project?
Post by: kevinwang on March 02, 2011, 03:49:51 PM
[quote author=René link=topic=6203.msg27019#msg27019 date=1298624875]
Hi Kevin,

You can find the answer in Composer's help:

[quote]If any custom backend logic pages use libraries, place the libraries in the Java Composer Project’s WEB-INF/lib directory. This directory typically contains JAR files that contain Java class files (and associated resources) required for the application. Note: The Tomcat application server should be restarted after changing any JAR files in this folder.[/quote]
R.
[/quote]

Thank you, René.
I haven't got a chance to put it in to composer project/WEB-INF/lib directory, At least, it works in tomcat's common lib directory, since I found json.jar there.
However, it must be better to put jar into directory only related to project.