久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在多服務器 Adob??e Coldfusion 9 中為特定實例添加

Adding to ColdFusion Classpath for Particular Instance in Multi-Server Adobe Coldfusion 9(在多服務器 Adob??e Coldfusion 9 中為特定實例添加到 ColdFusion 類路徑)
本文介紹了在多服務器 Adob??e Coldfusion 9 中為特定實例添加到 ColdFusion 類路徑的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

Adobe ColdFusion 9 Multi-Server 在 CF Admin 中沒有JVM 和 Java 設置"頁面,因此要向 CF 類路徑添加一些內容,對于給定實例,該實例必須使用備用 jvm 啟動.配置.

Adobe ColdFusion 9 Multi-Server doesn't have the "JVM and Java Settings" page in the CF Admin, so to add something to the CF classpath, for a given instance, that instance must be started with an alternate jvm.config.

從備用 jvm.config 開始我沒有問題.但是,我確實準確地知道如何以正確的方式編輯該文件.

I don't have a problem with starting with an alternate jvm.config. I do, however, have a problem knowing precisely how to edit that file in the proper way.

我的庫存 jvm.config 看起來像這樣(忽略換行符——它們不在實際文件中):

My stock jvm.config looks like this (ignore line breaks--they are not in the actual file):

java.args=-server -Xmx512m -Dcoldfusion.sessioncookie.httponly=true -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Xbatch -Djava.awt.headless=true
-Dcoldfusion.rootDir={application.home}/
-Djava.security.policy={application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/coldfusion.policy
-Djava.security.auth.policy={application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/neo_jaas.policy

我嘗試將類文件夾添加到類路徑中的一個比較成功的嘗試如下所示.(這里只是一對.)

One of my more successful* attempts at adding a folder of classes to the classpath looks like this. (Here are just a couple.)

java.args=-server -Xmx512m -Dcoldfusion.sessioncookie.httponly=true -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Xbatch -Djava.awt.headless=true
-Dcoldfusion.rootDir={application.home}/
-Djava.security.policy={application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/coldfusion.policy
-Djava.security.auth.policy={application.home}/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/neo_jaas.policy
-Dcoldfusion.classPath={application.home}/servers/hud/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib,/var/www/apps/onecpd/GeoServices_sandbox

*我說我更成功的嘗試之一"是因為實例確實啟動了,并且這些類在 CF 類路徑上[我可以使用 createObject() 實例化它們],但是實例啟動并不干凈——有許多與 Flex 相關的錯誤:

*I say "one of my more successful attempts" because the instance does start, and those classes are on the CF classpath [I can instantiate them with createObject()], but the instance start is not clean--there are many Flex-related errors:

jamie@icf109118-ubuntu:/opt/jrun4/servers/hud/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib$ sudo /opt/jrun4/bin/jrun -config /opt/jrun4/bin/jvm_onecpd.config start onecpd
Starting Macromedia JRun 4.0 (Build 108858), onecpd server
03/19 11:37:34 info JRun Naming Service listening on *:2911
03/19 11:37:35 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
03/19 11:37:35 info JRun Web Server listening on *:8303
03/19 11:37:35 info JRun Proxy Server listening on *:51003
03/19 11:37:35 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/opt/jrun4/lib/jrun-comp.ear
03/19 11:37:35 info Deploying EJB "JRunSQLInvoker" from: file:/opt/jrun4/lib/jrun-comp.ear
Server onecpd ready (startup time: 2 seconds)
03/19 11:37:35 info Deploying enterprise application "cfusion" from: file:/opt/jrun4/servers/onecpd/cfusion.ear/
03/19 11:37:36 info Deploying web application "cfusion" from: file:/opt/jrun4/servers/onecpd/cfusion.ear/
java.lang.ClassNotFoundException: flex.server.j2ee.cache.CacheFilter
    at coldfusion.bootstrap.BootstrapClassLoader.loadClass(BootstrapClassLoader.java:235)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at coldfusion.bootstrap.ClassloaderHelper.initFilterClass(ClassloaderHelper.java:123)
    at coldfusion.bootstrap.BootstrapFilter.init(BootstrapFilter.java:34)
    at jrun.servlet.FilterObject.init(FilterObject.java:63)
    at jrun.servlet.FilterManager.loadFilter(FilterManager.java:220)
    at jrun.servlet.FilterManager.init(FilterManager.java:158)
    at jrun.servlet.FilterManager.create(FilterManager.java:75)
    at jrun.servlet.WebApplicationService.start(WebApplicationService.java:230)
    at jrun.ea.EnterpriseApplication.start(EnterpriseApplication.java:194)
    at jrun.deployment.DeployerService.initModules(DeployerService.java:708)
    at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:243)
    at jrun.deployment.DeployerService.deploy(DeployerService.java:428)
    at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
    at jrun.deployment.DeployerService.run(DeployerService.java:889)
    at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
03/19 11:37:36 user failed to load: flex.server.j2ee.cache.CacheFilter
03/19 11:37:36 error Error loading class for Filter CFCacheFilter: Filter is disabled.
[1]java.lang.ClassNotFoundException: flex.server.j2ee.cache.CacheFilter
    at coldfusion.bootstrap.BootstrapClassLoader.loadClass(BootstrapClassLoader.java:235)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at coldfusion.bootstrap.ClassloaderHelper.initFilterClass(ClassloaderHelper.java:123)
    at coldfusion.bootstrap.BootstrapFilter.init(BootstrapFilter.java:34)
    at jrun.servlet.FilterObject.init(FilterObject.java:63)
    at jrun.servlet.FilterManager.loadFilter(FilterManager.java:220)
    at jrun.servlet.FilterManager.init(FilterManager.java:158)
    at jrun.servlet.FilterManager.create(FilterManager.java:75)
    at jrun.servlet.WebApplicationService.start(WebApplicationService.java:230)
    at jrun.ea.EnterpriseApplication.start(EnterpriseApplication.java:194)
    at jrun.deployment.DeployerService.initModules(DeployerService.java:708)
    at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:243)
    at jrun.deployment.DeployerService.deploy(DeployerService.java:428)
    at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
    at jrun.deployment.DeployerService.run(DeployerService.java:889)
    at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0]javax.servlet.ServletException: flex.server.j2ee.cache.CacheFilter
    at coldfusion.bootstrap.ClassloaderHelper.initFilterClass(ClassloaderHelper.java:132)
    at coldfusion.bootstrap.BootstrapFilter.init(BootstrapFilter.java:34)
    at jrun.servlet.FilterObject.init(FilterObject.java:63)
    at jrun.servlet.FilterManager.loadFilter(FilterManager.java:220)
    at jrun.servlet.FilterManager.init(FilterManager.java:158)
    at jrun.servlet.FilterManager.create(FilterManager.java:75)
    at jrun.servlet.WebApplicationService.start(WebApplicationService.java:230)
    at jrun.ea.EnterpriseApplication.start(EnterpriseApplication.java:194)
    at jrun.deployment.DeployerService.initModules(DeployerService.java:708)
    at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:243)
    at jrun.deployment.DeployerService.deploy(DeployerService.java:428)
    at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
    at jrun.deployment.DeployerService.run(DeployerService.java:889)
    at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

