Configuring the Archive Manager Java Web service Web application
If you have deployed the Java Web service, copied resources to create it by hand, or added it to an existing Web application, you finalize the installation of the Java Web service by copying some additional resources and testing the Web service.
Procedure
- Copy the following XML files to the
WEB-INF/classes/directory of the Web application that contains your Java Web service:- Copy your Content Delivery license file, called
cd_licenses.xmlby default, from your Content Delivery server. - Copy your Archive Manager license file from wherever you have it saved or installed.
- Copy your Storage Layer configuration file,
cd_storage_conf.xml, from the Content Deployer to which you added the Archive Manager Modules. - Copy your logback configuration file,
logback.xml, from the Content Deployer to which you added the Archive Manager Modules.
- Copy your Content Delivery license file, called
- If your Web application server is WebLogic, add the following weblogic.xml file to the WEB-INF folder of your Web application to force WebLogic to use the libraries contained in the Web application rather than its own libraries:
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"> <container-descriptor> <prefer-application-packages> <package-name>javax.persistence.**</package-name> <package-name>antlr.*</package-name> <package-name>org.slf4j.**</package-name> <package-name>org.apache.log4j.**</package-name> <package-name>org.apache.xml.serializer.**</package-name> </prefer-application-packages> </container-descriptor> </weblogic-web-app> - Copy the JDBC driver for the Archiver database you are using from your Content Deployer's library location into the
WEB-INF/lib/directory of the Web service. - If you are running the Web service in the same Web application as the Archive Manager Modules, open web.xml in the Web application root folder for editing and add the following above the
<servlet>element:<listener> <listener-class>com.tridion.archiving.servlet.ArchiveManagerContextListener</listener-class> </listener>and save and close web.xml.
- Restart your Web application.
- To verify that the Java Web Service was correctly installed, open a browser and enter the following URL:
http://<SERVERNAME:PORT/JavaWebServiceName>/services/Monitor