• Home
  • RSS Feed
  • Log in


out-of-the-box…. ?!?
Posted by Lars Vonk mid-morning: September 10th, 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 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]
java.lang.NullPointerException

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…

Share

Filed under Java | 6 Comments »



6 Responses to “out-of-the-box…. ?!?”



    regis Says:
    Posted at: 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 !

    Reply


    Tom Baeyens Says:
    Posted at: 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.

    Reply


    Fady Matar Says:
    Posted at: 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

    java:/JbpmDS

    SELECT PASSWORD_ FROM JBPM_ID_USER WHERE NAME_=?

    SELECT g.NAME_ ,’Roles’
    FROM JBPM_ID_USER u,
    JBPM_ID_MEMBERSHIP m,
    JBPM_ID_GROUP g
    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.

    Cheers

    Reply


    Fady Matar Says:
    Posted at: 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.

    Cheers

    Reply


    alejandro Says:
    Posted at: 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.

    Reply


    Lars Vonk Says:
    Posted at: 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,
    Lars

    Reply


Leave a Reply

Click here to cancel reply.


Xebia Sites

  • Xebia Corporate
  • Xebia France
  • Xebia India
  • Xebia Sweden

Categories

  • Java (311)
  • Agile (181)
  • General (136)
  • Scrum (67)
  • Architecture (64)
  • Testing (59)
  • Performance (46)
  • Middleware (56)
    • Deployment (38)
  • Xebia Labs (39)
  • SOA (31)
  • Podcast (31)
  • Project Management (28)
  • Tools (26)
  • Uncategorized (20)
  • lean architecture (20)
  • Quality Assurance (17)
  • Articles (13)
  • Requirements Management (13)
  • Virtualization (19)

Tag Cloud

    JPA Groovy agile architectuur Moving to India Oracle Spring Xebia Grails XML SOA JPA implementation patterns Flex Agile TDD Lean Scala Frameworks ACT Concurrency Control Scrum Javascript Architecture lean architectuur Hibernate Maven lean architecture Ajax Java Eclipse product owner

Archives

  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
Avatars by Sterling Adventures