Hi Dimitris
 
If you are using a distribution-supplied Tomcat then probably the classpaths
settings for this script will be wrong.
 
Take a look at the env-server script in the same directory - this sets the
classpath.  In particular the -Djava.endorsed.dirs includes the shared
Tomcat libs, which is probably where the driver is; and most likely this
location is different to what the current env-server expects.
 
Regards
Steve
 
 
 
-----Original Message-----
From: Dimitris Gavrilis [mailto:[email protected]] 
Sent: 03 December 2010 12:37
To: [email protected]
Subject: [fcrepo-user] Problem with fedora-rebuild.sh on Linux


Hi all,

I've setup a fedora 3.4 on debian linux and everything works fine except the
rebuild script. After I get a prompt and select either options, I get the
following error:
(the database is properly setup in fedora.fcg and the feodra server works
fine)


Rebuilding...
Error: Error getting database connection

java.lang.RuntimeException: Error getting database connection
        at
org.fcrepo.server.utilities.rebuild.SQLRebuilder.getConnection(SQLRebuilder.
java:497)
        at
org.fcrepo.server.utilities.rebuild.SQLRebuilder.getDefaultConnection(SQLReb
uilder.java:482)
        at
org.fcrepo.server.utilities.rebuild.SQLRebuilder.blankExistingTables(SQLRebu
ilder.java:179)
        at
org.fcrepo.server.utilities.rebuild.SQLRebuilder.start(SQLRebuilder.java:108
)
        at
org.fcrepo.server.utilities.rebuild.Rebuild.<init>(Rebuild.java:106)
        at
org.fcrepo.server.utilities.rebuild.Rebuild.main(Rebuild.java:394)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.fcrepo.server.utilities.rebuild.cli.CLILoader.main(CLILoader.java:77)
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at
org.fcrepo.server.utilities.rebuild.SQLRebuilder.getConnection(SQLRebuilder.
java:494)


Thanks,
Dimitris.

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to