Friday, February 02, 2007

problems installing JBoss

I had some problems installing JBoss 4.0.5 with jems, although that's
the way they recommend it on the official site. The problem appeared at
JBoss server startup and was mainly consisting in these errors
appearing in the console:

16:23:42,873 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/conso
le-mgr.sar/web-console.war/
16:23:43,634 INFO [[/web-console]] MonitorsFolder: Failed to init
plugin, null
16:23:43,644 INFO [[/web-console]] UCLs: Failed to init plugin, null
16:23:43,664 INFO [[/web-console]] JMS Message: Failed to init plugin,
null
16:23:43,664 INFO [[/web-console]] JSR77 WebModule: Failed to init
plugin, null
16:23:43,724 INFO [[/web-console]] J2EEFolder: Failed to init plugin,
null
16:23:43,754 INFO [[/web-console]] AOPFolder: Failed to init plugin,
null
16:23:43,754 INFO [[/web-console]] SystemFolder: Failed to init
plugin, null
16:23:43,804 INFO [[/web-console]] MBeans: Failed to init plugin, null
16:23:43,814 INFO [[/web-console]] JSR77 Domains and Servers: Failed
to init plugin, null
16:23:43,814 INFO [[/web-console]] JSR77 EJBModules and EJBs: Failed
to init plugin, null
16:23:43,824 INFO [[/web-console]] JSR77 J2EE Apps: Failed to init
plugin, null
16:23:47,870 INFO [MailService] Mail Service bound to java:/Mail
...


After some digging, I found out that there was a bug in the jems
installer 1.2.0 CR1 that led to a line missing in a config xml file
(\jboss-4.0.5.GA\server\default\deploy\management\console-mgr.sar\web-console.war\WEB-INF\jboss-web.xml).
The obvious solution was, as a JBoss poster stated on the forum, to put
the missing line in place (see this ),
but disappointingly this didn't work for me. I really needed a EJB 3.0
supporting version of JBoss 4.0.5, and after some more hassle with the
jems installer, I finally decided to abandon this path and go directly
to the source code. I unpacked it and built it with ant (the build.xml
is provided) - for some odd meaningless reason the build.sh failed to
run - then got my ejb 3.0 enabled server in
jboss-4.0.5.GA-src\build\output\jboss-4.0.5.GA-ejb3 folder. Note that jdk1.5 is required for this,
no earlier version would do for ejb 3.0. That's about it, I hope I
didn't forget impotant details, hopefully this would spare some people the
pain of going through the same countless tries of installing a good
version of JBoss 4.0.5 server.

I had some troubles with migrating from the default JBoss data
source (Hypersonic) to mysql, but I'll write about this later.

No comments: