What does your project.xml look like?
Which version of maven are you running?
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
Brent Hale <[EMAIL PROTECTED]> wrote on 27/08/2003 03:54:13 AM:
> Hi,
>
> I'm trying to use the Castor plugin for maven. I currently have a
> maven.xml file that looks like this:
>
> <project
> default="build"
> xmlns:j="jelly:core"
> xmlns:maven="jelly:maven"
> xmlns:u="jelly:util"
> xmlns:castor="jelly:castor"
>
> xmlns:velocity="jelly:org.apache.commons.jelly.tags.velocity.
> VelocityTagLibrary">
>
> <!--
|
| D E F A U L T S U B P R O J E C T G O A L
>
|
-->
> <goal
> name="build"
> description="Builds the QBFC-Castor bridge library.">
>
> <!-- Build the jar and install it in the local repository -->
> <attainGoal name="jar:install"/>
> </goal>
>
> <preGoal name="java:compile">
> <attainGoal name="castor:prepare-filesystem"/>
> <castor:generate schema="src/conf/${qbxml.schema.file}"
> package="com.evnt.qbfccastor"
> types="j2"/>
> </preGoal>
> </project>
>
>
> When I run maven on it I get a the following:
>
> java.lang.ClassNotFoundException: castor
> at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at
> org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:10
> 39)
> <snip>
>
> If I take out the following line:
>
> xmlns:castor="jelly:castor" (which I don't think I should need)
>
> then I get following:
>
> Fatal Error [line 25, row 41]: The prefix "castor" for element
> "castor:generate" is not bound.
> An XML error occurred parsing the file
> 'C:\dev\projects\qbfccastor\maven.xml' plugin
> org.xml.sax.SAXParseException: The prefix "castor" for element
> "castor:generate" is not bound.
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
>
org.apache.maven.plugin.PluginCacheManager.parse(PluginCacheManager.java:361)
> <snip>
>
> Can someone point me in the right direction?
>
> Thanks,
> Brent
>
>
> --
> Brent Hale
> Fishbowl Inventory
> www.fishbowlinventory.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>