I am receiving an error after attempting to set up...
# box-products
r
I am receiving an error after attempting to set up commandbox/IIS/boncode and I can't quite pinpoint the problem just yet. I will add details in this string so not to make this comment long.
I have gotten this working before for a previous client by following Brad's video

https://youtu.be/8q7sSZ7gK3E

However, this time I continue to get an error that I can't seem to work through. The following error is what I receive when going to abc.local.
Copy code
Error connecting to Apache Tomcat instance.
Please check that a Tomcat server is running at given location and port.
Details:
No connection could be made because the target machine actively refused it 127.0.0.1:8009

You can change this message by changing TomcatConnectErrorURL setting in setting file.
No connection could be made because the target machine actively refused it 127.0.0.1:8009    at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port)
   at BonCodeIIS.BonCodeCallHandler.ProcessRequest(HttpContext context)
As far as I can tell, when checking the commandbox url and port, it is working, but IIS is not picking it up. I've read that one of the servers may not be running, but I have restarted everything in IIS (web and pool) and commandbox instance several times. I did check to make sure that the server.json has the AJP settings to port 8009 and that it is enable=true. I did originally have it set incorrectly as webAJP.enable=true, but corrected it and restarted everything, but still it is not working correctly. I even re-installed Boncode several times and restarted cmdbox instance and IIS web instances and pool accordingly and still the error shows.
b
What does
Copy code
server info --verbose
show?
Also, is IIS on the same machine as CommandBox?
r
ok, well after all this typing, I just got it working by forgetting the cmdbox instance and recreated the cmdbox instance and now everything works great.
👍🏼 1
Hey Brad, yep, it's all on a dev machine.