I'm not sure what those unit tests are supposed to be helping me with.

What I'm looking for is a "Hello World" type of instructions that I can get 
up and running with.  

I would assume that it would include the following: 

1. A list of bundles that I have to add to a brand new instance of 
Knopflerfish.  
2. Any changes that I need to make to Knopflerfish in order to insure that 
any servlets registered would be served using Jetty.
3. A Hello World bundle that I could deploy that would consist of a servlet 
that runs and presents a Hello World response when requested through a 
browser.

So far, I'm trying to figure out the first item on my list above by adding 
all of these bundles to my Knopflerfish instance running on my development 
machine: (o.o.pax.web.pax-web-jetty-bundle, o.o.pax.web.pax-web-jsp, 
o.o.pax.web.pax-web-extender-war, o.o.pax.logging.pax-logging-api, 
o.o.pax.web.pax-web-spi, o.o.pax.web.pax-web-api, 
org.apache.xbean.bundleutils, org.apache.xbean.finder, org.objectweb.asm, 
org.ojectweb.asm.commons, org.objectweb.asm.tree, com.sun.el.javax.el, 
o.o.pax.web.pax-web-descriptor).

I came up with this list of bundles by just trying to add pax-web-jetty 
bundles to my Knopflerfish, and receiving errors such as: dependency 
errors, class not found errors, class cast exceptions, etc.  I still don't 
have the correct list of bundles successfully running in my Knopflerfish. 
 I'm hoping there is a better way to get pax-web-jetty running in an 
instance of Knopflerfish than what I'm currently doing.

Thanks for your time,
Trace Windham



On Wednesday, March 29, 2017 at 10:31:24 AM UTC-5, Achim Nierbeck wrote:
>
> Hi Trace, 
>
> I'd say the easiest way of finding a successful runtime will be to take a 
> look at the Pax Web Integration tests. [1]
> In your case I'd try to focus on [2], as you seem to use the 
> "all-in-one-bundle" right now. 
> The important part will lye in the base test class [3].
> From there on you'll need to find out what kind of bundle setup fits best 
> your embedded scenario and strip that down. 
>
> regards, Achim 
>
> [1] - 
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty
> [2] - 
> https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/JettyBundleIntegrationTest.java
> [3] - 
> https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/ITestBase.java#L87-L94
>
>
>
> 2017-03-29 17:20 GMT+02:00 Trace Windham <[email protected] <javascript:>>
> :
>
>> I've been thrown into a task involving pax-web-jetty, so forgive my 
>> ignorance.
>>
>> My employer runs an instance of pax-web-jetty verson 4.1.0 on an embedded 
>> device which runs the Knopflerfish OSGi container.
>>
>> I've been tasked with investigating the possibility of upgrading to the 
>> latest versions of each of these tools.  
>>
>> To start, I thought I would get an instance of Knopflerfish 6.1.0 up and 
>> running on my development machine, since it's much easier to configure 
>> things there instead of our embedded device.
>>
>> That was pretty easy.
>>
>> Then I wanted to add the pax-web-jetty bundles up and running.
>>
>> All I have found so far is this old tutorial that seems to be out of date 
>> for the current versions of pax-web-jetty and Knopflerfish.  
>> http://www.knopflerfish.org/kf_pax_web_tutorial.html
>>
>> Can anyone point me to a more up to date tutorial that will allow me to 
>> use the pax-web-jetty bundles in Knopflerfish successfully?
>>
>> Thanks,
>> Trace
>>
>> -- 
>> -- 
>> ------------------
>> OPS4J - http://www.ops4j.org - [email protected] <javascript:>
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OPS4J" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & 
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master 
>
>

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to