Hi Steinar,
could you please try to download from:
http://download.java.net/maven/2/com/sun/jersey/samples/jersey-samples/1.1.4/jersey-samples-1.1.4-project.zip
each of the examples should have a README.html document in it's subdirectory,
which briefly describes the content of the example and how to run it from the command line.
e.g. jersey-samples-1.1.4/helloworld/README.html says:
Run the example as follows:
run
mvn compile exec:java
The example runs on top of Grizzly container, no GlassFish, neither NetBeans needed ;-)
As long as your IDE supports maven, you should be able to run it from there as well.
And even for GlassFish related examples, the instructions are pretty easy,
and you would not need to learn much.
e.g. jersey-samples-1.1.4/helloworld-webapp could be run as easy as you launch:
mvn glassfish:run
HTH,
~Jakub
On Sat, Nov 21, 2009 at 04:26:32PM +0100, Steinar Overbeck Cook wrote:
> I've tried to compile the Jersey samples version 1.1.14 using Maven 2. However, no matter which version of the samples I attempt to download, they all fail:
>
> Project ID: null:helloworld:jar:null
>
> Reason: Cannot find parent: com.sun.jersey.samples:jersey-samples for project: null:helloworld:jar:null for project null:helloworld:jar:null
>
>
> I have tried to donwload the jersey-samples-x.x.x.pom, which brings me one step further until I get this:
>
> [INFO] Error reading assemblies: Error locating assembly descriptor: assembly.xml
>
> [1] [INFO] Searching for file location: /Users/steinarcook/Downloads/jersey-samples-1.1.4/assembly.xml
>
> [2] [INFO] File: /Users/steinarcook/Downloads/jersey-samples-1.1.4/assembly.xml does not exist.
>
> [3] [INFO] Invalid artifact specification: 'assembly.xml'. Must contain at least three fields, separated by ':'.
>
> [4] [INFO] Failed to resolve classpath resource: /assemblies/assembly.xml from classloader: org.codehaus.classworlds.RealmClassLoader_at_5dde45e2
>
> [5] [INFO] Failed to resolve classpath resource: assembly.xml from classloader: org.codehaus.classworlds.RealmClassLoader_at_5dde45e2
>
> [6] [INFO] File: /Users/steinarcook/Downloads/jersey-samples-1.1.4/assembly.xml does not exist.
>
> [7] [INFO] Building URL from location: assembly.xml
>
>
> What am I doing wrong here? I would rather not spend time on learning NetBeans and Glassfish :-)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
--
Jakub Podlešák
Software Engineer at SUN Microsystems And CZJUG Co-Leader
http://blogs.sun.com/japod