After implementing a custom content crawler, you must deploy
your code.
Follow the
instructions below to deploy a Java content crawler.
Compile the
class that implements the IDK interface and copy the entire package
structure to the appropriate location in your Web application (usually
the \WEB-INF\classes directory).
Update the web.xml
file in the WEB-INF directory by adding the class to the appropriate
*Impl keys. For a content crawler, add your class to ContainerProviderImpl
and DocumentProviderImpl as shown below. Note:The *Impl key in web.xml
must reference the fully-qualified name of both provider classes required
by the service. If the service uses SCI, you must also enter the fully-qualified
name of the appropriate implementation of the IAdminEditor interface.
Start your application
server. (In most cases, you must restart your application server after
copying a file.)
Test the directory
by opening the following page in a Web browser: http://<hostname:port>/edk/services/<servicetype>ProviderSoapBinding
(for example, http://localhost:8080/edk/ContainerProviderSoapBinding
and http://localhost:8080/edk/DocumentProviderSoapBinding). The browser
should display the following message: "Hi there, this is an AXIS service!
Perhaps there will be a form for invoking the service here..." When
you configure the Web Service for the content crawler in the portal,
enter this path as the Service Provider URL.
If the content
crawler uses DocFetch, you must also deploy your DocFetch code. Open
the WEB-INF\web.xml file and add the fully-qualified name of your
class in the DocFetchProvider initialization parameter, as shown
in the code that follows.
...
<servlet>
<servlet-name>DocFetch</servlet-name>
<servlet-class>com.plumtree.remote.docfetch.DocFetch</servlet-class>
<!-- Modify the param-value below to reference your class -->
<init-param>
<param-name>DocFetchProvider</param-name>
<param-value>com.mycompany.MyDocFetchProvider</param-value>
</init-param>
</servlet>
...
Web Service Class Names (*Impl)To deploy a content service, identity service or SCI page, you must enter the qualified class name in the web.xml (Java) or Web.config (.NET) file for your project.