Re: [Dspace-tech] Another Ant fresh_install error: Bad Packet Type

2008-07-23 Thread Rebekah Burke
Ok, I'm still having problems..

It turned out that my network admin had installed Oracle 10.2.0.1.0 but told
me he'd installed the latest 11g.

I amended my dspace source to suit - edited back the pom.xml file to look
for 10g drivers by default, downloaded the oracle 10g ojdbc14.jar. During
this I had to download JDK1.5 to replace my 1.6 as ojdbc14 doesn't work with
1.6.

All was going well - the maven installation went fine, though I had to
manually install:install-file ojdbc14.jar.

Then onto the ant fresh_install.. and AGAIN I get this error.

Can anybody help? At this stage I am having so much trouble with Dspace that
I am considering just abandoning the project.

[EMAIL PROTECTED]
:/home/rburke/dspace-1.5.0-release/dspace/target/dspace-1.5.0-build
.dir$ ant fresh_install
Buildfile: build.xml

init_installation:

init_configs:
 [copy] Copying 42 files to
/usr/local/apache-tomcat-6.0.16/webapps/dspace/config

setup_database:
 [java] 2008-07-23 16:42:04,719 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configuration): config/dspace.cfg
 [java] 2008-07-23 16:42:04,728 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided log
configuration,if uninitended, check your dspace.cfg for (log.init.config)
 [java] 2008-07-23 16:42:04,729 INFO
org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
 [java] 2008-07-23 16:42:04,907 FATAL
org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
 [java] java.sql.SQLException: Io exception: Bad packet type
 [java] at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
 [java] at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
 [java] at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
 [java] at
oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
 [java] at
oracle.jdbc.driver.PhysicalConnection.init(PhysicalConnection.java:420)
 [java] at
oracle.jdbc.driver.T4CConnection.init(T4CConnection.java:165)
 [java] at
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
 [java] at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:525)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:171)
 [java] at
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:48)
 [java] at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
 [java] at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
 [java] at
org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:175)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:525)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:193)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:514)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:869)
 [java] at
org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:100)

BUILD FAILED
/home/rburke/dspace-1.5.0-release/dspace/target/dspace-1.5.0-build.dir/build.xml:380:
Java returned: 1

Total time: 1 second


On Mon, Jul 21, 2008 at 4:28 PM, Rebekah Burke [EMAIL PROTECTED]
wrote:

 Thanks for that Graham. I took away the ojdbc14.jar, used install-file on
 ojdb6, changed the pom.xml file to have ojdbc6 instead of 14, but got a
 Maven error like this when building dspace:

 [INFO] Error building POM (may not be this project's POM).

 Project ID: org.dspace:dspace
 POM Location: /home/rburke/dspace-1.5.0-release/dspace/pom.xml
 Validation Messages:

 [0]  'dependencies.dependency.version' is missing for com.oracle:ojdbc6


 So, in the pom.xml file, inside this block:

 dependency
groupIdcom.oracle/groupId
artifactIdojdbc6/artifactId
 /dependency

 I added this:

version11.1.0.6.0/version.


 This worked. Now when I use ant fresh_install, I'm still getting a similar,
 but slightly different error to before:

 setup_database:
  [java] 2008-07-21 16:29:29,642 INFO
 org.dspace.core.ConfigurationManager @ Loading system provided config
 property (-Ddspace.configuration): config/dspace.cfg
  [java] 2008-07-21 16:29:29,648 INFO
 org.dspace.core.ConfigurationManager @ Using default log4j provided log
 configuration,if uninitended, check your dspace.cfg for (log.init.config)
  [java] 2008-07-21 16:29:29,648 INFO
 org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
  [java] 2008-07-21 16:29:29,920 FATAL
 org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
  [java

[Dspace-tech] Another Ant fresh_install error: Bad Packet Type

2008-07-21 Thread Rebekah Burke
Hi all,

I am on step 7, the ant fresh_install step, of installing Dspace 1.5 from
the PDF manual, using Oracle 11g on Debian Linux.

I am receiving this Bad Packet Type java error when I run ant
fresh_install..




[EMAIL 
PROTECTED]:/home/rburke/dspace-1.5.0-release/dspace/target/dspace-1.5.0-build.dir$
ant fr
esh_install
Buildfile: build.xml

init_installation:

init_configs:
 [copy] Copying 1 file to
/usr/local/apache-tomcat-6.0.16/webapps/dspace/config

setup_database:
 [java] 2008-07-21 15:21:06,909 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configuration): config/dspace.cfg
 [java] 2008-07-21 15:21:06,915 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided log
configuration,if uninitended, check your dspace.cfg for (log.init.config)
 [java] 2008-07-21 15:21:06,915 INFO
org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
 [java] 2008-07-21 15:21:07,098 FATAL
org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
 [java] java.sql.SQLException: Io exception: Bad packet type
 [java] at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
 [java] at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
 [java] at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
 [java] at
oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
 [java] at
oracle.jdbc.driver.PhysicalConnection.init(PhysicalConnection.java:420)
 [java] at
oracle.jdbc.driver.T4CConnection.init(T4CConnection.java:165)
 [java] at
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
 [java] at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:582)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:185)
 [java] at
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:48)
 [java] at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
 [java] at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
 [java] at
