Hi Yuri,
Yes, this was changed to avoid packaging and build problems.
Before this the datasource corresponding to the repository were
generated on the fly
after registering the repository extension (by sending a nxruntime event
to the jboss adapter)
and then deployed into JBoss by using JBoss specific API.
Now you need to explicitly deploy your data source into jboss.
For this you simply put a -ds.xml file in nuxeo.ear/datasources that
defines the datasource of your repository.
To create this file copy the content of the one you will find in
nuxeo-core-jca.jar
And modify the "default" name to your own name
This is the content of the file you need to copy:
------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE connection-factories PUBLIC
"-//JBoss//DTD JBOSS JCA Config 1.5//EN"
"http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
<connection-factories>
<mbean code="org.nuxeo.ecm.core.repository.JBossRepository"
name="nx:type=repository,name=default">
<constructor>
<arg type="java.lang.String" value="default"/>
</constructor>
</mbean>
<tx-connection-factory>
<jndi-name>NXRepository/default</jndi-name>
<adapter-display-name>NX Repository Adapter</adapter-display-name>
<rar-name>nuxeo.ear#nuxeo-core-jca-${project.version}.rar</rar-name>
<connection-definition>org.nuxeo.ecm.core.model.Repository</connection-definition>
<xa-transaction/>
<!-- Configuration properties. -->
<config-property name="name">default</config-property>
</tx-connection-factory>
</connection-factories>
------------------
So you should change "default" to your own name in following places:
NXRepository/default
<config-property name="name">default</config-property>
And here you should be sure you have the correct name of the rar bundle:
<rar-name>nuxeo.ear#nuxeo-core-jca-${project.version}.rar</rar-name>
The first section:
<mbean code="org.nuxeo.ecm.core.repository.JBossRepository"
name="nx:type=repository,name=default">
<constructor>
<arg type="java.lang.String" value="default"/>
</constructor>
</mbean>
is optional and it is needed only if you want to be able to view some
info about your repository through JBoss jmx-console
If you want this then change "default" wioth your own name.
Regards,
Bogdan
Yuri Nadestin wrote:
I believe that I found the reason of non-registering repository:
The RepositoryAdapter listener has been removed in revision 24253 from
JBossAdapterService.xml.
Currently the RepositoryAdapter class is not used at all and default
repository is deployed from RAR file.
Without RepositoryAdapter listener there is no deployment of
NXRepository/{Repository name} name and lookup of repository will always
fail.
This is the same problem which was mentioned by Sean Radford 2 weeks
ago.
Can someone else have a look at this problem, and propose a proper
solution.
(My workaround for the time being is re-enable RepositoryAdapter
listener).
Thanks,
Yuri Nadestin
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Yuri Nadestin
Sent: Donnerstag, 27. September 2007 11:45
To: [email protected]
Subject: [Ecm] RDBMS Configuration
Hello,
I am trying to configure Nuxeo to use MS Sql Server Database as Data
storage.
Following sections 21.4.x of the Nuxeo book I have configured repository
and Database connection parameters.
Unfortunately it doesn't work. After logging in, Nuxeo asks me which
Repository to use. It shows both "demo" and "MyRepo" repositories
despite the fact that demo repository should have been disabled.
When I click on MyRepo repository, JBoss generates ~1Km long error log
and everything ends up on the error page with following message:
Exception: org.nuxeo.ecm.core.api.ClientException. message: Error
opening repository No such repository 'Failed to lookup repository:
MyRepo'
What am I missing in the configuration? I can post configuration files,
but they are simply copied from the book except database connection
parameters.
Did someone tested the procedure from the book?
Thanks,
Yuri Nadestin
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm