You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Andy Savin <A....@bath.ac.uk> on 2005/08/11 12:03:36 UTC

Cannot create a workspace configuration file

Hi,

When running lenya I get an error stating that it cannot find the
following file:

/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml

>From what I can gather from the source and the trance info[1] it trys and
fails to create this file itself.  I don't think it is a permissions issue
as it succesfully creates the 'workspaces' and 'default' directories.

For info:
I have the latest trunk of lenya 1.4 and the latest 2.1.x branch of cocoon
both from subversion.  Tomcat 5.5 running on solaris.  Cocoon has been
built using the local.build.properties and local.blocks.properties files
from the lenya src.  (lenya 1.2 has never been installed system)

Any ideas?

Regards,

Andy

[1]
full exception chain stacktrace

org.apache.avalon.framework.configuration.ConfigurationException: Cannot
access configuration information at
jndi:/zippy.bath.ac.uk/lenya/WEB-INF/cocoon.xconf:1450:104
	at
org.apache.cocoon.jcr.JackrabbitRepository.configure(JackrabbitRepository.java:93)
	at
org.apache.lenya.cms.jcr.LenyaRepository.configure(LenyaRepository.java:67)
	at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
	at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:269)
	at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
	at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:522)
	at
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:561)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:284)
	at
org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
	at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1425)
	at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:500)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
	at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
	at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
	at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
	at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
	at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
	at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
	at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
	at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
	at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
	at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
	at
org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
	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:271)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: org.apache.jackrabbit.core.config.ConfigurationException:
Cannot create a workspace configuration file:
java.io.FileNotFoundException:
file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
(No such file or directory): java.io.FileNotFoundException:
file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
(No such file or directory)
	at
org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:318)
	at
org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:218)
	at
org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:97)
	at
org.apache.cocoon.jcr.JackrabbitRepository.configure(JackrabbitRepository.java:82)
	... 37 more
Caused by: javax.xml.transform.TransformerException:
java.io.FileNotFoundException:
file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
(No such file or directory)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:245)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:278)
	at
org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:312)
	... 40 more
Caused by: java.io.FileNotFoundException:
file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
(No such file or directory)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:235)
	... 42 more




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Cannot create a workspace configuration file

Posted by Andreas Hartmann <an...@apache.org>.
Andy Savin wrote:
> Hi,
> 
> On Fri, 12 Aug 2005, Andreas Hartmann wrote:
> 
>>When did you get the error?
>>
> 
> 
> As soon as I start tomcat and navigate to the lenya context path.
> 
> 
>>Have you been able to import a publication using the jcr.import usecase?
> 
> 
> Not sure what you mean by this.  I'm assuming that lenya 1.4 comes with a
> default publication (like version 1.2) which I haven't got working yet.

http://wiki.apache.org/lenya/JcrConfiguration

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Cannot create a workspace configuration file

Posted by Andy Savin <A....@bath.ac.uk>.

> On Fri, 12 Aug 2005, Andreas Hartmann wrote:
>
> > Sorry, I guess I misunderstood you - do you mean you didn't try the
> > JCR integration? Then there's probably a bug in the codebase, maybe
> > I accidentially committed the JCR config as a default.
>
> Yeah, I wasn't trying the jcr intergration just trying to get 1.4 working
> as it is.


Hi,

Just tried commenting out the relevant config lines in cocoon.xconf and it
has worked.

Regards,

Andy


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Cannot create a workspace configuration file

Posted by Andy Savin <A....@bath.ac.uk>.
On Fri, 12 Aug 2005, Andreas Hartmann wrote:

> Sorry, I guess I misunderstood you - do you mean you didn't try the
> JCR integration? Then there's probably a bug in the codebase, maybe
> I accidentially committed the JCR config as a default.


Hi,

Yeah, I wasn't trying the jcr intergration just trying to get 1.4 working
as it is.

Regards,

Andy


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Cannot create a workspace configuration file

Posted by Andreas Hartmann <an...@apache.org>.
Andy Savin wrote:
> Hi,
> 
> On Fri, 12 Aug 2005, Andreas Hartmann wrote:
> 
>>When did you get the error?
>>
> 
> 
> As soon as I start tomcat and navigate to the lenya context path.

Sorry, I guess I misunderstood you - do you mean you didn't try the
JCR integration? Then there's probably a bug in the codebase, maybe
I accidentially committed the JCR config as a default.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Cannot create a workspace configuration file

Posted by Felix Röthenbacher <fe...@wyona.com>.
Specification: the Exception is only thrown after a clean build.

The two-more-seconds-workaround does not really help ... :-/

I filed a bug for this:

http://issues.apache.org/bugzilla/show_bug.cgi?id=36334

Please find a patch attached to the bug.

- Felix



