Re: Build problem

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

That makes much more sense.  In order to build Barracuda pre-latest CVS, 
you will need to remove xercesImpl.jar and xml-apis.jar from 
ANT_HOME/lib.  The other jars you put in there are fine.

I know you want to use a stable version of Barrauda and we really do need 
to get another official release out, but I really do recommend going with 
the latest CVS.  Things have change pretty significantly since the last 
release.  However, the components haven't changed much.  The only things I 
foresee changing in the near future (before the next release) are:

1. Enabling DefaultDOMWriter to use XMLC's new deferred parsing.  However, 
this change shouldn't affect anyone's code.
2. Creating a BComponentStringBuffer (or whatever that was going to be 
called?).  I think Christian is/was going to do this.
3. Possibly creating XHTML components which Christian was going to do if he 
got some time.  Not sure if this will happen before the next release?
4. Modify the log4j InitContextListner to take a context-param to override 
the naming of the system property generated for the location of log 
files.  This is to make things compatible with containers other than 
Tomcat.  Shouldn't affect anyones code and, in fact, this isn't even part 
of the Barracuda project.  It is part of the log4j-sandbox project, but it 
should be updated so that people doing logging using Barracuda will be able 
to make it work under multiple environments.
5.  Possibly some further modifications to Diez' pages model code.  Diez 
would be doing that, but this doesn't affect much of anything in Barracuda 
one way or the other.
6.  Minor changes to the way BAction components set up javascript to fire 
events.  Currently it disables the element and then fires the event, but 
this doesn't work if the form element is one that has to, itself, submit a 
value.  It does work in the case of submit buttons and the like.  This is a 
minor change in the scheme of things.
6.  Any other Minor bugfixes

As you can see, things are pretty stable and will stay that right up to the 
next release.  The big changes have already been made.  You will also find 
that the current CVS builds under Ant with no required modifications to 
ANT_HOME/lib because of the update to the new XMLC-2.2 libraries.  So, 
again, I highly recommend you grab the latest CVS.

Jake

