On Jun 19, 2013, at 12:17 PM, Bobby Tamburrino wrote:
> I was able to extract the 3.2.3 webapp into our tomcat/webapps
> directory, and moved the WEB-INF directory to the variman root
> directory. This allowed me to see it in the Tomcat manager, and
> when I click on it, it gives me the screen that tells me what the
> RETS login URL is.
>
> However, when I try to run "java -jar variman-admin.jar", I get the
> following:
That's for the standalone Tomcat server ... you've installed Variman
into an already existing (presumably running) Tomcat environment. You
should now have /usr/local/apache-tomcat-6.0/webapps/variman in place.
> There is, most likely, a step I missed that is very obvious to
> someone even remotely familiar with using Tomcat or JAVA web apps.
> If someone could point me in the right direction, that would be great.
The configuration is nothing more than updating the varman/WEB-INF/
rets/rets-config.xml and variman/WEB-INF/rets/rets-logging.properties
files. Here's my logging first:
# Values: roll_size | roll_daily
# Default: roll_size
#
# roll_size means roll the log file every 10MB. roll_daily means roll
# every day. roll_size keeps 5 files. roll_daily keeps all files and
# required manual clean up.
variman.log.appender = roll_size
# Values: info | debug
# Default: info
#
# Setting to debug enables more logging
variman.log.level = debug
# Values: off | all
# Default: off
#
# Setting to "all" enables separate SQL logging
variman.log.sql_level = off
Change the log level from debug to info.
As for my rets-config.xml - that is more site specific.
<?xml version="1.0" encoding="UTF-8"?>
<rets-config>
<address />
<port>6103</port>
<metadata-dir>/path/to/my/variman/demo_metadata</metadata-dir>
<get-object-root>/path/to/my/variman/sample_metadata1.7.2/images</
get-object-root>
<photo-pattern>%k_%i.jpg</photo-pattern>
<object-set-pattern></object-set-pattern>
<nonce-initial-timeout>-1</nonce-initial-timeout>
<nonce-success-timeout>-1</nonce-success-timeout>
<strict-parsing>true</strict-parsing>
<database>
<type>postgresql</type>
<host>localhost</host>
<name>demo</name>
<username>variman</username>
<password>secret</password>
<max-active>100</max-active>
<max-idle>10</max-idle>
<max-wait>120000</max-wait>
<max-ps-active>100</max-ps-active>
<max-ps-idle>10</max-ps-idle>
<max-ps-wait>120000</max-ps-wait>
<show-sql>false</show-sql>
</database>
<security-constraints />
</rets-config>
That's it. Variman should be running on whatever port you've
configured it to listen on. In my case, I'm running both the
standalone and webapp versions of Variman with the standalone running
on port 6103. The tomcat version is running on port 8180. Using a
libRETS demo program, I can access it as simply as:
[mklein@dis ~/NAR/librets/trunk/build/examples/bin]$ ./login --url
http://www.dis.com:8180/variman/rets/login
Logged in
Member name: Joe Schmoe
Search URL:
http://www.dis.com:8180/variman/rets/search
Action:
Logged out
Billing information: 0.24
Connect time: 34
Message: Goodbye
[mklein@dis ~/NAR/librets/trunk/build/examples/bin]$
Regards,
M.
--
Mark Klein
PGP Key Available
www.dis.com