Re: Re: Sample pages, Eclipse and XMLCEclipse...

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

I suspect the same thing that Diez suspects.  The way to make sure would be 
to save the source files somewhere and see if the resulting source files 
are implementing the NavigationHTML class.

For example, here is what generated Repopulation classes look like....

public interface RepopulationHTML extends 
org.enhydra.barracuda.contrib.dbroggisch.examples.xmlc.NavigationHTML, 
org.enhydra.xml.xmlc.XMLObject, org.enhydra.xml.xmlc.html.HTMLObject


public class RepopulationHTMLImpl extends 
org.enhydra.xml.xmlc.html.HTMLObjectImpl implements RepopulationHTML, 
org.enhydra.barracuda.contrib.dbroggisch.examples.xmlc.NavigationHTML, 
org.enhydra.xml.xmlc.XMLObject, org.enhydra.xml.xmlc.html.HTMLObject


If in your generated java files the former doesn't extend NavigationHTML 
and the latter doesn't implement NavigationHTML, then the XMLC plugin is 
not picking up the properties set in "Repopulation.xmlc".


I saw your follow-up message to this about the classpath and as far as that 
goes, the WAR file structure can have libraries in WEB-INF/lib which are 
picked up automatically and also have plain classes in WEB-INF/classes.  In 
your IDE, you should be putting WEB-INF/classes in your classpath and put 
*.jar in WEB-INF/lib in your classpath.

Once you figure all this out, maybe you can post your solution.  I'm sure 
it would help people out to be able to use an IDE for all this instead of 
just Ant.  Or, you could just invoke Ant via your IDE and everything should 
build like normal, I would think.  Eclipse has pretty good support for Ant, 
as far as I am aware.

One last thing, if you grabbed the pages-sample stuff which I did as a 
small rework of Diez' contrib package a while ago, you might want to grab 
the newer version that I uploaded to my ftp relatively recently (a week or 
two ago).  It has a better build and is up-to-date with, pretty much, the 
latest CVS of Barracuda.
ftp://ftp.visi.com/users/hoju/pub/


Jake


At 08:47 AM 2/17/2003 -0500, you wrote:
> > It looks to me that you don't let your xmlc-classes implement the
> > NavigationHTML interface. Thus the exception.
> >
> > Using the "normal" xmlc-task, this is controlled by the *.xmlc files
> > for all the templates:
> >
> >-implements
> >org.enhydra.barracuda.contrib.dbroggisch.examples.view.xmlc.NavigationHTML
> >
> >And obviously, this is not happening when you use your XMLC-Plugin. I
> >have no idea how that works, so you've got to figure that our for >yourself.
>
>Missing class is what the error suggests (man I was up too late :( ),
>but the plugin has built the classes in the package with that prefix
>(it works through settings contained in project properties / also
>viewable in the .xmlc file in the project's root)...  Here is the
>deployed directory:
>
>  Directory of C:\Java\Tomcat
>4.1\webapps\bp\WEB-INF\classes\org\enhydra\barracuda\contrib\dbroggisch
>\examples\view\xmlc
>
>02/17/2003  04:23 AM    <DIR>          .
>02/17/2003  04:23 AM    <DIR>          ..
>02/17/2003  04:23 AM            10,616 FileUploadHTML.class
>02/17/2003  04:23 AM             9,653 NavigationHTML.class
>02/17/2003  04:23 AM                56 options.xmlc
>02/17/2003  04:23 AM            13,655 PrefixMappingHTML.class
>02/17/2003  04:23 AM            15,885 RepopulationHTML.class
>                5 File(s)         49,865 bytes
>                2 Dir(s)   3,045,319,680 bytes free
>
>I'm wondering if perhaps these should be in a Jar, maybe they are
>outside of the classpath somehow??   (I didn't see any Ant task that
>jars them up)
>
>-Garth
>
>
>_______________________________________________
>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.