Hey all,
I've been trying to get Sevak Catalina implementation and demo to run in
Phoenix. I haven't had any success so far.
My first problem was that Phoenix didn't want to even try and create the
blocks. It kept giving me the following message on the console:
Unable to create BlockInfo as are unable to locate resource
"org/apache/avalon/apps/sevak/blocks/catalina/startup/Bootstrap.xinfo".
So, I did some looking and sure enough it looks as though the class
o.a.a.a.sevak.blocks.catalina.startup.Bootstrap is no longer used (in
fact, it's been deleted), but is still referenced from the
src/demo/conf/catalina-assembly.xml file.
I looked though the classes available in the blocks.catalina package and
found the replacement CatalinaSevakBootstrap class. I changed the
catalina-assembly.xml file to use this as instead of the old Bootstrap
block.
Things seem to be better now. Phoenix at least creates the blocks and
starts going through their lifecycles. But, when it calls initiailze()
on the CatalinaSevakBoostrap class, it fails with a
ClassNotFoundException, saying it can't find
org.apache.catalina.loader.StandardClassLoader. I noticed this was
getting added to the sar in the common/lib directory, so I tried to put
it in the SAR-INF/lib directory thinking that would make it available to
the class loader when the block is being initialized. No luck.
I've tried everything I can think to try for the moment, any one else
have any ideas?
Note: I've attached a diff of the changes I made to the
catalina-assembly.xml file. While poking around I also noticed some
oddities in the build.xml file where two jar were being created:
sevak-catalina.jar, which was empty, and sevak-catalina-impl.jar which
had the actual class and xinfo files in it. Oh, and it was generated
from the jakarta-avalon-apps/sevak directory (didn't want any changes
anywhere else to be included by accident).
--
Richard Wallace <[EMAIL PROTECTED]>
AIM, Inc.
Index: build.xml
===================================================================
RCS file: /home/cvspublic/jakarta-avalon-apps/sevak/build.xml,v
retrieving revision 1.19
diff -u -r1.19 build.xml
--- build.xml 5 Nov 2002 22:44:38 -0000 1.19
+++ build.xml 22 Nov 2002 00:38:54 -0000
@@ -214,19 +214,12 @@
<jar jarfile="${build.lib}/sevak-catalina.jar">
<fileset dir="${build.classes}">
- <include name="org/apache/avalon/apps/sevak/blocks/catalina/startup/*"/>
+ <include name="org/apache/avalon/apps/sevak/blocks/catalina/**"/>
</fileset>
<fileset dir="${build.metagenerate}/catalina">
- <include name="org/apache/avalon/apps/sevak/blocks/catalina/startup/**/*.xinfo"/>
+ <include name="org/apache/avalon/apps/sevak/blocks/catalina/**/*.xinfo"/>
</fileset>
</jar>
-
- <jar jarfile="${build.lib}/sevak-catalina-impl.jar">
- <fileset dir="${build.classes}">
- <include name="org/apache/avalon/apps/sevak/blocks/catalina/**"/>
- <exclude name="org/apache/avalon/apps/sevak/blocks/catalina/startup/**"/>
- </fileset>
- </jar>
<jar jarfile="${build.lib}/sevak-jo.jar">
<fileset dir="${build.classes}">
Index: catalina.xml
===================================================================
RCS file: /home/cvspublic/jakarta-avalon-apps/sevak/catalina.xml,v
retrieving revision 1.9
diff -u -r1.9 catalina.xml
--- catalina.xml 5 Nov 2002 22:44:38 -0000 1.9
+++ catalina.xml 22 Nov 2002 00:38:54 -0000
@@ -194,9 +194,6 @@
<zipfileset dir="${catalina.download}/bin" prefix="common/lib">
<include name="*.jar"/>
</zipfileset>
- <zipfileset dir="${build.lib}" prefix="server/lib">
- <include name="sevak-catalina-impl.jar"/>
- </zipfileset>
<zipfileset dir="${conf.demo.dir}" prefix="conf">
<include name="tomcat-users.xml"/>
</zipfileset>
Index: src/demo/conf/catalina-assembly.xml
===================================================================
RCS file: /home/cvspublic/jakarta-avalon-apps/sevak/src/demo/conf/catalina-assembly.xml,v
retrieving revision 1.4
diff -u -r1.4 catalina-assembly.xml
--- src/demo/conf/catalina-assembly.xml 20 Oct 2002 22:02:34 -0000 1.4
+++ src/demo/conf/catalina-assembly.xml 22 Nov 2002 00:38:54 -0000
@@ -3,7 +3,7 @@
"http://jakarta.apache.org/phoenix/assembly_1_0.dtd">
<assembly>
- <block class="org.apache.avalon.apps.sevak.blocks.catalina.startup.Bootstrap" name="sevak"/>
+ <block class="org.apache.avalon.apps.sevak.blocks.catalina.CatalinaSevakBootstrap" name="sevak"/>
<block class="org.apache.avalon.apps.sevak.demo.MultihostSevakTest" name="multihost-sevak-test">
<provide name="sevak" role="org.apache.avalon.apps.sevak.MultihostSevak"/>
</block>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>