readme file, ant and build-webservice.xml
Casey Boettcher <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
I carefully read the README.txt file included with rc11. I then
attempted to drop openamf into a working flash remoting webapp. After
several HTTP 500 errors, I turned on debugging using the CATALINA_OPTS
parm.
Here's what I saw in catalina.out...
<redaction>
[ERROR] 0-SNAPSHOT:DefaultGateway] - Servlet.service() for servlet
DefaultGateway threw exception <java.lang.NoClassDefFoundError:
org/apache/tools/ant/BuildListener>java.lang.NoClassDefFoundError:
org/apache/tools/ant/BuildListener
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.getConstructor(Class.java:1629)
at org.openamf.invoker.ServiceInvoker.load(ServiceInvoker.java:105)
at org.openamf.DefaultGateway.getServiceInvoker(DefaultGateway.java:331)
at org.openamf.DefaultGateway.invokeBody(DefaultGateway.java:201)
at org.openamf.DefaultGateway.processMessage(DefaultGateway.java:190)
at org.openamf.DefaultGateway.service(DefaultGateway.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
</redaction>
I (foolishly) ignored this for a while, and focused on trying to find
documentation on the three xml files in the <webapp>/WEB-INF
directory.
Then, after coming up dry on possible config errors, I included the
ant jar in the WEB-INF/lib dir. And presto chango, the app worked.
Now, in the README file, in the section entitled "External
Dependencies" and subtitled "Basic Use -- Default Gateway" it is
stated that, for the Default Gateway configuration, one need only
include the following libs:
astranslator.jar (1.5.8)
commons-digester.jar (1.6)
commons-logging.jar (1.0.4)
commons-beanutils.jar (1.7.0)
commons-collections.jar (3.1)
commons-lang.jar (2.0)
Notice that ant v1.5.4 is not mentioned in this section. The ant lib
is mentioned further down, under the rubric of "Other" and is grouped
with jars that are needed only on a subjective basis (ie if the setup
is using jboss, mysql, etc).
My question is:
What have I done to necessitate the inclusion of ant.jar in my war?
After all, I'm not using a web service and have no need for a wsdl.
(I'm using straight Flash Remoting).
Thanks for your collective time,
chb
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf