I've just started using the apache packages ECS and DBCP for servlets, 
but would like do more, of course.  Maybe I just can't find the correct 
documentation, but it seems like the fine manual, so to speak, comes in 
two categories.  One glosses over details about where to put files and 
the other assumes knowledge and familiarity which I lack, and all too 
often goes off on tangents into performance tuning instead of how to 
install and use OJB.

I've seen reference to a sample war file which is supposed to be built 
somehow, however I cannot locate it.


question #1:
thu...@arrakis:~/Desktop/db-ojb-1.0.4/lib$ sudo cp db* /usr/share/java -vi
[sudo] password for thufir: 
`db-ojb-1.0.4.jar' -> `/usr/share/java/db-ojb-1.0.4.jar'
`db-ojb-1.0.4-junit.jar' -> `/usr/share/java/db-ojb-1.0.4-junit.jar'
`db-ojb-1.0.4-src.jar' -> `/usr/share/java/db-ojb-1.0.4-src.jar'
`db-ojb-1.0.4-tools.jar' -> `/usr/share/java/db-ojb-1.0.4-tools.jar'


but there are about fifty jars in that lib directory!  I think I have 
most of them, like apache commons, ant, etc.  Surely I don't need to 
manually copy all fifty to /usr/share/java and then manually add all 
fifty or so to the "ojb" library in netbeans?


question #2:

what are the scripts for? how, when and why should you run them?

thu...@arrakis:~/Desktop/db-ojb-1.0.4/bin$ 
thu...@arrakis:~/Desktop/db-ojb-1.0.4/bin$ 
thu...@arrakis:~/Desktop/db-ojb-1.0.4/bin$ chmod 744 * 
thu...@arrakis:~/Desktop/db-ojb-1.0.4/bin$ ll
total 36
-rwxr--r-- 1 thufir thufir 398 2005-12-31 05:12 build.bat
-rwxr--r-- 1 thufir thufir 609 2005-12-31 05:12 build.sh
-rwxr--r-- 1 thufir thufir  18 2005-12-31 05:12 cp.bat
-rwxr--r-- 1 thufir thufir 398 2005-12-31 05:12 tutorial1.bat
-rwxr--r-- 1 thufir thufir 287 2005-12-31 05:12 tutorial1.sh
-rwxr--r-- 1 thufir thufir 398 2005-12-31 05:12 tutorial2.bat
-rwxr--r-- 1 thufir thufir 261 2005-12-31 05:12 tutorial2.sh
-rwxr--r-- 1 thufir thufir 380 2005-12-31 05:12 tutorial5.bat
-rwxr--r-- 1 thufir thufir 250 2005-12-31 05:12 tutorial5.sh
thu...@arrakis:~/Desktop/db-ojb-1.0.4/bin$ 
thu...@arrakis:~/Desktop/db-ojb-1.0.4/bin$ sudo build.sh 
[sudo] password for thufir: 
sudo: build.sh: command not found
thu...@arrakis:~/Desktop/db-ojb-1.0.4/bin$ ./build.sh
bash: ./build.sh: /bin/sh^M: bad interpreter: No such file or directory
thu...@arrakis:~/Desktop/db-ojb-1.0.4/bin$ 
thu...@arrakis:~/Desktop/db-ojb-1.0.4/bin$ sudo su -
r...@arrakis:~# cd /home/thufir/Desktop/db-ojb-1.0.4/bin/
r...@arrakis:/home/thufir/Desktop/db-ojb-1.0.4/bin# ./build.sh 
-su: ./build.sh: /bin/sh^M: bad interpreter: No such file or directory
r...@arrakis:/home/thufir/Desktop/db-ojb-1.0.4/bin# 
r...@arrakis:/home/thufir/Desktop/db-ojb-1.0.4/bin# 

I use bash that frequently, but I think one of those should've worked.


question #3:

The only tutorial I could at least follow was:

http://www.onjava.com/pub/a/onjava/2003/01/08/ojb.html

but it glossed over "installing" ojb.  When doing a web app from Netbeans 
and deploying WAR files to Tomcat, where do all the different 
configuration files go?

When doing a console mockup, where do the files go?

Which sample configuration file would I use for MS SQL server 2005 (not 
my choice)?  I cannot find documentation nor decipher which of the 
following would work best:

thu...@arrakis:~/Desktop/db-ojb-1.0.4/profile$ ll ms*
-rw-r--r-- 1 thufir thufir 5155 2005-12-31 05:12 msaccess.profile
-rw-r--r-- 1 thufir thufir 5294 2005-12-31 05:12 mssqldb-
JSQLConnect.profile
-rw-r--r-- 1 thufir thufir 5392 2005-12-31 05:12 mssqldb-ms.profile
-rw-r--r-- 1 thufir thufir 5345 2005-12-31 05:12 mssqldb-Opta2000.profile
-rw-r--r-- 1 thufir thufir 5290 2005-12-31 05:12 mssqldb.profile
thu...@arrakis:~/Desktop/db-ojb-1.0.4/profile$ 

I think they all say "MS SQL server" for the db type (except the access 
one).



question #4 //see q#1

I've seen reference to "installing" and "testing" OJB.  Is it not just a 
JAR to add to the classpath?

http://ojb.db.terra-intl.com/deployment.html

says that it must be built from source.  Is that out of date?

I'm going through

http://db.apache.org/ojb/docu/guides/deployment.html

but it seems a rather complex way to ship JAR files.  Or, is OJB more 
than just a JAR file?



 

thanks,

Thufir


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscr...@db.apache.org
For additional commands, e-mail: ojb-user-h...@db.apache.org

Reply via email to