Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Error in STS roo/gwt tutorial -Could not find any host pages in project

  1. #11
    Join Date
    May 2010
    Posts
    4

    Default

    I tried to get this to work in STS/Eclipse as well, but after adding a new Web Application with url from the mvn gwt:run-dialog, something *really* bad happend, and the HD started to buzz. Then it started to show up error messages that Eclipse/Maven couldnt delete c:\program files and a whole other folders. By that time I closed down eclipse, and killed the process. Allready it had removed about 20GB of data from my C:\; pretty much everything it could remove that wasn't in use or in the c:\windows folder. I've spend the best part of the afternoon trying to get everything back from the shadow backup Vista does in the background. Besides some files with very long names (there were a few) I think I have got it all back. Not sure if my machine will boot up next time though.

    All in all, doing this in Eclipse is nothing I will touch with a 10" pole untill the bugs have been ironed out and fixed.

    /Björn

  2. #12
    Join Date
    Jan 2008
    Posts
    182

    Default

    Was the project set up in the c:/ location rather than a subfolder?

  3. #13
    Join Date
    May 2010
    Posts
    4

    Default

    Sorry, forum was down when I last tried to reply, and then its been busy.

    But no, I did not specify any root folder for Maven, nor did I specify where the root system should have been in Eclipse. I just followed the instructions, then did the extra steps in the roo prompt, and then tried to build it in Eclipse.

    I had some issues on the next restart, had to do a repair just to be able to start up Windows, so I'm not too keen on trying this again to see exactly what I did.

    /Björn

  4. #14
    Join Date
    Sep 2008
    Posts
    9

    Default Same issue: could not find any host pages n project hello.

    Today I downloaded the STS 2.3.3 milestone 1 zip file to play with the Google integration. I created the hello project as described here, http://www.springsource.com/download...oad?sid=550237 and got the same error when I tried to run it, "Could not find any host pages in project hello." I've done this twice now, so I think I'm getting it right. I'm evaluating this for use in a project. So far, not so good.

    PS: My workspaces is in the default workspace that STS creates in the the documents folder, workspace-sts-2.3.3.M1.

    Thanks for any insight you can provide.

  5. #15
    Join Date
    Mar 2008
    Location
    Portland OR
    Posts
    44

    Default Circular view path [resourceNotFound]:

    Hi, I just did a fresh install with the latest versions and am getting this error when the application is loaded after "mvn gwt:run" is entered on the command line and the localhost:8080 is loaded...

    First you see the datanucleus warnings for version range, (which I assume can be ignored) and then the
    "Circular view path [resourceNotFound]: w
    ould dispatch back to the current handler URL [/app/resourceNotFound] ag
    ain. Check your ViewResolver setup! (Hint: This may be the result of an
    unspecified view"

    My project just has a single entity with String and Date fields. Is this not a showstopper for new projects? What resource is missing?


    Code:
    [INFO] [gae:run]
    Jun 23, 2010 11:54:06 PM com.google.apphosting.utils.jetty.JettyLogger i
    nfo
    INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty
    .JettyLogger
    Jun 23, 2010 11:54:06 PM com.google.apphosting.utils.config.AppEngineWeb
    XmlReader readAppEngineWebXml
    INFO: Successfully processed C:\Documents and Settings\Mark\dev\work\kan
    ote\kanote-roo\target\kanote-0.1.0-SNAPSHOT\WEB-INF/appengine-web.xml
    Jun 23, 2010 11:54:06 PM com.google.apphosting.utils.config.AbstractConf
    igXmlReader readConfigXml
    INFO: Successfully processed C:\Documents and Settings\Mark\dev\work\kan
    ote\kanote-roo\target\kanote-0.1.0-SNAPSHOT\WEB-INF/web.xml
    2010-06-23 23:54:08,544 [main] ERROR DataNucleus.Plugin - Bundle "org.da
    tanucleus.store.appengine" requires "org.datanucleus" version "[1.0.4, 1
    .1.5.final)" but the resolved bundle has version "1.0.7.final" which is
    outside the expected range.
    2010-06-23 23:54:09,200 [main] ERROR DataNucleus.Plugin - Bundle "org.da
    tanucleus.store.appengine" requires "org.datanucleus" version "[1.0.4, 1
    .1.5.final)" but the resolved bundle has version "1.0.7.final" which is
    outside the expected range.
    Jun 23, 2010 4:54:11 PM com.google.appengine.tools.development.DevAppSer
    verImpl start
    INFO: The server is running at http://localhost:8080/
    Jun 23, 2010 4:54:28 PM com.google.appengine.tools.development.LocalReso
    urceFileServlet doGet
    WARNING: No file found for: /applicationScaffold/applicationScaffold.noc
    ache.js
    Jun 23, 2010 4:54:28 PM com.google.apphosting.utils.jetty.JettyLogger wa
    rn
    WARNING: EXCEPTION
    javax.servlet.ServletException: Circular view path [resourceNotFound]: w
    ould dispatch back to the current handler URL [/app/resourceNotFound] ag
    ain. Check your ViewResolver setup! (Hint: This may be the result of an
    unspecified view, due to default view name generation.)
            at org.springframework.web.servlet.view.InternalResourceView.pre
    pareForRendering(InternalResourceView.java:275)
            at org.springframework.web.servlet.view.InternalResourceView.ren
    derMergedOutputModel(InternalResourceView.java:214)
            at org.springframework.web.servlet.view.AbstractView.render(Abst
    ractView.java:250)
            at org.springframework.web.servlet.DispatcherServlet.render(Disp
    atcherServlet.java:1060)
            at org.springframework.web.servlet.DispatcherServlet.doDispatch(
    DispatcherServlet.java:798)
            at org.springframework.web.servlet.DispatcherServlet.doService(D
    ispatcherServlet.java:716)
            at org.springframework.web.servlet.FrameworkServlet.processReque
    st(FrameworkServlet.java:644)
            at org.springframework.web.servlet.FrameworkServlet.doGet(Framew
    orkServlet.java:549)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
            at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.
    java:511)
            at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandle
    r.java:390)
            at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHan
    dler.java:216)
            at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandle
    r.java:182)
            at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandle
    r.java:765)
            at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.j
    ava:418)
            at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.h
    andle(DevAppEngineWebAppContext.java:70)
            at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:
    327)
            at org.mortbay.jetty.servlet.Dispatcher.error(Dispatcher.java:13
    5)
            at org.mortbay.jetty.servlet.ErrorPageErrorHandler.handle(ErrorP
    ageErrorHandler.java:129)
            at org.mortbay.jetty.Response.sendError(Response.java:274)
            at org.mortbay.jetty.Response.sendError(Response.java:342)
            at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpS
    ervletResponseWrapper.java:121)
            at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpS
    ervletResponseWrapper.java:121)
            at com.google.appengine.tools.development.LocalResourceFileServl
    et.doGet(LocalResourceFileServlet.java:139)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
            at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.
    java:511)
            at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandle
    r.java:390)
            at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHan
    dler.java:216)
            at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandle
    r.java:182)
            at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandle
    r.java:765)
            at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.j
    ava:418)
            at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.h
    andle(DevAppEngineWebAppContext.java:70)
            at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:
    327)
            at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:
    126)
            at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrit
    e(NormalRewrittenUrl.java:195)
            at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(Rul
    eChain.java:159)
            at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain
    .java:141)
            at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(
    UrlRewriter.java:90)
            at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(U
    rlRewriteFilter.java:417)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
    (ServletHandler.java:1157)
            at org.springframework.web.filter.HiddenHttpMethodFilter.doFilte
    rInternal(HiddenHttpMethodFilter.java:77)
            at org.springframework.web.filter.OncePerRequestFilter.doFilter(
    OncePerRequestFilter.java:76)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
    (ServletHandler.java:1157)
            at org.springframework.web.filter.CharacterEncodingFilter.doFilt
    erInternal(CharacterEncodingFilter.java:88)
            at org.springframework.web.filter.OncePerRequestFilter.doFilter(
    OncePerRequestFilter.java:76)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
    (ServletHandler.java:1157)
            at org.springframework.orm.jpa.support.OpenEntityManagerInViewFi
    lter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
            at org.springframework.web.filter.OncePerRequestFilter.doFilter(
    OncePerRequestFilter.java:76)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
    (ServletHandler.java:1157)
            at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilt
    er(ServeBlobFilter.java:51)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
    (ServletHandler.java:1157)
            at com.google.apphosting.utils.servlet.TransactionCleanupFilter.
    doFilter(TransactionCleanupFilter.java:43)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
    (ServletHandler.java:1157)
            at com.google.appengine.tools.development.StaticFileFilter.doFil
    ter(StaticFileFilter.java:122)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
    (ServletHandler.java:1157)
            at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandle
    r.java:388)
            at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHan
    dler.java:216)
            at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandle
    r.java:182)
            at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandle
    r.java:765)
            at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.j
    ava:418)
            at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.h
    andle(DevAppEngineWebAppContext.java:70)

  6. #16
    Join Date
    Jul 2010
    Posts
    6

    Default

    I'm also getting the error "Could not find any host pages in project xyz."

    Unfortunately, unlike the other posters, when I type "mvn gwt:run" I get the following error...

    Command 'mvn gwt:run' not found (for assistance press CTRL+SPACE or type "hint" then hit ENTER)

  7. #17
    Join Date
    Jun 2010
    Posts
    7

    Default

    Quote Originally Posted by eweber View Post
    I'm also getting the error "Could not find any host pages in project xyz."

    Unfortunately, unlike the other posters, when I type "mvn gwt:run" I get the following error...

    Command 'mvn gwt:run' not found (for assistance press CTRL+SPACE or type "hint" then hit ENTER)
    Obviously, you try to run "mvn gwt:run" from the roo shell, while you should run this standalone;

  8. #18
    Join Date
    Jul 2010
    Posts
    2

    Default Problem saving date fields using DataNucleus

    hello all!

    For me, I can run the extrack application from command line without any errors using mvn:gwt run. I can even save and retrieve a new Employee records!!!

    But, I am having problems saving a new 'Report'. Everytime I hit save it says 'unexpected server error' in the app.

    I did investigate this problem and so far I am certain that this happens only when trying to save objects that have a 'Date' field and the actual server error is to do with trying to insert null into a not null field (in this case the date field).

    If I change the database to PostgresSQL and look at the auto-generated schema, the date field in the report is indeed created as a 'not null' field. If I manully uncheck the 'not null' copnfiguration (making the field accept nulls), the app can successfully save reports.

    Also, if I switch the ORM to Hibernate (instead of Datanucleus) this problem does not happen and everything works as expected.

    So if there a known issue with DataNucleus to with date fields?

    (I have already spend couple of days to nail down this problem so far! So any help will be very much appreciated)

    Thanks,

    Deepak

  9. #19
    Join Date
    Aug 2010
    Posts
    2

    Default could not find any host pages in project extrack

    I get the "could not find any host pages in project extrack" Problem only when I try to start the project from within STS. I created the project using the script from the samples folder on the roo command line, and was able to start the Application with "mvn gwt:run".
    Then I did a "perform eclipse" from the roo command line and imported the project to STS. In STS I added the Google Plugin and the DataNucleus Plugin as mentioned here: http://blog.springsource.com/2010/06...h-roo-and-gwt/ (but manually because they are not present on the Extension Tab of the Dashboard as said in the Article).

    In the projects context menu I activated maven->enable Dependency Management. When I try to "run as ->Web Application" I get the forementioned Error.

    Regards

    Peter

  10. #20
    Join Date
    Jun 2011
    Posts
    21

    Default

    Hi,

    I found the following solution:

    0. Make sure your webapps\*.html file registered the *.nocache.js and *.css
    1. Disable your maven Dependency Management
    2. Unchecked Google Web setting
    3. Refresh you project
    4. Now gain checked Google Web setting
    5. Enable your maven Dependency Management again
    6. Clean project

    source:
    http://citadeladbar.blogspot.com/201...s-for-gwt.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •