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

Thread: How to uninstall/reinstall/update Spring Surf Roo Addon

  1. #11
    Join Date
    Jan 2011
    Posts
    13

    Default

    Not sure I'm doing this right.

    gene$ mvn -v
    Apache Maven 2.2.1 (r801777; 2009-08-06 14:16:01-0500)
    Java version: 1.6.0_22
    Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    Default locale: en_US, platform encoding: MacRoman
    OS name: "mac os x" version: "10.6.6" arch: "x86_64" Family: "mac"

    Checked out trunk, ran mvn install, and got successful build.

    from inside STS2.5.2, roo shell, i run the following command:
    osgi install --url file://path/to/spring-surf-roo-addon-1.0.0.CI-SNAPSHOT-roo-addon.zip

    with the following result:
    java.lang.NullPointerException

  2. #12
    Join Date
    Jan 2011
    Posts
    13

    Default

    OK, getting closer.

    Switched to Maven 3, checked out DEV_MAVEN3 everything builds until I get to spring-surf-roo-addon!

    Looks like the culprit is org.springframework.roo.addon.backup-1.0.2.RELEASE.jar, cannot read

    Code:
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project spring-surf-roo-addon: Compilation failure
    error: error reading /Users/gene/.m2/repository/org/springframework/roo/org.springframework.roo.addon.backup/1.0.2.RELEASE/org.springframework.roo.addon.backup-1.0.2.RELEASE.jar; cannot read zip file
    
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
    	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    	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.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.apache.maven.plugin.CompilationFailureException: Compilation failure
    error: error reading /Users/gene/.m2/repository/org/springframework/roo/org.springframework.roo.addon.backup/1.0.2.RELEASE/org.springframework.roo.addon.backup-1.0.2.RELEASE.jar; cannot read zip file
    
    	at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
    	at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    	... 19 more
    have deleted from my maven repo and rerun with same results. Any tips?

    Thanks, gene

  3. #13
    Join Date
    Jan 2011
    Posts
    13

    Question

    Upon further inspection, that is a 0byte sized file. See this url:

    http://maven.alfresco.com/nexus/cont...1.0.2.RELEASE/

    Can someone update that repo? or does it need to point somewhere else? This is a LOT of work just to get setup to do some work.

  4. #14
    Join Date
    Jan 2011
    Posts
    13

    Default

    I found another copy of the 0 byte jar, replaced in my maven repo, and got a successful build for spring-surf-roo-addon project. However, I still get a java.lang.NullPointerException when I run the following command within roo:

    Code:
    osgi install --url file:/Users/gene/spring-surf-dev-m3/trunk/spring-surf-devtools/spring-surf-roo-addon/target/spring-surf-roo-addon-1.0.0.CI-SNAPSHOT-roo-addon.zip
    I've tried from within STS, and also from command line (Roo 1.1.1.RELEASE).

    Guess I'll start learning to create surf projects from hand, not sure what else to do.

  5. #15

    Default

    Have the same issue.
    It is really weird that nobody can provide any solution for that.

    I have:
    1. Roo version 1.1.2.RELEASE + Linux + ROO_HOME/bin in path and soft link created.
    2. Tried as suggested addon install --url http://...
    -> Failed because there is no any --url option for addon install
    3. Download addon manually and tried install through out osgi
    roo> osgi start file:/home/user/....zip
    -> failed because it is not osgi bundle
    Then extract from archive spring-surf-roo-addon-1.0.0-RC2.jar and do the same for it
    roo> osgi start file://local/path/to/spring-surf-roo-addon-1.0.0-RC2.jar

    Bundle successfully installed and active.
    I.e.
    roo> osgi ps
    ...
    [ 67] [Active ] [ 1] file:/home/me/Java/springsource/spring-surf-roo-addon-1.0.0-RC2.jar

    But!

    roo> help surf install

    ** Type 'hint' (without the quotes) and hit ENTER for step-by-step guidance **

    roo> surf install

    roo> surf install
    Command 'surf install' not found (for assistance press TAB or type "hint" then hit ENTER)
    addon search --requiresCommand "surf install" found no matches

    So, this is just installed as OSGi bundle but not Roo addon.

    Is anybody has a clue how to use this advertised support for Spring Roo + Spring Surf?

    Any ideas please...

  6. #16
    Join Date
    May 2010
    Location
    Ivory Coast
    Posts
    3

    Default Spring Surf Roo Addon

    I have the same problem, it seems that the only solution it's an downgrade to roo 1.0. I'll try it for see.

  7. #17

    Default

    My suggestion is: get rid of Roo. You don't need it. Just find sources for Spring Surf and you can find a number of sample applications for Spring Surf like pet clinic, quick start and travel application. I had issues with get it working while deploying from Eclipse but at least you will get idea how to deal with Spring Surf.

    IMHO: Spring Surf is too new and don't have good documentation. Even Alfresco that is source for Surf doesn't provide good documentation. So only way you have is take a look into Alfresco / Spring Surf samples code and guess how it suppose to work.

  8. #18
    Join Date
    Jan 2011
    Posts
    13

    Default

    SEMI SUCCESS!
    installed STS2.7.0.M1, downloaded Roo.1.1.4.RELEASE and updated STS, checked out latest se-surf trunk, mvn install, from inside sts roo prompt run osgi start --url file:/[Path/To/jar/file], then I can run surf install command.

    The problem is it only creates the config files, and does not create the sample files. That is probably ok, but it seems to hang and not return to the roo prompt. Anyone else seen this behavior? Know where to see what is hung up? log file? Thanks in advance

    gene

  9. #19
    Join Date
    Oct 2010
    Posts
    26

    Default

    Same problem.
    I tested every suggested soluion but I failed.
    Could someone provide step by step installation description for Roo 1.1.3 ?
    Tks
    Tullio

Posting Permissions

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