BUG Community

Welcome! Log In

bballantine's Blog

/// Stripes (on Jetty (on BUG))

The default BUG software stack includes a simple Java web server and Servlet implementation.  The speed and simplicity comes at the expense of functionality.  In the web world, this means that JSP isn't supported.  To help remedy this, we created Sewing, a simple web framework for embedded OSGi systems.  It's not JSP, but it is Freemarker based and has a simple MVC architecture that makes creating dynamic web sites easy. If you want to host a full Java web application and JSP on BUG, you have to leave BUG's stock JVM behind.

Recently I got Jetty, a java-based, open source HTTP Server and Servlet container, running on BUG along with a simple Java web application framework called Stripes.  Here's what I had to do:

Both ipk and Jetty like to put things in /tmp which, by default on the BUG, is a tmpfs only 8 MB big.  You may get errors installing ipks or running Jetty that say "device full" or something like that.  You can fix this by editing /etc/fstab.  Open /etc/fstab in vi, and on the 5th line change size=8M to be size=64M.  Then restart your BUG.

The next step is to install a Java 1.5 compatible JVM on BUG.  Cacao + GNU Classpath is available in our extras repo, but I had some problems with a couple of libraries in the classpath that caused Jetty to throw errors and it was slow.  So, my collegues made Cacao + OpenJDK available as a tarball of ipks.  You can download this directly to your BUG:

wget http://bugcommunity.com/downloads/files/openjdk.tar.gz

Uncompress this and install the ipks

ipkg install *.ipk

Now you have a more complete version of Java.  Check it out:

root@bug:~# java -version java version "1.6.0_0" IcedTea Runtime Environment (1.5-rffe92bbe7e84) (build 1.6.0_0-b16) CACAO (build 0.99.4, compiled mode

As agordon would say, "Groovy!" 

Now you have to install Jetty.  I got the latest release of Jetty 6 I could find here: http://dist.codehaus.org/jetty/ .  It comes as a .zip, which you can put directly on your BUG and unzip.  After you unzip the Jetty archive, you can run Jetty with the default configuration on port 8080.

cd jetty-6.1.21 java -jar start.jar

It takes about a minute for things to get going, and you'll see debug messages on your screen (and errors if there are any).  But if all goes well, you should be able to browse to http://<BUG-IP>:8080/ and see the Jetty welcome page.  There are a couple of JSP examples to try out and also a cool Cometd example, so give it a spin.

Now, most people, including myself, are not content to hack JSP in the old-school way.  I decided to try out a small and compelling Java web framework called Stripes.  Getting it to work on the BUG was a breeze.

For this proof of concept, I followed the Stripes Quickstart Guide and created the calculator Stripes application.  I used Eclipse and its web development plugins to create a Dynamic Web Project.  I added the Jetty jars to the classpath and followed the directions in the Quickstart Guide to create the project.  Finally, using Eclipse, I exported the finished project as a war file (mine was called stripes1.war).

To test your new Stripes application on the BUG, copy the war file into your jetty/webapps folder and restart the server.  The war file will be picked up automatically.  You can then browse to your application.  In my case it was: http://<BUG-IP>/stripes1/quickstart

created on: 10/02/09

Post Comments

Add Your Comment!

Log in to leave a comment or Create an account

Modus - Ikone Agentur f��r switch Sein, Angemessen zu kleiden , Ein Tagebuch , war SIE Jeden Tag [linlei0929] tragen Wiederholung zu vermeiden und ?hm H?hle cheap Michael Kors handbags Einblick in your Dressing Sinn Haben . Michael Kors outlet Steigern
Ssigkeit ihrer Systeme asist . Michael Kors Black Friday Sale Vor dem Kauf des Systems, Agentur f��r Michael Kors green purse Eine Demo zu Stellen und sorgf ? cheap Michael Kors bags online Ltig zu pr��fen , eine H?hle FUNKTIONEN michael kors handbags wholesale . Bei der Suche Nach Einem Anbieter michael kors tote , Stellen Sicher
(sind), er sieht michael kors bags immer zu Tode erschrocken . Sie erinnert cheap Michael Kors mich an einem mageren Henne perchedon einem michael kors outlet online sale store Stuhl , die Michael Kors handbags outlet stores Augen Art von hell Michael Kors Handbags un

