problem with the getting started tutorial

Hello,

As soon as I do the database migration I see this error message :

(in /home/roelof/NetBeansProjects/ruby Weblog) rake aborted! The driver encountered an error: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketException MESSAGE: java.net.ConnectException: Connection refused

STACKTRACE:

java.net.SocketException: java.net.ConnectException: Connection refused         at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)         at com.mysql.jdbc.Connection.createNewIO(Connection.java:2666)         at com.mysql.jdbc.Connection.<init>(Connection.java:1531)         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.lang.reflect.Method.invoke(Method.java:616)         at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:467)         at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:319)         at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:60)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:330)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:189)         at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.ast.RescueBodyNode.interpret(RescueBodyNode.java:108)         at org.jruby.ast.RescueNode.handleException(RescueNode.java:190)         at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:150)         at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:247)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:201)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:350)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:229)         at org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:305)         at org.jruby.runtime.BlockBody.call(BlockBody.java:72)         at org.jruby.runtime.BlockBody.call(BlockBody.java:78)         at org.jruby.runtime.Block.call(Block.java:89)         at org.jruby.RubyProc.call(RubyProc.java:221)         at org.jruby.RubyProc.call(RubyProc.java:204)         at org.jruby.RubyProc$i_method_0_0$RUBYFRAMEDINVOKER$call.call(org/jruby/RubyProc$i_method_0_0$RUBYFRAMEDINVOKER$call.gen)         at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:623)         at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:176)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)         at org.jruby.ast.CallSpecialArgNode.interpret(CallSpecialArgNode.java:67)         at org.jruby.ast.ReturnNode.interpret(ReturnNode.java:88)         at org.jruby.ast.IfNode.interpret(IfNode.java:117)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:305)         at org.jruby.runtime.BlockBody.call(BlockBody.java:72)         at org.jruby.runtime.BlockBody.call(BlockBody.java:78)         at org.jruby.runtime.Block.call(Block.java:89)         at org.jruby.RubyProc.call(RubyProc.java:221)         at org.jruby.internal.runtime.methods.ProcMethod.call(ProcMethod.java:63)         at org.jruby.javasupport.util.RuntimeHelpers$MethodMissingMethod.call(RuntimeHelpers.java:358)         at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:172)         at org.jruby.javasupport.util.RuntimeHelpers.callMethodMissing(RuntimeHelpers.java:318)         at org.jruby.RubyClass.finvoke(RubyClass.java:430)         at org.jruby.RubyObject.send(RubyObject.java:1436)         at org.jruby.RubyObject$i_method_multi$RUBYINVOKER$send.call(org/jruby/RubyObject$i_method_multi$RUBYINVOKER$send.gen)         at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrNBlock.call(JavaMethod.java:259)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)         at org.jruby.ast.CallSpecialArgNode.interpret(CallSpecialArgNode.java:67)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:305)         at org.jruby.runtime.BlockBody.call(BlockBody.java:72)         at org.jruby.runtime.BlockBody.call(BlockBody.java:78)         at org.jruby.runtime.Block.call(Block.java:89)         at org.jruby.RubyProc.call(RubyProc.java:221)         at org.jruby.RubyProc.call(RubyProc.java:204)         at org.jruby.javasupport.Java$8.invoke(Java.java:999)         at $Proxy7.newConnection(Unknown Source)         at jdbc_adapter.RubyJdbcConnection.reconnect(RubyJdbcConnection.java:423)         at jdbc_adapter.RubyJdbcConnection.connection(RubyJdbcConnection.java:171)         at jdbc_adapter.RubyJdbcConnection$i_method_0_0$RUBYINVOKER$connection.call(jdbc_adapter/RubyJdbcConnection$i_method_0_0$RUBYINVOKER$connection.gen)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)         at org.jruby.ast.VCallNode.interpret(VCallNode.java:85)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.ast.RescueNode.executeBody(RescueNode.java:225)         at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:147)         at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:192)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:177)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:320)         at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:158)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163)         at org.jruby.RubyClass$SpecificArityNew.call(RubyClass.java:709)         at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:176)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)         at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)         at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.ast.IfNode.interpret(IfNode.java:119)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:266)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:209)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:360)         at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:238)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:243)         at org.jruby.RubyClass$SpecificArityNew.call(RubyClass.java:731)         at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:350)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:229)         at org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:173)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:169)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)         at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)         at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:192)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:177)         at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:86)         at org.jruby.RubyClass.finvoke(RubyClass.java:472)         at org.jruby.RubyObject.send(RubyObject.java:1442)         at org.jruby.RubyObject$i_method_multi$RUBYINVOKER$send.call(org/jruby/RubyObject$i_method_multi$RUBYINVOKER$send.gen)         at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrTwoOrNBlock.call(JavaMethod.java:276)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:330)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:189)         at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)         at org.jruby.ast.VCallNode.interpret(VCallNode.java:85)         at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)         at org.jruby.ast.VCallNode.interpret(VCallNode.java:85)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.IfNode.interpret(IfNode.java:117)         at org.jruby.ast.IfNode.interpret(IfNode.java:119)         at org.jruby.ast.DAsgnNode.interpret(DAsgnNode.java:110)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:268)         at org.jruby.runtime.Block.yield(Block.java:194)         at org.jruby.RubyKernel.loop_1_9(RubyKernel.java:1182)         at org.jruby.RubyKernel$s_method_0_0$RUBYFRAMEDINVOKER$loop_1_9.call(org/jruby/RubyKernel$s_method_0_0$RUBYFRAMEDINVOKER$loop_1_9.gen)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)         at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:118)         at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:133)         at org.jruby.ast.FCallNoArgBlockNode.interpret(FCallNoArgBlockNode.java:32)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:251)         at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:185)         at org.jruby.runtime.Block.yieldSpecific(Block.java:99)         at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)         at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:155)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:161)         at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:81)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)         at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:118)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:123)         at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)         at org.jruby.ast.VCallNode.interpret(VCallNode.java:85)         at org.jruby.ast.AttrAssignTwoArgNode.interpret(AttrAssignTwoArgNode.java:36)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.IfNode.interpret(IfNode.java:119)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)         at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)         at org.jruby.ast.AndNode.interpret(AndNode.java:94)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.OrNode.interpret(OrNode.java:94)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:173)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:169)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)         at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)         at org.jruby.ast.VCallNode.interpret(VCallNode.java:85)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)         at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)         at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)         at org.jruby.ast.IfNode.interpret(IfNode.java:111)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:266)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:209)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:360)         at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:238)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:243)         at org.jruby.RubyClass$SpecificArityNew.call(RubyClass.java:731)         at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:192)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:350)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:229)         at org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61)         at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:210)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:185)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:330)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:189)         at org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.WhenOneArgNode.whenNoTest(WhenOneArgNode.java:27)         at org.jruby.ast.WhenOneArgNode.when(WhenOneArgNode.java:45)         at org.jruby.ast.CaseNode.interpret(CaseNode.java:133)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:210)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:185)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:330)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:189)         at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:305)         at org.jruby.runtime.BlockBody.call(BlockBody.java:72)         at org.jruby.runtime.BlockBody.call(BlockBody.java:78)         at org.jruby.runtime.Block.call(Block.java:89)         at org.jruby.RubyProc.call(RubyProc.java:221)         at org.jruby.RubyProc.call(RubyProc.java:204)         at org.jruby.RubyProc$i_method_0_0$RUBYFRAMEDINVOKER$call.call(org/jruby/RubyProc$i_method_0_0$RUBYFRAMEDINVOKER$call.gen)         at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodN.call(JavaMethod.java:627)         at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:184)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:330)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:189)         at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.CaseNode.interpret(CaseNode.java:138)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:268)         at org.jruby.runtime.Block.yield(Block.java:194)         at org.jruby.RubyArray.eachCommon(RubyArray.java:1635)         at org.jruby.RubyArray.each(RubyArray.java:1642)         at org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.call(org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)         at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:118)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:123)         at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:173)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:169)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)         at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)         at org.jruby.ast.IfNode.interpret(IfNode.java:117)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:251)         at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:185)         at org.jruby.runtime.Block.yieldSpecific(Block.java:99)         at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.EnsureNode.interpret(EnsureNode.java:96)         at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:155)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:161)         at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:81)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)         at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:118)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:123)         at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:210)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:185)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:330)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:189)         at org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)         at org.jruby.ast.CallSpecialArgNode.interpret(CallSpecialArgNode.java:65)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:173)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:169)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)         at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:268)         at org.jruby.runtime.Block.yield(Block.java:194)         at org.jruby.RubyArray.eachCommon(RubyArray.java:1635)         at org.jruby.RubyArray.each(RubyArray.java:1642)         at org.jruby.RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.call(org/jruby/RubyArray$i_method_0_0$RUBYFRAMEDINVOKER$each.gen)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)         at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:118)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:123)         at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.IfNode.interpret(IfNode.java:119)         at org.jruby.ast.IfNode.interpret(IfNode.java:119)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:251)         at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:185)         at org.jruby.runtime.Block.yieldSpecific(Block.java:99)         at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.RescueNode.executeBody(RescueNode.java:225)         at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:147)         at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)         at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:155)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:161)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)         at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:118)         at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:133)         at org.jruby.ast.FCallNoArgBlockNode.interpret(FCallNoArgBlockNode.java:32)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)         at org.jruby.ast.VCallNode.interpret(VCallNode.java:85)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:317)         at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:251)         at org.jruby.runtime.InterpretedBlock.yieldSpecific(InterpretedBlock.java:185)         at org.jruby.runtime.Block.yieldSpecific(Block.java:99)         at org.jruby.ast.ZYieldNode.interpret(ZYieldNode.java:25)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.RescueNode.executeBody(RescueNode.java:225)         at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:147)         at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)         at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:155)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:161)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:300)         at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:118)         at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:133)         at org.jruby.ast.FCallNoArgBlockNode.interpret(FCallNoArgBlockNode.java:32)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:136)         at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:153)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:290)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:109)         at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:61)         at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)         at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)         at org.jruby.ast.RootNode.interpret(RootNode.java:129)         at org.jruby.Ruby.loadFile(Ruby.java:2419)         at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:64)         at org.jruby.runtime.load.LoadService.load(LoadService.java:249)         at org.jruby.RubyKernel.load(RubyKernel.java:932)         at org.jruby.RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.call(org/jruby/RubyKernel$s_method_0_1$RUBYFRAMEDINVOKER$load.gen)         at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:180)         at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:176)         at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:310)         at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:149)         at home.roelof.$_dot_netbeans.$6_dot_8.jruby_minus_1_dot_4_dot_0.bin.rake.__file__(rake:19)         at home.roelof.$_dot_netbeans.$6_dot_8.jruby_minus_1_dot_4_dot_0.bin.rake.load(rake)         at org.jruby.Ruby.runScript(Ruby.java:628)         at org.jruby.Ruby.runNormally(Ruby.java:550)         at org.jruby.Ruby.runFromMain(Ruby.java:396)         at org.jruby.Main.run(Main.java:272)         at org.jruby.Main.run(Main.java:117)         at org.jruby.Main.main(Main.java:97)

** END NESTED EXCEPTION **

Last packet sent to the server was 96 ms ago

what went wrong and how can I solve this ?

Roelof

Is your MySQL instance running in the same computer? If no, did you open the port 3306?

Did you create the corresponding users and granted them access and sufficient permissions to do the required tasks?

Juan Pablo Genovese wrote:

Is your MySQL instance running in the same computer? If no, did you open the port 3306? Did you create the corresponding users and granted them access and sufficient permissions to do the required tasks?

Hello Juan Pablo Genovese.

i use netbeans for this so I thought that mysql is running. I did not create users and so on because I thought netbeans would take care of this.

I will ask this in a netbeans forums so i can verify this ?

Roelof

Well… no. Don’t ask that.

NetBeans, as good as it is, is a simple IDE. It’s like a text editor on steroids, if you know what I mean. It will help you a lot with many tasks, but it won’t install or configure MySQL for you. You need to install MySQL and create and grant the necessary users and permissions by yourself.

Check this page for reference: http://wiki.rubyonrails.org/getting-started/installation/linux

Hope this helps. :slight_smile:

Roelof Wobben wrote:

Juan Pablo Genovese wrote:

Is your MySQL instance running in the same computer? If no, did you open the port 3306? Did you create the corresponding users and granted them access and sufficient permissions to do the required tasks?

Hello Juan Pablo Genovese.

i use netbeans for this so I thought that mysql is running. I did not create users and so on because I thought netbeans would take care of this.

No, NetBeans won't set up your database for you.

I would strongly recommend against using NetBeans for Rails. It's an excellent IDE, but Rails does not benefit from the use of a heavy IDE. Just use a good text editor (I like KomodoEdit; many people use TextMate).

I will ask this in a netbeans forums so i can verify this ?

Don't bother. NB is not supposed to set up your entire dev box.

Roelof

Best,

Oke,

Im now doing everything with nano and the prompt.

But I hit one problem.

on Chapter 6.2 I have to go to this url: /app/views/home/index.html.erb

But views only has layouts and posts in it.

Roelof