0

I have deployed Apache continuum on my tomcat in the same way I installed archiva (detailed description). The webapp is running but there is an issue I do not come over:

When I restart tomcat the configuration is gone. By searching the log files I could find that error in continuum.log:

2013-09-29 17:49:57,043 [main] WARN org.apache.commons.configuration.DefaultConfigurationBuilder  - Internal error
org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source /var/lib/tomcat6/conf/shared.xml

Any Idea how to fix that?

EDIT

Digging deeper in the log file I found a preceding error:

2013-09-29 18:01:58,246 [Thread-3] INFO  org.apache.maven.continuum.DefaultContinuum  - Error storing the Continuum configuration.
org.apache.continuum.configuration.ContinuumConfigurationException: /var/lib/tomcat6/conf/continuum.xml (Permission denied)

Here continuum is looking for the default configuration, but this one is located somewhere in webapps/continuum/…

Community
  • 1
  • 1
philipp
  • 15,947
  • 15
  • 61
  • 106

2 Answers2

0

Is appserver.base being set, as the other question suggests, to the correct location? It seems like that is pointint to /var/lib/tomcat6, but that the directory is not writeable by the user that is running the Tomcat instance.

Brett Porter
  • 5,827
  • 27
  • 25
  • the changing the permissions did the trick. Is there a way to tell continuum where to store the configuration? – philipp Oct 03 '13 at 07:16
  • The `appserver.base` configuration specified in the description you gave is the location it will use - but if not specified it'll default to the Tomcat home. More information here: http://continuum.apache.org/docs/1.4.1/installation/tomcat.html#Configure_the_appserver.base_Java_system_property – Brett Porter Oct 03 '13 at 11:09
0

That's an [info] message, not an error. The tomcat service would still function even if you ignore that. However, please check the file/directory permissions to correct that. If you are running tomcat with normal user privileges, they wouldn't have access to /var/lib/tomcat6/ directory.

ssrulz1
  • 1
  • 1