Hi
Dave,
Lars Huttar wrote:
Dave wrote:
I downloaded coconn-2.1.2 and did a "build.bat" successfully.
However when I did a "build test" I got an error. See listing 1.
Next I tried "cocoon cli -x cli.xconf" and got a Cannot find
"CatalogManager.properties" error. See listing 2 .
Dave, I get that error all the time when I run "cocoon cli -x cli.xconf",
but I think it's not an error you have to worry about. (Somebody correct me
if I'm wrong!) CLI seems to do its stuff anyway. (I too am using v. 2.1.2.)
On the other hand, your NoClassDefFoundError sounds more fatal.
It sounds like servlet_2_2.jar is not in your path.
I had an error something like this and fixed it by copying
lib/optional/servlet_2_2.jar
to
build/webapp/WEB-INF/lib/
in the source distribution.
I copied the servlet_2_2.jar as you suggested and got different
results: - 1 - It did not fix the "build test" error.
No, it wasn't
meant to. Guess I didn't make that clear.
- 2 - It did not fix the
"cocoon cli -x cli.xconf" error
Presumably it
didn't fix the CatalogManager.properties error, but did fix
the
InvocationTargetException/NoClassDefFoundError, which was the one
that was
preventing
CLI from doing anything.
- 3 - However, "cocoon
cli -x cli.xconf" now does it stuff.
Thanks, it now works well enough
for me to test.
As an aside, this is something that makes Cocoon hard for me to debug...
there are some errors you can ignore, which means that when something
isn't working, it's harder to find out which of the several error messages
you're getting might be relevant to it.
Anyway, HTH,
Lars
...
-----------------------------begin of listing 2
-----------------------------------
...
Cannot find CatalogManager.properties
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
orImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
odAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at Loader.invokeMain(Unknown Source)
at Loader.run(Unknown Source)
at Loader.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError:
javax/servlet/http/HttpSessionBindingListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
...
-----------------------------end of listing
2--------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]
|