Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: Appengine error running GWT expense sample

  1. #21
    Join Date
    Jan 2011
    Posts
    1

    Default

    I'm just starting to try out Roo & STS and this issue gave me grief too.
    Finally got mvn gwt:run to work after adding the dependency as suggested by chh315, but still having some difficulties getting the sample project to run properly within STS.

    All this was with a clean install of STS and meticulously following the instructions here: http://blog.springsource.com/2010/06...h-roo-and-gwt/
    It's definitely made my adoption of roo take much longer than I thought it would.

  2. #22
    Join Date
    Feb 2011
    Posts
    9

    Default I'm getting similar error on roo example hello

    When I do roo perform tests I get:
    [Thread-8] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compile
    r-plugin:2.1:compile (default-compile) on project foo: Compilation failure: Comp
    ilation failure:
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\GaeAuthFilter.java:[3,37] package com.google.appengine.api.users does
    not exist
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\GaeAuthFilter.java:[4,37] package com.google.appengine.api.users does
    not exist
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\UserServiceWrapper.java:[3,37] package com.google.appengine.api.users
    does not exist
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\UserServiceWrapper.java:[16,8] cannot find symbol
    [Thread-8] [ERROR] symbol : class User
    [Thread-8] [ERROR] location: interface com.foo.server.gae.UserServiceWrapper
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\UserServiceLocator.java:[3,37] package com.google.appengine.api.users
    does not exist
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\UserServiceLocator.java:[4,37] package com.google.appengine.api.users
    does not exist
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\UserServiceLocator.java:[5,37] package com.google.appengine.api.users
    does not exist
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\GaeAuthFilter.java:[21,2] cannot find symbol
    [Thread-8] [ERROR] symbol : class UserService
    [Thread-8] [ERROR] location: class com.foo.server.gae.GaeAuthFilter
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\GaeAuthFilter.java:[21,28] cannot find symbol
    [Thread-8] [ERROR] symbol : variable UserServiceFactory
    [Thread-8] [ERROR] location: class com.foo.server.gae.GaeAuthFilter
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\UserServiceLocator.java:[13,8] cannot find symbol
    [Thread-8] [ERROR] symbol : class UserService
    [Thread-8] [ERROR] location: class com.foo.server.gae.UserServiceLocator
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\UserServiceLocator.java:[13,30] cannot find symbol
    [Thread-8] [ERROR] symbol : variable UserServiceFactory
    [Thread-8] [ERROR] location: class com.foo.server.gae.UserServiceLocator
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] \Users\John\Programming\Projects\hello\src\main\ja va\com\foo\
    server\gae\UserServiceLocator.java:[24,10] cannot find symbol
    [Thread-8] [ERROR] symbol: class User
    [Thread-8] [ERROR] public User getCurrentUser() {
    [Thread-8] [ERROR] -> [Help 1]
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] To see the full stack trace of the errors, re-run Maven with
    the -e switch.
    [Thread-8] [ERROR] Re-run Maven using the -X switch to enable full debug logging
    .
    [Thread-8] [ERROR]
    [Thread-8] [ERROR] For more information about the errors and possible solutions,
    please read the following articles:
    [Thread-8] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/Moj
    oFailureException

    I swear. Nothing I've tried with maven has worked. I've tried numerous examples and they all fail at some point. I've tried deleting the .m2 folders as specified but it didn't work.

  3. #23
    Join Date
    Feb 2011
    Posts
    9

    Default

    Turns out: dependency add --groupId com.google.appengine --artifactId appengine-api-1.0-sdk --version 1.4.0

    worked for me too. First time I tried it I copied it from the browser.. didn't work.

    Questions is, why isn't this part of the original perform tests script?

  4. #24
    Join Date
    Feb 2011
    Location
    Philippines
    Posts
    12

    Default

    Quote Originally Posted by chh315 View Post
    try this in spring roo
    dependency add --groupId com.google.appengine --artifactId appengine-api-1.0-sdk --version 1.4.0
    Hi! What do you mean by this exactly?

    Typing this in the Roo shell?

    I am fairly new to Roo and I tried in the Roo shell and it says that it cannot find the dependency command?

    It doesn't seem to be a maven command either.

    Do you need to do this while in STS?

    I know this seems a newbie question, but feedback like this can also help other new users who might want to migrate to using STS.

  5. #25
    Join Date
    Feb 2011
    Posts
    9

    Default

    From within the roo shell. dependency is indeed a roo command as you will see if you type, help dependency

    Maybe you misspelled something.

  6. #26
    Join Date
    Feb 2011
    Location
    Philippines
    Posts
    12

    Default

    Quote Originally Posted by jdbounce View Post
    From within the roo shell. dependency is indeed a roo command as you will see if you type, help dependency

    Maybe you misspelled something.
    You were right!

    I also found out that my "expenses" directory was empty when I typed in the command. So what I did now was to run sa expenses.roo first, then the "dependency add" command.

    However, when I ran mvn gwt:run, it remains stuck downloading doxia-modules-1.1.4. Which is possibly due to the network problems I am currently experiencing with my internet service provider.


    *UPDATE: mvn gwt:run works now. I am able to open the application on Chrome.
    **UPDATE: mvn tomcat:run Gets me stuck with a "loading" notification.
    Last edited by shmoo83; Feb 10th, 2011 at 08:52 PM. Reason: Updating information again

  7. #27
    Join Date
    Apr 2007
    Posts
    6

    Default

    A Jira issue for this has been created:

    https://jira.springsource.org/browse/ROO-2458

Posting Permissions

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