On 27/05/2013 18:16, Nik wrote:
OkI found a problem.
It appears to be a problem coming from the repository.
It happens because there is a redirection in
https://repository.apache.org/content/repositories/snapshots/org/apache/syncope/syncope-archetype/1.1.2-SNAPSHOT/
Hi Nik,
I don't know exactly where this comes from neither why you are getting
this: as said before, there is something strange in the way you get to
the ASF Maven repository: when I perform
wget
https://repository.apache.org/content/repositories/snapshots/org/apache/syncope/syncope-archetype/1.1.2-SNAPSHOT/
I get the actual HTML content listing all artifacts in that directory.
mbp2:1.1.2-SNAPSHOT ntlartey$ ls
~/.m2/repository/org/apache/syncope/syncope-archetype/1.1.2-SNAPSHOT/syncope-archetype-1.1.2-SNAPSHOT.jar
/Users/ntlartey/.m2/repository/org/apache/syncope/syncope-archetype/1.1.2-SNAPSHOT/syncope-archetype-1.1.2-SNAPSHOT.jar
mbp2:1.1.2-SNAPSHOT ntlartey$ cat
~/.m2/repository/org/apache/syncope/syncope-archetype/1.1.2-SNAPSHOT/syncope-archetype-1.1.2-SNAPSHOT.jar
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a
href="https://repository.apache.org/content/repositories/snapshots/org/apache/syncope/syncope-archetype/1.1.2-SNAPSHOT/syncope-archetype-1.1.2-SNAPSHOT.jar">here</a>.</p>
<hr>
<address>Apache/2.2.20 (Ubuntu) Server at repository.apache.org Port
80</address>
</body></html>
mbp2:1.1.2-SNAPSHOT ntlartey$
Workaround:
mbp2:1.1.2-SNAPSHOT ntlartey$ wget
https://repository.apache.org/content/repositories/snapshots/org/apache/syncope/syncope-archetype/1.1.2-SNAPSHOT/syncope-archetype-1.1.2-20130524.124212-18.jar
--2013-05-27 15:33:28--
https://repository.apache.org/content/repositories/snapshots/org/apache/syncope/syncope-archetype/1.1.2-SNAPSHOT/syncope-archetype-1.1.2-20130524.124212-18.jar
Resolving repository.apache.org... 140.211.11.74
Connecting to repository.apache.org|140.211.11.74|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 73994 (72K) [application/java-archive]
Saving to: 'syncope-archetype-1.1.2-20130524.124212-18.jar'
100%[===================================================================================================================================================================================================>]
73,994 123KB/s in 0.6s
2013-05-27 15:33:30 (123 KB/s) -
'syncope-archetype-1.1.2-20130524.124212-18.jar' saved [73994/73994]
mbp2:1.1.2-SNAPSHOT ntlartey$ pwd
/Users/ntlartey/.m2/repository/org/apache/syncope/syncope-archetype/1.1.2-SNAPSHOT
mbp2:1.1.2-SNAPSHOT ntlartey$ ls -lrt
total 192
-rw-r--r-- 1 ntlartey staff 73994 May 24 14:42
syncope-archetype-1.1.2-20130524.124212-18.jar
-rw-r--r-- 1 ntlartey staff 420 May 27 15:27
syncope-archetype-1.1.2-SNAPSHOT.jar
-rw-r--r-- 1 ntlartey staff 195 May 27 15:27
resolver-status.properties
-rw-r--r-- 1 ntlartey staff 402 May 27 15:27
maven-metadata-syncope-archetype-repo.xml
-rw-r--r-- 1 ntlartey staff 420 May 27 15:27
syncope-archetype-1.1.2-SNAPSHOT.pom
-rw-r--r-- 1 ntlartey staff 249 May 27 15:27 _maven.repositories
Then mvn archetype:generate + update pom.xml and it compiles/builds.
Glad to hear :-)
Anyway, I'd suggest you to find the reason why are you experiencing such
strange behavior: AFAIK no one else is getting this, so I insist it
should be something in the way you get to the ASF Maven repository. It
could even be something temporary, please check it again soon.
When I deploy and access the console
glassfish (GlassFish Server Open Source Edition 3.1.2 (build 23))throws :
2013-05-27 16:05:04.073+0000 (68) StandardWrapperValve[default]:
PWC1406: Servlet.service() for servlet default threw exception
java.lang.IllegalArgumentException: PWC2788: setAttribute:
Non-serializable attribute with name restTemplate
This was recently fixed: I guess that by manually downloading you
probably did not get latest ones.
[nik@anvil uforge]$ curl -u admin:password -H "Content-Type:
application/json" -X GET http://10.1.2.217:9090/syncope/cxf/users/self
gives the following exception stack:
2013-05-27 16:14:19.889+0000 (69) StandardWrapperValve[CXFServlet]:
PWC1406: Servlet.service() for servlet CXFServlet threw exception
java.lang.NoSuchMethodError:
javax.ws.rs.core.Response.getHeaders()Ljavax/ws/rs/core/MultivaluedMap;
When trying to self-read admin, I actually get a different error (see
SYNCOPE-373 [1]): this is due to the fact that admin is not a real user.
Authenticating with actual user works fine, anyway.
Regards.
[1] https://issues.apache.org/jira/browse/SYNCOPE-373
--
Francesco Chicchiriccò
ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/