org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:175)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:582)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:207)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:514)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:869)
 [java] at
org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:100)

BUILD FAILED
/home/rburke/dspace-1.5.0-release/dspace/target/dspace-1.5.0-build.dir/build.xml:380:
Java returned: 1



I can't find anything about this in relation to Dspace online. It seems to
be something to do with the OJDBC drivers. Can anybody help?

Regards,
Rebekah
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Another Ant fresh_install error: Bad Packet Type

2008-07-21 Thread Rebekah Burke
I've got ojbc6.jar, to correspond with my java version.

While building the project with Maven I got an error saying that I'd need to
manually download ojdbc14.jar too, so I did that, and stuck it in my
dspace-source/lib folder.

However, looking at my [dspace-source]/dspace/target/dspace-1.5.0-build.dir/
directory, in the lib folder there it only shows ojdbc14-10.2.0.2.0.jar ...
So I copied ojdbc6.jar in there to see if it would fix the error, but got
nothing.

I know that's a bit of a messy explanation, let me know if I can clarify
anything. Any ideas?

Thanks,
Rebekah



 On Mon, Jul 21, 2008 at 3:29 PM, Graham Triggs [EMAIL PROTECTED]
 wrote:

 Sounds like you might have a wonky ojdbc jar.

 What version is it?

 Can you try replacing it with the latest version downloaded from Oracle?

 G

 Rebekah Burke wrote:

 Hi all,

 I am on step 7, the ant fresh_install step, of installing Dspace 1.5 from
 the PDF manual, using Oracle 11g on Debian Linux.

 I am receiving this Bad Packet Type java error when I run ant
 fresh_install..




 [EMAIL 
 PROTECTED]:/home/rburke/dspace-1.5.0-release/dspace/target/dspace-1.5.0-build.dir$
 ant fr
 esh_install
 Buildfile: build.xml

 init_installation:

 init_configs:
 [copy] Copying 1 file to
 /usr/local/apache-tomcat-6.0.16/webapps/dspace/config

 setup_database:
 [java] 2008-07-21 15:21:06,909 INFO
  org.dspace.core.ConfigurationManager @ Loading system provided config
 property (-Ddspace.configuration): config/dspace.cfg
 [java] 2008-07-21 15:21:06,915 INFO
  org.dspace.core.ConfigurationManager @ Using default log4j provided log
 configuration,if uninitended, check your dspace.cfg for (log.init.config)
 [java] 2008-07-21 15:21:06,915 INFO
  org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
 [java] 2008-07-21 15:21:07,098 FATAL
 org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
 [java] java.sql.SQLException: Io exception: Bad packet type
 [java] at
 oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
 [java] at
 oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
 [java] at
 oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
 [java] at
 oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
 [java] at
 oracle.jdbc.driver.PhysicalConnection.init(PhysicalConnection.java:420)
 [java] at
 oracle.jdbc.driver.T4CConnection.init(T4CConnection.java:165)
 [java] at
 oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
 [java] at
 oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
 [java] at
 java.sql.DriverManager.getConnection(DriverManager.java:582)
 [java] at
 java.sql.DriverManager.getConnection(DriverManager.java:185)
 [java] at
 org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:48)
 [java] at
 org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
 [java] at
 org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
 [java] at
 org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:175)
 [java] at
 java.sql.DriverManager.getConnection(DriverManager.java:582)
 [java] at
 java.sql.DriverManager.getConnection(DriverManager.java:207)
 [java] at
 org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:514)
 [java] at
 org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:869)
 [java] at
 org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:100)

 BUILD FAILED
 /home/rburke/dspace-1.5.0-release/dspace/target/dspace-1.5.0-build.dir/build.xml:380:
 Java returned: 1



 I can't find anything about this in relation to Dspace online. It seems
 to be something to do with the OJDBC drivers. Can anybody help?

 Regards,
 Rebekah



 

 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/


 

 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech


 This email has been scanned by Postini.
 For more information please visit http://www.postini.com



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build

