Re: JSP support on Felix

2012-05-31 Thread Kirk Knoernschild
Jeffrey,

I did this quite a while back on some blog posts for demonstration purposes. 
The code is old, but perhaps it'll serve as a useful starting point. Here's a 
couple of posts you might find worthwhile (both support JSP):

OSGi and Embedded Jetty - 
http://techdistrict.kirkk.com/2009/02/02/osgi-and-embedded-jetty/

And an alternative:

Embedding OSGi in Tomcat - 
http://techdistrict.kirkk.com/2009/02/16/embedding-osgi-in-tomcat/ 

Kirk Knoernschild
Author of Java Application Architecture: Modularity Patterns with Examples 
Using OSGi
http://www.kirkk.com
http://techdistrict.kirkk.com





On May 31, 2012, at May 31, 3:01 AM, Jeffrey Huang wrote:

 I tried a lot of ways to let Felix support JSP. Pax Web seems still can not
 work on my try. Does any one know any way to let Felix support JSP? Which
 bundles should be installed ?  Thanks.



[ANN] Java Application Architecture: Modularity Patterns with Examples Using OSGi

2012-04-02 Thread Kirk Knoernschild
Apologies for the blatant advertisement, but want to let you all know that my 
book, Java Application Architecture: Modularity Patterns with Examples Using 
OSGi is now available. The book's homepage is http://modularity.kirkk.com.

Ironically, the book may not be an ideal fit for those of you already highly 
proficient with OSGi. It's sweet spot is in helping you articulate the benefits 
of modularity and designing software applications with a modular architecture 
in the absence of a good module framework like OSGi. Once folks experience the 
benefits of modular architecture, their increase in a module framework will 
hopefully increase too.

If you experience this type of adoption hurdle, or know others that do, you may 
find the book interesting. thanx.

Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk






Re: How to start

2009-04-24 Thread Kirk Knoernschild
I've got quite a few tutorials on my website. Check out http://techdistrict.kirkk.com/2009/02/19/osgi-post-summary/ 
.


Then, take a look at the Simple OSGi Service and OSGi and Embedded  
Jetty examples. There are a few others that show some different  
development scenarios, as well.


Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Apr 24, 2009, at Apr 24, 10:15 AM, Leonid Ilyevsky wrote:


I am very new to Felix, and I need some help to start. I was trying to
follow a tutorial on
http://felix.apache.org/site/apache-felix-usage-documentation.html  
and got

stuck.

First of all, how to download and install. On the download page I  
see many
jar files. If I want to start Felix and play with it, what is the  
minimum

set I have to download?

It says there:

-
Start Felix from the installation directory by typing:
java -jar bin/felix.jar
_
How do I get the bin/felix.jar ? Which package contains that?
Since it is supposed to be an executable jar, I guessed it might be
Main, so I downloaded that. But it is called
org.apache.felix.main-1.6.0.jar, not felix.jar.
Then I tried it:

   java -jar org.apache.felix.main-1.6.0.jar

and I got the following:

No config.properties found.

Welcome to Felix.
=

Then it hangs.

So basically I need to understand  the following:

1. What to download and where to put it.
2. How to configure and start it.

Thanks in advance for your help.

Leonid

---
This communication may contain confidential and/or privileged  
information.
If you are not the intended recipient (or have received this  
communication

in error) please notify the sender immediately and destroy this
communication. Any unauthorized copying, disclosure or distribution  
of the

material in this communication is strictly forbidden.

Deutsche Bank does not render legal or tax advice, and the information
contained in this communication should not be regarded as such.



-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Blog on OSGi

2009-03-26 Thread Kirk Knoernschild

Rob,

Thank you for the comment on my blog posting. I've responded, but will  
also take a moment to respond here, as well.


I didn't intend to come across as narrowly focused. In fact, I thought  
I was pretty broadly focused and had made it clear I was talking about  
OSGi for web application development. I felt I was pretty clear that  
OSGi proper (Equinox and Felix) is ready for primetime, but the  
tooling and application platform is not. I'm an OSGi advocate, but  
it's unrealistic to expect an enterprise developer to glue together  
the components necessary to develop an enterprise application using  
OSGi. That's why we use products and frameworks - so we don't have to.  
You can respectfully disagree with my argument, but the reality is  
that until better tooling exists and the application platform exposes  
the capabilities of OSGi, the enterprise is not going to use it. And I  
wish they could!


I shall now take a retreat to write some code...:-)

Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Mar 26, 2009, at Mar 26, 1:04 AM, Rob Walker wrote:


I added my 10c:

http://techdistrict.kirkk.com/2009/03/25/osgi-discontent-no-migration-path/#comment-7129

When did developing sotfware and apps get reduced to mindless lego  
block assembly - where did all the real programmers go? I guess  
they're writing code not blogs!


- R

Dave McLoughlin wrote:

Someone may want to comment/respond on this article:
http://techdistrict.kirkk.com/2009/03/25/osgi-discontent-no-migration-pa
th/



Dave McLoughlin |  OpenLogic

720 240 4530  |  phone
303 818 1686  |  cell


-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




--


Ascert - Taking systems to the Edge
r...@ascert.com
+44 (0)20 7488 3470
www.ascert.com


-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Blog on OSGi

2009-03-26 Thread Kirk Knoernschild

Rob,

Curious - What application server do you use? Jetty embedded within  
Felix?


I never suggested it wasn't possible to do (I know it's possible),  
only that it isn't feasible for most organizations to attempt. But if  
I've got my current generation of applications deployed on  WAS,  
WebLogic, or JBoss, most organizations would look at me like I was  
crazy were I to suggest embedding Jetty within Felix.


Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Mar 26, 2009, at Mar 26, 8:56 AM, Rob Walker wrote:


Nice response ;)

I guess we just come at it from different directions. We do use OSGi  
for web app development, and it's been very successful. We've got  
rock solid GWT support, a decent spread of back end services,  
including all the usual infrastructure plumbing like logging, user  
auth, personalization etc etc. We did roll a lot of it ourselves,  
but in truth most of the effort was figuring out how best to  
architect things - which I suspect we'd have needed to do even if  
we'd used more pre-built app framework functionality. We did pick  
and choose a lot of free standing libs to help us, such as the usual  
suspects of Log4j, Apache Commons Configuration, Hibernate, XML and  
XSLT tools, a sprinkle of Spring Security, java html/chart/pdf  
report generators like iText, TrueZip, and too many others too  
mention.


In the end, it wasn't that much code or effort to wire each of these  
libs in ways that exactly met our needs.


-- Rob

Kirk Knoernschild wrote:

Rob,

Thank you for the comment on my blog posting. I've responded, but  
will also take a moment to respond here, as well.


I didn't intend to come across as narrowly focused. In fact, I  
thought I was pretty broadly focused and had made it clear I was  
talking about OSGi for web application development. I felt I was  
pretty clear that OSGi proper (Equinox and Felix) is ready for  
primetime, but the tooling and application platform is not. I'm an  
OSGi advocate, but it's unrealistic to expect an enterprise  
developer to glue together the components necessary to develop an  
enterprise application using OSGi. That's why we use products and  
frameworks - so we don't have to. You can respectfully disagree  
with my argument, but the reality is that until better tooling  
exists and the application platform exposes the capabilities of  
OSGi, the enterprise is not going to use it. And I wish they could!


I shall now take a retreat to write some code...:-)

Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Mar 26, 2009, at Mar 26, 1:04 AM, Rob Walker wrote:


I added my 10c:

http://techdistrict.kirkk.com/2009/03/25/osgi-discontent-no-migration-path/#comment-7129

When did developing sotfware and apps get reduced to mindless lego  
block assembly - where did all the real programmers go? I guess  
they're writing code not blogs!


- R

Dave McLoughlin wrote:

Someone may want to comment/respond on this article:
http://techdistrict.kirkk.com/2009/03/25/osgi-discontent-no-migration-pa
th/



Dave McLoughlin |  OpenLogic

720 240 4530  |  phone
303 818 1686  |  cell


-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




--


Ascert - Taking systems to the Edge
r...@ascert.com
+44 (0)20 7488 3470
www.ascert.com


-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



--


Ascert - Taking systems to the Edge
r...@ascert.com
+44 (0)20 7488 3470
www.ascert.com


-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



Re: Blog on OSGi

2009-03-26 Thread Kirk Knoernschild
The techniques you are using are the types of best practices and  
patterns that are lacking, and that are impeding more widespread  
adoption. How are you embedding Felix in your apps? How do you support  
JSP? That type of thing. Can you share the techniques you're using to  
deploy web apps to these app servers while still leveraging OSGi?


Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Mar 26, 2009, at Mar 26, 10:12 AM, Pierre Dubois wrote:


I second Rob.

We came from a different perspective, but got the same result. Not  
saying it is trivial, but definitely doable. We do use pretty much  
the same stuff (log4j, hibernate, lucene, itext, jackrabbit)  
deployed in Felix. We do only Web dev, and our stuff runs in Tomcat,  
JBoss, Weblogic and Oracle AS. We do not use Jetty tough.



Pierre




On Mar 26, 2009, at 3:09 PM, Kirk Knoernschild wrote:


Rob,

Curious - What application server do you use? Jetty embedded within  
Felix?


I never suggested it wasn't possible to do (I know it's possible),  
only that it isn't feasible for most organizations to attempt. But  
if I've got my current generation of applications deployed on  WAS,  
WebLogic, or JBoss, most organizations would look at me like I was  
crazy were I to suggest embedding Jetty within Felix.


Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Mar 26, 2009, at Mar 26, 8:56 AM, Rob Walker wrote:


Nice response ;)

I guess we just come at it from different directions. We do use  
OSGi for web app development, and it's been very successful. We've  
got rock solid GWT support, a decent spread of back end services,  
including all the usual infrastructure plumbing like logging, user  
auth, personalization etc etc. We did roll a lot of it ourselves,  
but in truth most of the effort was figuring out how best to  
architect things - which I suspect we'd have needed to do even if  
we'd used more pre-built app framework functionality. We did pick  
and choose a lot of free standing libs to help us, such as the  
usual suspects of Log4j, Apache Commons Configuration, Hibernate,  
XML and XSLT tools, a sprinkle of Spring Security, java html/chart/ 
pdf report generators like iText, TrueZip, and too many others too  
mention.


In the end, it wasn't that much code or effort to wire each of  
these libs in ways that exactly met our needs.


-- Rob

Kirk Knoernschild wrote:

Rob,

Thank you for the comment on my blog posting. I've responded, but  
will also take a moment to respond here, as well.


I didn't intend to come across as narrowly focused. In fact, I  
thought I was pretty broadly focused and had made it clear I was  
talking about OSGi for web application development. I felt I was  
pretty clear that OSGi proper (Equinox and Felix) is ready for  
primetime, but the tooling and application platform is not. I'm  
an OSGi advocate, but it's unrealistic to expect an enterprise  
developer to glue together the components necessary to develop an  
enterprise application using OSGi. That's why we use products and  
frameworks - so we don't have to. You can respectfully disagree  
with my argument, but the reality is that until better tooling  
exists and the application platform exposes the capabilities of  
OSGi, the enterprise is not going to use it. And I wish they could!


I shall now take a retreat to write some code...:-)

Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Mar 26, 2009, at Mar 26, 1:04 AM, Rob Walker wrote:


I added my 10c:

http://techdistrict.kirkk.com/2009/03/25/osgi-discontent-no-migration-path/#comment-7129

When did developing sotfware and apps get reduced to mindless  
lego block assembly - where did all the real programmers go? I  
guess they're writing code not blogs!


- R

Dave McLoughlin wrote:

Someone may want to comment/respond on this article:
http://techdistrict.kirkk.com/2009/03/25/osgi-discontent-no-migration-pa
th/



Dave McLoughlin |  OpenLogic

720 240 4530  |  phone
303 818 1686  |  cell


-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




--


Ascert - Taking systems to the Edge
r...@ascert.com
+44 (0)20 7488 3470
www.ascert.com


-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org



--


Ascert - Taking systems to the Edge
r...@ascert.com
+44 (0)20 7488 3470
www.ascert.com

Re: Blog on OSGi

2009-03-26 Thread Kirk Knoernschild

Pierre,

Thank you for the links. I must take a look at the information.

Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Mar 26, 2009, at Mar 26, 12:04 PM, Pierre Dubois wrote:


Have a look at:

http://forge.ow2.org/projects/dysoweb
http://www.requea.com/do/Support/Documentation/Documentation/index?sysId=a40485cd-af22-4988-9514-53c1cad35ce0pctx=dbf93cb31f622c43012043af25e444b4
http://www.requea.com/do/archi/dysoweb/Dysoweb



On Mar 26, 2009, at 5:50 PM, Kirk Knoernschild wrote:

The techniques you are using are the types of best practices and  
patterns that are lacking, and that are impeding more widespread  
adoption. How are you embedding Felix in your apps? How do you  
support JSP? That type of thing. Can you share the techniques  
you're using to deploy web apps to these app servers while still  
leveraging OSGi?


Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Mar 26, 2009, at Mar 26, 10:12 AM, Pierre Dubois wrote:


I second Rob.