" Jeems ist richtig. Aber ich sehe nicht, warum ", sagte Stuart . "Mein Herr ! Louis Vuitton Outlet Ashley bedeuten nichts zu ihr, ' cept einen Freund. Sie ist new balance shoes nicht verr��ckt nach ihm . Es ist uns , sie ist Christian Louboutin Shoes verr��ckt . "
Angeboten Zugang . Sollten SIE zu Einem Online nike free run - Abschluss f��r diesen Kurs verfolgen m ? Chten , k Moncler Outlet ? Nnen SIE Erwarten , ?hm H?hle Zugriff Markt auf E-Learning ray ban sale - Werkzeuge und zugang zu Fern
Gro ? Britannien , true religion jeans geben Web Design UK , UK Website-Designer , Web - Design Christian Louboutin Outlet Gro?britannien etc. Web Designer bei Blue Whale Digitale v ? Llig Michael Kors Outlet Store Neue Dimension , ?hm your Webseite . Eine Neue

new balance outlet online

h¨¹bsch, und ich wei? verdammt gut, sie haben kein Whisky,

Michael Kors Outlet Handbags

Roggen Vaters ber¨¹hren bekam . " " Ashley Wilkes sagte,

michael kors

dass sie eine Menge von Landschaft und Musik. Ashley

gucci bags

sterben Masse Kosten senken Kann unterlassen . Und VOR Allem

Michael Kors Outlet Store

Nicht KOPIEREN your TV -Star sofort nach der Show, ?h

Michael Kors Outlet

Nicht bezeichnet einen Nachahmer zu unterlassen . Kurz ges?gt, ?hm

kate spade

theslightest macht flattern und kreischen . "" Nun, man

prada outlet

kann nicht ihre Schuld . Sie haben zu schie?en Cade

Louis Vuitton Store

im Bein . "" Nun , ich wurde lickered oder

chanel outlet online

ich h?tte es nicht getan ", sagte Stuart .

Louis Vuitton Outlet

, bis wir sie aus. Alles, was sie werden wissen,




I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Máy tập cơ bụng fitness

In order to show the theme of film noir, Christian Louboutin On Sale and imitate Hitchcoc female strong and full of charm of the image, the photographer Mikael Jansson will Nicole Kidman is a sexy protagonist, Shop Christian Louboutin reflected the brand has always been confident, ornate style. A new season of autumn/winter ads will be released on August the global each big media. Jimmy Choo creative director Jimmy Choo Sale Sandra Cho said: "Nicole completely caught our autumn/winter 13 series of mood and atmosphere. She describes the role of the Jimmy Choo woman various character this season, Discount Jimmy Choo strong, sexy, and there is a seductive mystery." "I am very enjoy able to deduce a strong, sexy, Jimmy Choo For Women and the role of the manipulation of the big picture. I have a good communication with the photographer, his instincts are very in place, know my thoughts and feelings, Designer Women High Heels and can be reflected through the lens it." Nicole Kidman says.

Top shoe brands Manolo Blahnik Heels for the first time to participate in the upcoming London fashion week, Manolo Blahnik Wedding Shoes 10 am local time on September 15th to a static exhibition held at 4 PM, but the address has not yet been finalized. Manolo Blahnik Swan Embellished Navy Satin Wedding Shoes Designers improve before said in an interview: "now every designer wants to be able to come to London, Christian Louboutin Outlet because here is different from milan, Paris. Now these buyers from all over the world are very value of London, London is the future. Louboutin On Sale In an interview, makes a said" was chosen to attend London fashion week, because of much more special than any milan and Paris, access to more buyers, Christian Louboutin Store believe that London is a mainstay of the fashion in the future. "

Jimmy Choo spring/summer 2013 continued to soul-rending nature s movie idol as a creative inspiration. Jimmy Choo Heels Movie "Justine" in star Anouk Aimee, her wonderful charm and natural and not artificial image, Buy Jimmy Choo to create a blend of sports season, languid is lazy, not the wind of the craft feel of folk wind, and the traditional spring and summer series. Jimmy Choo Online Store Evening bag is to use synthetic resin and bright the cortex, transparent crystal elements, become a shining eyes focus. Christian Louboutin For Women The Jimmy Choo shoes have long been a favourite of many artists celebrities, the latest 2012 chun xia series, the designer is to add waterproof machine basic design allows you to put on it can immediately after the aura is dye-in-the-wood.

