RE: build problem

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

Yep, you're right  It is a bit inefficient to restate things over and 
over.  I actually did write up a doc on this a while back called 
"using_barracuda.html".  However, it was so old and provided so much 
misinformation that I completely replaced it with a doc called 
"build_deploy.html".  Check it out.  It is in the latest CVS.

I also updated the release notes for the upcoming 1.2.0 release.  Just need 
to work out a few issues with the Test cases and fix a possible bug in the 
components (although it only shows itself in one case that I can reproduce, 
so it probably should hold up the release too much).

Check out the docs and see if there are any glaring issues that should be 
modified for the 1.2.0 release.  Patches are very welcome.  It takes a long 
time to add/update the docs on my own.  Any help would be appreciated.


Jake

At 11:23 AM 5/14/2003 +0200, you wrote:
>Hi Jake,
>
>Just a quick question.
>
>The barracuda build has really improved and grown over the last year.
>However, because of all the new api versions(XMLC 2.2, etc, etc) and new 
>features... etc etc
>
>I'm struggling to 'keep up' with the correct method to build and deploy 
>Barrcuda.
>
>If I could make a suggestion....
>
>Whenever a 'newbie' posts a build problem... you've always posted the 
>'best' method to build Barracuda.
>
>Why not just add a 'How to build Barracuda using Ant' doc/html to the website?
>Unless there's one already of course...
>
>You could have sections like...
>
>How to build Barracuda under:
>JDK1.3
>JDK1.4
>JDK1.4 and Tomcat 4
>Common Build Problems and Solutions.
>etc
>etc
>(I suppose you could chuck in a description of the 'main' ant targets as 
>well??)
>
>This way you'd save time and you can always point 'newbies' to the website 
>url.
>You also just maintain a single doc/html whenever you need to change the 
>process.
>
>Just a thought...
>
>Regards
>KD
>
>
>-----Original Message-----
>From: Jacob Kjome [mailto:[email protected]]
>Sent: 13 May 2003 11:42
>To: [email protected]
>Subject: RE: [Barracuda] build problem
>
>
>Did you make sure that xercesImpl.jar and xml-apis.jar are in 
>ANT_HOME/lib?  That is absolutely necessary...especially if you are using 
>JDK1.3.x which is probably true in this case.
>
>Also, you definitely need to have xerces-1.4.4-xmlc-2.2.jar in ant's 
>internal classpath.  Just because you don't put it in ANT_HOME/lib doesn't 
>mean it doesn't need to be available to the XMLC taskdef.  You also need 
>to put xmlc.jar, gnu-regexp.jar, and jtidy.jar, and bcel.jar in the Ant 
>internal classpath.  If you have questions about how this works, take a 
>look at either of the contrib project build.xml files and see how the 
>classpath is set up inside the build.xml.
>
>look in:
>src/org/enhydra/barracuda/contrib/
>                                               dbroggisch/webapp/build.xml
>                                               sam/webapp/build.xml
>
>
>Jake
>
>
>At 01:39 PM 5/13/2003 -0700, you wrote:
>>Thanks. It works now.
>>Now I have another problem. I am getting problem in executing xmlc ant task.
>>
>>CASE 1:
>>
>>If I don't put xerces-1.4.4-xmlc-2.2.jar in classpath then I get this error:
>>-----------
>>Generating the HTML storyboard dom classes...
>>      [xmlc] Invoke XMLC on
>>C:\molehill\modules\src\com\efi\modules\pmpro\presentation\xmlc\contacts\
>>alpha_tab_comp.html
>>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 org.enhydra.barracuda.taskdefs.Xmlc.execute(Xmlc.java:591)
>>         at org.apache.tools.ant.Task.perform(Task.java:317)
>>         at org.apache.tools.ant.Target.execute(Target.java:309)
>>         at org.apache.tools.ant.Target.performTasks(Target.java:334)
>>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
>>         at
>>org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
>>         at org.apache.tools.ant.Task.perform(Task.java:317)
>>         at org.apache.tools.ant.Target.execute(Target.java:309)
>>         at org.apache.tools.ant.Target.performTasks(Target.java:334)
>>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
>>         at org.apache.tools.ant.Task.perform(Task.java:317)
>>         at org.apache.tools.ant.Target.execute(Target.java:309)
>>         at org.apache.tools.ant.Target.performTasks(Target.java:334)
>>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>>         at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>>         at org.apache.tools.ant.Main.runBuild(Main.java:610)
>>         at org.apache.tools.ant.Main.start(Main.java:196)
>>         at org.apache.tools.ant.Main.main(Main.java:235)
>>Caused by: java.lang.NoClassDefFoundError:
>>org/enhydra/apache/xerces/dom/DocumentImpl
>>         at java.lang.ClassLoader.defineClass0(Native Method)
>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>>         at
>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>>         at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>>         at
>>org.enhydra.xml.xmlc.commands.options.OptionsParser.getMetaData(OptionsParse
>>r.java:339)
>>         at
>>org.enhydra.xml.xmlc.commands.options.OptionsParser.parse(OptionsParser.java
>>:317)
>>         at
>>org.enhydra.xml.xmlc.commands.xmlc.XMLCOptionsParser.parse(XMLCOptionsParser
>>.java:75)
>>         at org.enhydra.xml.xmlc.commands.xmlc.XMLC.parseArgs(XMLC.java:101)
>>         at org.enhydra.xml.xmlc.commands.xmlc.XMLC.compile(XMLC.java:121)
>>         at
>>org.enhydra.xml.xmlc.commands.xmlc.XMLC.compileHandleErrors(XMLC.java:142)
>>         at org.enhydra.xml.xmlc.commands.xmlc.XMLC.main(XMLC.java:153)
>>         ... 24 more
>>
>>BUILD FAILED
>>file:../resources/build-common-compile.xml:42:
>>java.lang.reflect.InvocationTargetException
>>
>>CASE 2:
>>-------
>>If I put xerces-1.4.4-xmlc-2.2.jar in classpath then I get this error:
>>
>>C:\molehill>ant -emacs all.debug
>>Buildfile: build.xml
>>
>>BUILD FAILED
>>XML parser factory has not been configured correctly: Provider
>>org.apache.xerces.jaxp.SAXParserFactoryImpl not found.
>>
>>Please, let me know how to resolve this issue.
>>Thanks.
>>Rajesh
>>
>>
>>-----Original Message-----
>>From: Christian Cryder [mailto:[email protected]]
>>Sent: Tuesday, May 13, 2003 10:47 AM
>>To: [email protected]
>>Subject: RE: [Barracuda] build problem
>>
>>
>>Ok.
>>
>> > > 2. Copy the following jars from /WEB-INF/jars to ANT_HOME/lib:
>> > >     junit-3.8.1.jar
>> > >     xalan-2.5.0.jar
>> > >     xerces-1.4.4-xmlc-2.2.jar
>>
>>I think you no longer need to copy in the Xalan and the Xerces jars...
>>
>>CHristian
>>----------------------------------------------
>>Christian Cryder [[email protected]]
>>Internet Architect, ATMReports.com
>>Barracuda - http://barracudamvc.org
>>----------------------------------------------
>>"Coffee? I could quit anytime, just not today"
>>
>> > -----Original Message-----
>> > From: [email protected]
>> > [mailto:[email protected]]On Behalf Of Rajesh Poddar
>> > Sent: Tuesday, May 13, 2003 1:35 PM
>> > To: [email protected]
>> > Subject: RE: [Barracuda] build problem
>> >
>> >
>> > Hi Christian,
>> > I checked out from barracudamvc site.
>> >
>> >
>> >
>> > -----Original Message-----
>> > From: Christian Cryder [mailto:[email protected]]
>> > Sent: Tuesday, May 13, 2003 10:33 AM
>> > To: [email protected]
>> > Subject: RE: [Barracuda] build problem
>> >
>> >
>> > Hi Rajesh, just curious...where did you check this out from? The
>> > barracudamvc site, right? (I just want to make sure you didn't grab an old
>> > copy from the enhydra.org site)
>> >
>> > ----------------------------------------------
>> > Christian Cryder [[email protected]]
>> > Internet Architect, ATMReports.com
>> > Barracuda - http://barracudamvc.org
>> > ----------------------------------------------
>> > "Coffee? I could quit anytime, just not today"
>> >
>> > > -----Original Message-----
>> > > From: [email protected]
>> > > [mailto:[email protected]]On Behalf Of Rajesh Poddar
>> > > Sent: Tuesday, May 13, 2003 1:26 PM
>> > > To: '[email protected]'
>> > > Subject: [Barracuda] build problem
>> > >
>> > >
>> > > Hi,
>> > > I have checked out the latest Barracuda code from CVS.
>> > > I did following things to build Barracuda on my machine.
>> > >
>> > > 1. Ant-1.5.1 with optional.jar file
>> > > 2. Copy the following jars from /WEB-INF/jars to ANT_HOME/lib:
>> > >     junit-3.8.1.jar
>> > >     xalan-2.5.0.jar
>> > >     xerces-1.4.4-xmlc-2.2.jar
>> > > 3. ant clean at C:\Barracuda\src
>> > >
>> > > Unfortunately I am getting an error which is given below.
>> > >
>> > > C:\Barracuda\src>ant clean
>> > > Buildfile: build.xml
>> > >
>> > > BUILD FAILED
>> > > XML parser factory has not been configured correctly: Provider
>> > > org.apache.xerces.jaxp.SAXParserFactoryImpl not found
>> > >
>> > > I found that package name for SAXParserFactoryImpl is
>> > > org.enhydra.apache.xerces.jaxp in xerces-1.4.4-xmlc-2.2.jar.
>> > > Please, let me
>> > > know how to solve this problem.
>> > >
>> > > Thanks.
>> > >
>> > > Rajesh
>> > > _______________________________________________
>> > > Barracuda mailing list
>> > > [email protected]
>> > > http://barracudamvc.org/lists/listinfo/barracuda
>> >
>> > _______________________________________________
>> > Barracuda mailing list
>> > [email protected]
>> > http://barracudamvc.org/lists/listinfo/barracuda
>> > _______________________________________________
>> > Barracuda mailing list
>> > [email protected]
>> > http://barracudamvc.org/lists/listinfo/barracuda
>>
>>_______________________________________________
>>Barracuda mailing list
>>[email protected]
>>http://barracudamvc.org/lists/listinfo/barracuda
>>_______________________________________________
>>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.