out-of-the-box…. ?!?

10 Sep, 2007

Ah Monday morning, fresh start of the week. Today I am going to deploy the new version of our business process that we modeled using JBPM. Luckily JBPM provides a starter kit that enables you to deploy your process definitions. The readme promises me an out-of-the-box experience:

The enterprise archive can be deployed on JBoss out-of-the-box.

Let’s see if my definition of out-of-the-box is the same as the JBoss one.

I deployed the ear file and navigate to the application and got a NullPointerException right in my faces.

08:28:33,305 ERROR [STDERR] 10/09/2007 08:28:33 com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Error Rendering View[/common/login.xhtml]

Okay no worries I just restart JBoss and back to the url and yes it works…. so it seams.
Let’s login and deploy the new process. The login page tells me that the JBoss employees must really enjoy their job because they came up with funny usernames like bert, ernie and cookie monster. The page also gives me the passwords to login so I try with my childhood friend ernie.

Hmmmm... Check you caps lock, put on your glasses and try again.
Please, use any of the following username and password combinations.

Okay I check my caps lock, nope it’s not on (or off), borrowed glasses from my co-worker and tried again:

Hmmmm... Check you caps lock, put on your glasses and try again.
Please, use any of the following username and password combinations.

Tssss… back to the log files then:

08:32:11,669 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role files No properties file: or defaults: found

After an hour of googling, swearing and trial and error I gave up and decide to do it myself. I guess I have to redefine my definition of out-of-the-box when working with JBoss…

Newest Most Voted
Inline Feedbacks
View all comments
14 years ago

the jbpm jboss has a very bad documentation. i tested the product during two weeks, but the lack of documentation is very annoying !!!
But i succeed to deploy the product with a db after one day ! Sometimes i hate open source for THAT !

Tom Baeyens
14 years ago

Thanks for the feedback. We’ll work on it.
Whas there a version of JBoss mentioned ? Can you try JBoss 4.0.4.GA ? We’ll update the docs.

Fady Matar
Fady Matar
14 years ago

Your error is related to the missing JAAS configuration. You forgot to define the jbpm realm
in your login-config.xml file
SELECT g.NAME_ ,’Roles’
WHERE g.TYPE_=’security-role’
AND m.GROUP_ = g.ID_
AND m.USER_ = u.ID_
Why don’t you try to jbpm forums for instance? I bet the jBPM team can assist you there much better.

Fady Matar
Fady Matar
14 years ago

the xml tags were trimmed out in the last comment. You can have a look at the login-config.xml as is in the jbpm-jpdl-suite.

14 years ago

The starter kit comes with a preconfigured JBoss installation that does work out of the box. You can find it in the server directory. This is mentioned in the readme.html file.
The thing is, you grabbed the .ear but not the security realm configuration. Look for the application policy named “jbpm” in server/jbpm/conf/login-config.xml.
Granted, the above login configuration is not documented. The product is in constant evolution and detailed problem reports such as this are very appreciated.
On the other hand, it is generally hard to ensure an out-of-box experience when the components of the product are used separately. That is why the starter kit provides a preintegrated set of components.

Explore related posts