How to install custom Java class for ColdFusion 10

只愿长相守 提交于 2019-11-28 04:58:13

问题


We have just deployed CF 10 onto some new servers.

I'm trying to follow this process, which we had working without any issues on CF8. However I'm not sure how things are structured in CF10.

Our directory path in CF 10 appears as:

Coldfusion10\
   cfusion
   jre
   ininstall

Do all the additional Java classes get installed into jre?


回答1:


The only difference in CF10 is there is an extra directory layer between the {install root} and {web root}. ie

          coldfusion8\wwwroot
          coldfusion10\cfusion\wwwroot 

However, it does not change the rules about class loading. Jars can be placed anywhere, as long as they are accessible to the CF service, and the directory is in CF class path, or the default jvm class path.

There are several directories in the default class path that CF checks automatically, such as {cf_webroot}\web-inf\lib. The simplest option is to place them in that directory. Then CF will pick them up automatically, no need to muck with the class path settings. Just drop your jars in that folder, restart the CF service, and you are good to go.



来源:https://stackoverflow.com/questions/18478575/how-to-install-custom-java-class-for-coldfusion-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!