jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudhan <s.kan...@gmail.com>
Subject Re: Custom node types with RMI
Date Mon, 14 May 2007 21:06:59 GMT

Hi,

I was using jackrabbit 1.2.1 version with JBoss 4.0.4 and everything was
fine after configuring RMI port and uri, but after downloading jackrabbit
1.3 version when i am trying to deploy the jackrabbit-webapp-1.3.war in
JBoss, i am getting following errors.

14:01:12,236 INFO  [STDOUT] 14.05.2007 14:01:12 *INFO * root: Logging
initialized. (LoggingServlet.java, line 87)
14:01:12,252 INFO  [STDOUT] 14.05.2007 14:01:12 *INFO *
RepositoryStartupServlet: RepositoryStartupServlet initializing... (
tartupServlet.java, line 233)
14:01:12,299 INFO  [STDOUT] 14.05.2007 14:01:12 *ERROR*
RepositoryStartupServlet: Repository startup configuration is not va
ootstrap config is specified. (RepositoryStartupServlet.java, line 345)
14:01:12,314 INFO  [STDOUT] 14.05.2007 14:01:12 *ERROR*
RepositoryStartupServlet: Either create the jackrabbit/bootstrap.pro
e or (RepositoryStartupServlet.java, line 346)
14:01:12,314 INFO  [STDOUT] 14.05.2007 14:01:12 *ERROR*
RepositoryStartupServlet: use the '/config/index.jsp' for easy confi
RepositoryStartupServlet.java, line 347)
14:01:12,330 INFO  [STDOUT] 14.05.2007 14:01:12 *ERROR*
RepositoryStartupServlet: RepositoryStartupServlet initializing fail
ervlet.ServletException: Repository startup configuration is not valid.
(RepositoryStartupServlet.java, line 243)
javax.servlet.ServletException: Repository startup configuration is not
valid.
        at
org.apache.jackrabbit.j2ee.RepositoryStartupServlet.configure(RepositoryStartupServlet.java:348)
        at
org.apache.jackrabbit.j2ee.RepositoryStartupServlet.startup(RepositoryStartupServlet.java:235)
        at
org.apache.jackrabbit.j2ee.RepositoryStartupServlet.init(RepositoryStartupServlet.java:209)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)


Now i tried modifying the bootstrap.properties file by changing the rmi
port, still getting same error.

Kindly let me know if i am missing here.

thanks,

Sudhan




Jukka Zitting wrote:
> 
> Hi,
> 
> On 5/11/07, Sudhan <s.kanade@gmail.com> wrote:
>> I am really stucked at a point where i need to make custom node type so
>> as
>> to set some custom features. Now my problem is that i am using Jackrabbit
>> repository through RMI, but i cannot get resources to the remote
>> repository
>> from my application. Now is there a work around, either by modifying the
>> standard nodetypes given in jackrabbit source code or can I add my own
>> custom node type definition somehow at startup of the repository on the
>> server itself.
> 
> Starting with the 1.3 release, the jackrabbit-jcr-rmi component
> supports the jackrabbit-api extension interfaces when accessing a
> Jackrabbit repository. So you can use the following code in your
> client application:
> 
>     Session session = ...;
>     JackrabbitNodeTypeManager manager = (JackrabbitNodeTypeManager)
>         session.getWorkspace().getNodeTypeManager();
>     if (!manager.hasNodeType("my:customType")) {
>         manager.registerNodeTypes(...);
>     }
> 
> See
> http://jackrabbit.apache.org/api/1.3/org/apache/jackrabbit/api/JackrabbitNodeTypeManager.html
> 
> BR;
> 
> Jukka Zitting
> 
> 

-- 
View this message in context: http://www.nabble.com/Custom-node-types-with-RMI-tf3728625.html#a10612252
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message