Deploying the WAR File

Skip to end of metadata
Go to start of metadata
Table of Contents

"Drop the War": Zero Configuration

Artifactory can be installed under any Servlet container by simply dropping or installing the artifactory.war file into the containers web applications folder, for example, into Tomcat's webapps folder.
All you have to do is deploy the artifactory.war file into your Servlet container, either by hot-deploy or by following the container's standard web application deployment procedures.

The artifactory.war file is located under the webapps folder in the artifactory-x.y.x.zip distribution.

It is recommended not to include any version characters in the name of the war file, and leave it just as: artifactory.war, in order not to have version-specific information in the Artifactory base URL and in order to make future upgrades simpler.

The $ARTIFACTORY_HOME Folder

Even with zero configuration, it is important to know where the Artifactory home folder is, since this folder stores your configurations and important repository data.

When Artifactory runs for the first time, it will set up a default configuration and create all needed files and folders under a $ARTIFACTORY_HOME folder that, if unset, will default to ${user.home}/.artifactory.

If you wish to control the location of $ARTIFACTORY_HOME (which you probably do when installing Artifactory on a production server), you can do one of the following:

  • Startup the Servlet Container VM with -Dartifactory.home=$ARTIFACTORY_HOME, pointing to the location of your Artifactory home folder, or
  • Set an $ARTIFACTORY_HOME environment variable pointing to this location.

Artifactory will try to create the folder on startup if it does not already exist.

Make sure the folder is writable by the user running the Servlet Container.

Manual Deployment

You can set up Artifactory on any Servlet container by deploying the war and pointing Artifactory to a dedicated ARTIFACTORY_HOME created by extracting the Artifactory distribution zip. To do this:

  1. Extract the Artifactory distribution archive (artifactory-xxx.zip) to a dedicated folder. This folder will be you ARTIFACTORY_HOME (verify this by checking the presence of the $ARTIFACTORY_HOME/etc/artifactory.config.xml file).
  2. Start the Servlet Container and specify the location of ARTIFACTORY_HOME by either using a JVM argument or by using an environment variable as explained in the previous section.
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Apr 09, 2010

    Hi,

    You have a typo mistake in the title "The $ARTIFCTORY_HOME Folder" should be "The $ARTIFACTORY_HOME Folder"

    David

    1. Apr 10, 2010

      Thanks David - fixed.

  2. Jun 22, 2011

    I unzipped the artifactory-2.3.3.1 to my /home/oracle/.artifactory directory and then deployed artifactory.war to by OC4J container and started it.  But I have two questions:

    1. What is the url to access the artifactory web application?

    2. I get a bunch of errors in my log file:

    --------
    11/06/22 10:43:30 Start process
    --------
    Jun 22, 2011 10:43:32 AM com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    11/06/22 10:43:38 10:43:38,577 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
    10:43:38,578 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [code-source:/oas/j2ee/Artifactory/applications/Artifactory Maven Repository Manager/artifactory/WEB-INF/lib/se-jcr-0.9.jar!/logback.xml]
    10:43:38,580 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
    10:43:38,580 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [code-source:/oas/j2ee/Artifactory/applications/Artifactory Maven Repository Manager/artifactory/WEB-INF/lib/se-jcr-0.9.jar!/logback.xml]
    10:43:38,580 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [code-source:/oas/j2ee/Artifactory/applications/Artifactory Maven Repository Manager/artifactory/WEB-INF/lib/artifactory-log-2.3.3.1.jar!/logback.xml]
    10:43:38,681 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
    10:43:38,681 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
    10:43:38,687 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
    10:43:38,771 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Pushing component [layout] on top of the object stack.
    10:43:38,811 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Popping appender named [STDOUT] from the object stack
    10:43:38,811 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT level set to INFO
    10:43:38,812 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.springframework] to true
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.springframework level set to INFO
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [corg.apache.jcs] to true
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - corg.apache.jcs level set to INFO
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.jackrabbit] to true
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.apache.jackrabbit level set to INFO
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [net.sf.ehcache] to true
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - net.sf.ehcache level set to INFO
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [net.sf.ehcache] to true
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - net.sf.ehcache level set to INFO
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.springframework.extensions.jcr] to true
    10:43:38,815 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.springframework.extensions.jcr level set to INFO

    11/06/22 10:43:39 [ARTIFACTORY] [INFO] Starting Artifactory [artifactory.home=/home/oracle/.artifactory].
    2011-06-22 10:43:39,520 [art-init] [INFO ] (o.a.w.s.ArtifactoryContextConfigListener:126) -
                   _   _  __           _
        /\        | | (_)/ _|         | |
       /  \   _ _| |_ _| |_ __ _  _| |_ __  _ __ _   _
      / /\ \ | '_| _| |  _/ _` |/ _| _/ _ | '__| | | |
     / ___ | |  | || | || (| | (| || () | |  | |_| |
    //    __|   _||| _,|__|___/||   __, |
     Version:  2.3.3.1                                __/ |
     Revision: 13012                                 |___/
     Artifactory Home: '/home/oracle/.artifactory'

    2011-06-22 10:43:39,679 [art-init] [INFO ] (o.a.s.SpringConfigResourceLoader:100) - artifactory.addons.disabled=[]
    2011-06-22 10:43:39,802 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:196) - Refreshing org.artifactory.spring.ArtifactoryApplicationContext@12ae2bc: startup date [Wed Jun 22 10:43:39 PDT 2011]; root of context hierarchy
    11/06/22 10:43:39 Oracle Containers for J2EE 10g (10.1.3.5.0)  initialized

    http://www.springframework.org/schema/tool/spring-tool-3.0.xsd<Line 17, Column 33>: XML-24509: (Error) Duplicated definition for: 'annotation' http://www.springframework.org/schema/tool/spring-tool-3.0.xsd<Line 37, Column 45>: XML-24509: (Error) Duplicated definition for: 'typedParameterType' http://www.springframework.org/schema/tool/spring-tool-3.0.xsd<Line 41, Column 43>: XML-24509: (Error) Duplicated definition for: 'assignableToType' http://www.springframework.org/schema/tool/spring-tool-3.0.xsd<Line 54, Column 45>: XML-24509: (Error) Duplicated definition for: 'expectedMethodType' http://www.springframework.org/schema/tool/spring-tool-3.0.xsd<Line 80, Column 38>: XML-24509: (Error) Duplicated definition for: 'exportsType' http://www.springframework.org/schema/tool/spring-tool-3.0.xsd<Line 103, Column 45>: XML-24509: (Error) Duplicated definition for: 'registersScopeType'
    2011-06-22 10:43:40,454 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:162) - Error creating spring context
    java.lang.reflect.InvocationTargetException: null
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.6.0_16]
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [na:1.6.0_16]
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [na:1.6.0_16]
            at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [na:1.6.0_16]
            at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:159) [artifactory-web-application-2.3.3.1.jar:na]
            at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$100(ArtifactoryContextConfigListener.java:47) [artifactory-web-application-2.3.3.1.jar:na]
            at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:66) [artifactory-web-application-2.3.3.1.jar:na]
    Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 33 in XML document from class path resource [META-INF/spring/applicationContext.xml] is invalid; nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'annotation'
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:126) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:92) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:196) [artifactory-core-2.3.3.1.jar:na]
            at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:103) [artifactory-core-2.3.3.1.jar:na]
            ... 7 common frames omitted
    Caused by: org.xml.sax.SAXParseException: <Line 33, Column 83>: XML-24500: (Error) Can not build schema 'http://www.springframework.org/schema/tool' located at 'http://www.springframework.org/schema/tool/spring-tool-3.0.xsd'
            at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:418) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:284) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:329) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:213) [xmlparserv2.jar:na]
            at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155) [xmlparserv2.jar:na]
            at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            ... 20 common frames omitted
    Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'annotation'
            at oracle.xml.parser.schema.XSDBuilder.buildSchema(XSDBuilder.java:856) [xmlparserv2.jar:na]
            at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:503) [xmlparserv2.jar:na]
            at oracle.xml.parser.schema.XSDValidator.processSchemaLocation(XSDValidator.java:980) [xmlparserv2.jar:na]
            at oracle.xml.parser.schema.XSDValidator.startElement(XSDValidator.java:585) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1315) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308) [xmlparserv2.jar:na]
            ... 24 common frames omitted
    2011-06-22 10:43:40,458 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:70) - Application could not be initialized.
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
            at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:163) [artifactory-web-application-2.3.3.1.jar:na]
            at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$100(ArtifactoryContextConfigListener.java:47) [artifactory-web-application-2.3.3.1.jar:na]
            at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:66) [artifactory-web-application-2.3.3.1.jar:na]
    Caused by: java.lang.reflect.InvocationTargetException: null
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.6.0_16]
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [na:1.6.0_16]
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [na:1.6.0_16]
            at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [na:1.6.0_16]
            at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:159) [artifactory-web-application-2.3.3.1.jar:na]
            ... 2 common frames omitted
    Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 33 in XML document from class path resource [META-INF/spring/applicationContext.xml] is invalid; nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'annotation'
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:212) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:126) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:92) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397) [spring-context-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:196) [artifactory-core-2.3.3.1.jar:na]
            at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:103) [artifactory-core-2.3.3.1.jar:na]
            ... 7 common frames omitted
    Caused by: org.xml.sax.SAXParseException: <Line 33, Column 83>: XML-24500: (Error) Can not build schema 'http://www.springframework.org/schema/tool' located at 'http://www.springframework.org/schema/tool/spring-tool-3.0.xsd'
            at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:418) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:284) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:329) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:213) [xmlparserv2.jar:na]
            at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155) [xmlparserv2.jar:na]
            at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) [spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
            ... 20 common frames omitted
    Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'annotation'
            at oracle.xml.parser.schema.XSDBuilder.buildSchema(XSDBuilder.java:856) [xmlparserv2.jar:na]
            at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:503) [xmlparserv2.jar:na]
            at oracle.xml.parser.schema.XSDValidator.processSchemaLocation(XSDValidator.java:980) [xmlparserv2.jar:na]
            at oracle.xml.parser.schema.XSDValidator.startElement(XSDValidator.java:585) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1315) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:362) [xmlparserv2.jar:na]
            at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:308) [xmlparserv2.jar:na]
            ... 24 common frames omitted