You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Anthony Spencer <ad...@yahoo.com> on 2005/07/07 21:45:11 UTC
Error executing 'maven torque'. Xerces class not found
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
Re: Error executing 'maven torque'. Xerces class not found
Posted by Alvaro Coronel <al...@yahoo.com>.
As of me, I would really appreciate info telling where to find the jars Maven isn't able to retrieve and where to place them after that.
By the way, I am using jdk 1.4.2 in a Windows 2000 environment.
Best regards,
Álvaro Coronel.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: Error executing 'maven torque'. Xerces class not found
Posted by Anthony Spencer <ad...@yahoo.com>.
To make matters worse, it is stated that you may still
build using ANT and the build-torque.xml file that is
included in the distribution but that file isn't
actually included in the distribution at all! Of
course, my old build-torque.xml file doesn't work
either.
"If you are yet to jump aboard the Maven ship you can
download the torque-gen archive and make use of the
Ant build file build-torque.xml contained therein"
http://db.apache.org/torque/tutorial/step3.html
So I eventually did find that it existed in Torque
version 3.1. But alas, it breaks :
"BUILD FAILED
file:D:/projects/keyword/jsp/WEB-INF/build-torque.xml:207:
Resource not found. F
or more information consult the velocity log, or
invoke ant with the -debug flag"
Anyway, I'd really rather get this thing running with
maven.
--- Alvaro Coronel <al...@yahoo.com> wrote:
> Please don't misunderstand me. I am not complaining,
> I just want to share this as useful feedback for the
> folks that distribute Torque (a tool I use and like
> a lot).
>
> I had too many problems with the maven build. It
> retrieved a lot of jars by itself, but some others
> it couldn't find.
>
> Of those it couldn't find, some I found manually,
> some I wasn't able to find.
>
> Anyway, I didn't know where to put the ones I found.
> Putting them in the classpath didn't help, and maven
> wouldn't say where it was searching.
>
> I finally quit in frustration. I just wanted to use
> a more up to date torque, not to become an expert in
> maven.
>
> I could Read The Fine Material available for Maven -
> if it was accessible and clear.
> Unfortunately, there wasn't an integrated search for
> Maven docs. and I spent time trying to figure out
> where Maven's repository was without success.
>
> Since it also was inconvenient to learn a new build
> tool, unsupported by my environment, I decided to
> call it off and make do without a newer Torque
> release. After all, what I wanted to do was
> developing an app., not use Maven!
>
> I know this won't help you Anthony, but I also
> thought it would be good for the guys that work
> developing Torque how some decisions impact users
> like me.
>
>
> Best regards to everyone,
>
> Álvaro Coronel.
>
>
> Anthony Spencer <ad...@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
>
>
>
> ---------------------------------
> Sell on Yahoo! Auctions - No fees. Bid on great
items.
____________________________________________________
Sell on Yahoo! Auctions no fees. Bid on great items.
http://auctions.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
Re: Error executing 'maven torque'. Xerces class not found
Posted by Alvaro Coronel <al...@yahoo.com>.
Please don't misunderstand me. I am not complaining, I just want to share this as useful feedback for the folks that distribute Torque (a tool I use and like a lot).
I had too many problems with the maven build. It retrieved a lot of jars by itself, but some others it couldn't find.
Of those it couldn't find, some I found manually, some I wasn't able to find.
Anyway, I didn't know where to put the ones I found. Putting them in the classpath didn't help, and maven wouldn't say where it was searching.
I finally quit in frustration. I just wanted to use a more up to date torque, not to become an expert in maven.
I could Read The Fine Material available for Maven - if it was accessible and clear.
Unfortunately, there wasn't an integrated search for Maven docs. and I spent time trying to figure out where Maven's repository was without success.
Since it also was inconvenient to learn a new build tool, unsupported by my environment, I decided to call it off and make do without a newer Torque release. After all, what I wanted to do was developing an app., not use Maven!
I know this won't help you Anthony, but I also thought it would be good for the guys that work developing Torque how some decisions impact users like me.
Best regards to everyone,
Álvaro Coronel.
Anthony Spencer <ad...@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
---------------------------------
Sell on Yahoo! Auctions - No fees. Bid on great items.
Re: Error executing 'maven torque'. Xerces class not found
Posted by Anthony Spencer <ad...@yahoo.com>.
I deserved the sarcasm. I had an old jar of my
project in the classpath causing BasePeer to be
overridden. I wish my IDE would warn me when there
are more than one copy of a class in the classpath.
--- Scott Eade <se...@backstagetech.com.au> wrote:
> Look in BaseAddressPeer:
> public abstract class BaseAddressPeer extends
> _BasePeer_
>
> What do you know, BasePeer includes:
> protected static Log log =
> LogFactory.getLog(BasePeer.class);
>
> Scott
>
>
>
---------------------------------------------------------------------
> 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
Re: Error executing 'maven torque'. Xerces class not found
Posted by Scott Eade <se...@backstagetech.com.au>.
Look in BaseAddressPeer:
public abstract class BaseAddressPeer extends _BasePeer_
What do you know, BasePeer includes:
protected static Log log = LogFactory.getLog(BasePeer.class);
Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
Re: Error executing 'maven torque'. Xerces class not found
Posted by Anthony Spencer <ad...@yahoo.com>.
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 <fi...@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 <ad...@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 <ad...@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 <ad...@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
Re: Error executing 'maven torque'. Xerces class not found
Posted by Thomas Fischer <fi...@seitenbau.net>.
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 <ad...@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 <ad...@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 <ad...@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
Re: Error executing 'maven torque'. Xerces class not found
Posted by Anthony Spencer <ad...@yahoo.com>.
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 <ad...@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 <ad...@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
Re: Error executing 'maven torque'. Xerces class not found
Posted by Anthony Spencer <ad...@yahoo.com>.
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 <ad...@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