Re: [Dspace-tech] Another Ant fresh_install error: Bad Packet Type

2008-07-21 Thread Rebekah Burke
Thanks for that Graham. I took away the ojdbc14.jar, used install-file on
ojdb6, changed the pom.xml file to have ojdbc6 instead of 14, but got a
Maven error like this when building dspace:

[INFO] Error building POM (may not be this project's POM).

Project ID: org.dspace:dspace
POM Location: /home/rburke/dspace-1.5.0-release/dspace/pom.xml
Validation Messages:

[0]  'dependencies.dependency.version' is missing for com.oracle:ojdbc6


So, in the pom.xml file, inside this block:

dependency
   groupIdcom.oracle/groupId
   artifactIdojdbc6/artifactId
/dependency

I added this:

   version11.1.0.6.0/version.


This worked. Now when I use ant fresh_install, I'm still getting a similar,
but slightly different error to before:

setup_database:
 [java] 2008-07-21 16:29:29,642 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configuration): config/dspace.cfg
 [java] 2008-07-21 16:29:29,648 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided log
configuration,if uninitended, check your dspace.cfg for (log.init.config)
 [java] 2008-07-21 16:29:29,648 INFO
org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
 [java] 2008-07-21 16:29:29,920 FATAL
org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
 [java] java.sql.SQLRecoverableException: Io exception: Bad packet type
 [java] at
oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101)
 [java] at
oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
 [java] at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
 [java] at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
 [java] at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:458)
 [java] at
oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
 [java] at
oracle.jdbc.driver.PhysicalConnection.init(PhysicalConnection.java:490)
 [java] at
oracle.jdbc.driver.T4CConnection.init(T4CConnection.java:202)
 [java] at
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
 [java] at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:465)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:582)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:185)
 [java] at
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:48)
 [java] at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
 [java] at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
 [java] at
org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:175)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:582)
 [java] at
java.sql.DriverManager.getConnection(DriverManager.java:207)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:514)
 [java] at
org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:869)
 [java] at
org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:100)



