[rules-users] Guvnor in Websphere 6.1 setup, repository problem

Tatonka2000 muxico73 at gmail.com
Mon Apr 19 09:59:09 EDT 2010


Hi all,

I've been trying to install Drools 5 in websphere 6.1, and followed some
documentation available on the wiki at:
http://community.jboss.org/wiki/DeployingGuvnor5OnWebSphere

That page did solve a lot of the issues I was having, but now I'm faced with
something that seems a little unique. Maybe I'm not understanding something
basic, maybe not... Anyway, my repository home directory is set to:
	      <property name="homeDirectory">/data/GuvnorRepo/</property>

First noob question is where should I put the data directory? The reason I
ask is that no matter where I put it, when I start up the web application, I
get the following (summarized and annotated) stack trace:

[4/19/10 8:38:16:863 CDT] 00000016 WebGroup      A   SRVE0169I: Loading Web
Module: JBoss Drools Guvnor.
[4/19/10 8:38:50:052 CDT] 00000016 WebApp        E   Exception caught while
initializing context 
org.jboss.seam.InstantiationException: Could not instantiate Seam component:
repositoryConfiguration
	at org.jboss.seam.Component.newInstance(Component.java:2066)
(**edit: a bunch more seam related**)
(**edit: a bunch more ibm.ws.webcontainer related**)
(**edit: a bunch more ibm.ws.runtime related**)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: org.drools.repository.RulesRepositoryException:
javax.jcr.RepositoryException: Automatic repository configuration failed:
\data\GuvnorRepo\repository.xml (The system cannot find the path
specified.): \data\GuvnorRepo\repository.xml (The system cannot find the
path specified.)
	at
org.drools.guvnor.server.repository.BRMSRepositoryConfiguration.newSession(BRMSRepositoryConfiguration.java:116)
	at
org.drools.guvnor.server.repository.BRMSRepositoryConfiguration.create(BRMSRepositoryConfiguration.java:56)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(**edit: a bunch more reflect related**)
(**edit: a bunch more seam related **)
	at
org.drools.guvnor.server.repository.BRMSRepositoryConfiguration_$$_javassist_0.create(BRMSRepositoryConfiguration_$$_javassist_0.java)
(**edit: a bunch more seam related**)
	... 22 more
Caused by: javax.jcr.RepositoryException: Automatic repository configuration
failed: \data\GuvnorRepo\repository.xml (The system cannot find the path
specified.): \data\GuvnorRepo\repository.xml (The system cannot find the
path specified.)
	at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:247)
	at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
	at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
	at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
	at
org.drools.guvnor.server.repository.BRMSRepositoryConfiguration.newSession(BRMSRepositoryConfiguration.java:112)
	... 47 more
Caused by: java.io.FileNotFoundException: \data\GuvnorRepo\repository.xml
(The system cannot find the path specified.)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:205)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:157)
	at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:218)
	... 51 more

Is this something that should be available in my application server setup
already as in Tomcat's data directory? Websphere does not provide it as far
as I know, but there's an alternative, my Websphere application directory,
and if I put data there, I get the same error. I've also tried my Eclipse
project's root and the WEB-INF.

While debugging it, I tried to take all folder structure out and see where
the repository.xml file would appear, but not only it did not, it gave me a
different error on startup. So, with this in components.xml:

	      <property name="homeDirectory"></property>

I get:

[4/19/10 8:49:48:773 CDT] 00000026 WebGroup      A   SRVE0169I: Loading Web
Module: JBoss Drools Guvnor.
[4/19/10 8:49:53:992 CDT] 00000026 WebApp        E   Exception caught while
initializing context 
org.jboss.seam.InstantiationException: Could not instantiate Seam component:
repositoryConfiguration
	at org.jboss.seam.Component.newInstance(Component.java:2066)
(**edit: a bunch more seam related**)
(**edit: a bunch more ibm.ws related**)
(DeployedApplicationImpl.java:1138)
(**edit: a bunch more reflect related**)
(**edit: a bunch more ibm.ws related**)
	at java.lang.Thread.run(Thread.java:810)
Caused by: org.drools.repository.RulesRepositoryException:
javax.jcr.RepositoryException: Invalid repository configuration:
/repository.xml: Configuration file syntax error.: Premature end of file.:
Configuration file syntax error.: Premature end of file.: Premature end of
file.	at
org.drools.guvnor.server.repository.BRMSRepositoryConfiguration.newSession(BRMSRepositoryConfiguration.java:116)
	at
org.drools.guvnor.server.repository.BRMSRepositoryConfiguration.create(BRMSRepositoryConfiguration.java:56)
(**edit: a bunch more reflect and seam related**)
	at
org.drools.guvnor.server.repository.BRMSRepositoryConfiguration_$$_javassist_0.create(BRMSRepositoryConfiguration_$$_javassist_0.java)
(**edit: a bunch more reflect and seam related**)
	at org.jboss.seam.Component.newInstance(Component.java:2054)
	... 62 more
Caused by: javax.jcr.RepositoryException: Invalid repository configuration:
/repository.xml: Configuration file syntax error.: Premature end of file.:
Configuration file syntax error.: Premature end of file.: Premature end of
file.	at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:250)
	at
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:265)
	at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:333)
	at
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:363)
	at
org.drools.guvnor.server.repository.BRMSRepositoryConfiguration.newSession(BRMSRepositoryConfiguration.java:112)
	... 87 more
Caused by: org.apache.jackrabbit.core.config.ConfigurationException:
Configuration file syntax error.: Premature end of file.: Premature end of
file.
	at
org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:199)
	at
org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:343)
	at
org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:368)
	at
org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:323)
	at
org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:142)
	at
org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:83)
	at
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:244)
	... 91 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at
org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:193)
	... 97 more

[4/19/10 8:49:53:977 CDT] 00000026 SystemErr     R [Fatal Error] :-1:-1:
Premature end of file.



It says premature end of file, but it's not anywhere... Soooo.... any ideas?
What am I missing, and what should I do?

Any help is appreciated, thanks!
Mauricio
-- 
View this message in context: http://n3.nabble.com/Guvnor-in-Websphere-6-1-setup-repository-problem-tp729665p729665.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list