I would think the root cause is not being able to write a repository directory. Have your tried to upload the contents of the war file as opposed to the war file? With .war files, it's possible the servlet container is returning null to a call on ServletContext.getRealPath( "/repositories" ) -- this is per spec.

Does the tomcat container have write privilege on the webapp directory? Such a condition would prevent the webapp from writing the initial repository and bootstrapping successfully.

Third, are there any errors before this, maybe missing org.apache.xerces.* packages?

--David

Jason Wan/ICILSZX wrote:

Hi everybody,
        I successfully install magnolia3.0 under jBoss4.0.4 in my PC (XP). All 
I did is to add the magnoliaAuthor.war and magnoliaPublic.war (unzipped), add 
following sentences to the jboss/server/all/conf/login-config.xml file:
<application-policy name = "magnolia"> <authentication> <login-module code = "info.magnolia.jaas.sp.jcr.JCRAuthorizationModule" flag = "required" /> </authentication> </application-policy>
After these two steps, I run the jBoss, everything is ok.
But when I did the same steps to install it to the remote server which is using 
UNIX OS and jboss4.0.4, it was not successful. The err-log in magnolia is as 
following:
ERROR  org.apache.jackrabbit.core.RepositoryImpl 23.08.2006 13:30:07 -- Failed 
to initialize workspace 'default'
javax.jcr.RepositoryException at 
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:531)
 at org.apache.jackrabbit.core.SearchManager.<init>(SearchManager.java:273)
.......
ERROR  org.apache.jackrabbit.core.RepositoryImpl 23.08.2006 13:30:08 -- Unable 
to start repository, forcing shutdown...
ERROR  info.magnolia.jackrabbit.ProviderImpl 23.08.2006 13:30:08 -- Unable to 
initialize repository: null
javax.jcr.RepositoryException at 
org.apache.jackrabbit.core.SearchManager.initializeQueryHandler(SearchManager.java:531)
ERROR  info.magnolia.cms.beans.config.ContentRepository 23.08.2006 13:30:08 -- System : 
Failed to load JCR "magnolia" null
info.magnolia.repository.RepositoryNotInitializedException
.........

I searched the wiki and user-list, but didn't find the solutions. Why the 
repositories cannot be initialized normally in remote server?  Anybody 
encountered this kind of problem? I am looking forwards to your suggestions.

Regards,
Jason



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to