Hi,
I noticed that starting AKKA without AKKA_HOME defined (as I do with an emdedded AKKA) does not work anymore.
What I get is this:
----------------------------------------------------------------------------------------------------------
[INFO] Starting jetty 6.1.22 ...
2010-03-06 16:10:40.494:INFO::jetty-6.1.22
2010-03-06 16:10:40.647:INFO::No Transaction manager found - if your webapp requires one, please configure one.
INF [20100306-16:10:41.370] akka: Config loaded from the application classpath.
INF [20100306-16:10:41.373] akka:
INF [20100306-16:10:41.373] akka: ==============================
INF [20100306-16:10:41.373] akka: __ __
INF [20100306-16:10:41.373] akka: _____ | | _| | _______
INF [20100306-16:10:41.373] akka: \__ \ | |/ / |/ /\__ \
INF [20100306-16:10:41.373] akka: / __ \| <| < / __ \_
INF [20100306-16:10:41.373] akka: (____ /__|_ \__|_ \(____ /
INF [20100306-16:10:41.373] akka: \/ \/ \/ \/
INF [20100306-16:10:41.374] akka: Running version 0.7-SNAPSHOT
INF [20100306-16:10:41.374] akka: ==============================
INF [20100306-16:10:41.374] akka: Starting Akka...
INF [20100306-16:10:41.378] remote: Starting up Cluster Service...
log4j:WARN No appenders could be found for logger (org.jgroups.JChannel).
log4j:WARN Please initialize the log4j system properly.
-------------------------------------------------------------------
GMS: address=thymelicus-14804, cluster=default, physical address=fe80:0:0:0:222:68ff:fe6a:a70e:56253
-------------------------------------------------------------------
2010-03-06 16:10:43.837:WARN::Failed startup of context org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@bc7c0{/touchpoint,/home/eckart/projects/touchpoint/src/main/webapp}
java.lang.IllegalStateException: AKKA_HOME is not defined and akka-<version>.jar can not be found on the classpath; aborting...
at se.scalablesolutions.akka.actor.BootableActorLoaderService$class.createApplicationClassLoader(BootableActorLoaderService.scala:36)
at se.scalablesolutions.akka.Kernel$$anon$2.createApplicationClassLoader(Kernel.scala:93)
at se.scalablesolutions.akka.actor.BootableActorLoaderService$class.applicationLoader(BootableActorLoaderService.scala:19)
at se.scalablesolutions.akka.Kernel$$anon$2.applicationLoader(Kernel.scala:93)
at se.scalablesolutions.akka.actor.BootableActorLoaderService$class.onLoad(BootableActorLoaderService.scala:42)
at se.scalablesolutions.akka.Kernel$$anon$2.se$scalablesolutions$akka$remote$BootableRemoteActorService$$super$onLoad(Kernel.scala:93)
at se.scalablesolutions.akka.remote.BootableRemoteActorService$class.onLoad(BootableRemoteActorService.scala:28)
at se.scalablesolutions.akka.Kernel$$anon$2.onLoad(Kernel.scala:93)
at se.scalablesolutions.akka.Kernel$.boot(Kernel.scala:45)
at se.scalablesolutions.akka.Kernel.contextInitialized(Kernel.scala:93)
-----------------------------------------------------------------------------------------------------------
This is because in the commit http://github.com/jboner/akka/commit/36c0266a5d51be0b6f1189b706fbf2a4b1141552
the line
----
Jonas Bonér
twitter: @jboner
blog: http://jonasboner.com
work: http://scalablesolutions.se
code: http://github.com/jboner
code: http://akkasource.org
also: http://letitcrash.com
On Mar 6, 2010, at 16:38, "eck...@hertzler.de" <eck...@hertzler.de>
wrote:
> --
> You received this message because you are subscribed to the Google
> Groups "Akka User List" group.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to akka-user+...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en
> .
Thanks
--
yes. You fixed it. Jetty starts up ok.
But now I cannot shutdown properly
:-)
I get this:
INF [20100307-21:25:59.352] actor: All actors have been shut down and unregistered from ActorRegistry
INF [20100307-21:25:59.352] akka: Shutting down Remote Actors Service
[warn] failed org.mortbay.jetty.webapp.WebAppContext@1caefb0{/,/home/eckart/eckart/projects/touchpoint/target/scala_2.7.7/webapp}
java.lang.IllegalStateException: Actor has not been started, you need to invoke 'actor.start' before using it
at se.scalablesolutions.akka.actor.Actor$class.send(Actor.scala:486)
at se.scalablesolutions.akka.remote.BasicClusterActor.send(Cluster.scala:68)
at se.scalablesolutions.akka.remote.BasicClusterActor.deregisterLocalNode(Cluster.scala:191)
at se.scalablesolutions.akka.remote.Cluster$$anonfun$deregisterLocalNode$1.apply(Cluster.scala:248)
at se.scalablesolutions.akka.remote.Cluster$$anonfun$deregisterLocalNode$1.apply(Cluster.scala:248)
at scala.Option.foreach(Option.scala:94)
at se.scalablesolutions.akka.remote.Cluster$.deregisterLocalNode(Cluster.scala:248)
at se.scalablesolutions.akka.remote.RemoteServer.shutdown(RemoteServer.scala:190)
at se.scalablesolutions.akka.remote.BootableRemoteActorService$class.onUnload(BootableRemoteActorService.scala:43)
at se.scalablesolutions.akka.Kernel$$anon$2.onUnload(Kernel.scala:93)
at se.scalablesolutions.akka.Kernel$$anonfun$shutdown$1.apply(Kernel.scala:59)
at se.scalablesolutions.akka.Kernel$$anonfun$shutdown$1.apply(Kernel.scala:59)
at scala.Option.foreach(Option.scala:94)
at se.scalablesolutions.akka.Kernel$.shutdown(Kernel.scala:59)
at se.scalablesolutions.akka.Kernel.contextDestroyed(Kernel.scala:92)
at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:577)
at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:485)
at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:64)
at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142)
at org.mortbay.jetty.Server.doStop(Server.java:281)
Since I did not need a cluster I tried to disable it in akka.conf:
----------------------------------
...
<cluster>
service = off # FIXME add 'service = on' for <cluster>
# name = "default" # The name of the cluster
# actor = "se.scalablesolutions.akka.remote.JGroupsClusterActor" # FQN of an implementation of ClusterActor
# serializer = "se.scalablesolutions.akka.serialization.Serializer$Java" # FQN of the serializer class
# </cluster>
...
----------------------------------
but no joy...
INF [20100307-21:29:40.805] akka: Config loaded from the application classpath.
INF [20100307-21:29:40.812] akka:
INF [20100307-21:29:40.812] akka: ==============================
INF [20100307-21:29:40.812] akka: __ __
INF [20100307-21:29:40.812] akka: _____ | | _| | _______
INF [20100307-21:29:40.812] akka: \__ \ | |/ / |/ /\__ \
INF [20100307-21:29:40.812] akka: / __ \| <| < / __ \_
INF [20100307-21:29:40.812] akka: (____ /__|_ \__|_ \(____ /
INF [20100307-21:29:40.812] akka: \/ \/ \/ \/
INF [20100307-21:29:40.813] akka: Running version 0.7-SNAPSHOT
INF [20100307-21:29:40.813] akka: ==============================
INF [20100307-21:29:40.814] akka: Starting Akka...
INF [20100307-21:29:40.821] remote: Starting up Cluster Service...
[warn] Failed startup of context org.mortbay.jetty.webapp.WebAppContext@e7e8eb{/,/home/eckart/eckart/projects/touchpoint/target/scala_2.7.7/webapp}
java.lang.IllegalArgumentException: Can't start cluster since the 'akka.remote.cluster.actor' configuration option is not defined
at se.scalablesolutions.akka.remote.Cluster$.createClusterActor(Cluster.scala:219)
at se.scalablesolutions.akka.remote.Cluster$.start(Cluster.scala:257)
at se.scalablesolutions.akka.remote.BootableRemoteActorService$class.onLoad(BootableRemoteActorService.scala:27)
at se.scalablesolutions.akka.Kernel$$anon$2.onLoad(Kernel.scala:93)
at se.scalablesolutions.akka.Kernel$.boot(Kernel.scala:45)
at se.scalablesolutions.akka.Kernel.contextInitialized(Kernel.scala:93)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:543)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
not at all.
?
no need to thank me.
cool.
> >> > >> >> >> > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> >> > >> >> >> > .
> >> > >> >> >> > For more options, visit this group at
> >> > >> >> >> > http://groups.google.com/group/akka-user?hl=en
> >> > >> >> >> > .
> >> > >> >> >>
> >> > >> >> >> --
> >> > >> >> >> You received this message because you are subscribed to the
> >> Google Groups
> >> > >> >> >> "Akka User List" group.
> >> > >> >> >> To post to this group, send email to
> >> akka...@googlegroups.com.
> >> > >> >> >> To unsubscribe from this group, send email to
> >> > >> >> >> akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> >> .
> >> > >> >> >> For more options, visit this group at
> >> > >> >> >> http://groups.google.com/group/akka-user?hl=en.
> >> > >> >> >>
> >> > >> >> >
> >> > >> >> > --
> >> > >> >> > You received this message because you are subscribed to the
> >> Google Groups
> >> > >> >> > "Akka User List" group.
> >> > >> >> > To post to this group, send email to akka...@googlegroups.com
> >> .
> >> > >> >> > To unsubscribe from this group, send email to
> >> > >> >> > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> >> .
> >> > >> >> > For more options, visit this group at
> >> > >> >> > http://groups.google.com/group/akka-user?hl=en.
> >> > >> >> >
> >> > >> >>
> >> > >> >>
> >> > >> >>
> >> > >> >>
> >> > >> >
> >> > >> > --
> >> > >> > You received this message because you are subscribed to the Google
> >> Groups "Akka User List" group.
> >> > >> > To post to this group, send email to akka...@googlegroups.com.
> >> > >> > To unsubscribe from this group, send email to
> >> akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> >> .
> >> > >> > For more options, visit this group at
> >> http://groups.google.com/group/akka-user?hl=en.
> >> > >> >
> >> > >> >
> >> > >>
> >> > >>
> >> > >>
> >> > >>
> >> > >
> >> > > --
> >> > > You received this message because you are subscribed to the Google
> >> Groups "Akka User List" group.
> >> > > To post to this group, send email to akka...@googlegroups.com.
> >> > > To unsubscribe from this group, send email to
> >> akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> >> .
> >> > > For more options, visit this group at
> >> http://groups.google.com/group/akka-user?hl=en.
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >> >
> >>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Akka User List" group.
> >> To post to this group, send email to akka...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> >> .
> >> For more options, visit this group at
Hi Viktor,
no need to apologize.
Your patch worked and I commited it.
Thank you for your help.
Eckart
> > > >> >> >> > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> > > >> >> >> > .
> > > >> >> >> > For more options, visit this group at
> > > >> >> >> > http://groups.google.com/group/akka-user?hl=en
> > > >> >> >> > .
> > > >> >> >>
> > > >> >> >> --
> > > >> >> >> You received this message because you are subscribed to the
> > Google Groups
> > > >> >> >> "Akka User List" group.
> > > >> >> >> To post to this group, send email to akka...@googlegroups.com
> > .
> > > >> >> >> To unsubscribe from this group, send email to
> > > >> >> >> akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> > .
> > > >> >> >> For more options, visit this group at
> > > >> >> >> http://groups.google.com/group/akka-user?hl=en.
> > > >> >> >>
> > > >> >> >
> > > >> >> > --
> > > >> >> > You received this message because you are subscribed to the
> > Google Groups
> > > >> >> > "Akka User List" group.
> > > >> >> > To post to this group, send email to akka...@googlegroups.com.
> > > >> >> > To unsubscribe from this group, send email to
> > > >> >> > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> > .
> > > >> >> > For more options, visit this group at
> > > >> >> > http://groups.google.com/group/akka-user?hl=en.
> > > >> >> >
> > > >> >>
> > > >> >>
> > > >> >>
> > > >> >>
> > > >> >
> > > >> > --
> > > >> > You received this message because you are subscribed to the Google
> > Groups "Akka User List" group.
> > > >> > To post to this group, send email to akka...@googlegroups.com.
> > > >> > To unsubscribe from this group, send email to
> > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> > .
> > > >> > For more options, visit this group at
> > http://groups.google.com/group/akka-user?hl=en.
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >>
> > > >
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups "Akka User List" group.
> > > > To post to this group, send email to akka...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> > .
> > > > For more options, visit this group at
> > http://groups.google.com/group/akka-user?hl=en.
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Akka User List" group.
> > To post to this group, send email to akka...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
Am Sonntag, 7. März 2010 22:41:17 schrieb Viktor Klang:
> Eckart,Hi Viktor,
>
> I apologize for the inconvenience, I believe it's caused by poor ordering of
> unloading things.
>
no need to apologize.
Your patch worked and I commited it.
Thank you for your help.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
you beat me there
:-)
> > <akka-user%2Bunsu...@googlegroups.com<akka-user%252Buns...@googlegroups.com>
> > >
> > > > > >> >> >> > .
> > > > > >> >> >> > For more options, visit this group at
> > > > > >> >> >> > http://groups.google.com/group/akka-user?hl=en
> > > > > >> >> >> > .
> > > > > >> >> >>
> > > > > >> >> >> --
> > > > > >> >> >> You received this message because you are subscribed to the
> > > > Google Groups
> > > > > >> >> >> "Akka User List" group.
> > > > > >> >> >> To post to this group, send email to
> > akka...@googlegroups.com
> > > > .
> > > > > >> >> >> To unsubscribe from this group, send email to
> > > > > >> >> >> akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> > <akka-user%2Bunsu...@googlegroups.com<akka-user%252Buns...@googlegroups.com>
> > >
> > > > .
> > > > > >> >> >> For more options, visit this group at
> > > > > >> >> >> http://groups.google.com/group/akka-user?hl=en.
> > > > > >> >> >>
> > > > > >> >> >
> > > > > >> >> > --
> > > > > >> >> > You received this message because you are subscribed to the
> > > > Google Groups
> > > > > >> >> > "Akka User List" group.
> > > > > >> >> > To post to this group, send email to
> > akka...@googlegroups.com.
> > > > > >> >> > To unsubscribe from this group, send email to
> > > > > >> >> > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> > <akka-user%2Bunsu...@googlegroups.com<akka-user%252Buns...@googlegroups.com>
> > >
> > > > .
> > > > > >> >> > For more options, visit this group at
> > > > > >> >> > http://groups.google.com/group/akka-user?hl=en.
> > > > > >> >> >
> > > > > >> >>
> > > > > >> >>
> > > > > >> >>
> > > > > >> >>
> > > > > >> >
> > > > > >> > --
> > > > > >> > You received this message because you are subscribed to the
> > Google
> > > > Groups "Akka User List" group.
> > > > > >> > To post to this group, send email to akka...@googlegroups.com
> > .
> > > > > >> > To unsubscribe from this group, send email to
> > > > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> > <akka-user%2Bunsu...@googlegroups.com<akka-user%252Buns...@googlegroups.com>
> > >
> > > > .
> > > > > >> > For more options, visit this group at
> > > > http://groups.google.com/group/akka-user?hl=en.
> > > > > >> >
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups "Akka User List" group.
> > > > > > To post to this group, send email to akka...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> > <akka-user%2Bunsu...@googlegroups.com<akka-user%252Buns...@googlegroups.com>
> > >
> > > > .
> > > > > > For more options, visit this group at
> > > > http://groups.google.com/group/akka-user?hl=en.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Akka User List" group.
> > > > To post to this group, send email to akka...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > akka-user+...@googlegroups.com<akka-user%2Bunsu...@googlegroups.com>
> > <akka-user%2Bunsu...@googlegroups.com<akka-user%252Buns...@googlegroups.com>