Thank you Heiko... That was a very helpful, I must have done something in my war
structure to mess up the location of those files... That is fixed and I've gotten a
lot of further, but now I'm running into one more error client side this time.
Have you ever seen this?
Refused to set unsafe header "Connection"
D75C2B1F639A46AEDBE23F206FF83B97.cache.html:4006XHR finished loading:
"http://localhost:8080/AccessManager/AccessManager/in.erraiBus".
(and I get a lot of these errors)
I'm seeing that in my safari error console... Again if I run this via gwt devmode
using safari, it works fine...
I verified that the in.erraiBus is running... if i invoke it via the web, I get this back
in the browser.
{"ClientBus":{CommandType:"Disconnect",Reason:"There is no queue
associated with this session."}}
Thanks again...
Chris
On Mar 5, 2010, at 10:28 AM, Heiko Braun wrote:
The default blocking servlet is meant to used on any container,
the other servlets are optimizations for different target runtimes
but use proprietary API. I.e. tomcat or jetty NIO API.
But regarding your error:
That happens when ErraiService.properties cannot be found on the classpath.
Errai actually requires one marker [1] and one config file [2]:
[1] ErraiApp.properties: mandatory for any classpath entry (*.jar) that contains
annotated errai components
[2] ErraiService.properties: The bus configuration
/Heiko
On Mar 5, 2010, at 4:24 PM, Christopher Gokey wrote:
> Thanks for your reply...
>
> Yes, that got rid of the jetty exception, now I'm getting this:
>
> Mar 5, 2010 10:21:38 AM org.apache.catalina.core.ApplicationContext log
> INFO: Marking servlet ErraiServlet as unavailable
> Mar 5, 2010 10:21:38 AM org.apache.catalina.core.StandardContext loadOnStartup
> SEVERE: Servlet /AccessManager threw load() exception
> java.util.MissingResourceException: Can't find bundle for base name ErraiService,
locale en_US
> at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
> at java.util.ResourceBundle.getBundle(ResourceBundle.java:715)
> at
org.jboss.errai.bus.server.service.ErraiServiceConfiguratorImpl.configure(ErraiServiceConfiguratorImpl.java:91)
> at
org.jboss.errai.bus.server.service.ErraiServiceImpl.init(ErraiServiceImpl.java:152)
> at
org.jboss.errai.bus.server.service.ErraiServiceImpl.<init>(ErraiServiceImpl.java:61)
> at
org.jboss.errai.bus.server.service.ErraiServiceImpl$$FastClassByGuice$$7879947c.newInstance(<generated>)
> at
com.google.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
>
>
> What do I need to include to get past this exception?
>
> Just curious, if there any difference in functionality between the
DefaultBlockingServlet and the Jetty NIO Servlet.
>
> Thanks again.
> Chris
>
> On Mar 5, 2010, at 10:14 AM, Heiko Braun wrote:
>
>>
>> Take a look at the web.xml. It probably refers to the Jetty NIO Servlet.
>> Replace it with the default blocking servlet that works on any target container:
>>
>> <servlet>
>> <servlet-name>ErraiServlet</servlet-name>
>>
<servlet-class>org.jboss.errai.bus.server.servlet.DefaultBlockingServlet</servlet-class>
>> <load-on-startup>1</load-on-startup>
>> </servlet>
>>
>> Let me know if that fixes your problem.
>>
>> /Heiko
>>
>> On Mar 5, 2010, at 4:11 PM, Christopher Gokey wrote:
>>
>>> I'm trying to get errai-1.0.0 to work in my tomcat servlet container and
having trouble... It works fine in jetty. I'm getting
>>> a java.lang.ClassNotFoundException: org.mortbay.jetty.RetryRequest and need a
jetty class but I tried adding the jetty-6.1.22.jar but that didn't work either...
See stack traces below. The jars in my WEB-INF/lib include:
>>>
>>> errai-bus-1.0.0.jar gwt-mosaic-dnd-0.2.0.jar log4j-1.2.14.jar
>>> errai-common-1.0.0.jar gwt-servlet-2.0.3.jar mvel2-2.0.16.jar
>>> guice-2.0-aopalliance.jar gwt-servlet.jar slf4j-api-1.5.10.jar
>>> guice-2.0.jar gwt-user-2.0.3.jar slf4j-log4j12-1.5.10.jar
>>> guice-servlet-2.0.jar gxt-2.1.1.jar
>>> gwt-dev-2.0.3.jar
>>>
>>> What am I missing? :)
>>>
>>> Any help would be really appreciated.
>>> Chris
>>>
>>> NOT including the jetty-6.1.22.jar in my WEB-INF/lib, I get this stack
trace:
>>>
>>> SEVERE: Servlet /AccessManager threw load() exception
>>> java.lang.ClassNotFoundException: org.mortbay.jetty.RetryRequest
>>> at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>>> at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)
>>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>>> at java.lang.Class.getConstructor0(Class.java:2699)
>>> at java.lang.Class.newInstance0(Class.java:326)
>>> at java.lang.Class.newInstance(Class.java:308)
>>> at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116)
>>> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
>>> at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
>>> at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
>>> at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>>> at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
>>> at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
>>> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
>>> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
>>> at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
>>> at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>> at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>> at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
>>> 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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>>
>>> INCLUDING the jetty-6.1.22.jar in my WEB-INF/lib, I get the is stack trace:
>>>
>>> SEVERE: Servlet /AccessManager threw load() exception
>>> java.util.MissingResourceException: Can't find bundle for base name
ErraiService, locale en_US
>>> at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
>>> at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
>>> at java.util.ResourceBundle.getBundle(ResourceBundle.java:715)
>>> at
org.jboss.errai.bus.server.service.ErraiServiceConfiguratorImpl.configure(ErraiServiceConfiguratorImpl.java:91)
>>> at
org.jboss.errai.bus.server.service.ErraiServiceImpl.init(ErraiServiceImpl.java:152)
>>> at
org.jboss.errai.bus.server.service.ErraiServiceImpl.<init>(ErraiServiceImpl.java:61)
>>> at
org.jboss.errai.bus.server.service.ErraiServiceImpl$$FastClassByGuice$$7879947c.newInstance(<generated>)
>>> at
com.google.inject.internal.cglib.reflect.FastConstructor.newInstance(FastConstructor.java:40)
>>> at
com.google.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
>>> at
com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
>>> at
com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
>>> at
com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
>>> at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
>>> at
com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
>>> at com.google.inject.Scopes$1$1.get(Scopes.java:54)
>>> at
com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
>>> at com.google.inject.FactoryProxy.get(FactoryProxy.java:56)
>>> at com.google.inject.InjectorImpl$4$1.call(InjectorImpl.java:758)
>>> at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
>>> at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:754)
>>> at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:793)
>>> at
org.jboss.errai.bus.server.servlet.AbstractErraiServlet.<init>(AbstractErraiServlet.java:28)
>>> at
org.jboss.errai.bus.server.servlet.JettyContinuationsServlet.<init>(JettyContinuationsServlet.java:30)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>> at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>> at java.lang.Class.newInstance0(Class.java:355)
>>> at java.lang.Class.newInstance(Class.java:308)
>>> at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116)
>>> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
>>> at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
>>> at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
>>> at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>>> at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
>>> at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)
>>> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)
>>> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
>>> at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
>>> at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>> at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>> at org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>> at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
>>> 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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>>
>>>
>>>
>>> _______________________________________________
>>> errai-users mailing list
>>> errai-users(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/errai-users
>>
>
>
> _______________________________________________
> errai-users mailing list
> errai-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/errai-users