is OJB a JAR, and other newbie questions

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

is OJB a JAR, and other newbie questions

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:
thufir@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?

thufir@arrakis:~/Desktop/db-ojb-1.0.4/bin$ chmod 744 *
thufir@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
-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
-rwxr--r-- 1 thufir thufir 398 2005-12-31 05:12 tutorial2.bat
-rwxr--r-- 1 thufir thufir 261 2005-12-31 05:12
-rwxr--r-- 1 thufir thufir 380 2005-12-31 05:12 tutorial5.bat
-rwxr--r-- 1 thufir thufir 250 2005-12-31 05:12
thufir@arrakis:~/Desktop/db-ojb-1.0.4/bin$ sudo
[sudo] password for thufir:
sudo: command not found
thufir@arrakis:~/Desktop/db-ojb-1.0.4/bin$ ./
bash: ./ /bin/sh^M: bad interpreter: No such file or directory
thufir@arrakis:~/Desktop/db-ojb-1.0.4/bin$ sudo su -
root@arrakis:~# cd /home/thufir/Desktop/db-ojb-1.0.4/bin/
root@arrakis:/home/thufir/Desktop/db-ojb-1.0.4/bin# ./
-su: ./ /bin/sh^M: bad interpreter: No such file or directory

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:

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:

thufir@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-
-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

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

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?

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

I'm going through

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




To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]