Announcement Announcement Module
Collapse
No announcement yet.
GWT, Spring ROO & Mongo DB - integration issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • GWT, Spring ROO & Mongo DB - integration issue

    Hi,
    I am working on a project using Spring ROO 1.2.0.GA release, mongodb 2.0.1 and gwt2.4.0.
    I'm able to integrate Spring ROO and GWT, but when I try to connect to Mongo db, I get the following errors:

    Error:

    [ERROR] SEVERE: Could not find the locator type specified in the @com.google.web
    .bindery.requestfactory.shared.ProxyForName annotation com.gwtmongo.Person
    [ERROR] java.lang.ClassNotFoundException: com.gwtmongo.server.locator.PersonLoca
    tor

    ...

    [ERROR] SEVERE: Unexpected error
    [ERROR] com.google.web.bindery.requestfactory.server.Unexp ectedException: Could
    not find the locator type specified in the @com.google.web.bindery.requestfactor
    y.shared.ProxyForName annotation com.gwtmongo.Person
    [ERROR] at com.google.web.bindery.requestfactory.server.Servi ceLayerDeco
    rator.die(ServiceLayerDecorator.java:216)
    [ERROR] at com.google.web.bindery.requestfactory.server.Locat orServiceLa
    yer.resolveLocator(LocatorServiceLayer.java:127)
    [ERROR] at com.google.web.bindery.requestfactory.server.Servi ceLayerDeco
    rator.resolveLocator(ServiceLayerDecorator.java:15 7)

    I think it is missing the PersonLocator class, but I'm not sure how to generate it. If someone can help me on this, that would be great. I appreciate it.


    I am following these steps

    1) project --topLevelPackage com.gwtmongo
    2) mongo setup
    3) entity mongo --class ~.Person --testAutomatically
    4) field string --fieldName firstName --notNull
    5)web mvc setup
    6) web mvc all --package ~.web
    7)repository mongo --interface ~.repository.PersonRepository --entity ~.Person
    8)service --interface ~.service.PersonService --entity ~.Person
    9)web gwt setup
    10) web gwt request all --package ~.client.request
    11) web gwt proxy all --package ~.client.proxy
    12)web gwt scaffold --proxyPackage ~.client.proxy --requestPackage ~.client.request --type ~.Person
    13)perform package
    14) mvn gwt:run

    Thanks

    Ramesh

  • #2
    Full stack trace

    Here is the full stack trace, any help would be appreciated


    [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
    [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
    [ERROR] at org.mortbay.jetty.webapp.WebAppClassLoader.loadCla ss(WebAppCl
    assLoader.java:352)
    [ERROR] at org.mortbay.jetty.webapp.WebAppClassLoader.loadCla ss(WebAppCl
    assLoader.java:337)
    [ERROR] at java.lang.Class.forName0(Native Method)
    [ERROR] at java.lang.Class.forName(Class.java:247)
    [ERROR] at com.google.web.bindery.requestfactory.server.Locat orServiceLa
    yer.resolveLocator(LocatorServiceLayer.java:122)
    [ERROR] ... 46 more
    [ERROR] Mon Dec 19 23:24:17 EST 2011 WireActivityLogger
    [ERROR] SEVERE: Server Error 500 <html>
    [ERROR] <head>
    [ERROR] <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/
    >
    [ERROR] <title>Error 500 INTERNAL_SERVER_ERROR</title>
    [ERROR] </head>
    [ERROR] <body><h2>HTTP ERROR: 500</h2><pre>INTERNAL_SERVER_ERROR</pre>
    [ERROR] <p>RequestURI=/gwtRequest</p><p><i><small><a href="http://jetty.mortbay.
    org/">Powered by Jetty://</a></small></i></p><br/>

    [ERROR]
    [ERROR] Mon Dec 19 23:24:20 EST 2011 com.springsource.pizzashop2.client.scaffold
    .Scaffold
    [ERROR] SEVERE: One or more exceptions caught, see full set in UmbrellaException
    #getCauses
    [ERROR] com.google.web.bindery.event.shared.UmbrellaExcept ion: One or more excep
    tions caught, see full set in UmbrellaException#getCauses
    [ERROR] at com.google.web.bindery.requestfactory.shared.impl. AbstractReq
    uestContext.fail(AbstractRequestContext.java:727)
    [ERROR] at com.google.web.bindery.requestfactory.shared.impl. AbstractReq
    uestContext$5.onTransportFailure(AbstractRequestCo ntext.java:1104)
    [ERROR] at com.springsource.pizzashop2.client.scaffold.reques t.EventSour
    ceRequestTransport$1.onTransportFailure(EventSourc eRequestTransport.java:40)
    [ERROR] at com.google.web.bindery.requestfactory.gwt.client.D efaultReque
    stTransport$1.onResponseReceived(DefaultRequestTra nsport.java:140)
    [ERROR] at com.google.gwt.http.client.Request.fireOnResponseR eceived(Req
    uest.java:287)
    [ERROR] at com.google.gwt.http.client.RequestBuilder$1.onRead yStateChang
    e(RequestBuilder.java:395)
    [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAcces
    sorImpl.java:39)
    [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMet
    hodAccessorImpl.java:25)
    [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
    [ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(Meth odAdaptor.j
    ava:103)
    [ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(Met hodDispatch
    .java:71)
    [ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invok e(OophmSess
    ionHandler.java:172)
    [ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reac tToMessages
    WhileWaitingForReturn(BrowserChannelServer.java:33 7)
    [ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.invo keJavascrip
    t(BrowserChannelServer.java:218)
    [ERROR] at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke (ModuleSpac
    eOOPHM.java:136)
    [ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNative( ModuleSpace
    .java:561)
    [ERROR] at com.google.gwt.dev.shell.ModuleSpace.invokeNativeO bject(Modul
    eSpace.java:269)
    [ERROR] at com.google.gwt.dev.shell.JavaScriptHost.invokeNati veObject(Ja
    vaScriptHost.java:91)
    [ERROR] at com.google.gwt.core.client.impl.Impl.apply(Impl.ja va)
    [ERROR] at com.google.gwt.core.client.impl.Impl.entry0(Impl.j ava:213)
    [ERROR] at sun.reflect.GeneratedMethodAccessor45.invoke(Unkno wn Source)
    [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMet
    hodAccessorImpl.java:25)
    [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
    [ERROR] at com.google.gwt.dev.shell.MethodAdaptor.invoke(Meth odAdaptor.j
    ava:103)
    [ERROR] at com.google.gwt.dev.shell.MethodDispatch.invoke(Met hodDispatch
    .java:71)
    [ERROR] at com.google.gwt.dev.shell.OophmSessionHandler.invok e(OophmSess
    ionHandler.java:172)
    [ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.reac tToMessages
    (BrowserChannelServer.java:292)
    [ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.proc essConnecti
    on(BrowserChannelServer.java:546)
    [ERROR] at com.google.gwt.dev.shell.BrowserChannelServer.run( BrowserChan
    nelServer.java:363)
    [ERROR] at java.lang.Thread.run(Thread.java:662)
    [ERROR] Caused by: java.lang.RuntimeException: Server Error 500 <html>
    [ERROR] <head>
    [ERROR] <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/
    >
    [ERROR] <title>Error 500 INTERNAL_SERVER_ERROR</title>
    [ERROR] </head>
    [ERROR] <body><h2>HTTP ERROR: 500</h2><pre>INTERNAL_SERVER_ERROR</pre>
    [ERROR] <p>RequestURI=/gwtRequest</p><p><i><small><a href="http://jetty.mortbay.
    org/">Powered by Jetty://</a></small></i></p><br/>

    Thanks in advance
    Ramesh

    Comment


    • #3
      The GWT add-on does not generate code for use with repositories (either JPA or Mongo) - see https://jira.springsource.org/browse/ROO-2903. You will need to use JPA active record entities for now.

      Comment


      • #4
        Thanks Alan, Could you please tell me when this feature available in spring roo ?
        can I use spring Roo,JPA,GWT with Mongo all together ?

        Thanks
        Ramesh

        Comment

        Working...
        X