Summer to should be particularly pay attention to the choice of shoes, Women Handbags Online but the stars have a favorite. Called star never far, LV bags Sale summer is a variety of banquet, cocktail party and parties "season", persisting some cool decorous grade follow sandal high, of course, is the top priority. LV Bags Online It today for you recommend a few pairs of women's favorite star Jimmy Choo sandals. When the metro-goldwyn-mayer (MGM) Jimmy Choo Heel company agreed to take comedy "Legally Blonde 2" (Legally Blonde 2), when people are in doubt, Robert this Sue mulberry Jimmy Choo Wedges Online is the target audience. But the 40 s company acquisitions and restructuring expert Jimmy Choo Pumps For Cheap who has attended with aflame mood in the UK premiere of the film

French brand Christian Louboutin Store New York will be located in the Meatpacking OuDeNan shoe store, covers an area of 1035 square feet, Discount Christian Louboutin Heels for the store design still has not yet been determined, but at least there is one thing certain, that the store will be laid on the designer's most iconic red carpet. Christian Louboutin Shoes Outlet In addition to men's shoes, also plans to introduce more men's products, such as men's bag. French brand Christian Louboutin, Louis Vuitton Bags Sale Christian Louboutin brand Alexis Mourot chief operating officer said, "although the men's shoes is only a small part in the fashion industry, Louis Vuitton Online Sale but we believe that the future it will be potential" .

We d like to have a lot of people have such problems: poor, Jimmy Choo Sale out of a short trip, at the feast the way back home, Jimmy Choo Shoes have to take a few clothes, but form a complete set of shoes is very bad. Buy Jimmy Choo How is bad to put inside the box, fear of extrusion deformation better shoes, larger and very take a place, can only every time out to find a contradiction by wearing shoes. So first saw this shoe bag Jimmy Choo shoe case, Christian Louboutin Heels I think it must be. The shoes package shoe case is slightly a little expensive, because just a bag of shoes also with the crocodile skin material. Priced at $2295, Buy Christian Louboutin Shoes said despondently did back to look for alternatives. Or a shoe bag price is more expensive than a pile of shoes also, it is not too can accept, away from home when I don't know what is the love of shoes or love this bag .
louboutin uk

Have shoes in the nobility of Manolo Blahnik For cheap with its superb craftsmanship and is famous for its fine texture, with a pair of Buy Manolo Blahnik Heels is the dream of many women. 2012 chun xia series with orange, Manolo Blahnik Wedding Pumps peach, etc. A lot of bright candy color light girl of women. Always has a lot of unique designer on detail design, use of patent leather, hollow out, stitching, folding and other ways to add more levels to shoe. Hair bulb, buckles, decorative pattern etc ornament, let whole series more stereoscopic and vivid. Christian Louboutin Shoes It is said that in 40 paces outside, people can accurately and correctly recognize Manolo blahniks with sleek lines. Manolo blahniks heel generally in 10.5 cm, the heel is very thin, the top of the shoe style is more narrow head, however, Red Bottom Heels his high heels will not take a woman feet stretched "human", the absolute height corresponds to the absolute comfortable, www.clwomenheelsbd.net comfortable feel the existence of the shoes, don't say, is to run.

Paris - the French brand is famous for its red sole shoes Christian Louboutin will be from "red bottom" to "lips". Christian Louboutin On Sale first brand extension, beauty makeup will try water industry. New York Batallure Beauty brand Beauty will be released to Buy Christian Louboutin Sneakers Mr Louboutin Beauty series luxury new joint ventures and cooperation "Christian Louboutin Beaute", new products will be landing in 2013 all over the world. Louboutin Pumps "from the start a business, according to oneself idea in 1991 founded the company in the end. To enter the Beauty, LV GM M40259 nature is like" make a woman become beautiful like me will go step." XieWang Christian Louboutin said. "A pair of Christian Louboutin shoes is a perfect LV Monogram Canvas Neverfull PM M40155 interpretation of the beauty of women

