添加到在实例化JRun服务器上运行的ColdFusion类路径

时间:2021-10-12 18:29:57

I'm having some trouble getting my ColdFusion server classpath to recognize my custom Java jars. The classpath is not reading my jvm.config file correctly (I assume out of my JRun server which is where the CF instance is running out of, it's a production server with multiple sites attached). I have been banging my head against the wall for hours on this. All the other sites I have run perfectly with these jar files. One of them is basically a clone of this one, but for some reason this one won't recognize just this one part. The rest of the site works fine but when it tries to access this jar (it's an image resizer) it cannot find it and when I looked in the CF admin the classpath does not show the path (at all) for the java directory like all the other sites.

我在使用ColdFusion服务器类路径识别自定义Java jar时遇到了一些麻烦。类路径没有正确读取我的jvm.config文件(我假设我的JRun服务器是CF实例耗尽的地方,它是一个连接了多个站点的生产服务器)。我一直在墙上撞了几个小时。我用这些jar文件完美运行的所有其他站点。其中一个基本上是这个的克隆,但由于某种原因,这个人不会只认识这一部分。该网站的其余部分工作正常,但当它试图访问这个jar(它是一个图像调整器)时,它无法找到它,当我查看CF管理员时,类路径不显示java目录的路径(根本)其他网站。

There also isn't a service associated with this site (well, there is a running service that appears on the JRun manager, but not in the services listing in windows). When I added one manually and attempted to start it, it said it was already running. I've restarted the ColdFusion server but to no avail. Should I restart the JRun server? (it will take down production sites) What can I do here to get this piece working?

也没有与此站点关联的服务(嗯,JRun管理器上有一个正在运行的服务,但在Windows中的服务列表中没有)。当我手动添加一个并尝试启动它时,它表示它已经在运行。我重新启动了ColdFusion服务器,但无济于事。我应该重启JRun服务器吗? (它将取消生产现场)我可以在这做什么才能使这件作品正常工作?

UPDATE: 9 October 2008 Ok, in order to remove the crappy old services that were sticking and not working I had to reboot the server, even manual removal didn't work. So now I have a good server instance of ColdFusion running BUT the Java custom classes are still not being read into the CF instance. I think I have to write a custom jvm.config file for that ColdFusion server instance, my question now is, do I have to restart JRun or can I just do that server instance?

更新:2008年10月9日好的,为了删除那些坚持不工作的旧服务我不得不重新启动服务器,甚至手动删除都不起作用。所以现在我有一个很好的ColdFusion服务器实例运行但是Java自定义类仍然没有被读入CF实例。我想我必须为该ColdFusion服务器实例编写一个自定义的jvm.config文件,我现在的问题是,我是否必须重新启动JRun,或者我可以只执行该服务器实例?

1 个解决方案

#1


1  

I've answered my own question eventually, here it is:

我最终回答了我自己的问题,这里是:

In console, you have to INSTALL the service manually with the following line:

在控制台中,您必须使用以下行手动安装服务:

jrunsvc -install jrun_server service-name service-display service-description -config custom_jvm.config

jrunsvc -install jrun_server service-name service-display service-description -config custom_jvm.config

"jrun_server" is actually the instance you are installing on. So if it's say production_02, that's the name of the jrun instance you install to. The service name, display and description are all fluff that you can fill in yourself. There are many config files to find on the internet as well if you need help writing your own.

“jrun_server”实际上是您要安装的实例。所以,如果说是production_02,那就是你安装的jrun实例的名称。服务名称,显示和描述都是您可以自己填写的绒毛。如果您需要自己的帮助,还可以在互联网上找到许多配置文件。

#1


1  

I've answered my own question eventually, here it is:

我最终回答了我自己的问题,这里是:

In console, you have to INSTALL the service manually with the following line:

在控制台中,您必须使用以下行手动安装服务:

jrunsvc -install jrun_server service-name service-display service-description -config custom_jvm.config

jrunsvc -install jrun_server service-name service-display service-description -config custom_jvm.config

"jrun_server" is actually the instance you are installing on. So if it's say production_02, that's the name of the jrun instance you install to. The service name, display and description are all fluff that you can fill in yourself. There are many config files to find on the internet as well if you need help writing your own.

“jrun_server”实际上是您要安装的实例。所以,如果说是production_02,那就是你安装的jrun实例的名称。服务名称,显示和描述都是您可以自己填写的绒毛。如果您需要自己的帮助,还可以在互联网上找到许多配置文件。