Hi Heiko, it's none of the above. We've got a pre-existing maven
project with multiple GWT modules, and some scripting to copy from the
endpoint GWT project "flies-webtrans" into another war project
"flies-war". DevMode is being launched via the GWT plugin for Eclipse.
Overall, it's not pretty.
Anyway, it sounds like the JavaScript files for ErraiBus aren't being
copied across where they should be. (I don't think our previous
dependencies have had any .js files to worry about.) I'll have to dig
into that.
In case I don't get anywhere with that, and decide to reorganize
everything, is the Maven archetype for Errai the best way of getting
everything right?
Thanks for the help!
Sean
On 25/01/10 19:21, Heiko Braun wrote:
To me it looks like the pagebus javascript library is either not loaded
or initialized. It's included in ErraiBus.gwt.xml:
<script src="js/pagebus.js"/>
How do you setup and execute the dev mode? Are using the maven build environment?
Or even the quickstart?
/Heiko
On Jan 25, 2010, at 8:46 AM, Sean Flanigan wrote:
> Hi,
>
> I'm trying to run in GWT 2.0's DevMode, but I'm hitting this error when
> I load the page in Firefox:
>
> Failed to create an instance of 'org.jboss.errai.bus.client.MessageBus'
> via deferred binding
> com.google.gwt.core.client.JavaScriptException: (TypeError):
> $wnd.PageBus is undefined
> fileName:
http://localhost:8080
> lineNumber: 2
> stack: ("ClientBus",[object GWTJavaObject],null)@http://localhost:8080:2
>
> Full stack trace is further down.
>
> I'm using the latest maven snapshot for errai-bus, 1.0-20100114.200325-3.
>
> Is this some really basic deployment problem, or do I have to gather
> more info before this will make sense to anyone?
>
>
> Thanks
>
> Sean.
>
> PS Tomorrow is a public holiday here in Aus, so it might take me a while
> to respond.
>
>
> 17:16:11.250 [ERROR] [org.fedorahosted.flies.webtrans.Application]
> Failed to create an instance of 'org.jboss.errai.bus.client.MessageBus'
> via deferred binding
> com.google.gwt.core.client.JavaScriptException: (TypeError):
> $wnd.PageBus is undefined
> fileName:
http://localhost:8080
> lineNumber: 2
> stack: ("ClientBus",[object GWTJavaObject],null)@http://localhost:8080:2
>
connect("http://localhost:8080/flies/org.fedorahosted.flies.webtrans.Application/Application.html?projContainerId=1&localeId=de&gwt.codesvr=10.64.0.141:9997","Rt#42IF1WbS}Y%VD","10.64.0.141:9997","org.fedorahosted.flies.webtrans.Application","2.0")@:0
> ((void
>
0),"org.fedorahosted.flies.webtrans.Application","http://localhost:8080/flies/org.fedorahosted.flies.webtrans.Application/")@http://localhost:8080/flies/org.fedorahosted.flies.webtrans.Application/hosted.html?org_fedorahosted_flies_webtrans_Application:264
>
z()@http://localhost:8080/flies/org.fedorahosted.flies.webtrans.Application/org.fedorahosted.flies.webtrans.Application.nocache.js:2
>
(51)@http://localhost:8080/flies/org.fedorahosted.flies.webtrans.Application/org.fedorahosted.flies.webtrans.Application.nocache.js:8
> at
>
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:195)
> at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
> at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
> at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
> at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
> at
>
org.jboss.errai.bus.client.ClientMessageBusImpl._subscribe(ClientMessageBusImpl.java)
> at
>
org.jboss.errai.bus.client.ClientMessageBusImpl.subscribe(ClientMessageBusImpl.java:103)
> at
> org.jboss.errai.bus.client.ClientMessageBusImpl.init(ClientMessageBusImpl.java:331)
> at
> org.jboss.errai.bus.client.ClientMessageBusImpl.init(ClientMessageBusImpl.java:325)
> at
>
org.jboss.errai.bus.client.ClientMessageBusImpl.<init>(ClientMessageBusImpl.java:76)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
> at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:422)
> at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
> at com.google.gwt.core.client.GWT.create(GWT.java:98)
> at org.jboss.errai.bus.client.ErraiBus.<clinit>(ErraiBus.java:27)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:264)
> at
> com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:580)
> at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:348)
> at
>
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:185)
> at
>
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:380)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)
> at java.lang.Thread.run(Thread.java:636)
>
>
>
>
> --
> Sean Flanigan
>
> Senior Software Engineer
> Engineering - Internationalisation
> Red Hat
>
> _______________________________________________
> errai-users mailing list
> errai-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/errai-users
--
Sean Flanigan
Senior Software Engineer
Engineering - Internationalisation
Red Hat