Re: Testing OSGi HttpService
Hi,
Hubert Iwaniuk wrote:
> Hi,
>
> Yes you need to install it first.
> /mvn clean install pax:provision/
No same exception:
> jfarcand_at_jfarcand-desktop:/appserv80/grizzly/trunk/contribs/grizzly-httpservice/src/it/first-it$ mvn clean install pax:provision
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'pax'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Unnamed - com.sun.grizzly.osgi.httpservice.its:first-it:bundle:1.0-SNAPSHOT
> [INFO] task-segment: [clean, install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory /home/jfarcand/workspace/grizzly/trunk/contribs/grizzly-httpservice/src/it/first-it/target
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 2 source files to /home/jfarcand/workspace/grizzly/trunk/contribs/grizzly-httpservice/src/it/first-it/target/classes
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [bundle:bundle]
> [INFO] [pax:run {execution: start-pax}]
> [INFO] Installing /home/jfarcand/workspace/grizzly/trunk/contribs/grizzly-httpservice/src/it/first-it/runner/deploy-pom.xml to /home/jfarcand/.m2/repository/com/sun/grizzly/osgi/httpservice/its/first-it/build/deployment/1.0-SNAPSHOT/deployment-1.0-SNAPSHOT.pom
> ______ ________ __ __
> / __ / / __ / / / / /
> / ___/ / __ / _\ \ _/
> / / / / / / / _\ \
> /__/ /__/ /__/ /_/ /_/
>
> Pax Runner (0.16.0) from OPS4J - http://www.ops4j.org
> -----------------------------------------------------
>
> -> Using config [classpath:META-INF/runner.properties]
> -> Using only arguments from command line
> -> Provision from [/home/jfarcand/workspace/grizzly/trunk/contribs/grizzly-httpservice/src/it/first-it/runner/deploy-pom.xml]
> -> Provision from [scan-pom:file:/home/jfarcand/workspace/grizzly/trunk/contribs/grizzly-httpservice/src/it/first-it/runner/deploy-pom.xml]
> -> Using property [pax.version=1.4]
> -> Using property [org.osgi.service.http.port=8080]
> -> Using property [grizzly.version=1.9.6-SNAPSHOT]
> -> Using property [felix.version=1.4.3]
> -> Installing bundle [{location=mvn:com.sun.grizzly.osgi.httpservice.its/first-it/1.0-SNAPSHOT,startlevel=null,shouldStart=true,shouldUpdate=false}]
> -> Installing bundle [{location=mvn:org.osgi/org.osgi.core/4.1.0,startlevel=null,shouldStart=true,shouldUpdate=false}]
> -> Installing bundle [{location=mvn:org.osgi/org.osgi.compendium/4.1.0,startlevel=null,shouldStart=true,shouldUpdate=false}]
> -> Installing bundle [{location=mvn:com.sun.grizzly.osgi/grizzly-httpservice/1.9.6-SNAPSHOT,startlevel=null,shouldStart=true,shouldUpdate=false}]
> -> Installing bundle [{location=mvn:com.sun.grizzly/grizzly-http-servlet/1.9.6-SNAPSHOT,startlevel=null,shouldStart=true,shouldUpdate=false}]
> -> Installing bundle [{location=mvn:com.sun.grizzly/grizzly-http/1.9.6-SNAPSHOT,startlevel=null,shouldStart=true,shouldUpdate=false}]
> -> Installing bundle [{location=mvn:com.sun.grizzly/grizzly-utils/1.9.6-SNAPSHOT,startlevel=null,shouldStart=true,shouldUpdate=false}]
> -> 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)
> at org.ops4j.pax.runner.Run.startPlatform(Run.java:468)
> at org.ops4j.pax.runner.Run.start(Run.java:196)
> at org.ops4j.pax.runner.Run.main(Run.java:646)
> at org.ops4j.pax.runner.Run.main(Run.java:619)
> 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.ops4j.pax.construct.lifecycle.ProvisionMojo.invokePaxRunner(ProvisionMojo.java:802)
> at org.ops4j.pax.construct.lifecycle.ProvisionMojo.deployRunnerNG(ProvisionMojo.java:780)
> at org.ops4j.pax.construct.lifecycle.ProvisionMojo.deployBundles(ProvisionMojo.java:477)
> at org.ops4j.pax.construct.lifecycle.ProvisionMojo.execute(ProvisionMojo.java:270)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> 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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
A+
-- Jeanfrancois
>
> H.
>
> On Wed, Feb 4, 2009 at 10:12 PM, Jeanfrancois Arcand
> <Jeanfrancois.Arcand_at_sun.com <mailto:Jeanfrancois.Arcand_at_sun.com>> wrote:
>
> 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
>
>