如何为ColdFusion 10安装自定义Java类 [英] How to install custom Java class for ColdFusion 10

查看:74
本文介绍了如何为ColdFusion 10安装自定义Java类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们刚刚将CF 10部署到了一些新服务器上。

We have just deployed CF 10 onto some new servers.

我正在尝试遵循此过程,我们在CF8上一直没有遇到任何问题。但是我不确定CF10中的结构如何。

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.

我们在CF 10中的目录路径显示为:

Our directory path in CF 10 appears as:

Coldfusion10\
   cfusion
   jre
   ininstall

是否将所有其他Java类都安装到 jre 中?

Do all the additional Java classes get installed into jre?

推荐答案

CF10的唯一区别是{install root}和{web root}之间有一个额外的目录层。即

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 

但是,它不会改变有关类加载的规则。 Jar可以放置在任何地方,只要它们可供CF服务访问,并且目录位于CF类路径或默认的jvm类路径中。

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.

CF自动检查默认类路径中的几个目录,例如 {cf_webroot} \web-inf\lib 。最简单的选择是将它们放在该目录中。然后,CF会自动将其拾取,而无需考虑类路径设置。只需将jars放到该文件夹​​中,重新启动CF服务,就可以了。

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.

这篇关于如何为ColdFusion 10安装自定义Java类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