Barracuda update (please read)....

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi everyone,

I updated Barracuda with a couple things (and tagged it with CVS tag 
jrk_20030217).

1.  New logging package from log4-sandbox.  This is, pretty much, the same 
functional code that was in the barracuda-log4j.jar and 
barracuda-webapp.jar.  The equivalents are now 
log4j-sandbox-selector-0.1alpha.jar and 
log4j-sandbox-servlet-0.1alpha.jar.  Again, the former goes wherever 
log4j.jar goes and the latter goes in WEB-INF/lib of your webapp.

The new configuration for your context listener looks like:

            <listener>
		<listener-class>
		org.apache.log4j.servlet.InitContextListener
		</listener-class>
	</listener>

See Barracuda's sample.web.xml or any of the contrib app sample.web.xml files.


2.  I added Stefan Armbruster's new contrib app.  It uses some of Diez' 
contrib stuff along with new useful code that Stefan has provided.  This is 
yet another example of how to code with Barracuda and looks to be a pretty 
good one :-)  Check it out!

In order to install the contrib apps, make sure of the following....

a.  You have a recent install of Tomcat-4.1.x
b.  You have added the following jars to CATALINA_HOME/shared/lib
         cos.jar
         gnu-regexp-1.1.4.jar
         jtidy-r7-xmlc-2.1.jar
         log4j-sandbox-selector-0.1alpha.jar
         wireless-xmlc-2.1.jar
         xerces-1.4.4-xmlc-2.1.jar  (this could also be in common/endorsed 
in place of existing xerces jars....your choice)
         xhtml-xmlc-2.1.jar
         xmlc-2.1.jar
c.  You have added the following jars to CATALINA_HOME/common/lib
         log4j-1.2.7.jar  (copy log4j-1.2.7a.jar from Barracuda/WEB-INF/lib 
to common/lib/log4j-1.2.7.jar)

Now start Tomcat and run the following on the command line from 
Barracuda/src...

ant contrib -Dsubproject=all -Dsubtarget=catalina-install

That will build Barracuda, build the core contrib stuff, and build and 
install each contrib app to Tomcat all in one-fell-swoop!

You could just type "ant contrib" and then the build will prompt your for 
the above values.  To install any one contrib app, just name it.  That is, 
instead of "all", use "dbroggisch" or "sam".


One other thing of note is that I updated my modified version of Diez' 
contrib app on my ftp to match up with the CVS source tag with 
jrk_20030217.  Might want to grab this update if you are using it for an 
example Barracuda build.
ftp://ftp.visi.com/users/hoju/pub/
or
ftp://ftp.visi.com/users/hoju/pub/barracuda-pages.sample_2003-02-17.zip


Have fun!

Any questions or problems, let me know.

Jake
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.