LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-25-2006, 07:25 PM   #1
snowyice
LQ Newbie
 
Registered: Dec 2005
Posts: 21

Rep: Reputation: 15
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??



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:


j2ortal.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
 
Old 01-26-2006, 07:03 AM   #2
MassDosage
Member
 
Registered: Aug 2005
Location: London, UK
Distribution: Kubuntu
Posts: 75

Rep: Reputation: 15
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%)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 JDBC Driver Compatibality issue kartheekpn Linux - Software 0 12-01-2005 06:30 AM
Java JDBC driver mickeyboa Fedora 2 07-23-2005 07:53 AM
regarding jdbc driver pranith Linux - Newbie 5 01-27-2005 12:11 PM
JDBC and MySQL Driver White R4bbit Debian 2 08-13-2004 04:55 PM
help with my JDBC Driver working2hard Programming 2 07-27-2004 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration