Re: WebObjects deployment with JBoss
Re: WebObjects deployment with JBoss
- Subject: Re: WebObjects deployment with JBoss
- From: Daniele Corti <email@hidden>
- Date: Wed, 14 Oct 2009 11:50:59 +0200
Hi,
well, you right I should have posted in the list my activity, but, really, we are coming from a crazy week, and this one sound very similar to the passed.
Ok, answering your question: I'm looking for a way to LEAVE jboss and install WO on Linux, because I have too many problems with it and, of course, I have no time to solve all of them, but I will wrote out some note about my job for future help.
I can give you my opinion about the pros and cons to use JBoss.
Pros:
- JBoss is standalone, and, after adding an user jboss in a group jboss, and config the run.sh with the path to you JRE, works without problems.
- You can alter the link where deploy your app changing the name of the WAR package: for example I needed to obtain the url http://{myhost}/cgi-bin/WebObjects/{MyApp}.woa, but introducing a WAR file named {MyApp}.war I obtained http://{MyApp}/WebObjects/{MyApp}.woa. Then I changed the app name in cgi-bin.war then the path was correct.
- You can easily add balacer in Apache for accessing to the resources in HTTP over port 80:
add mod_proxy, mod_proxy_ftp (probably not needed), mod_proxy_http, mod_proxy_connect, mod_proxy_balancer to Apache2, and setup a virtual host with:
<Proxy balancer://your-app> Order deny,allow
Allow from all BalancerMember http://localhost:8080/your-path/WebObjects/Your-App.woa
</Proxy> ProxyPass /your-path/WebObjects/Your-App.woa balancer://your-app
Then requesting the page http://{Your Host}/your-path/WebObjects/Your-App.woa you get your app through port 80.
ATTENTION: you need to setup the SAME path in your-path, because WO generate complete path in the links.
Cons:
- It's very slow to update package: I use Project Wonder, with Ajax, Validation, JavaMail, Houdah and Postgresql (plus the defaults of a Wonder App), so when I create the package is large 2 or 3 Mb of my App plus
66 Mb of Frameworks, and upload that is very heavy (now it takes me 10 minutes, but until last week we had a slow connection, then I needed 20 minutes to upload a package). Every time I make a change is very slow to update the version.
- WOLips has not a way to create WAR file for the Deployment (or at least I did not find it): the web.xml, that WOLips creates, has the param WOAppMode setted to Development (so the app work like you use WODirectConnectEnabled=true) you have to change the file by hand and update the WAR package.
- If you put in the deploy directory more than one WoApp the second one does not start, because the WOServletAdaptor is not available (I don't remember exactly the error, sorry. When I make some changes I will post it). You have to change the load-on-startup vaue in the servlet element of the web.xml file (for example, my first app has the default value, 5, then I change the second app value to 6 and both start when I start the server).
The Problem occurs when I add 2 more apps, with the value of load-on-startup to 7 and 8. The first, the third, the fouth start, but the second does not. I thought was a name problem: the apps are called:
1st: cgi-bin
2nd: ticket
3rd: cims
4th: manutenzioni
then JBoss starts the app in the order 1 - 3 - 4 - 2, because it uses the name order for the startup. I changed the load-on-startup value of the apps in:
cgi-bin => 5
ticket => 8
cims => 6
manutenzioni => 7
but the ticket app still does not load, with the error WOServletAdaptor not available.
The only way to make all the app working is: put cgi-bin and ticket apps in the deploy directory, start the server, then, while working, add the cims and the manutenzioni apps in the deploy directory. And I really have not understood why it works in this way...
- Then I realized that if I start the server and then add the other two apps without calling a first time cgi-bin and ticket, these ones lose the localization default language (Italian) and use the standard (English).
- Last one, I still have the problem with the ERJavaMail that I posted last week, even using the solution posted by Henrique the ERJavaMail try to send mails to
your.smtpserver.com, I thought it was a config of JBoss, but I have not found this string in any configuration file.
With all of this problem, now I'm trying to install WO on linux, because time for testing is finished and I have to put the apps working for yesterday.
If someone have some advice for me, I really appreciate,
--
Daniele Corti
--
I DON'T DoubleClick
--
There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
On Tue, Oct 13, 2009 at 16:56, Jochen Haeberle
<email@hidden> wrote:
Hi Daniele,
I saw you recent post on the WOnder disussion list concerning a problem with a WO-Project deployed under JBoss.
But it sounds like you successfully deployed something to JBoss and have some detail problems.
As I was always interested in some other deployment method than WOMonitor/wotaskd, would you please share some experiences?
Do you think it is worth it? Is deployment better/more stable with JBoss than with Monitor?
Do you have some links available for the changes that have to be done to deploy for JBoss?
Thanks in advance for your advice! Greetings from munich
Jochen
Mit freundlichen Grüßen
Jochen Häberle
Leiter Technik & Entwicklung
Chief Technology Officer (CTO)
--
sensano ag
Marienstraße 14/16
80331 München
Tel: +49 (0)89 89 05 08-61
Fax: +49 (0)89 89 05 08-89
http://www.sensano.com
Sitz der Gesellschaft: München
Amtsgericht München HRB 13 40 03
Vors. des Aufsichtsrates: Dr. Michael Zoller
Vorstand: Markus Behrens, Dr. Thomas Behrens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden