dev@grizzly.java.net

Re: Testing OSGi HttpService

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 04 Feb 2009 16:12:46 -0500

Salut,

I'm getting:

> -> Installing bundle [{location=mvn:com.sun.grizzly/grizzly-framework/1.9.6-SNAPSHOT,startlevel=null,shouldStart=true,shouldUpdate=false}]
> -> Installing bundle [{location=mvn:com.sun.grizzly/grizzly-portunif/1.9.6-SNAPSHOT,startlevel=null,shouldStart=true,shouldUpdate=false}]
> -> Installing bundle [{location=mvn:com.sun.grizzly/grizzly-rcm/1.9.6-SNAPSHOT,startlevel=null,shouldStart=true,shouldUpdate=false}]
> -> Using default executor
> -> Downloading bundles...
> ___sun.grizzly.osgi.httpservice.its/first-it/1.0-SNAPSHOT : connecting...
> / /
> / / Oops, there has been a problem!
> / /
> /__/
> ___
> /__/
>
> -> java.lang.RuntimeException: URL [mvn:com.sun.grizzly.osgi.httpservice.its/first-it/1.0-SNAPSHOT] could not be resolved. (enable TRACE logging for details)
> java.lang.RuntimeException: URL [mvn:com.sun.grizzly.osgi.httpservice.its/first-it/1.0-SNAPSHOT] could not be resolved. (enable TRACE logging for details)
> at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:169)
> at java.net.URL.openStream(URL.java:1009)
> at org.ops4j.pax.runner.platform.internal.StreamUtils.streamCopy(StreamUtils.java:105)
> at org.ops4j.pax.runner.platform.internal.PlatformImpl.download(PlatformImpl.java:639)
> at org.ops4j.pax.runner.platform.internal.PlatformImpl.downloadBundles(PlatformImpl.java:457)
> at org.ops4j.pax.runner.platform.internal.PlatformImpl.start(PlatformImpl.java:205)

Do I need to deploy it first?

Thanks!

-- Jeanfrancois

Hubert Iwaniuk wrote:
> Hi,
>
> If you would like to see Grizzly based OSGi HttpService in action here
> is something for you.
>
> Go to /contribs/grizzly-httpservice/src/it/first-it// and run /mvn clean
> install pax:provision/
> Now you are having Felix running and Grizzly OSGi Service deployed
> listening on port /8080/ with test Servlet registered under// alias //1/.
> http://localhost:8080/1 should tell you /Grizzly/.
>
> If first step failed not been able to download some of grizzly modules,
> make sure to run /mvn install/ on /trunk/.
> If you want to change port that Grizzly is bound to, change
> /org.osgi.service.http.port/ in /properties/ in /pom.xml/.
> Wonder where Servlet that was registered under //1/ is, look at
> /Activator.java/.
>
> Hope you find this useful and thanks for listening,
> Hubert.