you need to specify the path with / instead of \ (or you can use \\).

ie:
org.apache.jetspeed.server.home = D:/Program Files/tomcat5.0
org.apache.jetspeed.production.jdbc.drivers.path=D:/Program
Files/maven-1.0/lib/mysql-connector-java-3.0.10-stable-bin.jar

You probably shouldn't put that JAR into the maven installation -
instead, point to a copy in your local repository, for example.

- Brett

On Wed, 10 Nov 2004 07:21:05 -0800 (PST), nafise hassani
<[EMAIL PROTECTED]> wrote:
> yes i have project.xml and i define my sql driver as a dependency in it but I 
> get previously error yet
> 
> "Haile, Mussie" <[EMAIL PROTECTED]> wrote:you don't need to add the jdbc 
> driver in your class path, you can declare it
> as a maven dependency. Do you have project.xml? If you do you need to add
> the following to it:
> 
> 
> mysql
> 
> 
> mysql-connector-java
> 3.0.10-stable-bin
> 
> If you don't you project.xml should be part of your directory structure
> 
> license.txt
> project.xml
> maven.xml
> project.properties
> src
> 
> -----Original Message-----
> From: nafise hassani [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 10, 2004 9:47 AM
> To: [EMAIL PROTECTED]
> Subject: Re: jdbc driver error
> 
> I don't know how can I specify the classpath in maven???
> how can I say the maven that where my classpath is???
> please help
> 
> Alan Chiang wrote:
> Perhaps Maven doesn't like spaces (eg "Program Files"). Perhaps you
> should also try adding it in your class path.
> 
> AC
> 
> On Wed, 10 Nov 2004 05:46:24 -0800 (PST), nafise hassani
> wrote:
> > I really don'nt know why maven can't find my "mysql" driver
> > I put this driver in these palces:%user.home% and also in D:\Program
> Files\maven-1.0\lib\mysql-connector-java-3.0.10-stable-bin.jar
> >
> > my pc belongs to a local network with proxy server url=192.168.0.1
> > and mysql server run on anoyher pc with url=192.168.0.120
> > ***my "build.properties" :
> >
> > # jetspeed 2 home required for build
> > org.apache.jetspeed.project.home = D:\Program
> Files\jakarta-jetspeed-2
> > # jetspeed required properties
> > org.apache.jetspeed.server.home = D:\Program Files\tomcat5.0
> > org.apache.jetspeed.catalina.version.major = 5
> > org.apache.jetspeed.server.shared =
> ${org.apache.jetspeed.server.home}/shared/lib
> > org.apache.jetspeed.deploy.war.dir =
> ${org.apache.jetspeed.server.home}/webapps
> > org.apache.jetspeed.services.autodeployment.user = j2deployer
> > org.apache.jetspeed.services.autodeployment.password = j2deployer
> > # jetspeed db build properties example for Hsqldb
> > # Override the database connection and driverproperties in your
> > ${USER_HOME}/build.properties appropriately
> > # See:
> > # http://portals.apache.org/jetspeed-2/database.html
> > #org.apache.jetspeed.test.database.default.name=mysql
> > org.apache.jetspeed.test.database.url =
> jdbc:mysql://192.168.0.120:3306/j2test
> > org.apache.jetspeed.test.database.driver = com.mysql.jdbc.driver
> > org.apache.jetspeed.test.database.user =root
> > org.apache.jetspeed.test.database.password =
> > org.apache.jetspeed.test.jdbc.drivers.path=D:\Program
> > Files\maven-1.0\lib\mysql-connector-java-3.0.10-stable-bin.jar
> > org.apache.jetspeed.test.database.default.name=mysql
> > #org.apache.jetspeed.test.database.ojb.platform=Hsqldb
> > org.apache.jetspeed.production.database.url =
> jdbc:mysql://192.168.0.120:3306/j2
> > org.apache.jetspeed.production.database.driver =
> com.mysql.jdbc.driver
> > org.apache.jetspeed.production.database.user =root
> > org.apache.jetspeed.production.database.password =
> > org.apache.jetspeed.production.jdbc.drivers.path=D:\Program
> > Files\maven-1.0\lib\mysql-connector-java-3.0.10-stable-bin.jar
> > org.apache.jetspeed.production.database.default.name=mysql
> > #org.apache.jetspeed.production.database.ojb.platform=Hsqldb
> > maven.proxy.host=192.168.0.1
> > maven.proxy.port=4480
> > org.apache.jetspeed.fusion=true
> >
> > **what I get:
> >
> > D:\Program Files\jakarta-jetspeed-2>maven db.execute
> > __ __
> > | \/ |__ _Apache__ ___
> > | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> > |_| |_\__,_|\_/\___|_||_| v. 1.0
> >
> > BUILD FAILED
> > File...... D:\Program Files\jakarta-jetspeed-2\maven.xml
> > Element... sql
> > Line...... 355
> > Column.... 39
> > Class Not Found: JDBC driver could not be loaded
> > Total time: 3 seconds
> > Finished at: Wed Nov 10 17:04:59 IRST 2004
> >
> > any suggestion???
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Check out the new Yahoo! Front Page. www.yahoo.com
> >
> 
> ---------------------------------
> Do you Yahoo!?
> Check out the new Yahoo! Front Page. www.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------
> Do you Yahoo!?
>  Check out the new Yahoo! Front Page. www.yahoo.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to