jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From behrangsa <behran...@gmail.com>
Subject RE: Tomcat crashed with mode 2 configuration
Date Sun, 15 Oct 2006 21:22:13 GMT

Hi Qun,

Sorry I don't know what is causing the crash. For now we have decided not to
use Jackrabbit in our project until some time later. I suppose a Jackrabbit
expert should be able to investiage the root of this problem :-? ;-)

Cheers,
Behi


Qun Gu wrote:
> 
> Hi Behi,
> 
> Thanks for your reply. I have checked the MD5 checksums of all the
> downloaded JAR files and they are all fine. Thanks for sharing the trick.
> :-)
> 
> I have made a little progress by changing the resource configuration in
> Tomcat 4.X way like this:
> 
> <Resource name="jcr/globalRepository"
>           auth="Container"
>           type="javax.jcr.Repository"/>
> 
> <ResourceParams name="jcr/globalRepository">
>   <parameter>
>     <name>factory</name>
>    
> <value>org.apache.jackrabbit.core.jndi.BindableRepositoryFactory</value>
>   </parameter>
>   <parameter>
>     <name>configFilePath</name>
>    
> <value>c:/dev/apps/tomcat/tomcat-5.5.17/shared/repository/repository.xml</value>
>   </parameter>
>   <parameter>
>     <name>repHomeDir</name>
>     <value>c:/dev/apps/tomcat/tomcat-5.5.17/shared/repository</value>
>   </parameter>
> </ResourceParams> 
> 
> Tomcat doesn't crash now but I am getting:
> 
> Oct 10, 2006 4:44:40 PM
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
> SEVERE: Exception processing Global JNDI Resources
> javax.naming.NamingException: Cannot create resource instance
>         at
> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:142)
>         at
> javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:792)
>         at org.apache.naming.NamingContext.lookup(NamingContext.java:139)
>         at
> org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:112)
>         at
> org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:70)
>         at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:136)
>         at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:143)
>         at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108)
>         at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:702)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> 
> jackrabbit-core-1.0.1.jar file and all the dependencies were already
> placed under [Tomcat folder]/common/lib. Any clue on that?
> 
> Thanks in advance.
> 
> Best Regards,
> Qun
> 
> 
> -----Original Message-----
> From: behrangsa [mailto:behrangsa@gmail.com]
> Sent: Wednesday, October 04, 2006 7:37 PM
> To: users@jackrabbit.apache.org
> Subject: Re: Tomcat crashed with mode 2 configuration
> 
> 
> 
> Hi,
> 
> I have experienced such behaviour previously with other libraries, etc.
> For
> me, it turned out that one of my JAR files had been corrupted during
> download or build time. I suggest you check the MD5 checksum of your JAR
> files with what is provided on the Jackrabbit website (I preassume the
> checksums are available on Jackrabbit's homepage...)
> 
> Regards,
> Behi
> 
> 
> Qun Gu wrote:
>> 
>> Hi,
>> 
>> Tomcat 5.5.17 crashed right away after adding the following snippet to
>> conf/server.xml
>> 
>> <GlobalNamingResources>
>> ...	
>> 	<Resource name="jcr/globalRepository"
>>         		auth="Container"
>>        		 type="javax.jcr.Repository"
>>        		
>> factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"
>>         	
>> configFilePath="c:/dev/apps/tomcat/tomcat-5.5.17/shared/repository/repository.xml"
>>         		repHomeDir="c:/dev/apps/tomcat/tomcat-5.5.17/shared/repository"
>> />
>> ...
>> </GlobalNamingResources>
>> 
>> I looked through the mailing list and couldn't find a workaround.
>> Besides,
>> I couldn't even see the error messages on the console because it closed
>> so
>> quick(nothing logged in catalina.2006-10-04.log either). Is there a way
>> that I can see the error message?
>> 
>> Thanks.
>> 
>> Qun
>> 
>> 
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Tomcat-crashed-with-mode-2-configuration-tf2383464.html#a6650323
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Tomcat-crashed-with-mode-2-configuration-tf2383464.html#a6825107
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message