Copy link to clipboard
Copied
Will <cfimage source="#myImage#" action="writeToBrowser"> work in a multiserver/distributed environment where the webserver is separated from the application server by a firewall with no file services between them?
Thank you.
Copy link to clipboard
Copied
Distributed is not a problem. Clustered may be a problem if you don't use sticky sessions.
Copy link to clipboard
Copied
Ok, well now I'm trying to install it...
Web Server and App server - brand new OS setups
VM ware both servers
Windows 2008 64bit
IIS 7 (with all the recommended changes: ISAPI extensions and IIS 6 compatibility settings)
IIS and Website set up in webserver.
Coldfusion 9 64 bit
Installing CF on app server - iis not installed on app server.
When I get to the point where it asks me to add a web server/site, the drop down does not show IIS - just Apache and Sun.
Needless to say, it won't let me go any further until I define a site.
I'm stumped.
Thanks for your help!
Copy link to clipboard
Copied
Copy wsconfig.* from your CF server to your webserver and run it there. Then when it prompts, supply the hostname from the CF server.
Copy link to clipboard
Copied
Say what?? I can't install CF so I can't copy anything, right?
Are you saying run CF on the webserver? Can't do that...
Copy link to clipboard
Copied
Install CF on the app server without connecting it to a web server, copy wsconfig to the webserver, run wsconfig from the webserver.
Copy link to clipboard
Copied
It won't let me finish an install without adding a web server.
Sorry about the duplicate. I noticed after I posted it that the original was for cfimage and I didn't expect to get my answer from that post. The other area was a better place to get the answer I needed. Not too happy to see it locked...
Copy link to clipboard
Copied
Sure it will let you finish. Just select te builtin webserver.
Copy link to clipboard
Copied
So this is the only way around this issue?
Copy link to clipboard
Copied
does it matter where I copy wsconfig.* to??
Copy link to clipboard
Copied
No. But it is a best practice to use the default paths. See http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSc3ff6d0ea77859461172e0811cdec18a15-7ffb.html#WSf01dbd23413dda0e325f619f11fae41e1b4-8000
Copy link to clipboard
Copied
I got past the installing C++ runtime on the webserver so that I could run wsconfig. Now am faced with it not connecting to jrun/coldfusion server when I put in the app server ip. I've done some searching and found most of these issues involving apache not IIS. Any ideas?
Thanks!
Copy link to clipboard
Copied
Try connecting manually to verify there are no firewalls blocking the traffic.
On the CF server, you have an admin console running on port 8300. So log on on the machine and go to http://localhost:8300/ Then log on to the administrator and check the prot numbers for all your instances (in the instance manager).
Then log on to the webserver and try to telnet to those ports from there. Does that work?
Copy link to clipboard
Copied
Telnet was not really providing me with the answers I was looking for - but I was able to bring up the
CF admin on the web server. Does that answer your question?
Thanks.
Copy link to clipboard
Copied
After I brought up the CF admin page in my brower on the webserver, I was able to find the app server in wsconfig.
Copy link to clipboard
Copied
So all is good now?
Copy link to clipboard
Copied
I wish...
When I try to bring up a cfm page I get
The service is unavailable.
Either the Macromedia application server(s) are unreachable or none of them has a mapping to process this request.
Copy link to clipboard
Copied
On your webserver, go to the appropriate subfolder under the wsconfig folder and in the .ini file enable verbose logging. Then shut down the webservice, remove the old log file and start the webservice and try again. If it still doesn't work, what does the logfile say?
Copy link to clipboard
Copied
Thanks so much for your help!
This is the log file - I replaced ip with 99.999:
2009-12-04 13:14:00 jrISAPI[init:2328] JRun 4.0 (Build 108795) JRun ISAPI Extension - Aug 28 2009 22:39:39
2009-12-04 13:14:00 jrISAPI[init:2328] Metrics is 0
2009-12-04 13:14:00 jrISAPI[init:2328] UseApiAlloc is 0
2009-12-04 13:14:00 jrISAPI[init:2328] BootStrap 99.999.78.97:51001
2009-12-04 13:14:00 jrISAPI[init:2328] serverstore D:/Jrun4/lib/wsconfig/1/jrunserver.store
2009-12-04 13:14:00 jrISAPI[init:2328] ignoresuffixmap 0
2009-12-04 13:14:00 jrISAPI[init:2328] Threads created: 25 - failed: 0
2009-12-04 13:14:00 jrISAPI[init:2328] JRun ISAPI Extension DLL Attaching
2009-12-04 13:14:00 jrISAPI[6800:2328] ***HttpExtensionProc for JRun ISAPI Extension: uri is "/viewlink/test.html"
2009-12-04 13:14:00 jrISAPI[6800:2328] trying to bootstrap from "99.999.78.97:51001"
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 initPool finished
2009-12-04 13:14:00 jrISAPI[6800:2328] initialized temp proxy for 99.999.78.97:51001
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97 jrConnect [656]
2009-12-04 13:14:00 jrISAPI[6800:2328] sent/avail/result 25/25/25
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 4/4/4
2009-12-04 13:14:00 jrISAPI[6800:2328] PROXY_GET_PROPS(clustered-servers) -> [656]
2009-12-04 13:14:00 jrISAPI[6800:2328] PROXY_PUT_PROPS <- [656]
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 4/4/4
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 125/125/125
2009-12-04 13:14:00 jrISAPI[6800:2328] clustered-servers: VLNKFCPWSIWEB01.sacmcm.adroot.bmogc.net_0=99.999.78.97:51001
VLNKFCPWSIWEB01.sacmcm.adroot.bmogc.net_1=0:0:0:0:0:0:0:1:51001
2009-12-04 13:14:00 jrISAPI[6800:2328] VLNKFCPWSIWEB01.sacmcm.adroot.bmogc.net_0 = 99.999.78.97:51001
2009-12-04 13:14:00 jrISAPI[6800:2328] VLNKFCPWSIWEB01.sacmcm.adroot.bmogc.net_1 = 0:0:0:0:0:0:0:1:51001
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 4/4/4
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 returned socket [656] to pool
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 initPool finished
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97 jrConnect [672]
2009-12-04 13:14:00 jrISAPI[6800:2328] sent/avail/result 20/20/20
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 4/4/4
2009-12-04 13:14:00 jrISAPI[6800:2328] PROXY_GET_PROPS(server-props) -> [672]
2009-12-04 13:14:00 jrISAPI[6800:2328] PROXY_PUT_PROPS <- [672]
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 4/4/4
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 66/66/66
2009-12-04 13:14:00 jrISAPI[6800:2328] algorithm = ROUNDROBIN
2009-12-04 13:14:00 jrISAPI[6800:2328] weight = 1
2009-12-04 13:14:00 jrISAPI[6800:2328] mapcheck = 10
2009-12-04 13:14:00 jrISAPI[6800:2328] sticky = true
2009-12-04 13:14:00 jrISAPI[6800:2328] rep_id = 0e30
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 4/4/4
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 returned socket [672] to pool
2009-12-04 13:14:00 jrISAPI[6800:2328] mapcheck interval in secs: 10
2009-12-04 13:14:00 jrISAPI[6800:2328] proxy retry interval in secs: 600
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 socket timeouts (c15/r300/s15) secs
2009-12-04 13:14:00 jrISAPI[6800:2328] installed ROUNDROBIN load balancing algorithm.
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 sticky sessions: true
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 replication Id: 0e30 .
2009-12-04 13:14:00 jrISAPI[6800:2328] refreshing mappings for 99.999.78.97:51001
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 pooled socket [672] returned
2009-12-04 13:14:00 jrISAPI[6800:2328] sent/avail/result 24/24/24
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 4/4/4
2009-12-04 13:14:00 jrISAPI[6800:2328] PROXY_GET_PROPS(servlet-mappings) -> [672]
2009-12-04 13:14:00 jrISAPI[6800:2328] PROXY_PUT_PROPS <- [672]
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 4/4/4
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 296/296/296
2009-12-04 13:14:00 jrISAPI[6800:2328] *.jst = jrun.jsp.JSTServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] *.jsp = jrun.jsp.JSPServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] /servlet/* = jrun.servlet.ServletInvoker
2009-12-04 13:14:00 jrISAPI[6800:2328] property =jmc-app.war has no value. skipping.
2009-12-04 13:14:00 jrISAPI[6800:2328] /server/* = jrunx.jmc.management.ServerCheckerServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] /services/* = org.apache.axis.transport.http.AxisServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] /JRunStatistics = jrun.jsp.JSPServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] *.jws = org.apache.axis.transport.http.AxisServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] read/len/total 4/4/4
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 returned socket [672] to pool
2009-12-04 13:14:00 jrISAPI[6800:2328] mapping converted from /servlet/* to /servlet*=jrun.servlet.ServletInvoker
2009-12-04 13:14:00 jrISAPI[6800:2328] mapping converted from /server/* to /server*=jrunx.jmc.management.ServerCheckerServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] mapping converted from /services/* to /services*=org.apache.axis.transport.http.AxisServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] installing new mappings for 99.999.78.97:51001 count: 7
2009-12-04 13:14:00 jrISAPI[6800:2328] old mappings count: 0
2009-12-04 13:14:00 jrISAPI[6800:2328] Mappings for 99.999.78.97:51001 will be refreshed every 10 seconds.
2009-12-04 13:14:00 jrISAPI[6800:2328] initialized proxy for 99.999.78.97:51001
2009-12-04 13:14:00 jrISAPI[6800:2328] addProxy - after
2009-12-04 13:14:00 jrISAPI[6800:2328] /jrunstatistics=jrun.jsp.JSPServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:00 jrISAPI[6800:2328] /services*=org.apache.axis.transport.http.AxisServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:00 jrISAPI[6800:2328] /servlet*=jrun.servlet.ServletInvoker
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:00 jrISAPI[6800:2328] /server*=jrunx.jmc.management.ServerCheckerServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:00 jrISAPI[6800:2328] *.jst=jrun.jsp.JSTServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:00 jrISAPI[6800:2328] *.jsp=jrun.jsp.JSPServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:00 jrISAPI[6800:2328] *.jws=org.apache.axis.transport.http.AxisServlet
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 added/activated proxy, seq 0
2009-12-04 13:14:00 jrISAPI[6800:2328] Error in performing name resolution and creating ADDRINFO The specified class was not found.
2009-12-04 13:14:00 jrISAPI[6800:2328] initProxy failed to initialize socket pool
2009-12-04 13:14:00 jrISAPI[6800:2328] could not initialize proxy for 0:0:0:0:0:0:0:1:51001
2009-12-04 13:14:00 jrISAPI[6800:2328] 0:0:0:0:0:0:0:1:51001 destroyed.
2009-12-04 13:14:00 jrISAPI[6800:2328] used proccess identity to open file D:/Jrun4/lib/wsconfig/1/jrunserver.store
2009-12-04 13:14:00 jrISAPI[6800:2328] persisted servers in D:/Jrun4/lib/wsconfig/1/jrunserver.store: proxyservers=
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 closing socket 656
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 destroying/closing socket [656] error 0
2009-12-04 13:14:00 jrISAPI[6800:2328] jrCloseSocket [656]
2009-12-04 13:14:00 jrISAPI[6800:2328] 99.999.78.97:51001 destroyed.
2009-12-04 13:14:00 jrISAPI[6800:2328] HTTP_HOST: 99.999.78.96
2009-12-04 13:14:00 jrISAPI[6800:2328] filtering /viewlink/test.html (/viewlink/test.html) HOST=99.999.78.96
2009-12-04 13:14:00 jrISAPI[6800:2328] filterRequest: no match
2009-12-04 13:14:00 jrISAPI[6800:2328] ExecUrl: request received: URL=/viewlink/test.html
2009-12-04 13:14:00 jrISAPI[6800:2328] ExecUrl Completion: 404, ErrorCode=2, URL=/viewlink/test.html.
2009-12-04 13:14:15 jrISAPI[9488:2328] ***HttpExtensionProc for JRun ISAPI Extension: uri is "/viewlink/index.cfm"
2009-12-04 13:14:15 jrISAPI[9488:2328] HTTP_HOST: 99.999.78.96
2009-12-04 13:14:15 jrISAPI[9488:2328] filtering /viewlink/index.cfm (/viewlink/index.cfm) HOST=99.999.78.96
2009-12-04 13:14:15 jrISAPI[9488:2328] refreshing mappings for 99.999.78.97:51001
2009-12-04 13:14:15 jrISAPI[9488:2328] 99.999.78.97:51001 pooled socket [672] returned
2009-12-04 13:14:15 jrISAPI[9488:2328] sent/avail/result 24/24/24
2009-12-04 13:14:15 jrISAPI[9488:2328] read/len/total 4/4/4
2009-12-04 13:14:15 jrISAPI[9488:2328] PROXY_GET_PROPS(servlet-mappings) -> [672]
2009-12-04 13:14:15 jrISAPI[9488:2328] PROXY_PUT_PROPS <- [672]
2009-12-04 13:14:15 jrISAPI[9488:2328] read/len/total 4/4/4
2009-12-04 13:14:15 jrISAPI[9488:2328] read/len/total 296/296/296
2009-12-04 13:14:15 jrISAPI[9488:2328] *.jst = jrun.jsp.JSTServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] /server/* = jrunx.jmc.management.ServerCheckerServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] *.jsp = jrun.jsp.JSPServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] /servlet/* = jrun.servlet.ServletInvoker
2009-12-04 13:14:15 jrISAPI[9488:2328] property =jmc-app.war has no value. skipping.
2009-12-04 13:14:15 jrISAPI[9488:2328] /services/* = org.apache.axis.transport.http.AxisServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] /JRunStatistics = jrun.jsp.JSPServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] *.jws = org.apache.axis.transport.http.AxisServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] read/len/total 4/4/4
2009-12-04 13:14:15 jrISAPI[9488:2328] 99.999.78.97:51001 returned socket [672] to pool
2009-12-04 13:14:15 jrISAPI[9488:2328] mapping converted from /server/* to /server*=jrunx.jmc.management.ServerCheckerServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] mapping converted from /servlet/* to /servlet*=jrun.servlet.ServletInvoker
2009-12-04 13:14:15 jrISAPI[9488:2328] mapping converted from /services/* to /services*=org.apache.axis.transport.http.AxisServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] installing new mappings for 99.999.78.97:51001 count: 7
2009-12-04 13:14:15 jrISAPI[9488:2328] old mappings count: 7
2009-12-04 13:14:15 jrISAPI[9488:2328] Deleting old mappings...
2009-12-04 13:14:15 jrISAPI[9488:2328] updateProxy - after
2009-12-04 13:14:15 jrISAPI[9488:2328] /jrunstatistics=jrun.jsp.JSPServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:15 jrISAPI[9488:2328] /services*=org.apache.axis.transport.http.AxisServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:15 jrISAPI[9488:2328] /servlet*=jrun.servlet.ServletInvoker
2009-12-04 13:14:15 jrISAPI[9488:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:15 jrISAPI[9488:2328] /server*=jrunx.jmc.management.ServerCheckerServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:15 jrISAPI[9488:2328] *.jst=jrun.jsp.JSTServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:15 jrISAPI[9488:2328] *.jsp=jrun.jsp.JSPServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:15 jrISAPI[9488:2328] *.jws=org.apache.axis.transport.http.AxisServlet
2009-12-04 13:14:15 jrISAPI[9488:2328] 99.999.78.97:51001 active: 1
2009-12-04 13:14:15 jrISAPI[9488:2328] filterRequest: no match
2009-12-04 13:14:15 jrISAPI[9488:2328] ExecUrl: request received: URL=/viewlink/index.cfm
2009-12-04 13:14:15 jrISAPI[9488:2328] ExecUrl Completion: 503, URL=/viewlink/index.cfm.
Copy link to clipboard
Copied
On your ColdFusion server you have a file named web.xml in the WEB-INF folder. Does it have XML nodes named servlet-mapping with a *.cfm in them? In case you have multiple web.xml files, check the one that is in the ColdFusion server that listens to 99.999.78.97:51001.
Copy link to clipboard
Copied
only one I found: D:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\web.xml
<servlet-mapping id="coldfusion_mapping_3">
<servlet-name>CfmServlet</servlet-name>
<url-pattern>*.cfm</url-pattern>
</servlet-mapping>
<servlet-mapping id="coldfusion_mapping_4">
<servlet-name>CFCServlet</servlet-name>
<url-pattern>*.cfc</url-pattern>
</servlet-mapping>
<servlet-mapping id="coldfusion_mapping_5">
<servlet-name>CfmServlet</servlet-name>
<url-pattern>*.cfml</url-pattern>
</servlet-mapping>
It's a real life mystery!
Thanks!
Copy link to clipboard
Copied
Jill of all trades wrote on 12/4/2009 9:47 PM:
It's a real life mystery!
You can say that again. Even when I build a mock similar to yours I can
not replicate the issue you have. Which command did you use to run wsconfig?
Copy link to clipboard
Copied
Oh... you would not believe, but maybe you would.
I noticed the connector I created was jrun so I tried to remove it. It would not remove. I added another to the same IP address and made it a cfusion connector. That did not help. I tried to remove both but I couldn't. Kinda figured it was a permissions issue but by that time it was so messed up I called CF support since I was supposed to be done with this a week ago. Spent quite a bit of time with them and ended up just restoring the webserver to get rid of the connector and reinstalling CF with them.
Now we are trying to run the wsconfig.jar on the webserver and getting the infamous side by side error. So I installed the C++ runtime from the CF install and had our administrator try to run it and he got the same results.
Also ran into a problem trying to download 64bit java from Sun. It just would not let me do that since I was trying to do it from a 32bit pc. Server of course is locked down. CF support just had me use the 32 bit on the webserver.
Thanks for helping me with this!
Copy link to clipboard
Copied
After the restore, I created the connector using the wsconfig as you suggested and it worked perfectly! Between that and a tweak to point CF to using another folder for the website documents, I was up and running!
To summarize:
1. Installed on the webserver the C++ redistributable package(only) from the Coldfusion install exe
2. created jrun4 folder on webserver
3. copied jrun4\bin \lib and \jre to webserver\jrun4
4. clicked jrun2\bin\wsconfig.exe
5. entered ip address of app server
6. changed admin to cfusion for type (this is where I went wrong before)
7. select the website
8. Clicked Configure web server for ColdFusion 9 applications option
low and behold I had a connector!
Also, the firewall is not up but we are passing images in memory between app and web server worked beautifully!
Thanks for your advice and help!
Copy link to clipboard
Copied
Yes.