On Mon, Jul 21, 2008 at 3:54 PM, Graham Triggs [EMAIL PROTECTED]
wrote:

 You need to remove the ojdbc14 jar, and only have the ojdbc6 jar.

 The best thing to do is to edit the dspace-parent pom.xml, and change the
 version number on the ojdbc dependency.

 Oracle drivers aren't distributed as part of the Maven repo normally, so
 you will likely have to manually 'install' it into your local Maven using
 the install:install-file command:

 http://maven.apache.org/plugins/maven-install-plugin/usage.html

 Rebekah Burke wrote:

 I've got ojbc6.jar, to correspond with my java version.

 While building the project with Maven I got an error saying that I'd need
 to manually download ojdbc14.jar too, so I did that, and stuck it in my
 dspace-source/lib folder.

 However, looking at my
 [dspace-source]/dspace/target/dspace-1.5.0-build.dir/ directory, in the lib
 folder there it only shows ojdbc14-10.2.0.2.0.jar ... So I copied ojdbc6.jar
 in there to see if it would fix the error, but got nothing.

 I know that's a bit of a messy explanation, let me know if I can clarify
 anything. Any ideas?

 Thanks,
 Rebekah

 On Mon, Jul 21, 2008 at 3:29 PM, Graham Triggs [EMAIL PROTECTED]mailto:
 [EMAIL PROTECTED] wrote:

Sounds like you might have a wonky ojdbc jar.

What version is it?

Can you try replacing it with the latest version downloaded from
 Oracle?

G

Rebekah Burke wrote:

Hi all,

I am on step 7, the ant fresh_install step, of installing Dspace
1.5 from the PDF manual, using Oracle 11g on Debian Linux.

I am

Re: [Dspace-tech] Ant Errors when installing Dspace with Oracle

2008-07-16 Thread Rebekah Burke
Hi, I have tried many different settings for me db.url now. I am still
getting this error.

Could it be a problem with my classpath? The java.lang.NoClassDefFoundError
makes me think it might be a classpath issue, but I don't know what could be
wrong. I have tried it with the CLASSPATH environment variable set to my
JAVA_HOME directory, and with it set to the dspace directory.. is that
right?

Regards,
Rebekah

On Thu, Jul 10, 2008 at 7:17 AM, Gagan mandayam [EMAIL PROTECTED]
wrote:

 Hi Rebekah

 Maybe ur DB values were not properly given; Try these::

 1--db.driver = oracle.jdbc.driver.OracleDriver
 2--db.url = jdbc:oracle:thin:@localhost:1521:xe
 (your URL path had some missing stuff, like the colon after 'thin';
  check this out carefully! in my case, 'xe' is the Oracle Express edition);
 Hope it woks then; All the best :-)

 Rebekah Burke wrote:

 Hi all,

 I've searched and searched but cannot find a solution to my problem.

 I am installing DSpace on Debian Linux with Tomcat 6. It's using an Oracle
 11g server which is sitting on a seperate Solaris server.

 I get this error when I run ant fresh_install for dspace:

 Buildfile: build.xml

 init_installation:

 init_configs:

 setup_database:
 [java] Exception in thread main java.lang.NoClassDefFoundError:
 org/dspace/storage/rdbms/InitializeDatabase
 [java] Caused by: java.lang.ClassNotFoundException:
 org.dspace.storage.rdbms.InitializeDatabase
 [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 [java] at java.security.AccessController.doPrivileged(Native
 Method)
 [java] at
 java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 [java] at
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 [java] at
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)



 It looks like the oracle jdbc driver is not being found..? I have put the
 driver in my dspace folder, in a folder called lib (which I had to create as
 there was no lib folder there initially..).

 Here is an extract from the database section of my dspace.cfg file, maybe
 there is something wrong here..?

 # DSpace installation directory
 dspace.dir =/usr/local/apache-tomcat-6.0.16/webapps/dspace

 # DSpace base URL.  Include port number etc., but NOT trailing slash
 # Change to xmlui if you wish to use the xmlui as the default, or remove
 # /jspui and set webapp of your choice as the ROOT webapp in
 # the servlet engine.
 dspace.url = http://10.209.3.21:8080/dspace

 # DSpace host name - should match base URL.  Do not include port number
 dspace.hostname = http://10.209.3.21/

 # Name of the site
 dspace.name http://dspace.name = Qualitative Data Archive

 # Database settings #

 # Database name (oracle, or postgres)
 #db.name http://db.name = ${default.db.name http://default.db.name}
 #db.name http://db.name = postgres
 db.name http://db.name = oracle

 # URL for connecting to database
 #db.url = ${default.db.url}
 #db.url = jdbc:postgresql://localhost:5432/dspace
 db.url = jdbc:oracle:thin@//10.209.2.40/dspace http://10.209.2.40/dspace
 

 # JDBC Driver
 #db.driver = ${default.db.driver}
 #db.driver = org.postgresql.Driver
 db.driver = oracle.jdbc.OracleDriver

 # Database username and password
 db.username = dspace
 db.password = edited out for mailing list :)
 #db.username = dspace
 #db.password = dspace



 Any help you could give would be greatly appreciated.
 Thanks,
 Rebekah

 

 -
 Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
 Studies have shown that voting for your favorite open source project,
 along with a healthy diet, reduces your potential for chronic lameness
 and boredom. Vote Now at http://www.sourceforge.net/community/cca08
 

 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech



 *DISCLAIMER STATEMENT*

  Save a tree. don't print this email or any documents unless you
 really need to

 *Confidentiality Warning : This e-mail and any files transmitted along with
 it are for the sole use of the intended recipient(s) and may contain
 confidential and privileged information. If you are not the intended
 recipient, you are hereby notified that any review, re-transmission,
 conversion to hard copy, copying, circulation or other use of this message
 and any attachments is strictly prohibited. If you are not the intended
 recipient, please notify the sender immediately by return e-mail, and
 destroy the original message along with all copies of the same and any
 attachments, from your

