LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Maven can't find my JDBC driver! help.. urgent (https://www.linuxquestions.org/questions/linux-software-2/maven-cant-find-my-jdbc-driver-help-urgent-408007/)

snowyice 01-25-2006 07:25 PM

Maven can't find my JDBC driver! help.. urgent
 
hi ppl,

Can anyone one help me to solve this problem.. pls!! i really needed help badly..

When i am using maven command in jetspeed2...

I try: maven allClean allBuild
SUCESS

Final stage: maven j2:quickStart
FAILED.
Class Not Found: JDBC driver com.mysql.jdbc.Driver could

WHy??

:cry:

I have place my JDBC driver in tomcat_home/shared/lib
then i have edit my project.properties..

Help me pls..

here is the print out.

C:\FYPJ\Apache_Jetspeed_2.0>maven j2:quickStart
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2

build:start:

j2:quickStart:
j2:doStart:
j2:_check.required.properties:
j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:


j2:portal.conf.sql:
[delete] Deleting directory C:\FYPJApache_Jetspeed_2.0org.apache.jetspeed.po
rtal.groupId=org.apache.portals.jetspeed-2\target\portal-sql
[mkdir] Created dir: C:\FYPJApache_Jetspeed_2.0org.apache.jetspeed.portal.gr
oupId=org.apache.portals.jetspeed-2\target\portal-sql
[copy] Copying 3 files to C:\FYPJApache_Jetspeed_2.0org.apache.jetspeed.port
al.groupId=org.apache.portals.jetspeed-2\target\portal-sql
[copy] Copying C:\Documents and Settings\Xue bin\.maven\cache\maven-jetspeed
2-plugin-2.0\plugin-resources\sql\drop.sql to C:\FYPJApache_Jetspeed_2.0org.apac
he.jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql\drop.
sql
[copy] Copying C:\Documents and Settings\Xue bin\.maven\cache\maven-jetspeed
2-plugin-2.0\plugin-resources\sql\populate-db-default.sql to C:\FYPJApache_Jetsp
eed_2.0org.apache.jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\p
ortal-sql\populate-db-default.sql
[copy] Copying C:\Documents and Settings\Xue bin\.maven\cache\maven-jetspeed
2-plugin-2.0\plugin-resources\sql\populate-userinfo-for-default-psml.sql to C:\F
YPJApache_Jetspeed_2.0org.apache.jetspeed.portal.groupId=org.apache.portals.jets
peed-2\target\portal-sql\populate-userinfo-for-default-psml.sql
j2:_set.rdbms.props:

j2:_generate.sql:
[echo] Using Torque schema located under: C:\Documents and Settings\Xue bin/
.maven/cache/maven-jetspeed2-plugin-2.0/plugin-resources/schema
torque:init:

[echo] Generating SQL schema creation scripts for mysql
[mkdir] Created dir: C:\FYPJApache_Jetspeed_2.0org.apache.jetspeed.portal.gr
oupId=org.apache.portals.jetspeed-2\target\portal-sql\mysql\schema
[torque-sql] Using classpath
[torque-sql] Generating to file C:\FYPJApache_Jetspeed_2.0org.apache.jetspee
d.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql\mysql\schema\re
port.portal.sql.generation

j2:_copy.rdbms.sql.scripts:
[copy] Copying 3 files to C:\FYPJApache_Jetspeed_2.0org.apache.jetspeed.port
al.groupId=org.apache.portals.jetspeed-2\target\portal-sql\mysql
[copy] Copying C:\Documents and Settings\Xue bin\.maven\cache\maven-jetspeed
2-plugin-2.0\plugin-resources\sql\mysql\populate-entities-for-default-psml.sql t
o C:\FYPJApache_Jetspeed_2.0org.apache.jetspeed.portal.groupId=org.apache.portal
s.jetspeed-2\target\portal-sql\mysql\populate-entities-for-default-psml.sql
[copy] Copying C:\Documents and Settings\Xue bin\.maven\cache\maven-jetspeed
2-plugin-2.0\plugin-resources\sql\mysql\drop.sql to C:\FYPJApache_Jetspeed_2.0or
g.apache.jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql
\mysql\drop.sql
[copy] Copying C:\Documents and Settings\Xue bin\.maven\cache\maven-jetspeed
2-plugin-2.0\plugin-resources\sql\mysql\populate-userinfo-for-default-psml.sql t
o C:\FYPJApache_Jetspeed_2.0org.apache.jetspeed.portal.groupId=org.apache.portal
s.jetspeed-2\target\portal-sql\mysql\populate-userinfo-for-default-psml.sql

BUILD FAILED
File...... C:\Documents and Settings\Xue bin\.maven\cache\maven-jetspeed2-plugin
-2.0\plugin.jelly
Element... sql
Line...... 839
Column.... 44
Class Not Found: JDBC driver com.mysql.jdbc.Driver could not be loaded
Total time: 6 seconds
Finished at: Thu Jan 26 09:19:48 PST 2006

With lots of luv,
Snowyice

MassDosage 01-26-2006 07:03 AM

I don't know anything about maven or jetspeed but... is the jar containing the driver on your classpath when you run the maven command (i.e. regardless of where it is in tomcat, is it in your local environment classpath)?

echo $CLASSPATH to see (that's on Linux, I see you're using windows so I guess its something like echo %CLASSPATH%)


All times are GMT -5. The time now is 10:46 PM.