請注意,如果不將 {application.home}/servers/hud/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib 添加到 Dcoldfusion.classPath,服務器根本不會真正啟動.

Note that without adding {application.home}/servers/hud/cfusion.ear/cfusion.war/WEB-INF/cfusion/lib to Dcoldfusion.classPath, as well, the server wouldn't really start at all.

那么,在 jvm.config 中干凈地向 ColdFusion 類路徑添加內容的神奇公式是什么?

So, what is the magic formula for cleanly adding something to the ColdFusion classpath in jvm.config?

推薦答案

來自 Christian Cantrell - 工程經理和傳播者,我給你 ColdFusion 類路徑權威指南(雖然有點過時了)

From Christian Cantrell - Engineering Manager and Evangelist, I give you The Definitive Guide to the ColdFusion Classpath (although it is a bit dated)

以下是我認為與您的設置相關的部分摘錄:

Here is an excerpt of the portion that I think relates to your setup:

J2EE 部署

  1. 將類或 jar 文件添加到類路徑的最簡單方法是簡單地將它們放到 lib 目錄中,它們會自動被拾取.該目錄位于 {cf_installation}/servers/lib.這些類文件將可供所有服務器使用.

  1. The easiest way to add class or jar files to your class path is to simply drop them in the lib directory where they are automatically picked up. The directory is located at {cf_installation}/servers/lib. These class files will be available to all servers.