Felix Röthenbacher wrote:
> 
> The exception seems only to be thrown if you access the system
> a short period of time after servlet container start-up.
> 
> Workaround: wait two more seconds :-)
> 
> - Felix
> 
> Renaud Richardet wrote:
> 
>> Andy,
>>
>> Could you solve your problem? I'm experiencing the same with Tomcat 
>> (Jetty is fine).
>>
>> Thanks,
>> Renaud
>>
>> Message: 
>> file:/opt/jakarta-tomcat-5.0.30/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml 
>> (No such file or directory)
>>
>> Description: 
>> org.apache.avalon.framework.configuration.ConfigurationException: 
>> Cannot access configuration information at 
>> jndi:/localhost/lenya/WEB-INF/cocoon.xconf:1597:104
>>
>>
> 
> 


-- 
Felix Röthenbacher                  felix.roethenbacher@wyona.com
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Cannot create a workspace configuration file

Posted by Felix Röthenbacher <fe...@wyona.com>.
The exception seems only to be thrown if you access the system
a short period of time after servlet container start-up.

Workaround: wait two more seconds :-)

- Felix

Renaud Richardet wrote:
> Andy,
> 
> Could you solve your problem? I'm experiencing the same with Tomcat 
> (Jetty is fine).
> 
> Thanks,
> Renaud
> 
> Message: 
> file:/opt/jakarta-tomcat-5.0.30/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml 
> (No such file or directory)
> 
> Description: 
> org.apache.avalon.framework.configuration.ConfigurationException: Cannot 
> access configuration information at 
> jndi:/localhost/lenya/WEB-INF/cocoon.xconf:1597:104
> 
> 


-- 
Felix Röthenbacher                  felix.roethenbacher@wyona.com
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Cannot create a workspace configuration file

Posted by Andy Savin <A....@bath.ac.uk>.
On Mon, 22 Aug 2005, Renaud Richardet wrote:

> Could you solve your problem? I'm experiencing the same with Tomcat
> (Jetty is fine).

Hi,

Yes, the way I got round this problem was by commenting out the following
section of the cocoon.xconf file (in the WEB-INF dir)

<component class="org.apache.lenya.cms.jcr.LenyaRepository" logger="jcr"
role="javax.jcr.Repository">
    <credentials login="anonymous" password=""/>
    <jaas src="context://jcr-repository/jaas.config"/>
    <home src="context://jcr-repository/repository"/>
    <configuration src="context://jcr-repository/repository.xml"/>

    <namespace prefix="dc" uri="http://purl.org/dc/elements/1.1/"/>
    <namespace prefix="dcterms" uri="http://purl.org/dc/terms/"/>
    <namespace prefix="lenya"
uri="http://apache.org/cocoon/lenya/page-envelope/
1.0"/>
  </component>


regards,

Andy











---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Cannot create a workspace configuration file

Posted by Renaud Richardet <re...@wyona.com>.
Andy,

Could you solve your problem? I'm experiencing the same with Tomcat 
(Jetty is fine).

Thanks,
Renaud

Message: 
file:/opt/jakarta-tomcat-5.0.30/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml 
(No such file or directory)

Description: 
org.apache.avalon.framework.configuration.ConfigurationException: Cannot 
access configuration information at 
jndi:/localhost/lenya/WEB-INF/cocoon.xconf:1597:104


-- 
Renaud Richardet
COO America
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
office +1 857 776-3195                     mobile +1 617 230 9112
renaud.richardet@wyona.com                   http://www.wyona.com



Andy Savin wrote:

>Hi,
>
>On Fri, 12 Aug 2005, Andreas Hartmann wrote:
>  
>
>>When did you get the error?
>>
>>    
>>
>
>As soon as I start tomcat and navigate to the lenya context path.
>
>  
>
>>Have you been able to import a publication using the jcr.import usecase?
>>    
>>
>
>Not sure what you mean by this.  I'm assuming that lenya 1.4 comes with a
>default publication (like version 1.2) which I haven't got working yet.
>
>regards,
>
>Andy
>
>
>  
>
>>In my local installation, the workspace.xml file was created.
>>
>>-- Andreas
>>
>>
>>    
>>
>>>>From what I can gather from the source and the trance info[1] it trys and
>>>fails to create this file itself.  I don't think it is a permissions issue
>>>as it succesfully creates the 'workspaces' and 'default' directories.
>>>
>>>For info:
>>>I have the latest trunk of lenya 1.4 and the latest 2.1.x branch of cocoon
>>>both from subversion.  Tomcat 5.5 running on solaris.  Cocoon has been
>>>built using the local.build.properties and local.blocks.properties files
>>>from the lenya src.  (lenya 1.2 has never been installed system)
>>>
>>>Any ideas?
>>>
>>>Regards,
>>>
>>>Andy
>>>
>>>[1]
>>>full exception chain stacktrace
>>>
>>>org.apache.avalon.framework.configuration.ConfigurationException: Cannot
>>>access configuration information at
>>>jndi:/zippy.bath.ac.uk/lenya/WEB-INF/cocoon.xconf:1450:104
>>>	at
>>>org.apache.cocoon.jcr.JackrabbitRepository.configure(JackrabbitRepository.java:93)
>>>	at
>>>org.apache.lenya.cms.jcr.LenyaRepository.configure(LenyaRepository.java:67)
>>>	at
>>>org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
>>>	at
>>>org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:269)
>>>	at
>>>org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
>>>	at
>>>org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:522)
>>>	at
>>>org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:561)
>>>	at
>>>org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
>>>	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:284)
>>>	at
>>>org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
>>>	at
>>>org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1425)
>>>	at
>>>org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:500)
>>>	at
>>>org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
>>>	at
>>>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
>>>	at
>>>org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
>>>	at
>>>org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
>>>	at
>>>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>>>	at
>>>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>>>	at
>>>org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>>>	at
>>>org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
>>>	at
>>>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
>>>	at
>>>org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
>>>	at
>>>org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
>>>	at
>>>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>>>	at
>>>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>	at
>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
>>>	at
>>>org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>>>	at
>>>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>>>	at
>>>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>>>	at
>>>org.apache.catalina.core.StandardService.start(StandardService.java:450)
>>>	at
>>>org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
>>>	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
>>>	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:271)
>>>	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
>>>Caused by: org.apache.jackrabbit.core.config.ConfigurationException:
>>>Cannot create a workspace configuration file:
>>>java.io.FileNotFoundException:
>>>file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
>>>(No such file or directory): java.io.FileNotFoundException:
>>>file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
>>>(No such file or directory)
>>>	at
>>>org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:318)
>>>	at
>>>org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:218)
>>>	at
>>>org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:97)
>>>	at
>>>org.apache.cocoon.jcr.JackrabbitRepository.configure(JackrabbitRepository.java:82)
>>>	... 37 more
>>>Caused by: javax.xml.transform.TransformerException:
>>>java.io.FileNotFoundException:
>>>file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
>>>(No such file or directory)
>>>	at
>>>org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:245)
>>>	at
>>>org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:278)
>>>	at
>>>org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:312)
>>>	... 40 more
>>>Caused by: java.io.FileNotFoundException:
>>>file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
>>>(No such file or directory)
>>>	at java.io.FileOutputStream.open(Native Method)
>>>	at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
>>>	at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
>>>	at
>>>org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:235)
>>>	... 42 more
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>For additional commands, e-mail: user-help@lenya.apache.org
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Cannot create a workspace configuration file

Posted by Andy Savin <A....@bath.ac.uk>.
Hi,

On Fri, 12 Aug 2005, Andreas Hartmann wrote:
>
> When did you get the error?
>

As soon as I start tomcat and navigate to the lenya context path.

> Have you been able to import a publication using the jcr.import usecase?

Not sure what you mean by this.  I'm assuming that lenya 1.4 comes with a
default publication (like version 1.2) which I haven't got working yet.

regards,

Andy


>
> In my local installation, the workspace.xml file was created.
>
> -- Andreas
>
>
> >
> > From what I can gather from the source and the trance info[1] it trys and
> > fails to create this file itself.  I don't think it is a permissions issue
> > as it succesfully creates the 'workspaces' and 'default' directories.
> >
> > For info:
> > I have the latest trunk of lenya 1.4 and the latest 2.1.x branch of cocoon
> > both from subversion.  Tomcat 5.5 running on solaris.  Cocoon has been
> > built using the local.build.properties and local.blocks.properties files
> > from the lenya src.  (lenya 1.2 has never been installed system)
> >
> > Any ideas?
> >
> > Regards,
> >
> > Andy
> >
> > [1]
> > full exception chain stacktrace
> >
> > org.apache.avalon.framework.configuration.ConfigurationException: Cannot
> > access configuration information at
> > jndi:/zippy.bath.ac.uk/lenya/WEB-INF/cocoon.xconf:1450:104
> > 	at
> > org.apache.cocoon.jcr.JackrabbitRepository.configure(JackrabbitRepository.java:93)
> > 	at
> > org.apache.lenya.cms.jcr.LenyaRepository.configure(LenyaRepository.java:67)
> > 	at
> > org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
> > 	at
> > org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:269)
> > 	at
> > org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
> > 	at
> > org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:522)
> > 	at
> > org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:561)
> > 	at
> > org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
> > 	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:284)
> > 	at
> > org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
> > 	at
> > org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1425)
> > 	at
> > org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:500)
> > 	at
> > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
> > 	at
> > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
> > 	at
> > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
> > 	at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
> > 	at
> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> > 	at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> > 	at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> > 	at
> > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
> > 	at
> > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
> > 	at
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
> > 	at
> > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
> > 	at
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> > 	at
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > 	at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
> > 	at
> > org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> > 	at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
> > 	at
> > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> > 	at
> > org.apache.catalina.core.StandardService.start(StandardService.java:450)
> > 	at
> > org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
> > 	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
> > 	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:271)
> > 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
> > Caused by: org.apache.jackrabbit.core.config.ConfigurationException:
> > Cannot create a workspace configuration file:
> > java.io.FileNotFoundException:
> > file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
> > (No such file or directory): java.io.FileNotFoundException:
> > file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
> > (No such file or directory)
> > 	at
> > org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:318)
> > 	at
> > org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:218)
> > 	at
> > org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:97)
> > 	at
> > org.apache.cocoon.jcr.JackrabbitRepository.configure(JackrabbitRepository.java:82)
> > 	... 37 more
> > Caused by: javax.xml.transform.TransformerException:
> > java.io.FileNotFoundException:
> > file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
> > (No such file or directory)
> > 	at
> > org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:245)
> > 	at
> > org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:278)
> > 	at
> > org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:312)
> > 	... 40 more
> > Caused by: java.io.FileNotFoundException:
> > file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
> > (No such file or directory)
> > 	at java.io.FileOutputStream.open(Native Method)
> > 	at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
> > 	at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
> > 	at
> > org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:235)
> > 	... 42 more
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Cannot create a workspace configuration file

Posted by Andreas Hartmann <an...@apache.org>.
Andy Savin wrote:
> Hi,
> 
> When running lenya I get an error stating that it cannot find the
> following file:
> 
> /webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml

When did you get the error?
Have you been able to import a publication using the jcr.import usecase?

In my local installation, the workspace.xml file was created.

-- Andreas


> 
> From what I can gather from the source and the trance info[1] it trys and
> fails to create this file itself.  I don't think it is a permissions issue
> as it succesfully creates the 'workspaces' and 'default' directories.
> 
> For info:
> I have the latest trunk of lenya 1.4 and the latest 2.1.x branch of cocoon
> both from subversion.  Tomcat 5.5 running on solaris.  Cocoon has been
> built using the local.build.properties and local.blocks.properties files
> from the lenya src.  (lenya 1.2 has never been installed system)
> 
> Any ideas?
> 
> Regards,
> 
> Andy
> 
> [1]
> full exception chain stacktrace
> 
> org.apache.avalon.framework.configuration.ConfigurationException: Cannot
> access configuration information at
> jndi:/zippy.bath.ac.uk/lenya/WEB-INF/cocoon.xconf:1450:104
> 	at
> org.apache.cocoon.jcr.JackrabbitRepository.configure(JackrabbitRepository.java:93)
> 	at
> org.apache.lenya.cms.jcr.LenyaRepository.configure(LenyaRepository.java:67)
> 	at
> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:240)
> 	at
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:269)
> 	at
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
> 	at
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:522)
> 	at
> org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:561)
> 	at
> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
> 	at org.apache.cocoon.Cocoon.initialize(Cocoon.java:284)
> 	at
> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:283)
> 	at
> org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1425)
> 	at
> org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:500)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
> 	at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
> 	at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
> 	at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 	at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894)
> 	at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857)
> 	at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
> 	at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102)
> 	at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> 	at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
> 	at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> 	at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
> 	at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> 	at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
> 	at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
> 	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:271)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
> Caused by: org.apache.jackrabbit.core.config.ConfigurationException:
> Cannot create a workspace configuration file:
> java.io.FileNotFoundException:
> file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
> (No such file or directory): java.io.FileNotFoundException:
> file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
> (No such file or directory)
> 	at
> org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:318)
> 	at
> org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:218)
> 	at
> org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:97)
> 	at
> org.apache.cocoon.jcr.JackrabbitRepository.configure(JackrabbitRepository.java:82)
> 	... 37 more
> Caused by: javax.xml.transform.TransformerException:
> java.io.FileNotFoundException:
> file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
> (No such file or directory)
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:245)
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:278)
> 	at
> org.apache.jackrabbit.core.config.RepositoryConfig.createWorkspaceConfig(RepositoryConfig.java:312)
> 	... 40 more
> Caused by: java.io.FileNotFoundException:
> file:/opt/www/tomcat-instances/lenyadev/webapps/lenya/jcr-repository/repository/workspaces/default/workspace.xml
> (No such file or directory)
> 	at java.io.FileOutputStream.open(Native Method)
> 	at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
> 	at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
> 	at
> org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:235)
> 	... 42 more


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org