Installing Java Melody on a basic install of Railo on Linux

231 views
Skip to first unread message

EJ Jaquet

unread,
Feb 9, 2013, 5:37:47 AM2/9/13
to ra...@googlegroups.com
Hi Guys,

I have a Railo installation, using the basic Railo Linux installer, which installed Railo with Tomcat and a Apache connector on Linux Ubuntu.

For my local development I want to try and install Java Melody, to look at is capabilities of monitoring the JAVA server.

According to the documentation (http://code.google.com/p/javamelody/wiki/UserGuide), installation is a two step procedure:

- Install two JAR files in the WEB-INF/lib directory of the WAR of the webapp to monitor
- Add some lines to the WEB-INF/web.xml file of the WAR of the webapp

But how does this translate to the Railo install? I figured it was the following:

JAR files directory:
- {PATH_TO_MY_WEBROOT}/WEB-INF/lib 

web.xml
/opt/railo/tomcat/webapps/ROOT/WEB-INF

But of course, this is not working (otherwise I would'nt be posting this now, would I).
Should the web.xml for my setup be the railo-web.xml file in the webroot's WEB-INF folder instead?

I hope someone can explain the setup and which WEB-INF is which...

Kind regards,

Erik-Jan

David Panzarella

unread,
Feb 9, 2013, 11:49:37 AM2/9/13
to ra...@googlegroups.com
Is ROOT where you have your app? On a mac, when using the Railo Installer, you just drop in your sites under the webapps folder, and it should make a new WEB-INF folder under that directory. Its that WEB-INF you should modify the web.xml. For the JARS though, i may be mistaken, but i think you want to put those in the lib folder in the root of Railo. In my Railo install, the lib is directly in that folder.

HTH,
David

--
 
Sincerely,
 
David Panzarella
Senior Developer
m - 805.689.7927
e - da...@sbinnerweb.com
w - sbinnerweb.com  

--
You received this message because you are subscribed to the Google Groups "Railo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to railo+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

melinite

unread,
Feb 9, 2013, 7:38:38 PM2/9/13
to ra...@googlegroups.com
we use javamelody extensively per context instead of the server root, so we can choose to monitor certain contexts instead of the whole server.

Put the configs under your context/WEB-INF folder

Create a folder called lib (so with a railo context you will see a railo and flex folder by default) and put the javamelody jars there. You will need the jira-javamelody.jar and jrobin jar. You can get a more recent version of jrobin here http://sourceforge.net/projects/jrobin/. The one that is packaged with javamelody is outdated.

Next place your javamelody configured web.xml under WEB-INF of the same context. You might need to create the folder for the javamelody cached files if you specified it in the web.xml.

EJ Jaquet

unread,
Feb 10, 2013, 3:09:14 AM2/10/13
to ra...@googlegroups.com
Hi Melinite,

Thanks for your response... I tried this setup, but all it was saying is that the monitoring page can not be found.

In my Webroot, under the folder WEB-INF, I created a folder 'lib'. So now I have three folder, railo, flex and lib. In the lib, I put the two JAR files. In that same folder I created my web.xml file with the setup for Javamelody.

Now, when I run the app, it still runs fine. But when I go to localhost/monitoring/ it can not find the page.

What am I missing here?

Kind regards,

Erik-Jan

EJ Jaquet

unread,
Feb 10, 2013, 3:30:55 AM2/10/13
to ra...@googlegroups.com
I figured it out! In your post, you said to use the jira-javamelody jar, I was using the javamelody jar instead. Slight oversight on my part!

Thanks for the help!

Erik-Jan

melinite

unread,
Feb 11, 2013, 8:34:05 PM2/11/13
to ra...@googlegroups.com
Cheers!
Reply all
Reply to author
Forward
0 new messages