您還可以通過將類文件放到{cf_installation}/servers/default/cfmx/WEB-INF/lib"中,使它們僅對 ColdFusion 服務器可用.(請注意,將它們放入 {cf_installation}/servers/default/cfmx/WEB-INF/cfusion/lib 將不起作用.)

You can also make your class files available only to the ColdFusion server by dropping them in "{cf_installation}/servers/default/cfmx/WEB-INF/lib". (Note that putting them in {cf_installation}/servers/default/cfmx/WEB-INF/cfusion/lib will NOT work.)

您可以將它們放在任何 Java 擴展目錄中.要查找 Java 擴展目錄列表,請打開 ColdFusion 管理員并單擊系統信息".在底部,您將看到一個名為Java Ext Dirs"的系統屬性.您可以將 jar 和 class 文件放在任何這些目錄中,以讓 ColdFusion 服務器獲取它們.

You can drop them in any of the Java extension directories. To find a list of the Java extension directories, open the ColdFusion administrator and click on "System Information". Toward the bottom, you will see a system property called "Java Ext Dirs". You can put jar and class files in any of those directories to have them picked up by the ColdFusion server.

另一種方法是通過 JRun 管理控制臺添加類.打開控制臺,在默認服務器下,單擊設置,然后將您的類添加到類路徑列表中.(注意您也可以點擊默認服務器下的ColdFusion MX 應用程序",然后點擊設置進行相同的更改.)

Another way to do it is to add classes through the JRun Management Console. Open up the console, and under the default server, click on settings, then add your classes to the class path list. (Note you can also click on "ColdFusion MX application" under the default server, then click on settings to make the same changes.)

最后,再一次,您可以自己編輯 jvm.config 文件,不過,我還是建議您堅持使用上述方法之一.

And finally, once again, you can edit the jvm.config file yourself, however again, I recommend you stick to using one of the methods above.

以下評論的更新

編輯 jvm.config 文件時(選項 5),嘗試將目錄路徑添加到 jvm.config 文件中的 java.class.path= 行(在底部).不像您在發布的示例中所做的那樣在 java.args= 中.

When editing the jvm.config file (option 5), try adding the directory path to the java.class.path= line in the jvm.config file (at the bottom). Not in the java.args= as you have done in the posted example.

這篇關于在多服務器 Adob??e Coldfusion 9 中為特定實例添加到 ColdFusion 類路徑的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環繞文本?)
MyBatis, how to get the auto generated key of an insert? [MySql](MyBatis,如何獲取插入的自動生成密鑰?[MySql])
Inserting to Oracle Nested Table in Java(在 Java 中插入 Oracle 嵌套表)
Java: How to insert CLOB into oracle database(Java:如何將 CLOB 插入 oracle 數據庫)
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: 色在线免费视频 | 亚洲欧美久久 | 欧美视频第二页 | 国产精品91视频 | 青青久在线视频 | 激情久久av一区av二区av三区 | 国产精品资源在线 | 欧美视频免费 | 国产999精品久久久 午夜天堂精品久久久久 | 日韩不卡一区二区三区 | h视频免费在线观看 | 日韩一区中文字幕 | 亚洲性视频 | 日韩毛片在线视频 | 亚洲欧洲精品成人久久奇米网 | 欧美黄页 | 色久伊人| 日本精品一区二区三区在线观看视频 | 日韩一区二区三区在线观看 | 高清成人免费视频 | 精品视频在线免费观看 | 自拍偷拍亚洲欧美 | www.国产精 | 久久lu| 久久精品免费观看 | 99pao成人国产永久免费视频 | av在线播放不卡 | 亚洲国产精品久久久 | 欧美一区二区在线播放 | 日韩欧美亚洲综合 | 五月精品视频 | cao在线 | 国产精品资源在线 | 91精品一区二区三区久久久久久 | 97精品一区二区 | 国产ts人妖另类 | 国产在线观看不卡一区二区三区 | 91不卡 | 国产精品久久久久久久久久东京 | av久久| 欧美一区二区在线 |