At 12:07 PM 4/3/2003 -0500, you wrote:
>Hi Jake,
>
>I downloaded the binary and sourse from
>http://barracudamvc.org/software/downloads/
>for lazy. The page looks down now. I thought the CVS
>would be not stable. For my purpose, I need a stable
>one.
>
>I need to test build first before I make a project for
>ellipse. I haven't tested on application server yet. I
>will try on tomcat.
>
>I added checkstyle, velocity, and jdepend to
>ANT_HOME/lib for my own development. Is that a
>problem?
>
>I run the default target for ant.
>
>I am sorry that I should attach the whole message to
>you.
>
>Thanks
>
>/*******************************************/
>
>
>D:\Programs\Barracuda\src>ant
>Buildfile: build.xml
>
>sample.init:
>
>taskdefs.init:
>     [mkdir] Created dir:
>D:\Programs\Barracuda\WEB-INF\classes
>
>source.init:
>     [mkdir] Created dir:
>D:\Programs\Barracuda\WEB-INF\classes\xlib
>     [mkdir] Created dir:
>D:\Programs\Barracuda\WEB-INF\tmp$\src_events
>     [mkdir] Created dir:
>D:\Programs\Barracuda\WEB-INF\tmp$\src_xmlc
>     [mkdir] Created dir:
>D:\Programs\Barracuda\unit_tests
>     [mkdir] Created dir:
>D:\Programs\Barracuda\unit_tests\reports
>
>init:
>
>taskdefs.compile:
>     [javac] Compiling 8 source files to
>D:\Programs\Barracuda\WEB-INF\classes
>      [copy] Copying 1 file to
>D:\Programs\Barracuda\WEB-INF\classes\org\enhydra\
>barracuda\taskdefs
>      [copy] Copying 2 files to
>D:\Programs\Barracuda\WEB-INF\classes\xlib\dtds
>
>taskdefs:
>       [jar] Building jar:
>D:\Programs\Barracuda\WEB-INF\jars\barracuda-ant.jar
>
>compile_core:
>     [javac] Compiling 223 source files to
>D:\Programs\Barracuda\WEB-INF\classes
>     [javac] Note: Some input files use or override a
>deprecated API.
>     [javac] Note: Recompile with -deprecation for
>details.
>
>deploy_mockups:
>  [copyrepl] Copying 1 file to
>D:\Programs\Barracuda\src\org\enhydra\barracuda\ad
>min\xmlc
>  [copyrepl] Replacing text in copied files
>  [copyrepl] Copying 7 files to
>D:\Programs\Barracuda\WEB-INF\classes\xlib\org\en
>hydra\barracuda\admin
>  [copyrepl] Replacing text in copied files
>  [copyrepl] Copying 1 file to
>D:\Programs\Barracuda\src\org\enhydra\barracuda\co
>nfig\xmlc
>  [copyrepl] Processing copied files for server side
>includes
>  [copyrepl] Replacing text in copied files
>  [copyrepl] Copying 30 files to
>D:\Programs\Barracuda\WEB-INF\classes\xlib\org\e
>nhydra\barracuda\config
>  [copyrepl] Replacing text in copied files
>
>xmlc:
>
>xmlc.sub:
>  [localize] ...Invoking XMLC precompiler taskdef
>  [localize]
>D:\Programs\Barracuda\src\org\enhydra\barracuda\examples\xmlc\CompEx
>7.html:21: Warning: unknown attribute "customattr1"
>  [localize]
>D:\Programs\Barracuda\src\org\enhydra\barracuda\examples\xmlc\CompEx
>7.html:24: Warning: unknown attribute "customattr2"
>  [localize]
>D:\Programs\Barracuda\src\org\enhydra\barracuda\examples\xmlc\CompEx
>7.html:35: Warning: unknown attribute "customattr3"
>  [localize]
>D:\Programs\Barracuda\src\org\enhydra\barracuda\examples\xmlc\CompEx
>7.html:38: Warning: unknown attribute "customattr4"
>  [localize] ...Invoking Javac compiler taskdef
>  [localize] Compiling 19 source files to
>D:\Programs\Barracuda\WEB-INF\classes
>
>xmlc.sub:
>  [localize] ...Invoking XMLC precompiler taskdef
>  [localize] ...Invoking Javac compiler taskdef
>  [localize] Compiling 5 source files to
>D:\Programs\Barracuda\WEB-INF\classes
>
>xmlc.sub:
>  [localize] ...Generating localized templates
>  [localize] ...Invoking XMLC precompiler taskdef
>  [localize] ...Invoking Javac compiler taskdef
>  [localize] Compiling 23 source files to
>D:\Programs\Barracuda\WEB-INF\classes
>  [localize] Processed 14 source files, found 1 master
>templates, created 8 new l
>ocalized templates
>
>xmlc.sub:
>  [localize] ...Invoking XMLC precompiler taskdef
>  [localize]
>java.lang.reflect.InvocationTargetException
>  [localize]     at
>sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>Method)
>  [localize]     at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
>sorImpl.java:39)
>  [localize]     at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
>hodAccessorImpl.java:25)
>  [localize]     at
>java.lang.reflect.Method.invoke(Method.java:324)
>  [localize]     at
>org.enhydra.barracuda.taskdefs.Xmlc.execute(Xmlc.java:576)
>  [localize]     at
>org.enhydra.barracuda.taskdefs.Localize.execute(Localize.java
>:628)
>  [localize]     at
>org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
>va:193)
>  [localize]     at
>org.apache.tools.ant.Task.perform(Task.java:341)
>  [localize]     at
>org.apache.tools.ant.Target.execute(Target.java:309)
>  [localize]     at
>org.apache.tools.ant.Target.performTasks(Target.java:336)
>  [localize]     at
>org.apache.tools.ant.Project.executeTarget(Project.java:1339)
>
>  [localize]     at
>org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
>  [localize]     at
>org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.j
>ava:143)
>  [localize]     at
>org.apache.tools.ant.Task.perform(Task.java:341)
>  [localize]     at
>org.apache.tools.ant.Target.execute(Target.java:309)
>  [localize]     at
>org.apache.tools.ant.Target.performTasks(Target.java:336)
>  [localize]     at
>org.apache.tools.ant.Project.executeTarget(Project.java:1339)
>
>  [localize]     at
>org.apache.tools.ant.Project.executeTargets(Project.java:1255
>)
>  [localize]     at
>org.apache.tools.ant.Main.runBuild(Main.java:609)
>  [localize]     at
>org.apache.tools.ant.Main.start(Main.java:196)
>  [localize]     at
>org.apache.tools.ant.Main.main(Main.java:235)
>  [localize] Caused by: java.lang.NoSuchFieldError:
>fEntityHandler
>  [localize]     at
>org.apache.xerces.readers.XCatalog$Parser.setBase(XCatalog.ja
>va:472)
>  [localize]     at
>org.apache.xerces.readers.XCatalog$Parser.<init>(XCatalog.jav
>a:450)
>  [localize]     at
>org.apache.xerces.readers.XCatalog.loadCatalog(XCatalog.java:
>223)
>  [localize]     at
>org.enhydra.xml.io.XMLEntityResolver.loadCatalog(XMLEntityRes
>olver.java:130)
>  [localize]     at
>org.enhydra.xml.io.XMLEntityResolver.setDefaultResolving(XMLE
>ntityResolver.java:145)
>  [localize]     at
>org.enhydra.xml.xmlc.parsers.xerces.XercesParser.parse(Xerces
>Parser.java:223)
>  [localize]     at
>org.enhydra.xml.xmlc.compiler.Parse.parse(Parse.java:229)
>  [localize]     at
>org.enhydra.xml.xmlc.compiler.Compiler.parsePage(Compiler.jav
>a:109)
>  [localize]     at
>org.enhydra.xml.xmlc.compiler.Compiler.compile(Compiler.java:
>218)
>  [localize]     at
>org.enhydra.xml.xmlc.commands.xmlc.XMLC.compile(XMLC.java:132
>)
>  [localize]     at
>org.enhydra.xml.xmlc.commands.xmlc.XMLC.compileHandleErrors(X
>MLC.java:142)
>  [localize]     at
>org.enhydra.xml.xmlc.commands.xmlc.XMLC.main(XMLC.java:153)
>  [localize]     ... 21 more
>
>BUILD FAILED
>file:D:/Programs/Barracuda/src/build.xml:596:
>java.lang.reflect.InvocationTarget
>Exception
>
>Total time: 21 seconds
>
>
>______________________________________________________________________
>Post your free ad now! http://personals.yahoo.ca
>_______________________________________________
>Barracuda mailing list
>[email protected]
>http://barracudamvc.org/lists/listinfo/barracuda
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.