Yes, that's the trick.

You are welcome,

On Wed, Sep 17, 2008 at 7:39 PM, Stéphane Jeanjean
<[EMAIL PROTECTED]> wrote:
> Thanks a lot ! Now, it works with
>
> pax-run war:mvn:org.apache.wicket/wicket-examples/1.3.0/war "--profiles=war"
>
>
>
> Alin Dreghiciu a écrit :
>> I suppose you are running on windows. So, check out the FAQ page:
>> http://wiki.ops4j.org/confluence/x/UwBH and look for "I'm using Pax
>> Runner on DOS/Windows, I have the right command but I'm getting
>> strange errors".
>>
>> On my Mac it works just fine:
>>
>> alindreghiciu$ pax-run
>> war:mvn:org.apache.wicket/wicket-examples/1.3.0/war --profiles=war
>>     ______  ________  __  __
>>    / __  / /  __   / / / / /
>>   /  ___/ /  __   / _\ \ _/
>>  /  /    /  / /  / / _\ \
>> /__/    /__/ /__/ /_/ /_/
>>
>> Pax Runner (0.13.0-SNAPSHOT) from OPS4J - http://www.ops4j.org
>> --------------------------------------------------------------
>>
>>  -> Using config [classpath:META-INF/runner.properties]
>>  -> Provision from [war:mvn:org.apache.wicket/wicket-examples/1.3.0/war]
>>  -> Provision from
>> [scan-bundle:war:mvn:org.apache.wicket/wicket-examples/1.3.0/war]
>>  -> Installing bundle
>> [{location=war:mvn:org.apache.wicket/wicket-examples/1.3.0/war,startlevel=null,shouldStart=true,shouldUpdate=false}]
>>  -> Using default executor
>>  -> Downloading bundles...
>>  -> Felix 1.2.1 : 357014 bytes @ [ 273kBps ]
>>  -> org.osgi.compendium (4.1.0) : 514214 bytes @ [ 5979kBps ]
>>  -> org.ops4j.pax.logging.api : 72720 bytes @ [ 6060kBps ]
>>  -> org.ops4j.pax.logging.service : 183366 bytes @ [ 2910kBps ]
>>  -> org.ops4j.pax.web : 919279 bytes @ [ 4838kBps ]
>>  -> org.ops4j.pax.web.jsp : 2170489 bytes @ [ 6237kBps ]
>>  -> org.ops4j.pax.web.extender.war : 100468 bytes @ [ 2232kBps ]
>>  -> org.apache.felix.shell (1.0.2) : 51390 bytes @ [ 98kBps ]
>>  -> org.apache.felix.shell.tui.plugin (1.0.2) : 12237 bytes @ [ 46kBps ]
>>  -> war:mvn:org.apache.wicket/wicket-examples/1.3.0/war : 9262294
>> bytes @ [ 1550kBps ]
>>  -> Execution environment [J2SE-1.5]
>>  -> Starting platform [Felix 1.2.1]. Runner has successfully finished his 
>> job!
>>
>> Welcome to Felix.
>> =================
>> ...
>>
>> On Wed, Sep 17, 2008 at 2:53 PM, Stéphane Jeanjean
>> <[EMAIL PROTECTED]> wrote:
>>
>>> Hello,
>>>
>>> I try to deploy the wicket example war file by using :
>>> pax-run war:mvn:org.apache.wicket/wicket-examples/1.3.0/war --profiles=war
>>>
>>> But an error occured :
>>>  -> Using config [classpath:META-INF/runner.properties]
>>>  -> Provision from [war:mvn:org.apache.wicket/wicket-examples/1.3.0/war]
>>>  -> Provision from
>>> [scan-bundle:war:mvn:org.apache.wicket/wicket-examples/1.3.0/
>>> war]
>>>  -> Installing bundle
>>> [{location=war:mvn:org.apache.wicket/wicket-examples/1.3.0
>>> /war,startlevel=null,shouldStart=true,shouldUpdate=false}]
>>>  -> Provision from [war]
>>>  -> Provision from [scan-bundle:war]
>>>  -> Installing bundle
>>> [{location=war,startlevel=null,shouldStart=true,shouldUpda
>>> te=false}]
>>>         ___
>>>        /  /
>>>       /  / Oops, there has been a problem!
>>>      /  /
>>>     /__/
>>>    ___
>>>   /__/
>>>
>>>  -> java.lang.RuntimeException: org.osgi.framework.BundleException:
>>> Invalid loca
>>> tion [war]
>>> java.lang.RuntimeException: org.osgi.framework.BundleException: Invalid
>>> location
>>>  [war]
>>>        at org.ops4j.pax.runner.Run.installBundles(Run.java:327)
>>>        at org.ops4j.pax.runner.Run.start(Run.java:153)
>>>        at org.ops4j.pax.runner.Run.main(Run.java:545)
>>>        at org.ops4j.pax.runner.Run.main(Run.java:518)
>>> Caused by: org.osgi.framework.BundleException: Invalid location [war]
>>>        at
>>> org.ops4j.pax.runner.osgi.RunnerBundleContext.installBundle(RunnerBun
>>> dleContext.java:152)
>>>        at
>>> org.ops4j.pax.runner.provision.internal.InstallableBundleImpl.doInsta
>>> ll(InstallableBundleImpl.java:139)
>>>        at
>>> org.ops4j.pax.runner.provision.internal.InstallableBundleImpl.access$
>>> 400(InstallableBundleImpl.java:28)
>>>        at
>>> org.ops4j.pax.runner.provision.internal.InstallableBundleImpl$NotInst
>>> alledState.install(InstallableBundleImpl.java:222)
>>>        at
>>> org.ops4j.pax.runner.provision.internal.InstallableBundleImpl.install
>>> (InstallableBundleImpl.java:96)
>>>        at
>>> org.ops4j.pax.runner.provision.internal.InstallableBundlesImpl.instal
>>> l(InstallableBundlesImpl.java:65)
>>>        at org.ops4j.pax.runner.Run.installBundles(Run.java:309)
>>>        ... 3 more
>>>
>>> When I use this command, it's ok :
>>> pax-run
>>> scan-file:jar:mvn:org.ops4j.pax.web-extender.samples/provision!/wicket-examples-1.3.0-wrap.bundles
>>>
>>> Thanks for your help,
>>>
>>> Stéphane
>>>
>>> _______________________________________________
>>> general mailing list
>>> general@lists.ops4j.org
>>> http://lists.ops4j.org/mailman/listinfo/general
>>>
>>>
>>
>>
>>
>>
>
>
> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>



-- 
Alin Dreghiciu
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
http://malaysia.jayway.net - New Energy for Projects - Great People
working on Great Projects at Great Places

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to