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

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 http://localhost:8080/jbpm-console 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
java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315)

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...

Comments (6)

  1. regis - Reply

    September 11, 2007 at 1:33 am

    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 !

  2. Tom Baeyens - Reply

    September 11, 2007 at 9:19 am

    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.

  3. Fady Matar - Reply

    September 11, 2007 at 10:28 am

    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_
    AND u.NAME_=?

    Why don't you try to jbpm forums for instance? I bet the jBPM team can assist you there much better.


  4. Fady Matar - Reply

    September 11, 2007 at 10:29 am

    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.


  5. alejandro - Reply

    September 11, 2007 at 7:55 pm

    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.

  6. Lars Vonk - Reply

    September 12, 2007 at 9:21 am

    Hi all,

    thanks for the replies. As Fady suggested I posted a topic on the jbpm forum: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083305#4083305

    To summarize: I did try the login-config.xml but it keeps failing. when I copy over the complete server/jbom to my jboss (4.0.5 GA) it does work after I added dom4j to the lib directory.

    Thanks again,

Add a Comment