You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by dave- <da...@pacbell.net> on 2003/10/17 21:46:09 UTC

"build.bat test" and "cocoon.bat CLI -x cli.xconf" Cannot find CatalogManager.properties

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 .

-----------------------------begin of listing 1 
-----------------------------------
...
Testcase: testCatalogPropertiesAvailable took 0.015 sec
        Caused an ERROR
null
java.lang.ClassCastException
        at 
org.apache.cocoon.components.resolver.test.ResolverImplTestCase.setUp(ResolverImplTestCase.java:282)
        at 
org.apache.avalon.excalibur.testcase.ExcaliburTestCase.run(ExcaliburTestCase.java:403)
Testcase: testCatalogPropertiesAvailableTestcase: 
testAvailableResolveEntity took 0 sec
        Caused an ERROR
null
java.lang.ClassCastException
        at 
org.apache.cocoon.components.resolver.test.ResolverImplTestCase.setUp(ResolverImplTestCase.java:282)
        at 
org.apache.avalon.excalibur.testcase.ExcaliburTestCase.run(ExcaliburTestCase.java:403)
Testcase: testAvailableResolveEntityTestcase: 
testNonAvailableResolveEntity took 0 sec
        Caused an ERROR
null
java.lang.ClassCastException
        at 
org.apache.cocoon.components.resolver.test.ResolverImplTestCase.setUp(ResolverImplTestCase.java:282)
        at 
org.apache.avalon.excalibur.testcase.ExcaliburTestCase.run(ExcaliburTestCase.java:403)
Testcase: testNonAvailableResolveEntity

BUILD FAILED
-----------------------------end of listing 
1--------------------------------------

-----------------------------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(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: "build.bat test" and "cocoon.bat CLI -x cli.xconf" Cannot find CatalogManager.properties

Posted by Lars Huttar <la...@sil.org>.
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.


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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org