RE: [Ursus-developers] Problems with imports
Status: Alpha
Brought to you by:
agsjr
|
From: Anthony S. <dem...@ho...> - 2005-08-16 07:04:15
|
Oleg,
There are a few reasons this is. One, I don't think users should be
expected to compile the driver into the project, also I don't expect users
to mess with classpaths. I assumed that the user of the software has
already installed their driver in the java extensions directory. So in
order to just modify the conf.xml file for the server like you want, you
must copy the drivers jar file into this directory.
$JAVA_PATH/jre/lib/ext
This does not seem like a good way to do things, but it has to be done like
this because...
1. Java does not allow you to add wildcards (ex. lib/*.jar) in the
Class-Path manifest entry, so you have to know before hand exactly which
jars you want to load.
2. Java ignores all -classpath information passed in on command line args
when using the java -jar option.
3. Considering reasons 1 and 2 there are a few ways to go about the problem.
We could not jar the software and make the user enter a very long
classpath to execute the software, this is a bad option.
We could not jar the software and provide .BAT and .sh and .dmg
executables for system independent execution(this is still an option, but we
need to provide multiple executables for different architectures),
We could leave it to the user to compile it in like you did, this
doesn't seem right as you stated.
So we are left with the only option that we have for right now which is
to add the driver to the jre/lib/ext directory in your java home.
I believe we will eventually phase over into using architecture independent
executables so all the user will have to do is. Add their driver to the
/lib directory and click on an icon to start up the software.
But to do this you need to be able to test it on multiple arrchitectures,
and I can't do that without other peoples help.
Regarding the sites documentation, the old users table was named personas.
The latest version of the software is up on cvs and it uses the two tables I
previously described via this mailing list. The documentation on that page
is still good to read over, but a lot of changes have been made to the code
since then, that's why I sent that message about the new database setup.
The table personas doesn't exist anymore, and probably never will again. :)
Users and Groups are the only to tables the software requires.
Hoping I made a little sense,
-Anthony
>From: Oleg Ponomaryov <ol...@ya...>
>To: urs...@li...
>Subject: RE: [Ursus-developers] Problems with imports
>Date: Mon, 15 Aug 2005 21:42:24 -0700 (PDT)
>
>Anthony,
>a few things
>
>1. I have managed to plug in PostgreSQL database
>instead of MySQL. The only
>thing I didn't like is I had to modify build.xml to
>tell compiler to include
>
>PostgreSQL jdbc driver into server.jar. Below is the
>fragment of build.xml
>I've changed :
>
><jar destfile = "${ursus-server}/Server.jar"
> basedir = "${build}/classes"
> includes =
>"ursus/server/**,ursus/io/**,ursus/common/**">
> <manifest>
> <attribute name = "Main-Class" value =
>"ursus.server.Server"/>
> <attribute name = "Class-Path" value =
>"lib/backport-util-concurrent.jar lib/pg74jdbc3.jar"/>
> </manifest>
> </jar>
>
>It would be great if I just need to modify
>serverconftemplate.xml only.
>You mentioned something about that in the doc, but
>it's not clear how to do
>that.
>
>2. The Documentation says all I need for testing is
>two tables:
>Groups and personas. It seems like it's not true any
>more. The server
>required users table as well when I ran server and
>client. Could you please
>check the structure of your database for me. It's good
>idea always keep the
>latest structure in CVS.
>
>Thanks,
>Oleg
>
>
>
>
>-----Original Message-----
>From: urs...@li...
>[mailto:urs...@li...]
>On Behalf Of Anthony
>Salem
>Sent: Sunday, August 14, 2005 10:52 PM
>To: urs...@li...
>Subject: [Ursus-developers] Problems with imports
>
>Oleg,
>
>I built a new jar archive from the backport, perhaps
>there was something
>wrong, I don't know. The new .jar has been commited
>to CVS. Maybe that
>will fix the problem...
>
>-Anthony
>
>_________________________________________________________________
>Dont just search. Find. Check out the new MSN Search!
>
>http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>
>
>
>-------------------------------------------------------
>SF.Net email is Sponsored by the Better Software
>Conference & EXPO
>September 19-22, 2005 * San Francisco, CA *
>Development Lifecycle Practices
>Agile & Plan-Driven Development * Managing Projects &
>Teams * Testing & QA
>Security * Process Improvement & Measurement *
>http://www.sqe.com/bsce5sf
>_______________________________________________
>Ursus-developers mailing list
>Urs...@li...
>https://lists.sourceforge.net/lists/listinfo/ursus-developers
>
>--
>Internal Virus Database is out-of-date.
>Checked by AVG Anti-Virus.
>Version: 7.0.308 / Virus Database: 267.9.2 - Release
>Date: 7/19/2005
>
>
>--
>Internal Virus Database is out-of-date.
>Checked by AVG Anti-Virus.
>Version: 7.0.308 / Virus Database: 267.9.2 - Release
>Date: 7/19/2005
>
>
>
>
>
>____________________________________________________
>Start your day with Yahoo! - make it your home page
>http://www.yahoo.com/r/hs
>
>
>
>-------------------------------------------------------
>SF.Net email is Sponsored by the Better Software Conference & EXPO
>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
>_______________________________________________
>Ursus-developers mailing list
>Urs...@li...
>https://lists.sourceforge.net/lists/listinfo/ursus-developers
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
|