[Dspace-tech] Ant Errors when installing Dspace with Oracle

2008-07-09 Thread Rebekah Burke
Hi all,

I've searched and searched but cannot find a solution to my problem.

I am installing DSpace on Debian Linux with Tomcat 6. It's using an Oracle
11g server which is sitting on a seperate Solaris server.

I get this error when I run ant fresh_install for dspace:

Buildfile: build.xml

init_installation:

init_configs:

setup_database:
 [java] Exception in thread main java.lang.NoClassDefFoundError:
org/dspace/storage/rdbms/InitializeDatabase
 [java] Caused by: java.lang.ClassNotFoundException:
org.dspace.storage.rdbms.InitializeDatabase
 [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 [java] at java.security.AccessController.doPrivileged(Native
Method)
 [java] at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 [java] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 [java] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)



It looks like the oracle jdbc driver is not being found..? I have put the
driver in my dspace folder, in a folder called lib (which I had to create as
there was no lib folder there initially..).

Here is an extract from the database section of my dspace.cfg file, maybe
there is something wrong here..?

# DSpace installation directory
dspace.dir =/usr/local/apache-tomcat-6.0.16/webapps/dspace

# DSpace base URL.  Include port number etc., but NOT trailing slash
# Change to xmlui if you wish to use the xmlui as the default, or remove
# /jspui and set webapp of your choice as the ROOT webapp in
# the servlet engine.
dspace.url = http://10.209.3.21:8080/dspace

# DSpace host name - should match base URL.  Do not include port number
dspace.hostname = http://10.209.3.21/

# Name of the site
dspace.name = Qualitative Data Archive

# Database settings #

# Database name (oracle, or postgres)
#db.name = ${default.db.name}
#db.name = postgres
db.name = oracle

# URL for connecting to database
#db.url = ${default.db.url}
#db.url = jdbc:postgresql://localhost:5432/dspace
db.url = jdbc:oracle:thin@//10.209.2.40/dspace

# JDBC Driver
#db.driver = ${default.db.driver}
#db.driver = org.postgresql.Driver
db.driver = oracle.jdbc.OracleDriver

# Database username and password
db.username = dspace
db.password = edited out for mailing list :)
#db.username = dspace
#db.password = dspace



Any help you could give would be greatly appreciated.
Thanks,
Rebekah
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech