jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Edelson <justinedel...@gmail.com>
Subject Re: Jackrabbit model 2 implementation with Tomcat/5.5.28
Date Tue, 06 Apr 2010 03:43:00 GMT
Apologies; I didn't notice the exception message changed.

My guess is that you didn't really delete the jar file. If this isn't the
case, I'd suggest inspecting the classloaders with a debugger.

Justin

On Apr 5, 2010, at 10:16 PM, Osmar Carlos Miraval Flores <cmiraval@gmail.com>
wrote:

*I deleted jcr-1.0.jar of the WEB-INF/lib and get the next Exception:
*

21:10:34,235 ERROR [/consola]:3998 - El Servlet /consola lanzó excepción de
load()
javax.servlet.ServletException:
org.apache.jackrabbit.core.jndi.BindableRepository cannot be cast to
javax.jcr.Repository
    at
es.git.openkm.servlet.RepositoryStartupServlet.init(RepositoryStartupServlet.java:68)
    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
    at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
    at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)


I dont know that happen, anywhere can help me

 2010/4/4 Justin Edelson <justinedelson@gmail.com>

> Removing jcr-1.0.jar from WEB-INF/lib is correct.
>
> You get this:
> > javax.servlet.
> > ServletException: org.apache.jackrabbit.core.jndi.BindableRepository
> cannot be cast to org.apache.jackrabbit.core.RepositoryImpl
>
> Because BindableRepository can't be cast to RepositoryImpl (see
> http://jackrabbit.apache.org/api/1.3/org/apache/jackrabbit/core/jndi/BindableRepository.html).
> But the code you pasted doesn't show a cast to RepositoryImpl. Where is that
> happening and why?
>
> Justin
>
>
>
> On Sun, Apr 4, 2010 at 2:36 PM, Osmar Carlos Miraval Flores <
> cmiraval@gmail.com> wrote:
>
>> Hi,
>>
>> I am to setup a content repository model 2 in Tomcat/5.5.28 .
>> I did the configuration like this.
>>
>> *WEB-INF/web.xml
>> ----------------------------*
>>
>> <resource-env-ref>
>>
>> <description>jcrDocManager</description>
>>     <resource-env-ref-name>jcr/docManager</resource-env-ref-name>
>>     <resource-env-ref-type>javax.jcr.Repository</resource-env-ref-type>
>> </resource-env-ref>
>>
>> *
>> META-INF/context.xml
>> ----------------------------------*
>>
>> <ResourceLink name="jcr/docManager" global="jcr/docManager"
>> type="javax.jcr.Repository"/>
>>
>> *
>> tomcat/conf/server.xml
>> -------------------------------------*
>>
>> <Resource name="jcr/docManager" auth="Container"
>> type="javax.jcr.Repository"
>>     factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
>>     configFilePath="E:\data\dm\conf\dm-repository.xml"
>>     repHomeDir="E:\data\dm"/>
>>
>> *tomcat/common/lib folder I have
>> ------------------------------------------*
>>
>> commons-collections-3.1.jar
>> commons-el.jar
>> concurrent-1.3.4.jar
>> jackrabbit-api-1.2-r485222.jar
>> jackrabbit-core-1.2-r485222.jar
>> jackrabbit-index-filters-1.2-r485222.jar
>> jackrabbit-jcr-commons-1.2-r485222.jar
>> jackrabbit-text-extractors-1.3.3.jar
>> jasper-compiler-jdt.jar
>> jasper-compiler.jar
>> jasper-runtime.jar
>> jcr-1.0.jar
>> jsp-api.jar
>> log4j-1.2.8.jar
>> lucene-1.4.3.jar
>> naming-factory-dbcp.jar
>> naming-factory.jar
>> naming-resources.jar
>> postgresql-8.4-701.jdbc3.jar
>> servlet-api.jar
>> slf4j-log4j12-1.0.jar
>>
>> *WEB-INF/lib folder I have
>> -----------------------------*
>>
>> activation.jar                       commons-beanutils-1.7.0.jar
>> commons-dbutils-1.1.jar              commons-digester.jar
>> commons-fileupload-1.1.1.jar         commons-io-1.2.jar
>> commons-lang-2.2.jar                 commons-logging-1.0.4.jar
>> derby-10.1.3.1.jar                   displaytag-1.1.jar
>> geronimo-jta_1.0.1B_spec-1.0.1.jar   gwt-servlet.jar
>> itext-1.3.jar                        jbosssx-client.jar
>> jcr-1.0.jar                          jstl-1.1.2.jar
>> junit-3.8.1.jar                      log4j-1.2.8.jar
>> mail.jar                             nekohtml-0.9.4.jar
>> PDFBox-0.7.2.jar                     poi-2.5.1.jar
>> standard-1.0.6.jar                   struts.jar
>> tm-extractors-0.4.jar                xercesImpl-2.4.0.jar
>> *
>> In the Servlet i added the code like this to get the repository object*
>>
>> context = new InitialContext();
>>             Context environment = (Context)
>> context.lookup("java:comp/env");
>>             Repository repository =
>> (Repository)environment.lookup("jcr/docManager");
>>
>> *
>> I get the next Exception:*
>>
>> El Servlet /consola lanzó excepción de load()
>> javax.servlet.ServletException:
>> org.apache.jackrabbit.core.jndi.BindableRepository cannot be cast to
>> javax.jcr.Repository
>> *
>> and when delete the jcr-1.0.jar of the WEB-INF/lib get the next Exception:
>> *
>>
>> El Servlet /consola lanzó excepción de load()
>> javax.servlet.ServletException:
>> org.apache.jackrabbit.core.jndi.BindableRepository cannot be cast to
>> org.apache.jackrabbit.core.RepositoryImpl
>> *
>> What will be the problem???*
>>
>>
>> Atentamente,
>> ------------------------------
>> Carlos Miraval Flores
>>
>>
>


-- 
-------------------------------
Carlos Miraval Flores
  Cel: 997375974

Mime
View raw message