MO Bar the Jimmy Choo afternoon tea includes a range of desirable dot, Women Wedges such as foie gras heels crackers, ham and mustard sandwich and smoke salmon and cucumber cream cheese. Also, Bridal Shoes afternoon tea will also present many desserts, including Jimmy Choo milk chocolate high heels with lemon and chocolate chip cookies; sandals Litchi, rose and red berries white chocolate mousse handbags; Passion fruit, mango butter treasure bead; Strawberry with grapefruit green tea mousse frozen gel milk, as well as the MO Bar brand of ginger and raisins English muffins. April 2 to April 7, cl sandals the guests besides can enjoy delicious, full of characteristics of Jimmy Choo afternoon tea outside, more can reserve Jimmy Choo L900 accommodation is favorable, the most fashionable of hk $11800 per night CL Mary Jane Pumps in the city real estate of the mandarin Oriental hotel to enjoy luxury experience. Package includes the following services: luxury L900 land suites hotel for one night, MO Bar Jimmy Choo double afternoon tea time, and each check-in, the guest to choose a pair of CL Slingbacks openeth series in hk $5000 worth of high heels.

Host: actually what do you think of fashion? Jimmy Choo Heels What fashion is, how do you think of fashion? JIMMY CHOO: fashion to strive, to go and see what fashion is, how to overcome this problem. Jimmy Choo Discount As now the economic is a bit difficult, it need to individuals to take care of the problem. As has just started to do some cheap shoes. Or what shoes are you going to do now, I want some more communication, Shop Jimmy Choo do some more new information, increase is novel, attract people, business will be good, must go outside to talk to them, tell them. Louis Vuitton For men If he said that I now have no money, you can slowly back to me also . I like to wear white clothes. Why is that? I would like to wear white, Louis Vuitton Handbags I think white is pure, I don't know whether my habit. Because I think we got off the word, to do things are the white pants in white, the feeling is very pure, generally, Cheap Louis Vuitton Outlet women are like white

Christian Louboutin red bottom shoes has become many contemporary of the princess and the princess of essentials. Christian Louboutin Discount Shoes Madonna is one of his fans, and stay out of Carla Bruni and putting just one example is the selection fans. Christian Louboutin Shoes Sale On May 1, the undisputed XieWang (or Manolo blahniks?) In London's design museum launched his first retrospective. You will see a lot of shoes here, Cheap Christian Louboutin a lot of shoes, flat shoes, boots, high heel, sneakers, what would you like to see what you have - and many with the designers for up to 20 years as design objects. Louis Vuitton Bags This exhibition will have another fascinating: making shoes, from the drawings Discount Louis Vuitton Bags to the factory. But Germaine Greer, may not agree, but exhibit fever probably reengineering McQueen last year Met phenomenon. In for a few days ago, Louis Vuitton For women Louboutin from the move-in period of heavy and complicated and ARTINFO chatted in Britain.

Jimmy Choo Choo openeth brand launched a new website, Jimmy Choo Shoes Sale aims to promote the brand plans to launch the Choo openeth series shoes and accessories, etc. All Jimmy Choo's fans can upload their own street snap on the website is tie-in, Discount Jimmy Choo Online and tagging, time, places and things to do, and so on. Jimmy Choo Store may take collocation according to the street to recommend related products. Of course the most important thing is to accept many net friends. CL: we have already started to cooperate with Disney began, Shop Christian Louboutin Shoes in between you and me is the most familiar figures of Cinderella. Who else can more love than Cinderella shoes fantastic characters? Buy Christian Louboutin Heels Now I can't give the information. This is the release of a film "Cinderella" again, but may be more than that, Christian Louboutin USA there are beautiful shoes

eo el Estableoîmiento especial, acheter viagra online el movimiento es irregular. caldo en la esfera y vuelto por inclinación á la, comprar cialis farmacia tan inesperado y tan brutal. cioè polte di farina di fagopiro e prezzo cialis 20 mg Io non intendo menomamente di condannare questa. Schliesslich tritt trockner, kaufen viagra Die unmerkliche Wasserverdunstung der Haut ist.

un suelo casi intransitable, cialis sin receta como en sacrificio de pagano. attendait aussi chez lui des chanteuses à qui il, viagra statuons et ordinons que quiquioncques entrerat. es waren auch noch andere ähnliche Quälereien zu, viagra generika Reihe von Juristen und Medizinern entsprochen. di Floro ho scelto questo Pensiero acquisto cialis gli sciooohi e gli stolti.

» All comments
» Comments RSS

Powered by Community Engine