You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Ronald_K <ro...@gmx.at> on 2007/01/04 14:54:52 UTC
Problem with Jackrabbit within Pluto
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.
Re: Problem with Jackrabbit within Pluto
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 1/5/07, Ronald_K <ro...@gmx.at> wrote:
> That's the one I've downloaded (and where it was contained as a zip):
> -----
> Jackrabbit deployable installation with WebDAV support for JCR:
>
> * Jackrabbit server WAR:
> o jackrabbit-server-1.1.1.war [PGP] [MD5] [SHA1]
> -----
Are you sure? The war shouldn't even contain any Derby stuff, as the
default for the WebDAV server is to use direct file-system
persistence. See below:
$ jar tf jackrabbit-server-1.1.1.war
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/repository/
WEB-INF/lib/
WEB-INF/tld/
WEB-INF/classes/
WEB-INF/classes/org/
WEB-INF/classes/org/apache/
WEB-INF/classes/org/apache/jackrabbit/
WEB-INF/classes/org/apache/jackrabbit/j2ee/
WEB-INF/classes/META-INF/
WEB-INF/web.xml
WEB-INF/repository/repository.xml
WEB-INF/repository/log4j.properties
WEB-INF/log4j.xml
WEB-INF/log4j.dtd
WEB-INF/config.xml
WEB-INF/lib/jackrabbit-jcr-server-1.1.1.jar
WEB-INF/lib/jackrabbit-jcr-webdav-1.1.1.jar
WEB-INF/lib/jackrabbit-jcr-client-1.1.1.jar
WEB-INF/lib/jackrabbit-jcr-commons-1.1.1.jar
WEB-INF/lib/jcr-1.0.jar
WEB-INF/lib/jackrabbit-core-1.1.1.jar
WEB-INF/lib/jackrabbit-jcr-rmi-1.1.1.jar
WEB-INF/lib/log4j-1.2.8.jar
WEB-INF/lib/concurrent-1.3.4.jar
WEB-INF/lib/commons-collections-3.1.jar
WEB-INF/lib/geronimo-spec-jta-1.0-M1.jar
WEB-INF/lib/lucene-1.4.3.jar
WEB-INF/lib/xercesImpl-2.6.2.jar
WEB-INF/lib/xmlParserAPIs-2.0.2.jar
WEB-INF/lib/slf4j-log4j12-1.0.jar
WEB-INF/classes/org/apache/jackrabbit/j2ee/JCRWebdavServerServlet.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/ClientFactoryDelegater.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/LoggingServlet$1.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/RepositoryStartupServlet.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/LoggingServlet$ContextResolver.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/RMIRemoteFactoryDelegater.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/RepositoryAccessServlet.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/RepositoryStartupServlet$1.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/RemoteFactoryDelegater.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/SimpleWebdavServlet.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/LoggingServlet.class
WEB-INF/classes/org/apache/jackrabbit/j2ee/RMIClientFactoryDelegater.class
WEB-INF/classes/META-INF/README.txt
WEB-INF/classes/META-INF/LICENSE.txt
index.jsp
Please verify the checksums of the war archive you downloaded.
BR,
Jukka Zitting
Re: Problem with Jackrabbit within Pluto
Posted by Ronald_K <ro...@gmx.at>.
That's the one I've downloaded (and where it was contained as a zip):
-----
Jackrabbit deployable installation with WebDAV support for JCR:
* Jackrabbit server WAR:
o jackrabbit-server-1.1.1.war [PGP] [MD5] [SHA1]
-----
Jukka Zitting wrote:
>
> Hi,
>
> On 1/4/07, Ronald_K <ro...@gmx.at> wrote:
>> WOHOOO! yeah, that was it... well i downloaded the webdav-server and
>> extractet all libs out of the WAR file.. and there it was contained as
>> zip.
>
> You are not taking about the Jackrabbit WebDAV server, are you?
>
> BR,
>
> Jukka Zitting
>
>
--
View this message in context: http://www.nabble.com/Problem-with-Jackrabbit-within-Pluto-tf2919583.html#a8174833
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
RE: DB 2 error
Posted by Abhinav Mishra <am...@mdes.ms.gov>.
Hi,
I am having a strange problem. I have created four custom type node
inrepostory. When I start the jack rabbit server, repository starts
successfully and I can see all the nodes. But after few time, I start
getting the following error:
org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager - failed to
check existence of node state: 0c182908-8346-4836-859c-b786142f7885
INFO | jvm 1 | 2007/01/05 09:50:08 | com.ibm.db2.jcc.b.SqlException:
Invalid operation: statement closed
INFO | jvm 1 | 2007/01/05 09:50:08 | at
com.ibm.db2.jcc.b.zc.B(zc.java:2402)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
com.ibm.db2.jcc.b.ad.d(ad.java:3008)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
com.ibm.db2.jcc.b.ad.b(ad.java:868)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
com.ibm.db2.jcc.b.ad.setString(ad.java:861)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager.exists(Simple
DbPersistenceManager.java:826)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
org.apache.jackrabbit.core.state.SharedItemStateManager.hasNonVirtualItemSta
te(SharedItemStateManager.java:811)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
org.apache.jackrabbit.core.state.SharedItemStateManager.hasItemState(SharedI
temStateManager.java:244)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
org.apache.jackrabbit.core.state.LocalItemStateManager.hasItemState(LocalIte
mStateManager.java:171)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
org.apache.jackrabbit.core.state.XAItemStateManager.hasItemState(XAItemState
Manager.java:261)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
org.apache.jackrabbit.core.state.SessionItemStateManager.getItemState(Sessio
nItemStateManager.java:126)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
org.apache.jackrabbit.core.ItemManager.createItemInstance(ItemManager.java:4
62)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:320)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2372)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
org.apache.jackrabbit.rmi.server.ServerNode.getNode(ServerNode.java:226)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
sun.rmi.transport.Transport$1.run(Unknown Source)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
sun.rmi.transport.Transport.serviceCall(Unknown Source)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
INFO | jvm 1 | 2007/01/05 09:50:08 | at
java.lang.Thread.run(Unknown Source)
I am using version 1.0.1
Regards
Abhinav
DB 2 error
Posted by Abhinav Mishra <am...@mdes.ms.gov>.
Hi,
I am having a strange problem. I have created four custom type node
inrepostory. When I start the jack rabbit server, repository starts
successfully and I can see all the nodes. But after few time, I start
getting the following error:
Re: Problem with Jackrabbit within Pluto
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On 1/4/07, Ronald_K <ro...@gmx.at> wrote:
> WOHOOO! yeah, that was it... well i downloaded the webdav-server and
> extractet all libs out of the WAR file.. and there it was contained as zip.
You are not taking about the Jackrabbit WebDAV server, are you?
BR,
Jukka Zitting
Re: Problem with Jackrabbit within Pluto
Posted by Ronald_K <ro...@gmx.at>.
WOHOOO! yeah, that was it... well i downloaded the webdav-server and
extractet all libs out of the WAR file.. and there it was contained as zip.
thanks a lot!!
Tobias Bocanegra wrote:
>
> why zip? should be .jar normally.
> for example this one:
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/derby/derby/10.1.3.1/derby-10.1.3.1.jar
>
> regards, toby
>
> On 1/4/07, Ronald_K <ro...@gmx.at> wrote:
>>
>> 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 <ro...@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.
>>
>>
>
>
> --
> -----------------------------------------< 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#a8160344
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Problem with Jackrabbit within Pluto
Posted by Tobias Bocanegra <to...@day.com>.
why zip? should be .jar normally.
for example this one:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/derby/derby/10.1.3.1/derby-10.1.3.1.jar
regards, toby
On 1/4/07, Ronald_K <ro...@gmx.at> wrote:
>
> 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 <ro...@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.
>
>
--
-----------------------------------------< 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 >---
Re: Problem with Jackrabbit within Pluto
Posted by Ronald_K <ro...@gmx.at>.
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 <ro...@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.
Re: Problem with Jackrabbit within Pluto
Posted by Tobias Bocanegra <to...@day.com>.
hi roland,
you probably missing the derby.jar (embedded driver) in your classpath.
regards, toby
On 1/4/07, Ronald_K <ro...@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 >---