Hippo Tip: Deploying Hippo to GlassFish

Trying to get Hippo deployed to GlassFish? Today I discovered a simple trick. Here's the proof that it works:

The above are deployed from within the IDE. Deploying from within the GlassFish Admin Console, the names are what I would expect, so something needs to be configured for my projects so the display names are better when deployed from the IDE:


Above, you see a Hippo Site and a Hippo CMS app deployed to GlassFish. I managed to do this by looking at how Tomcat is supported (by default) in Hippo. When you use the Maven archetype for Hippo, and you use "-P cargo.run" to deploy, you end up with an application that has a private installation of Tomcat. I.e., each and every application created via the Maven archetype, deployed with "-P cargo.run", has an own private Tomcat installation:

So, you can register the above folder in the IDE and manage your deployed Hippo apps from there:

However, you can look at what's been done to Tomcat to make it usable out-of-the-box from your Hippo application. I.e., just look at the JARs included in your application's private user directory of its Tomcat installation:

I literally copied all of the above into the "lib" folder of my GlassFish domain:

Some of the above libraries should probably be put elsewhere, in the same way as in Tomcat some are in "common" and some are in "shared". (And some of the above are probably not necessary.) Then restart GlassFish and then you can deploy your Hippo apps without any problem at all.

Comments:

Determination will get you everywhere. Cool trick and thanks for sharing it. It is nice to know there are other people as stubborn... I mean determined as me.

Posted by John Yeary on July 07, 2011 at 12:23 PM PDT #

Clearly you understand the pain it took to arrive at the wisdom revealed in this blog entry, John. :-) See you at JavaOne!

Posted by Geertjan on July 08, 2011 at 01:20 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today