Skip to main content
Participant
December 18, 2011
Question

CF9 on Mac Book Pro Connection refused when accessing 127.0.0.1

  • December 18, 2011
  • 1 reply
  • 1644 views

Hi,

I have searched everywhere to find a solution to my problem. It is very annoying and seems easy to fix.

I have installled CF 9 64 bit version standalone server in developer mode on a Mac Book Pro Mac OS X 10.7.2, with: 

java version "1.6.0_29"

Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)

Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

I have not installed any cf9 hot-fix yet.

Installation went fine after shutting down the firewall and the starting it after the installation.

I have access to: http://127.0.0.1:8500/CFIDE/administrator/index.cfm

When I try to go to http://127.0.0.1 or localhost I got this error (cfserver.log😞

12/18 09:36:27 [web-1] INFO I/O exception (java.net.ConnectException) caught when processing request: Connection refused

I have checked the hosts file and it looks correct.

If I can run the administrator there shouldn't really be any problem with the rest, and I have no other errors in the cfserver.log.

Any suggestions is appreciated..

UPDATE:

I have now updated to cf9 version 9.0.1. Still the same problem. Server is running, I can access the administrator but I got connection refused on localhost or 127.0.0.1.

More from cfserver.log:

Starting Macromedia JRun 4.0 (Build 108858), coldfusion server
62512/18 12:26:29 warning Unable to open /Applications/ColdFusion9/runtime/lib/license.properties
62612/18 12:27:58 info JRun Naming Service listening on *:2932
62712/18 12:27:59 error Connection refused to host: 15.259.28.79; nested exception is:
628java.net.ConnectException: Connection refused
629[1]java.net.ConnectException: Connection refused
630at java.net.PlainSocketImpl.socketConnect(Native Method)
631at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
632at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
633at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
634at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
635at java.net.Socket.connect(Socket.java:529)
636at java.net.Socket.connect(Socket.java:478)
637at java.net.Socket.<init>(Socket.java:375)
638at java.net.Socket.<init>(Socket.java:189)
639at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
640at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
641at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
642at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
643at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
644at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
645at jrun.servlet.session.SessionReplicationService_Stub.getRemoteServerName(Unknown Source)
646at jrun.servlet.session.SessionReplicationService.start(SessionReplicationService.java:53)
647at jrun.servlet.ServletEngineService.createSessionReplicationService(ServletEngineService.java:130)
648at jrun.servlet.ServletEngineService.start(ServletEngineService.java:112)
649at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
650at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
651at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
652at java.lang.reflect.Method.invoke(Method.java:597)
653at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
654at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
655at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
656at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
657at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
658at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
659at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
660at jrunx.kernel.ServiceAdapter.invokeMethod(ServiceAdapter.java:705)
661at jrunx.kernel.JRunServiceDeployer.invokeOnServices(JRunServiceDeployer.java:460)
662at jrunx.kernel.JRunServiceDeployer.startServices(JRunServiceDeployer.java:312)
663at jrunx.kernel.JRunServiceDeployer.startLifecycle(JRunServiceDeployer.java:260)
664at jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.java:87)
665at jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46)
666at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
667at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
668at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
669at java.lang.reflect.Method.invoke(Method.java:597)
670at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
671at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
672at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
673at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
674at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
675at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
676at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
677at jrunx.kernel.JRun.startServer(JRun.java:575)
678at jrunx.kernel.JRun.<init>(JRun.java:493)
679at jrunx.kernel.JRun$1.run(JRun.java:346)
680at java.security.AccessController.doPrivileged(Native Method)
681at jrunx.kernel.JRun.start(JRun.java:343)
682at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
683at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
684at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
685at java.lang.reflect.Method.invoke(Method.java:597)
686at jrunx.kernel.JRun.invoke(JRun.java:180)
687at jrunx.kernel.JRun.main(JRun.java:168)
688[0]java.rmi.ConnectException: Connection refused to host: 95.209.78.179; nested exception is:
689java.net.ConnectException: Connection refused
690at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
691at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
692at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
693at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
694at jrun.servlet.session.SessionReplicationService_Stub.getRemoteServerName(Unknown Source)
695at jrun.servlet.session.SessionReplicationService.start(SessionReplicationService.java:53)
696at jrun.servlet.ServletEngineService.createSessionReplicationService(ServletEngineService.java:130)
697at jrun.servlet.ServletEngineService.start(ServletEngineService.java:112)
698at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
699at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
700at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
701at java.lang.reflect.Method.invoke(Method.java:597)
702at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
703at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
704at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
705at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
706at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
707at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
708at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
709at jrunx.kernel.ServiceAdapter.invokeMethod(ServiceAdapter.java:705)
710at jrunx.kernel.JRunServiceDeployer.invokeOnServices(JRunServiceDeployer.java:460)
711at jrunx.kernel.JRunServiceDeployer.startServices(JRunServiceDeployer.java:312)
712at jrunx.kernel.JRunServiceDeployer.startLifecycle(JRunServiceDeployer.java:260)
713at jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.java:87)
714at jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46)
715at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
716at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
717at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
718at java.lang.reflect.Method.invoke(Method.java:597)
719at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
720at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
721at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
722at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
723at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
724at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
725at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
726at jrunx.kernel.JRun.startServer(JRun.java:575)
727at jrunx.kernel.JRun.<init>(JRun.java:493)
728at jrunx.kernel.JRun$1.run(JRun.java:346)
729at java.security.AccessController.doPrivileged(Native Method)
730at jrunx.kernel.JRun.start(JRun.java:343)
731at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
732at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
733at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
734at java.lang.reflect.Method.invoke(Method.java:597)
735at jrunx.kernel.JRun.invoke(JRun.java:180)
736at jrunx.kernel.JRun.main(JRun.java:168)
737Caused by: java.net.ConnectException: Connection refused
738at java.net.PlainSocketImpl.socketConnect(Native Method)
739at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
740at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
741at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
742at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
743at java.net.Socket.connect(Socket.java:529)
744at java.net.Socket.connect(Socket.java:478)
745at java.net.Socket.<init>(Socket.java:375)
746at java.net.Socket.<init>(Socket.java:189)
747at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
748at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
749at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
750... 46 more


