db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Spencer <adspen...@yahoo.com>
Subject Re: Error executing 'maven torque'. Xerces class not found
Date Fri, 08 Jul 2005 12:02:50 GMT
Yeah, I have commons-logging-1.04.jar in the classpath
of the compiler.  For example, I have a table called
Address.  The torque generator creates a file called
BaseAddressPeer and logs errors like the example
below.  However the Log class is not included and is
not declared in the generated file.

--- Thomas Fischer <fischer@seitenbau.net> wrote:

> 
> 
> 
> 
> Hi,
> 
> you have to include the classes the runtime torque
> depends on in the
> classpath of the compiler.
> In the case of the class Log, it's
> commons-logging.jar
> 
>        Thomas
> 
> Anthony Spencer <adspencer@yahoo.com> schrieb am
> 08.07.2005 04:36:36:
> 
> > One step closer:
> > I am finally building successfully.  I deleted my
> > build.properties file and the build succeeded.
> >
> > Now, I just can't compile the project due to lines
> > like these:
> >
> >   log.error("Could not initialize Peer", e);
> >
> > What is log and why is it not defined in the Base
> > classes?
> >
> >
> > --- Anthony Spencer <adspencer@yahoo.com> wrote:
> >
> > > Ok, I managed to move past this error by
> > > uninstalling
> > > maven, reinstalling the most stable version (I
> > > accidently chose the beta version in the first
> > > attempt), and set my own repository path.
> > >
> > > Now I receive the following error:
> > >
> > > BUILD FAILED
> > > File...... C:\Documents and
> > >
> Settings\tspencer\.maven\cache\maven-torque-plugin-3
> > > .1.1\plugin.jelly
> > > Element... torque-sql
> > > Line...... 182
> > > Column.... 49
> > > Resource not found. For more information consult
> the
> > > velocity log, or invoke ant
> > >  with the -debug flag.
> > >
> > > Line 182 is:
> > >           templatePath="${torque.templatePath}">
> > >
> > > Any help is greatly appreciated.  My
> understanding
> > > from the documentation in Torque is that the
> > > templates
> > > are stored in the jar and would be generated for
> me.
> > >
> > > Tony
> > >
> > >
> > > --- Anthony Spencer <adspencer@yahoo.com> wrote:
> > >
> > > > I am upgrading from an old version of Torque
> to
> > > the
> > > > latest stable release.  So I've always used
> ANT to
> > > > build my object model.  I installed maven and
> > > > downloaded the maven torque plugin per the
> > > > documentation.  However, when I execute 'maven
> > > > torque'
> > > > I get the following error:
> > > >
> > > > BUILD FAILED
> > > > File...... C:\Documents and
> > > >
> > >
> Settings\tspencer\.maven\cache\maven-torque-plugin-3
> > > > .1.1\plugin.jelly
> > > > Element... taskdef
> > > > Line...... 87
> > > > Column.... -1
> > > > taskdef A class needed by class
> > > > org.apache.torque.task.TorqueJDBCTransformTask
> c
> > > > annot be found:
> > > > org/apache/xerces/dom/CoreDocumentImpl
> > > >
> > > > I have all the Torque dependencies in my
> classpath
> > > > including xercesImpl-2.4.0.jar.
> > > >
> > > > Running:
> > > > JDK 1.4.2
> > > > Torque 3.1.1
> > > >
> > > > Any help GREATLY appreciated.
> > > >
> > > > Tony - Maven newbie
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > > protection around
> > > > http://mail.yahoo.com
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > torque-user-unsubscribe@db.apache.org
> > > > For additional commands, e-mail:
> > > > torque-user-help@db.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail - Find what you need with new
> enhanced
> > > search.
> > > http://info.mail.yahoo.com/mail_250
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > torque-user-unsubscribe@db.apache.org
> > > For additional commands, e-mail:
> > > torque-user-help@db.apache.org
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> torque-user-unsubscribe@db.apache.org
> > For additional commands, e-mail:
> torque-user-help@db.apache.org
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail:
> torque-user-help@db.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message