Re: Re: ozone installation problems....
"ss" <[email protected]> 26 Nov 2005 18:54:52 -0000
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multipart mime message --Next_1133031292---0-203.199.83.35-12250 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =0Athnx 4 d cooperation so far.......i jst hope it to b the last time....= .=0Athe ozone server is successfully compiled.... but the problem is in the= running of the example:=0Athere is a problem in starting the client....the= re is no build.bat file that needs to b run to build the client....nor coul= d i find 'make' newhere ..........plz suggest smthng=0A=0A=0AOn Sat, 26 Nov= 2005 Per Nyfelt wrote :=0A>OK, one more try:=0A>=0A>Ozone releases comes i= n two flavors: a binary and a source package.=0A>The binary distribution is= already compiled and is the easiest one to get=0A>started with.=0A>The sou= rce distribution contains all source code but no compiled or packaged=0A>cl= asses and needs to be built before it can be used.=0A>=0A>To get started wi= th the binary distribution do the following:=0A>1. unzip ozone-1.2-bin.zip = to a directory of choice (eg. c:\ozone-1.2)=0A>2. set OZONE_HOME to this di= rectory (e.g. c:\ozone-1.2)=0A>3. create a classes directory (c:\ozone-1.2\= classes) where you can put your=0A>own code i.e.=0A>both interface and impl= ementation classes tht needs to be visible for the=0A>server should be in h= ere.=0A>An alternative to this, which is mentioned in the samples, is to st= art ozone=0A> from the directory where your=0A>classes are compiled (both c= urrent directory and OZONE_HOME\classes are=0A>included in the classpath pe= r default.=0A>=0A>That's it; you are now ready to try something out. Client= code that connects=0A>to the server needs the ozoneServer.jar to be able t= o connect to the server.=0A>Look in the samples and in the users guide for = things to get started with and=0A>try out.=0A>If later you need more full b= lown apps look in the ozoneApps cvs module (also=0A>released as ozone appli= cations in source forge)=0A>=0A>Running the ozone server=0A>---------------= ---------=0A>=0A>1. Initialize database directory.=0A>=0A>A database direct= ory holds all files of an ozone database. To initialize an=0A>empty databas= e start the ozone install tool:=0A>=0A> ozoneInst -d<data_directory>=0A>= =0A>e.g.=0A>c:\ozone-1.2\bin\>ozoneInst -dc:/ozone-1.2/data=0A>=0A>To see a= ll possible parameters of ozoneInst type 'ozoneInst -h'.=0A>=0A>2. Start th= e server.=0A>=0A> ozone -d<data_directory> -u<username>=0A>-u can be omitt= ed=0A>e.g.=0A>c:\ozone-1.2\bin\>ozone -dc:/ozone-1.2/data=0A>=0A>You will g= et some status information and after the initialisation ozone is up=0A>and = running. You can setup as many databases and you can run as many servers=0A= >as you need on one system. To define users and to do other administration= =0A>things use the admin tool:=0A>=0A> ozoneAdmin=0A>=0A>To see all possib= le commands and parameters of ozoneAdmin type 'ozoneAdmin=0A>-h'.=0A>=0A>Yo= u can also try the adminGui which is a Swing based admin tool=0A>=0A> o= zoneAdminGui=0A>=0A>Trying out the ozone samples=0A>-----------------------= -----=0A>=0A>IMPORTANT NOTE: the VM of the ozone server must be able to acc= ess the class=0A> files of the application. To run the ozone samples, yo= u may add "." to=0A> your CLASSPATH and start the ozone server INSIDE TH= E SAMPLE DIRECTORY.=0A>Alternatively put your compiled classes in %OZONE_H= OME%\classes.=0A>=0A>1. Start the server.=0A>=0A>Open a new console. Change= directory to <OZONE_HOME>/samples/simple. Install=0A>a new database via 'o= zoneInst -d<db_dir>'. Start the server via=0A>'ozone -d<db_dir> -u<username= >' as described above.=0A>=0A>2. Start the Client.=0A>=0A>Open a new consol= e. Change directory to <OZONE_HOME>/samples/simple. Build=0A>the client via= '../../build.[sh|bat]' or 'make'. Start the client via=0A>'ojvm Client'.= =0A>=0A>Good luck!=0A>=0A>=0A>On Saturday 26 November 2005 13.36, ss wrote:= =0A> > sorry to bother u again:=0A> >=0A> > 1. the problem with binary vers= ion is that i could not find build.bat file=0A> > in it......suggest sumthn= g=0A> >=0A> > 2. plz give me a brief intro of "ant build script"=0A> >=0A> = > On Sat, 26 Nov 2005 Per Nyfelt wrote :=0A> > >On Saturday 26 November 200= 5 05.23, ss wrote:=0A> > > > 1. i ve changed my ozone home to :E:\jdk1.4\bi= n\ozone-1.2\server=0A> > > >=0A> > > > hope it works out=0A> > >=0A> > >= No it is not correct for the source distribution.=0A> > >I would strongly y= ou switch to the binary distribution. Get things up and=0A> > >running firs= t before attempting to build the server from source.=0A> > >=0A> > > > 2. = kindly specify the step by step procedure to build this ant build=0A> > > >= script (where to edit,how to save,how to execute etc.) as i ve no idea=0A>= > > > abt it......plz help me out=0A> > >=0A> > >I just did! I dont know h= ow to make it any clearer.=0A> > >=0A> > > > 3. when ozone -d E:\jdk1.4\b= in\ozone-1.2\server\data -u=0A> > > > is executed , the err mssg is=0A> > = > > Exception in thread "main" java.lang.NoClassDefFoundError:=0A> > > > or= g/ozoneDB/core/Server wat might b the reason 4 this???????=0A> > >=0A> > >S= omething is wrong with your classpath. Probably the linefeed problem that= =0A> > >makes the scripts uninterpretable by windows.=0A> > >=0A> > > > On = Fri, 25 Nov 2005 Per Nyfelt wrote :=0A> > > > >As a told you earlier: you n= eed to edit your batch files and replace=0A> > > > > linefeed (LF) with Car= riage Return Linefeed (CRLF)!=0A> > > > >=0A> > > > >One way to do this is = to create a simple ant build script:=0A> > > > ><project name=3D"scriptfix"= default=3D"lineend" basedir=3D".">=0A> > > > > <target name=3D"lineend">= =0A> > > > > <fixcrlf srcdir=3D"server/bin" includes=3D"**/*.bat" />=0A> = > > > > </target>=0A> > > > ></project>=0A> > > > >=0A> > > > >If you are = building from src do the following:=0A> > > > >1. Make sure server\bin\ozon= eAnt.bat has the right end of line=0A> > > > > characters. In notepad they = will look like empty boxes replace all=0A> > > > > boxes with an enter (sor= ry for the pain)=0A> > > > >2. cd server=0A> > > > >3. execute the build.ba= t script (this will also fix all your EOL=0A> > > > > characters in build/b= in to match your system)=0A> > > > >4. Your ozone distribution are now in s= erver\build - this is your=0A> > > > > OZONE_HOME (unless you copy the file= s elsewhere if course)=0A> > > > >=0A> > > > >There is also a dist.bin targ= et besides the default one that builds a=0A> > > > >structure like the bina= ry distribution that might be of interest.=0A> > > > >=0A> > > > >Good luck= !=0A> > > > >=0A> > > > >/Per=0A> > > > >=0A> > > > >On Friday 25 November = 2005 13.36, ss wrote:=0A> > > > > > i ve installed the src version of ozon= e n set the variables as=0A> > > > > > follows: ozone_home: E:\jdk1.4\bin\= ozone-1.2=0A> > > > > > ozone_path: E:\jdk1.4\bin\ozone-1.2\server\bin=0A>= > > > > > ozone_jvm: java=0A> > > > > > ozone_javac: javac=0A> > > > > >= =0A> > > > > > if any correction is to b made in thse variables do inform= =0A> > > > > >=0A> > > > > > i get the following message when this is execu= ted:=0A> > > > > > ozoneInst -d E:\jdk1.4\bin\ozone-1.2\data=0A> > > > > > = offrem $Id: ozoneInst.bat,v 1.2 2002/12/29 11:15:55 per_nyfelt Exp=0A> > > = > > > $call ojvm.bat org.ozoneDB.tools.Install -d=0A> > > > > > E:\jdk1.4\b= in\ozone-1.2\data=0A> > > > > >=0A> > > > > > i could not find the path for= making the changes u=0A> > > > > > suggested.........plz help me out......= .urgently=0A> > > > >=0A> > > > >------------------------------------------= -------------=0A> > > > >This SF.net email is sponsored by: Splunk Inc. Do = you grep through log=0A> > > > > files for problems? Stop! Download the n= ew AJAX search engine that=0A> > > > > makes searching your log files as ea= sy as surfing the web. DOWNLOAD=0A> > > > > SPLUNK! http://ads.osdn.com/?= ad_id=3D7637&alloc_id=3D16865&op=3Dclick=0A> > > > >_______________________= ________________________=0A> > > > >Ozone-users mailing list=0A> > > > >Ozo= [email protected]=0A> > > > >https://lists.sourceforge.net/lis= ts/listinfo/ozone-users=0A>=0A>=0A>----------------------------------------= ---------------=0A>This SF.net email is sponsored by: Splunk Inc. Do you gr= ep through log files=0A>for problems? Stop! Download the new AJAX search = engine that makes=0A>searching your log files as easy as surfing the web. = DOWNLOAD SPLUNK!=0A>http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op= =3Dclick=0A>_______________________________________________=0A>Ozone-users = mailing list=0A>[email protected]=0A>https://lists.sourcefo= rge.net/lists/listinfo/ozone-users=0A --Next_1133031292---0-203.199.83.35-12250 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <P>=0A <BR>=0Athnx 4 d cooperation so far.......i jst hope it to b th= e last time.....<BR>=0Athe ozone server is successfully compiled.... but th= e problem is in the running of the example:<BR>=0Athere is a problem in sta= rting the client....there is no build.bat file that needs to b run to build= the client....nor could i find 'make' newhere ..........plz suggest smthng= <BR>=0A<BR>=0A<BR>=0AOn Sat, 26 Nov 2005 Per Nyfelt wrote :<BR>=0A>OK, o= ne more try:<BR>=0A><BR>=0A>Ozone releases comes in two flavors: a bi= nary and a source package.<BR>=0A>The binary distribution is already com= piled and is the easiest one to get<BR>=0A>started with.<BR>=0A>The s= ource distribution contains all source code but no compiled or packaged<BR>= =0A>classes and needs to be built before it can be used.<BR>=0A><BR>= =0A>To get started with the binary distribution do the following:<BR>=0A= >1. unzip ozone-1.2-bin.zip to a directory of choice (eg. c:\ozone-1.2)<= BR>=0A>2. set OZONE_HOME to this directory (e.g. c:\ozone-1.2)<BR>=0A>= ;3. create a classes directory (c:\ozone-1.2\classes) where you can put you= r<BR>=0A>own code i.e.<BR>=0A>both interface and implementation class= es tht needs to be visible for the<BR>=0A>server should be in here.<BR>= =0A>An alternative to this, which is mentioned in the samples, is to sta= rt ozone<BR>=0A> from the directory where your<BR>=0A>classes are com= piled (both current directory and OZONE_HOME\classes are<BR>=0A>included= in the classpath per default.<BR>=0A><BR>=0A>That's it; you are now = ready to try something out. Client code that connects<BR>=0A>to the serv= er needs the ozoneServer.jar to be able to connect to the server.<BR>=0A>= ;Look in the samples and in the users guide for things to get started with = and<BR>=0A>try out.<BR>=0A>If later you need more full blown apps loo= k in the ozoneApps cvs module (also<BR>=0A>released as ozone application= s in source forge)<BR>=0A><BR>=0A>Running the ozone server<BR>=0A>= ------------------------<BR>=0A><BR>=0A>1. Initialize database direct= ory.<BR>=0A><BR>=0A>A database directory holds all files of an ozone = database. To initialize an<BR>=0A>empty database start the ozone install= tool:<BR>=0A><BR>=0A> ozoneInst -d<data_direc= tory><BR>=0A><BR>=0A>e.g.<BR>=0A>c:\ozone-1.2\bin\>ozoneInst= -dc:/ozone-1.2/data<BR>=0A><BR>=0A>To see all possible parameters of= ozoneInst type 'ozoneInst -h'.<BR>=0A><BR>=0A>2. Start the server.<B= R>=0A><BR>=0A> ozone -d<data_directory> -u&= lt;username><BR>=0A>-u can be omitted<BR>=0A>e.g.<BR>=0A>c:\ozo= ne-1.2\bin\>ozone -dc:/ozone-1.2/data<BR>=0A><BR>=0A>You will get = some status information and after the initialisation ozone is up<BR>=0A>= and running. You can setup as many databases and you can run as many server= s<BR>=0A>as you need on one system. To define users and to do other admi= nistration<BR>=0A>things use the admin tool:<BR>=0A><BR>=0A>  = ; ozoneAdmin<BR>=0A><BR>=0A>To see all possible commands= and parameters of ozoneAdmin type 'ozoneAdmin<BR>=0A>-h'.<BR>=0A><BR= >=0A>You can also try the adminGui which is a Swing based admin tool<BR>= =0A><BR>=0A> ozoneAdminGui<BR>=0A><BR>=0A>Trying = out the ozone samples<BR>=0A>----------------------------<BR>=0A><BR>= =0A>IMPORTANT NOTE: the VM of the ozone server must be able to access th= e class<BR>=0A> files of the application. To run the ozone = samples, you may add "." to<BR>=0A> your CLASSPAT= H and start the ozone server INSIDE THE SAMPLE DIRECTORY.<BR>=0A>Alterna= tively put your compiled classes in %OZONE_HOME%\classes.<BR>=0A><= BR>=0A>1. Start the server.<BR>=0A><BR>=0A>Open a new console. Cha= nge directory to <OZONE_HOME>/samples/simple. Install<BR>=0A>a new= database via 'ozoneInst -d<db_dir>'. Start the server via<BR>=0A>= 'ozone -d<db_dir> -u<username>' as described above.<BR>=0A><= BR>=0A>2. Start the Client.<BR>=0A><BR>=0A>Open a new console. Cha= nge directory to <OZONE_HOME>/samples/simple. Build<BR>=0A>the cli= ent via '../../build.[sh|bat]' or 'make'. Start the client via<BR>=0A>'o= jvm Client'.<BR>=0A><BR>=0A>Good luck!<BR>=0A><BR>=0A><BR>=0A&g= t;On Saturday 26 November 2005 13.36, ss wrote:<BR>=0A> > sorry to bo= ther u again:<BR>=0A> ><BR>=0A> > 1. the problem with binary ve= rsion is that i could not find build.bat file<BR>=0A> > in it......su= ggest sumthng<BR>=0A> ><BR>=0A> > 2. plz give me a brief intro = of "ant build script"<BR>=0A> ><BR>=0A> > On Sat, 26 = Nov 2005 Per Nyfelt wrote :<BR>=0A> > >On Saturday 26 November 200= 5 05.23, ss wrote:<BR>=0A> > > > 1. i ve changed my ozone home = to :E:\jdk1.4\bin\ozone-1.2\server<BR>=0A> > > ><BR>=0A> >= ; > > hope it works out<BR>=0A> > ><BR>=0A> = > >No it is not correct for the source distribution.<BR>=0A> > = >I would strongly you switch to the binary distribution. Get things up a= nd<BR>=0A> > >running first before attempting to build the server = from source.<BR>=0A> > ><BR>=0A> > > > 2. kindly= specify the step by step procedure to build this ant build<BR>=0A> >= > > script (where to edit,how to save,how to execute etc.) as i ve n= o idea<BR>=0A> > > > abt it......plz help me out<BR>=0A> >= ; ><BR>=0A> > >I just did! I dont know how to make it any clear= er.<BR>=0A> > ><BR>=0A> > > > 3. when ozon= e -d E:\jdk1.4\bin\ozone-1.2\server\data -u<BR>=0A> > > > is ex= ecuted , the err mssg is<BR>=0A> > > > Exception in threa= d "main" java.lang.NoClassDefFoundError:<BR>=0A> > > >= ; org/ozoneDB/core/Server wat might b the reason 4 this???????<BR>=0A> &= gt; ><BR>=0A> > >Something is wrong with your classpath. Probab= ly the linefeed problem that<BR>=0A> > >makes the scripts uninterp= retable by windows.<BR>=0A> > ><BR>=0A> > > > On Fri, = 25 Nov 2005 Per Nyfelt wrote :<BR>=0A> > > > >As a told you = earlier: you need to edit your batch files and replace<BR>=0A> > >= > > linefeed (LF) with Carriage Return Linefeed (CRLF)!<BR>=0A> &= gt; > > ><BR>=0A> > > > >One way to do this is to c= reate a simple ant build script:<BR>=0A> > > > ><project = name=3D"scriptfix" default=3D"lineend" basedir=3D"= ."><BR>=0A> > > > > <target n= ame=3D"lineend"><BR>=0A> > > > > = <fixcrlf srcdir=3D"server/bin" inclu= des=3D"**/*.bat" /><BR>=0A> > > > > &nbs= p; </target><BR>=0A> > > > ></project><BR>= =0A> > > > ><BR>=0A> > > > >If you are buildi= ng from src do the following:<BR>=0A> > > > >1. Make sure se= rver\bin\ozoneAnt.bat has the right end of line<BR>=0A> > > > &= gt; characters. In notepad they will look like empty boxes replace all<BR>= =0A> > > > > boxes with an enter (sorry for the pain)<BR>=0A= > > > > >2. cd server<BR>=0A> > > > >3. execu= te the build.bat script (this will also fix all your EOL<BR>=0A> > &g= t; > > characters in build/bin to match your system)<BR>=0A> > = > > >4. Your ozone distribution are now in server\build - this is = your<BR>=0A> > > > > OZONE_HOME (unless you copy the files e= lsewhere if course)<BR>=0A> > > > ><BR>=0A> > > >= ; >There is also a dist.bin target besides the default one that builds a= <BR>=0A> > > > >structure like the binary distribution that = might be of interest.<BR>=0A> > > > ><BR>=0A> > > &= gt; >Good luck!<BR>=0A> > > > ><BR>=0A> > > >= >/Per<BR>=0A> > > > ><BR>=0A> > > > >On F= riday 25 November 2005 13.36, ss wrote:<BR>=0A> > > > > >= i ve installed the src version of ozone n set the variables as<BR>= =0A> > > > > > follows: ozone_home: E:\jdk1.4\bin\o= zone-1.2<BR>=0A> > > > > > ozone_path: E:\jdk1.4\bi= n\ozone-1.2\server\bin<BR>=0A> > > > > > ozone_jvm: java<= BR>=0A> > > > > > ozone_javac: javac<BR>=0A> > >= > > ><BR>=0A> > > > > > if any correction is to= b made in thse variables do inform<BR>=0A> > > > > ><BR>= =0A> > > > > > i get the following message when this is e= xecuted:<BR>=0A> > > > > > ozoneInst -d E:\jdk1.4\bin\ozo= ne-1.2\data<BR>=0A> > > > > > offrem $Id: ozoneInst.bat,v= 1.2 2002/12/29 11:15:55 per_nyfelt Exp<BR>=0A> > > > > >= $call ojvm.bat org.ozoneDB.tools.Install -d<BR>=0A> > > > >= > E:\jdk1.4\bin\ozone-1.2\data<BR>=0A> > > > > ><BR>= =0A> > > > > > i could not find the path for making the c= hanges u<BR>=0A> > > > > > suggested.........plz help me = out.......urgently<BR>=0A> > > > ><BR>=0A> > > >= >-------------------------------------------------------<BR>=0A> >= ; > > >This SF.net email is sponsored by: Splunk Inc. Do you grep = through log<BR>=0A> > > > > files for problems? Stop!&= nbsp; Download the new AJAX search engine that<BR>=0A> > > > &g= t; makes searching your log files as easy as surfing the web. D= OWNLOAD<BR>=0A> > > > > SPLUNK! http://ads.osdn.com/?ad_id= =3D7637&alloc_id=3D16865&op=3Dclick<BR>=0A> > > > >_= ______________________________________________<BR>=0A> > > > &g= t;Ozone-users mailing list<BR>=0A> > > > >Ozone-users@lists.= sourceforge.net<BR>=0A> > > > >https://lists.sourceforge.net= /lists/listinfo/ozone-users<BR>=0A><BR>=0A><BR>=0A>---------------= ----------------------------------------<BR>=0A>This SF.net email is spo= nsored by: Splunk Inc. Do you grep through log files<BR>=0A>for problems= ? Stop! Download the new AJAX search engine that makes<BR>=0A&g= t;searching your log files as easy as surfing the web. DOWNLOAD= SPLUNK!<BR>=0A>http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&a= mp;op=3Dclick<BR>=0A>_______________________________________________<BR>= =0A>Ozone-users mailing list<BR>=0A>[email protected]= <BR>=0A>https://lists.sourceforge.net/lists/listinfo/ozone-users<BR>=0A= =0A</P>=0A<br><br>=0A<a href=3D"http://adworks.rediff.com/cgi-bin/AdWorks/s= igclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3D= 3"><IMG SRC=3D"http://adworks.rediff.com/cgi-bin/AdWorks/sigimpress.cgi/www= .rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=3Dnull&PARTNER= =3D3" BORDER=3D0 VSPACE=3D0 HSPACE=3D0></a>=0A --Next_1133031292---0-203.199.83.35-12250-- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click