Message was edited by: Molnfront

This topic has been closed for replies.

1 reply

12Robots
Participating Frequently
December 18, 2011

If you have not done so already, you need to update CF9 to 9.0.1 and then hotfix it for OSX Lion Support

9.0.1 Download: http://download.macromedia.com/pub/coldfusion/updates/901/ColdFusion_update_901_WWEJ_osx10.zip

Cummulative Hotfix Link:  http://kb2.adobe.com/cps/918/cpsid_91836.html

Blog Post about it: http://blogs.adobe.com/coldfusion/2011/09/17/osx-lion-is-now-supported-with-the-release-of-chf2-for-9-0-1/

Jason

MolnfrontAuthor
Participant
December 18, 2011

I edited my first thread and metioned that I had installed the CF9 9.0.1 updater and it did not solved it. Now I also have installed cumulative hotfix 2.

Now I got new errors, and this time nothing works not even the administrator:

12/18 14:17:22 user RDSServlet: init

Warning: /Applications/ColdFusion9/runtime/../lib/coldfusion.policy doesn't appear to be a valid java.security.policy file

Warning: /Applications/ColdFusion9/runtime/../lib/neo_jaas.policy doesn't appear to be a valid java.auth.security.policy file

java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at jrunx.kernel.JRun.invoke(JRun.java:180)

          at jrunx.kernel.JRun.main(JRun.java:168)

Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.jrunx.kernel)

          at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)

          at java.security.AccessController.checkPermission(AccessController.java:546)

          at jrunx.kernel.JRun.<init>(JRun.java:446)

          at jrunx.kernel.JRun$1.run(JRun.java:346)

          at java.security.AccessController.doPrivileged(Native Method)

          at jrunx.kernel.JRun.start(JRun.java:343)

          ... 6 more

Usage: -[start,stop,restart,status] [server ...] (no arg means all servers) or -[stop,restart] server [server ...] -username <jndi-principal> -password <jndi-credentials> or -info or -version or -usage

Warning: /Applications/ColdFusion9/runtime/../lib/coldfusion.policy doesn't appear to be a valid java.security.policy file

Warning: /Applications/ColdFusion9/runtime/../lib/neo_jaas.policy doesn't appear to be a valid java.auth.security.policy file

java.lang.reflect.InvocationTargetException

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          at jrunx.kernel.JRun.invoke(JRun.java:180)

          at jrunx.kernel.JRun.main(JRun.java:168)

Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.jrunx.kernel)

          at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)

          at java.security.AccessController.checkPermission(AccessController.java:546)

          at jrunx.kernel.JRun.<init>(JRun.java:446)

          at jrunx.kernel.JRun$1.run(JRun.java:346)

          at java.security.AccessController.doPrivileged(Native Method)

          at jrunx.kernel.JRun.start(JRun.java:343)

          ... 6 more

Usage: -[start,stop,restart,status] [server ...] (no arg means all servers) or -[stop,restart] server [server ...] -username <jndi-principal> -password <jndi-credentials> or -info or -version or -usage

MolnfrontAuthor
Participant
December 18, 2011

Hm, I read on the blog post that OSX Lion is NOT supported so I will stop waisting my time and your time, and abandon ACF for now and happily run my Railo server instead . Maybe when I have time I will install it on Ubuntu or *chough* windos.