jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald_K <ronald_ko...@gmx.at>
Subject Re: Problem with Jackrabbit within Pluto
Date Thu, 04 Jan 2007 14:33:05 GMT

Yeah i thought so... but it is in the lib-directory of the portlet
(derby-10.1.3.1.zip)... any idea what else could cause this??



Tobias Bocanegra wrote:
> 
> hi roland,
> you probably missing the derby.jar (embedded driver) in your classpath.
> regards, toby
> 
> On 1/4/07, Ronald_K <ronald_korze@gmx.at> 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.
>>
>>
> 
> 
> -- 
> -----------------------------------------< tobias.bocanegra@day.com >---
> 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 >---
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-with-Jackrabbit-within-Pluto-tf2919583.html#a8160152
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message