Back Forum Reply New

Try Roo Example Error

I cannot seem to get the quot;Try Rooquot; example to build. I'm not new to Maven, so perhaps one of my global repositories or my own profile is screwing things up, but as I follow the example I finally receive the error as a result of the very last step quot;perform testsquot;.Code:
[Thread-9] [INFO] Scanning for projects...
[Thread-9] [INFO]                                                                        
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [INFO] Building foo 0.1.0.BUILD-SNAPSHOT
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] Downloading: nexus/content/repositories/releases/org/hibernate/hibernate-core/3.6.0.Final/hibernate-core-3.6.0.Final.pom
[Thread-9]
[Thread-9] Downloading: nexus/content/repositories/releases/org/hibernate/hibernate-entitymanager/3.6.0.Final/hibernate-entitymanager-3.6.0.Final.pom
[Thread-9]
[Thread-9] Downloading: nexus/content/repositories/releases/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.pom
[Thread-9]
[Thread-9] Downloading: nexus/content/repositories/releases/org/hibernate/hibernate-validator/4.1.0.Final/hibernate-validator-4.1.0.Final.pom
[Thread-9]
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [INFO] BUILD FAILURE
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [INFO] Total time: 2.008s
[Thread-9] [INFO] Finished at: Mon Jan 31 12:37:09 CST 2011
[Thread-9] [INFO] Final Memory: 5M/81M
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [ERROR] Failed to execute goal on project foo: Could not resolve dependencies for project com.foo:foo:war:0.1.0.BUILD-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:4.8.1 (test), log4j:log4j:jar:1.2.16 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), org.aspectj:aspectjrt:jar:1.6.11.M1 (compile), org.aspectj:aspectjweaver:jar:1.6.11.M1 (compile), javax.servlet:servlet-api:jar:2.5 (provided), net.sf.flexjson:flexjson:jar:2.0 (compile), org..roorg..roo.annotations:jar:1.1.1.RELEASE (provided), org.:spring-core:jar:3.0.5.RELEASE (compile), org.:spring-test:jar:3.0.5.RELEASE (test), org.:spring-context:jar:3.0.5.RELEASE (compile), org.:spring-aop:jar:3.0.5.RELEASE (compile), org.:spring-aspects:jar:3.0.5.RELEASE (compile), org.:spring-tx:jar:3.0.5.RELEASE (compile), org.hsqldb:hsqldb:jar:1.8.0.10 (compile), org.hibernate:hibernate-core:jar:3.6.0.Final (compile), org.hibernate:hibernate-entitymanager:jar:3.6.0.Final (compile), org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final (compile), org.hibernate:hibernate-validator:jar:4.1.0.Final (compile), javax.validation:validation-api:jar:1.0.0.GA (compile), cglib:cglib-nodep:jar:2.2 (compile), javax.transaction:jta:jar:1.1 (compile), org.:spring-jdbc:jar:3.0.5.RELEASE (compile), org.:spring-orm:jar:3.0.5.RELEASE (compile), commons-pool:commons-pool:jar:1.5.4 (compile), commons-dbcp:commons-dbcp:jar:1.3 (compile), org.apache.tiles:tiles-core:jar:2.2.1 (compile), org.apache.tiles:tiles-jsp:jar:2.2.1 (compile), org.:spring-web:jar:3.0.5.RELEASE (compile), org.:spring-webmvc:jar:3.0.5.RELEASE (compile), org..webflow:spring-js-resources:jar:2.2.1.RELEASE (compile), commons-digester:commons-digester:jar:2.0 (compile), commons-fileupload:commons-fileupload:jar:1.2.1 (compile), javax.servlet:jstl:jar:1.2 (compile), javax.el:el-api:jar:1.0 (provided), joda-time:joda-time:jar:1.6 (compile), javax.servlet.jsp:jsp-api:jar:2.1 (provided), com.google.gwt:gwt-servlet:jar:2.1.1 (compile), com.google.gwt:gwt-user:jar:2.1.1 (provided), org.json:json:jar:20090211 (compile), com.googlecode.gwt.inject:gin:jar:1.0 (compile), xalan:xalan:jar:2.7.1 (compile)]: Failed to read artifact descriptor for org.hibernate:hibernate-core:jar:3.6.0.Final: Could not transfer artifact org.hibernate:hibernate-core:pom:3.6.0.Final from JBoss Repo (nexus/content/repositories/releases): Error transferring file: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -gt; [Help 1]
[Thread-9] [ERROR]
[Thread-9] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[Thread-9] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[Thread-9] [ERROR]
[Thread-9] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[Thread-9] [ERROR] [Help 1] confluence/display/MAVEN/DependencyResolutionException
I'm running Maven 3.0 on OS X 10.6.6 using the latest Apple-provided version of Java.Code:
Apache Maven 3.0 (r1004208; 2010-10-04 06:50:56-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: quot;mac os xquot; version: quot;10.6.6quot; arch: quot;x86_64quot; Family: quot;macquot;
Should I switch back to Maven 2.2.1 perhaps? I know Eclipse has been using an embedded version of Maven for a long time (or rather the M2 project has), so I can't imagine that Roo lacks Maven 3 support.

Thank you for your help!

-releases-private (releases-private/),
[Thread-9]   spring-maven-milestone (milestone),
[Thread-9]   central (maven2),
[Thread-9]   spring-roo-repository (release),
[Thread-9]   maven.lostcreations.com-snapshots (snapshots/),
[Thread-9]   maven.lostcreations.com-releases (releases/),
[Thread-9]   spring-maven-release (release),
[Thread-9]   JBoss Repo (nexus/content/repositories/releases)
[Thread-9]
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [INFO] For more information, run Maven with the -e switch
[Thread-9] [INFO] ------------------------------------------------------------------------
[Thread-9] [INFO] Total time: 55 seconds
[Thread-9] [INFO] Finished at: Mon Jan 31 13:40:23 CST 2011
[Thread-9] [INFO] Final Memory: 30M/81M
[Thread-9] [INFO] ------------------------------------------------------------------------
~.web roogt; ~.web roogt;I had to disable quot;fromsquot; on the JBOSS repository. Using Maven 3 it still fails with the following errors:

show/QuPsx6kN60

Please tell me I'm doing something wrong. I can't believe that such a simple example is so plagued with bugs. If all Roo beginners experience these issues at the outset it's unimaginable that there would be any users left.

Port 80lt;/addressgt;
lt;/bodygt;lt;/htmlgt;
Clearly this is not correct.

So I need to:

1. Remove the invalid, cached artifacts from my repo.
2. Still figure out how to get Maven to talk to the JBOSS repo over SSL.

Please help!

.*;

public class Foo
{
   /**    * @param args    */   public static void main(String[] args) throws Exception   {       String s;       BufferedReader r =new BufferedReader(new InputStreamReader(    new ucl(quot;nexus/content/repositories/releases/org/hibernate/hibernate-core/3.6.0.Final/hibernate-core-3.6.0.Final.pomquot;).openStream()));       while ((s = r.readLine()) != null)       {System.out.println(s);       }   }

}
And it prints the fetched pom file, so it's not that the JVM can't access the server because of SSL. It's something to do with the way Maven is accessing the JBOSS repo.

Come on, is no one else having this issue?

It has to be your network environment some how...

Is there a way you can hook  to different  internet service provider?

Just to nail down issue.

Never experience what you are going through everThx
jD


Originally Posted by delgad9It has to be your network environment some how...

Is there a way you can hook  to different  internet service provider?

Just to nail down issue.

Never experience what you are going through everThx
jD

I'm sorry, but that's not it. I can access the ucl just fine in a browser. It's a maven-ism. I have it working on a Linux box beside me. It has something to do with my OS X box + Maven. I'm working it out in a Maven IRC channel. Any further suggestions here are welcome too, but it's not a network provider issue.

Try the maven forum...

I found this for you 2011/01...aven-and-os-x/

Hope helps
jD


Originally Posted by delgad9Try the maven forum...

I found this for you 2011/01...aven-and-os-x/

Hope helps
jD

I appreciate the help, but it's not a GPG error. And I'm already consulting with the Maven mavens (I'm typically considered a Maven guru, but even I get floored).

I can bypass the JBOSS repo issue on a Windows host, but on that host I get a different set of errors.Code:
[Thread-8] [ERROR] The import com.google.appengine cannot be resolved
[Thread-8] [ERROR] User cannot be resolved to a type
[Thread-8] [ERROR] The import com.google.appengine cannot be resolved
[Thread-8] [ERROR] UserService cannot be resolved to a type
[Thread-8] [ERROR] UserServiceFactory cannot be resolved
[Thread-8] [ERROR] User cannot be resolved to a type
[Thread-8] [ERROR] The import com.google.appengine cannot be resolved
[Thread-8] [ERROR] UserService cannot be resolved to a type
[Thread-8] [ERROR] UserServiceFactory cannot be resolved
[Thread-8] [WARNING] advice defined in org..scheduling.aspectj.AbstractAsyncExecution
Aspect has not been applied [Xlint:adviceDidNotMatch]
[Thread-8] [WARNING] advice defined in org..mock.staticmock.AnnotationDrivenStaticEnt
ityMockingControl has not been applied [Xlint:adviceDidNotMatch]
[Thread-8] [WARNING] advice defined in org..mock.staticmock.AbstractMethodMockingCont
rol has not been applied [Xlint:adviceDidNotMatch]
[Thread-8] [INFO] ------------------------------------------------------------------------
[Thread-8] [INFO] BUILD FAILURE
[Thread-8] [INFO] ------------------------------------------------------------------------
[Thread-8] [INFO] Total time: 6:56.012s
[Thread-8] [INFO] Finished at: Mon Jan 31 18:01:20 CST 2011
[Thread-8] [INFO] Final Memory: 5M/26M
[Thread-8] [INFO] ------------------------------------------------------------------------
[Thread-8] [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (defaul
t) on project foo: Compiler errors :
[Thread-8] [ERROR] error at import com.google.appengine.api.users.User;
[Thread-8] [ERROR] ^^^^^^^^^^^^^^^^^^^
[Thread-8] [ERROR] C:\hello\src\main\java\com\foo\server\gae\UserServiceWrapper.java:3:0::0 The impo
rt com.google.appengine cannot be resolved
It appears the GWT libs aren't in the classpath. This is Roo?

.ssl.trustStore=$HOME/.keystore -Djavax.net.ssl.trustStorePassword=passwordquot;
export JAVA_OPTS=quot;-Xmx1024m -XX:MaxPermSize=1024m -Dsun.nio.ch.disableSystemWideOverlappingFileLockCheck=1quot;
export MAVEN_OPTS=quot;-DskipTests -Dbaselinetest.skip=true $JAVA_OPTSquot;
export ROO_HOME=$HOME/Servers/spring-roo/spring-roo-1.1.1.RELEASE
Everything now works on my OS X box. However, GWT compilation on my Windows system is still broken. Thoughts?
¥
Back Forum Reply New