hi roland,
you probably missing the derby.jar (embedded driver) in your classpath.
regards, toby
On 1/4/07, Ronald_K <[EMAIL PROTECTED]> wrote:
I'm programming a small sample portal based on the pluto driver (Pluto 1.1,
JDK1.5) and wanted to add a content repository based on Jackrabbit. Because
the portal itself is completed, i started with a small sample application
(stand allone) using jackrabbit, which works perfectly.
Then i added the code of the sample application along with some test outputs
into the doView method of a testportlet in the portal... and unfortunately
it doesn't work. a repository is created, also the repository.xml and so on
within the "bin" directory of tomcat, but i do get an exception (and as i
said, the exactly same code works within a stand allone application).
-------- CODE (without test outputs) -----
Repository repository = new TransientRepository();
Session session = repository.login(
new SimpleCredentials("username",
"password".toCharArray()));
try {
//SOME TESTING HERE
...
} finally {
session.logout();
}
--------------------------------------------------------
The Exception i get is:
avax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.state.db.DerbyPersistenceManager:
org.apache.derby.jdbc.EmbeddedDriver: org.apache.derby.jdbc.EmbeddedDriver
and is thrown by the line Session session=...
--------------------------------------------------------
As i sayd, the code works perfectly stand allone... has anyone an idea?
thanks in advance for any advice!
--
View this message in context:
http://www.nabble.com/Problem-with-Jackrabbit-within-Pluto-tf2919583.html#a8159512
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
--
-----------------------------------------< [EMAIL PROTECTED] >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---