|
From: tinca <la....@gm...> - 2010-06-16 13:55:42
|
I am following the wiki on how to deploy artifactory webapp.
I set ARTIFACTORY_HOME by using tomcat6's catalina.sh by defining
CATALINA_OPTS=-Dartifactory.home=/usr/local/artifactory-2.2.3/
The home does exist and contains what was unzipped.
On restarting tomcat stderr.log shows:
Jun 16, 2010 3:25:51 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor artifactory.xml
Jun 16, 2010 3:25:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Determining artifactory.home...
Jun 16, 2010 3:25:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Looking for '-Dartifactory.home=<path>' vm parameter...
Jun 16, 2010 3:25:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Could not find vm parameter.
Jun 16, 2010 3:25:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Looking for ARTIFACTORY_HOME environment variable...
Jun 16, 2010 3:25:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Could not find environment variable.
Jun 16, 2010 3:25:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Defaulting to '/nonexistent/.artifactory'...
Jun 16, 2010 3:25:51 PM org.apache.catalina.core.ApplicationContext log
INFO: Using artifactory.home at '/nonexistent/.artifactory'.
Jun 16, 2010 3:25:51 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance of
class org.artifactory.webapp.servlet.ArtifactoryHomeConfigListen
er
java.lang.IllegalArgumentException: Could not initialize artifactory main
directory due to: Unable to create directory /nonexistent/.artifactory/etc
at
org.artifactory.common.ArtifactoryHome.create(ArtifactoryHome.java:184)
at
org.artifactory.common.ArtifactoryHome.<init>(ArtifactoryHome.java:82)
at
org.artifactory.webapp.servlet.ArtifactoryHomeConfigListener.contextInitialized(ArtifactoryHomeConfigListener.java:43)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
It seems Tomcat cannot determine the artifactory home. I am stuck here
having no idea what to do. Defining(and exporting) ARTIFACTORY_HOME in the
shell before running tomcat did not help either. I could not still find info
what could be behind tomcat not using CATALINA_OPTS (or catalina.sh) for
that matter.
This happens on FreeBSD 8.1.
Thanks in advance!
--
View this message in context: http://forums.jfrog.org/Cannot-run-with-tomcat6-ARTIFACTORY-HOME-is-not-set-tp5186568p5186568.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
|