We came from a different perspective, but got the same result. Not  
saying it is trivial, but definitely doable. We do use pretty much  
the same stuff (log4j, hibernate, lucene, itext, jackrabbit)  
deployed in Felix. We do only Web dev, and our stuff runs in  
Tomcat, JBoss, Weblogic and Oracle AS. We do not use Jetty tough.



Pierre




On Mar 26, 2009, at 3:09 PM, Kirk Knoernschild wrote:


Rob,

Curious - What application server do you use? Jetty embedded  
within Felix?


I never suggested it wasn't possible to do (I know it's  
possible), only that it isn't feasible for most organizations to  
attempt. But if I've got my current generation of applications  
deployed on  WAS, WebLogic, or JBoss, most organizations would  
look at me like I was crazy were I to suggest embedding Jetty  
within Felix.


Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Mar 26, 2009, at Mar 26, 8:56 AM, Rob Walker wrote:


Nice response ;)

I guess we just come at it from different directions. We do use  
OSGi for web app development, and it's been very successful.  
We've got rock solid GWT support, a decent spread of back end  
services, including all the usual infrastructure plumbing like  
logging, user auth, personalization etc etc. We did roll a lot  
of it ourselves, but in truth most of the effort was figuring  
out how best to architect things - which I suspect we'd have  
needed to do even if we'd used more pre-built app framework  
functionality. We did pick and choose a lot of free standing  
libs to help us, such as the usual suspects of Log4j, Apache  
Commons Configuration, Hibernate, XML and XSLT tools, a sprinkle  
of Spring Security, java html/chart/pdf report generators like  
iText, TrueZip, and too many others too mention.


In the end, it wasn't that much code or effort to wire each of  
these libs in ways that exactly met our needs.


-- Rob

Kirk Knoernschild wrote:

Rob,

Thank you for the comment on my blog posting. I've responded,  
but will also take a moment to respond here, as well.


I didn't intend to come across as narrowly focused. In fact, I  
thought I was pretty broadly focused and had made it clear I  
was talking about OSGi for web application development. I felt  
I was pretty clear that OSGi proper (Equinox and Felix) is  
ready for primetime, but the tooling and application platform  
is not. I'm an OSGi advocate, but it's unrealistic to expect an  
enterprise developer to glue together the components necessary  
to develop an enterprise application using OSGi. That's why we  
use products and frameworks - so we don't have to. You can  
respectfully disagree with my argument, but the reality is that  
until better tooling exists and the application platform  
exposes the capabilities of OSGi, the enterprise is not going  
to use it. And I wish they could!


I shall now take a retreat to write some code...:-)

Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk




On Mar 26, 2009, at Mar 26, 1:04 AM, Rob Walker wrote:


I added my 10c:

http://techdistrict.kirkk.com/2009/03/25/osgi-discontent-no-migration-path/#comment-7129

When did developing sotfware and apps get reduced to mindless  
lego block assembly - where did all the real programmers go? I  
guess they're writing code not blogs!


- R

Dave McLoughlin wrote:

Someone may want to comment/respond on this article:
http://techdistrict.kirkk.com/2009/03/25/osgi-discontent-no-migration-pa
th/



Dave McLoughlin |  OpenLogic

720 240 4530  |  phone
303 818 1686  |  cell


-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




--


Ascert - Taking systems to the Edge
r...@ascert.com
+44

Re: Embedding Felix

2009-02-10 Thread Kirk Knoernschild
I've reviewed that page. I was hoping for a simple JAR file that  
contained code similar to this that provided these functions.  
Something similar to the PAX Web stuff for embedding Jetty in OSGi,  
except the other way around.


I suppose I can code it up myself, though I was hoping there was  
something reusable that I could pull in. Any other thoughts before I  
embark on a coding exercise?


Kirk Knoernschild
http://www.kirkk.com
http://techdistrict.kirkk.com
http://planet.kirkk.com
twitter: pragkirk



On Feb 10, 2009, at Feb 10, 2:32 PM, Marcel Offermans wrote:


On Feb 10, 2009, at 21:18 , Kirk Knoernschild wrote:


I'm looking for a very simple framework that allows me to embed Felix
in an app server (starting with Tomcat). Maybe something like
bridge.war used for embedding Equinox. I'm looking for a few basic
functions.
- Launch Felix
- Bridge servlet requests
- JSP support

Does this exist? thanx, much.


Check out this page:

http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html

It explains how to do this in general.

Greetings, Marcel


-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org