" /> How to make a composer project to become a java related project? - Genesys CTI User Forum

Author Topic: How to make a composer project to become a java related project?  (Read 4987 times)

Offline kevinwang

  • Full Member
  • ***
  • Posts: 159
  • Karma: 0
How to make a composer project to become a java related project?
« on: February 24, 2011, 03:13:25 PM »
Advertisement
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

Offline kevinwang

  • Full Member
  • ***
  • Posts: 159
  • Karma: 0
Re: How to make a composer project to become a java related project?
« Reply #1 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 ?

Offline kevinwang

  • Full Member
  • ***
  • Posts: 159
  • Karma: 0
Re: How to make a composer project to become a java related project?
« Reply #2 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.

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: How to make a composer project to become a java related project?
« Reply #3 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.

Offline kevinwang

  • Full Member
  • ***
  • Posts: 159
  • Karma: 0
Re: How to make a composer project to become a java related project?
« Reply #4 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.