Results 1 to 6 of 6

Thread: "First Project - Roo Standalone" Problem

  1. #1
    Join Date
    Feb 2011
    Posts
    5

    Default "First Project - Roo Standalone" Problem

    Hi

    I'm running Win7 and just downloaded Roo 1.1.2. I attempted the execute the "First Project - Roo Standalone" commands and it failed.

    After looking at it, I noticed the errors were pointing to Google classes not being able to be resolved. So, I eliminated the "gwt setup" command and it built and ran.

    What am I doing wrong?

    Thanks!
    JAB

  2. #2
    Join Date
    Dec 2007
    Location
    Stockholm, Sweden
    Posts
    190

    Default

    can you post the output of your maven command with -e switch

    ie mvn -e tomcat:run (use IO redirection like mvn -e tomcat:run > log.txt, and paste it in pastebin.com)
    Shahzada Hatim
    @geoaxis/twitter
    http://hatimonline.com

  3. #3
    Join Date
    Feb 2011
    Posts
    5

    Default

    [INFO] Error stacktraces are turned on.
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building foo 0.1.0.BUILD-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- aspectj-maven-plugin:1.0:compile (default) @ foo ---
    [ERROR] The import com.google.appengine cannot be resolved
    [ERROR] The import com.google.appengine cannot be resolved
    [ERROR] UserService cannot be resolved to a type
    [ERROR] UserServiceFactory cannot be resolved
    [ERROR] The import com.google.appengine cannot be resolved
    [ERROR] User cannot be resolved to a type
    [ERROR] The import com.google.appengine cannot be resolved
    [ERROR] The import com.google.appengine cannot be resolved
    [ERROR] The import com.google.appengine cannot be resolved
    [ERROR] UserService cannot be resolved to a type
    [ERROR] UserServiceFactory cannot be resolved
    [ERROR] User cannot be resolved to a type
    [WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsy ncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
    [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDriv enStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
    [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethod MockingControl has not been applied [Xlint:adviceDidNotMatch]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 7.784s
    [INFO] Finished at: Thu Mar 17 07:57:07 EDT 2011
    [INFO] Final Memory: 4M/25M
    [INFO] ------------------------------------------------------------------------
    .
    . <what follows is very similar to what I snipped out>
    .
    org.apache.maven.lifecycle.LifecycleExecutionExcep tion: Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (default) on project foo: Compiler errors :
    error at import com.google.appengine.api.users.UserService;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\GaeAuthFilter.java:3:0::0 The import com.google.appengine cannot be resolved
    error at import com.google.appengine.api.users.UserServiceFactory;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\GaeAuthFilter.java:4:0::0 The import com.google.appengine cannot be resolved
    error at UserService userService = UserServiceFactory.getUserService();
    ^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\GaeAuthFilter.java:21:0::0 UserService cannot be resolved to a type
    error at UserService userService = UserServiceFactory.getUserService();
    ^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\GaeAuthFilter.java:21:0::0 UserServiceFactory cannot be resolved
    error at import com.google.appengine.api.users.User;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceWrapper.java:3:0::0 The import com.google.appengine cannot be resolved
    error at public User getCurrentUser();
    ^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceWrapper.java:16:0::0 User cannot be resolved to a type
    error at import com.google.appengine.api.users.User;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:3:0::0 The import com.google.appengine cannot be resolved
    error at import com.google.appengine.api.users.UserService;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:4:0::0 The import com.google.appengine cannot be resolved
    error at import com.google.appengine.api.users.UserServiceFactory;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:5:0::0 The import com.google.appengine cannot be resolved
    error at final UserService service = UserServiceFactory.getUserService();
    ^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:13:0::0 UserService cannot be resolved to a type
    error at final UserService service = UserServiceFactory.getUserService();
    ^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:13:0::0 UserServiceFactory cannot be resolved
    error at public User getCurrentUser() {

    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:24:0::0 User cannot be resolved to a type

    at org.apache.maven.lifecycle.internal.MojoExecutor.e xecute(MojoExecutor.java:217)
    at org.apache.maven.lifecycle.internal.MojoExecutor.e xecute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.e xecute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModul eBuilder.buildProject(LifecycleModuleBuilder.java: 84)
    at org.apache.maven.lifecycle.internal.LifecycleModul eBuilder.buildProject(LifecycleModuleBuilder.java: 59)
    at org.apache.maven.lifecycle.internal.LifecycleStart er.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStart er.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMav en.java:319)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven .java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.jav a:534)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java :196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:1 41)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher. launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher. launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher. mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher. main(Launcher.java:352)
    Caused by: org.codehaus.mojo.aspectj.CompilationFailedExcepti on: Compiler errors :
    error at import com.google.appengine.api.users.UserService;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\GaeAuthFilter.java:3:0::0 The import com.google.appengine cannot be resolved
    error at import com.google.appengine.api.users.UserServiceFactory;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\GaeAuthFilter.java:4:0::0 The import com.google.appengine cannot be resolved
    error at UserService userService = UserServiceFactory.getUserService();
    ^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\GaeAuthFilter.java:21:0::0 UserService cannot be resolved to a type
    error at UserService userService = UserServiceFactory.getUserService();
    ^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\GaeAuthFilter.java:21:0::0 UserServiceFactory cannot be resolved
    error at import com.google.appengine.api.users.User;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceWrapper.java:3:0::0 The import com.google.appengine cannot be resolved
    error at public User getCurrentUser();
    ^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceWrapper.java:16:0::0 User cannot be resolved to a type
    error at import com.google.appengine.api.users.User;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:3:0::0 The import com.google.appengine cannot be resolved
    error at import com.google.appengine.api.users.UserService;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:4:0::0 The import com.google.appengine cannot be resolved
    error at import com.google.appengine.api.users.UserServiceFactory;
    ^^^^^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:5:0::0 The import com.google.appengine cannot be resolved
    error at final UserService service = UserServiceFactory.getUserService();
    ^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:13:0::0 UserService cannot be resolved to a type
    error at final UserService service = UserServiceFactory.getUserService();
    ^^^^^^^^^^^^^^^
    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:13:0::0 UserServiceFactory cannot be resolved
    error at public User getCurrentUser() {

    C:\Users\JAB\Work\hello\src\main\java\com\foo\serv er\gae\UserServiceLocator.java:24:0::0 User cannot be resolved to a type

    at org.codehaus.mojo.aspectj.AbstractAjcCompiler.exec ute(AbstractAjcCompiler.java:382)
    at org.apache.maven.plugin.DefaultBuildPluginManager. executeMojo(DefaultBuildPluginManager.java:107)
    at org.apache.maven.lifecycle.internal.MojoExecutor.e xecute(MojoExecutor.java:209)
    ... 19 more
    [ERROR]
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...utionException

  4. #4

    Default

    Hello, I have the same problem with gae, after I use gwt setup project cannot be compiled due to unresolved types and packages.

    What is the problem about? Is it about springroo or something else?

  5. #5

    Default

    Hey roo developers, where are you?

    Anyway I have found some kind of a path for this problem. To get it built one need after running gwt setup delete all folders named gae from src folder and its subfolders

  6. #6
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    667

    Thumbs up Fixed

    I believe this has been reported and fixed as ROO-2252.
    Andrew Swan
    "Now is the EJB of our discontent made glorious Spring"

Posting Permissions

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