2 Replies Latest reply on Dec 21, 2011 3:45 PM by byungwoojun

    a question on jBPM 5.1 Guvnor Oracle Repository configuration

    byungwoojun

      I am trying to use Oracle as the Guvnor repository, instead of using DERBY or a local file system, on Unix, and have the following error:

       

       

      <Nov 1, 2011 10:11:27 PM EDT> <Warning> <HTTP> <BEA-101162> <User defined listener org.jboss.seam.servlet.SeamListener failed:

      org.jboss.seam.InstantiationException: Could not instantiate Seam component: repositoryConfiguration.

       

      org.jboss.seam.InstantiationException: Could not instantiate Seam component: repositoryConfiguration.
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: repositoryConfiguration
      at org.jboss.seam.Component.newInstance(Component.java:2066)
      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
      at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
      at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
      at org.jboss.seam.init.Initialization.init(Initialization.java:727)
      Truncated. see log file for complete stacktrace

      Caused By: java.lang.NullPointerException: dispatcher
      at org.apache.jackrabbit.core.observation.ObservationManagerImpl.<init>(ObservationManagerImpl.java:97)
      at org.apache.jackrabbit.core.WorkspaceImpl.getObservationManager(WorkspaceImpl.java:748)
      at org.apache.jackrabbit.core.SessionImpl.removeRegisteredEventListeners(SessionImpl.java:1193)
      at org.apache.jackrabbit.core.SessionImpl.logout(SessionImpl.java:1222)
      at org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doDispose(RepositoryImpl.java:2194)
      Truncated. see log file for complete stacktrace
      >

       

      I put the repository.xml on the JEE application server (WebLogic) root directory. The same configuration worked on Windows, but it does not work on Unix. Has anyone had experience with a similar configuration (jBPM 5.1 Guvnor on Unix using Oracle) and had any success with making it work?

       

      Thanks,

      bwj 

        • 1. Re: a question on jBPM 5.1 Guvnor Oracle Repository configuration
          tsurdilovic

          If you explode the guvnor war and edit $guvnor.war/WEB-INF/lib/components.xml you can edit the location where jackrabbit is expecting the repository config:

           

          <property name="properties">

                    <key>org.drools.repository.configurator</key><value>org.drools.repository.jackrabbit.JackrabbitRepositoryConfigurator</value>

                    <!--  the root directory for the repo storage the directory must exist. -->

                    <!--  <key>repository.root.directory</key><value>/opt/yourpath</value>  -->

          </property>

           

          You also need the right db driver jars in the AS/lib directory and can generate the repository.xml file in Guvnor (Administration->Repository Configuration).

           

          Let us know how you have set it all up so far so we could help more.

          • 2. Re: a question on jBPM 5.1 Guvnor Oracle Repository configuration
            byungwoojun

            Thanks a lot!  We will try your recommendations and will let you know.

             

            bwj