I have configured a server for multiple JRun/ColdFusion MX 7 instances
like the following:

d:\servers\jrun01\cfusion-ear\cfusion-war
d:\servers\jrun02\cfusion-ear\cfusion-war
d:\servers\jrun03\cfusion-ear\cfusion-war

Each JRun/ColdFusion instances is assigned to a dedicated website
(using JRun4 Web Server JWS) like this:

http://www.site1.com
http://www.site2.com
http://www.site3.com

I have the context root for each JRun/ColdFusion-WAR instances
configured in the respective application.xml files like the following:

D:\servers\jrun01\cfusion-ear\META-INF\application.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE
Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/application_1_2.dtd";>
   <application id="Application_ID">
      <display-name>Macromedia ColdFusion MX</display-name>
      <description>Macromedia ColdFusion MX</description>
      <module id="WebModule_1">
         <web>
            <web-uri>cfusion-war</web-uri>
            <context-root>/</context-root>
         </web>
      </module>
   </application>

So the context root for each JRun/Coldfusion server is the root of the
JRun4 web server.

I am using the JRun Web Server (JWS) that comes with JRun/ColdFusion.
To configure virtual directories in the JWS, I edit the jrun-web.xml
file located in each respective JRun/ColdFusion instances as follows:

D:\servers\jrun01\cfusion-ear\cfusion-war\WEB-INF\jrun-web.xml

<virtual-mapping>
  <resource-path>/*</resource-path>
  <system-path>d:/websites/site1/www</system-path>
</virtual-mapping>

When I restart the JRun/ColdFusion instance which uses JWS for the web
server, I get the following error:

----- from the console:
D:\servers\bin>c:\jrun4\bin\jrun -config d:\servers\bin\jvm_jrun01.config
-start jrun01
Starting Macromedia JRun 4.0 (Build 92909), jrun01 server
05/17 17:57:07 info JRun Naming Service listening on *:2908
05/17 17:57:07 warning No sessionSecret has been specified in jrun.xml.
Installing a self generated sessionSecret.
05/17 17:57:08 info JRunDataSource bound to JNDI under name esdevfarcry01
05/17 17:57:08 info JRun DataSourceService: Created JDBC XA Connection Pool
named esdevfarcry01
05/17 17:57:08 info Bound a LinkRef from "DefaultDataSource" to the default
DataSource "esdevfarcry01"
05/17 17:57:08 info JRun Web Server listening on *:8308
05/17 17:57:08 info Deploying enterprise application "Macromedia ColdFusion
MX" from: file:/D:/servers/jrun01/cfusion-ea
r/
05/17 17:57:08 info Deploying web application "Macromedia Coldfusion MX"
from: file:/D:/servers/jrun01/cfusion-ear/
05/17 17:57:08 error Error loading class for Filter CFCacheFilter: Filter is
disabled.
java.lang.ClassNotFoundException: coldfusion.bootstrap.BootstrapFilter
       at
jrunx.util.JRunURLClassLoader.findClass(JRunURLClassLoader.java:161)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at
jrunx.util.JRunURLClassLoader.loadClass(JRunURLClassLoader.java:77)
       at
jrunx.util.JRunURLClassLoader.loadClass(JRunURLClassLoader.java:69)
       at jrun.servlet.FilterManager.loadFilter(FilterManager.java:184)
       at jrun.servlet.FilterManager.init(FilterManager.java:155)
       at jrun.servlet.FilterManager.create(FilterManager.java:74)
       at
jrun.servlet.WebApplicationService.start(WebApplicationService.java:223)
       at
jrun.ea.EnterpriseApplication.start(EnterpriseApplication.java:194)
       at
jrun.deployment.DeployerService.initModules(DeployerService.java:710)
       at
jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
       at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
       at
jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
       at jrun.deployment.DeployerService.run(DeployerService.java:891)
       at
jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
       at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
       at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
       at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
       at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

05/17 17:57:08 user JSPServlet: init
05/17 17:57:09 info coldfusion.bootstrap.BootstrapServlet
05/17 17:57:09 error Could not pre-load servlet: CFMxmlServlet
05/17 17:57:09 info coldfusion.bootstrap.BootstrapServlet
05/17 17:57:09 error Could not pre-load servlet: ColdFusionStartUpServlet
05/17 17:57:09 info coldfusion.bootstrap.BootstrapServlet
05/17 17:57:09 error Could not pre-load servlet: CfmServlet
05/17 17:57:09 info coldfusion.bootstrap.BootstrapServlet
05/17 17:57:09 error Could not pre-load servlet: CFSwfServlet
05/17 17:57:09 info coldfusion.bootstrap.BootstrapServlet
05/17 17:57:09 error Could not pre-load servlet: CFCServlet
05/17 17:57:09 info coldfusion.bootstrap.BootstrapServlet
05/17 17:57:09 error Could not pre-load servlet: FlashGateway
05/17 17:57:09 info coldfusion.bootstrap.BootstrapServlet
05/17 17:57:09 error Could not pre-load servlet: CFFormGateway
05/17 17:57:09 info coldfusion.bootstrap.BootstrapServlet
05/17 17:57:09 error Could not pre-load servlet: CFInternalServlet
05/17 17:57:09 info Deploying enterprise application "JRun 4.0 Internal J2EE
Components" from: file:/C:/JRun4/lib/jrun-c
omp.ear
05/17 17:57:09 info Deploying EJB "JRunSQLInvoker" from:
file:/C:/JRun4/lib/jrun-comp.ear
Server jrun01 ready (startup time: 6 seconds)

I believe the problem is related to a conflict between what the
context root definition in application.xml for JRun and the virtual
mapping of root in jrun-web.xml for the JWS.

Are there any ideas how I can have multiple JRun/ColdFusion MX 7
instances with a context root of \ pointing to:
d:\servers\jrun01\cfusion-ear\cfusion-war

but have a JWS root mapping point to:
d:/websites/site1/www

-- 
Thanks,
Troy Simpson

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241991
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to