Re: Extremely urgent !!!
Per Nyfelt <[email protected]> Tue, 29 Nov 2005 21:29:59 +0000
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Organization | New Field Consulting |
| Message-ID | <[email protected]> |
Here the steps for running the embedded version (LocaDatabase) instead of t=
he=20
remote one that was previously run: (lines starting with :: are comments a=
nd=20
should not be written or used as commands)
:: set environment varables
D:\ozone-1.2\>set JAVA_HOME=3Dc:\progra~1\Java\jdk1.5.0_02
D:\ozone-1.2>set OZONE_HOME=3Dd:\ozone-1.2
D:\ozone-1.2>set PATH=3D%OZONE_HOME%\bin;%PATH%
D:\ozone-1.2>cd samples\simple
:: compile the simple sample code
D:\ozone-1.2\samples\simple>ozoneAnt
Buildfile: build.xml
prepare:
classes:
[javac] Compiling 6 source files to D:\ozone-1.2\samples\simple
proxies:
[java] Begin OPP...
[java] Processing class: BusImpl
[java] Begin Processing BusImpl...
[java] Begin Resolving update methods...
[java] No ocd was found!
[java] End Resolving update methods
[java] update method [4]: setName
[java] Begin Generating proxy for: BusImpl...
[java] End Generating proxy for: BusImpl
[java] Begin Generating factory for: BusImpl...
[java] End Generating factory for: BusImpl
[java] End Processing BusImpl generated in 0,188 seconds.
[java] Generation completed with 0 warnings and 0 errors
[java] Processing class: AutoImpl
[java] Begin Processing AutoImpl...
[java] Begin Resolving update methods...
[java] End Resolving update methods
[java] update method [4]: setName
[java] Begin Generating proxy for: AutoImpl...
[java] End Generating proxy for: AutoImpl
[java] Begin Generating factory for: AutoImpl...
[java] End Generating factory for: AutoImpl
[java] End Processing AutoImpl generated in 0,359 seconds.
[java] Generation completed with 0 warnings and 0 errors
[java] End OPP generated in 0,609 seconds.
[java] Generation completed with 0 warnings and 0 errors
[javac] Compiling 2 source files to D:\ozone-1.2\samples\simple
main:
BUILD SUCCESSFUL
Total time: 5 seconds
D:\ozone-1.2\samples\simple>ojvm LocalClient
=A0 =A0 ozoneDB.adminPort =3D 3000
=A0 =A0 ozoneDB.classicStore.clusterSize =3D 65536
=A0 =A0 ozoneDB.classicStore.clusterSpaceSize =3D 5120000
=A0 =A0 ozoneDB.classicStore.tableBufferSize =3D 12800
=A0 =A0 ozoneDB.classicStore.tableCacheSize =3D 4096
=A0 =A0 ozoneDB.dbID =3D 0
=A0 =A0 ozoneDB.garbageCollection.level =3D 0
=A0 =A0 ozoneDB.port =3D 3333
=A0 =A0 ozoneDB.store =3D org.ozoneDB.core.storage.wizardStore.WizardStore
=A0 =A0 ozoneDB.wizardStore.clusterSize =3D 65536
=A0 =A0 ozoneDB.wizardStore.clusterSizeRatio =3D 256
=A0 =A0 ozoneDB.wizardStore.compressClusters =3D true
=A0 =A0 ozoneDB.wizardStore.tableBufferSize =3D 15
=A0 =A0 ozoneDB.wizardStore.tableCacheSize =3D 12
=A0 =A0 ozoneDB.wizardStore.tableSubtableSize =3D 11
logging level set to INFO
Loading props for C:\Documents and Settings\per\testdb\logging.properties
INFO =A0 [main] Env - Ozone version 1.2
INFO =A0 [main] Env - Copyright (C) 1997-2004 The Ozone Database Project
INFO =A0 [main] Env - contains libraries from the Apache Software Foundation
INFO =A0 [main] Env - contains libraries from SUN microsystems
INFO =A0 [main] Env - contains libraries from the W3C
INFO =A0 [main] Env - contains libraries from Exoffice, Inc.
INFO =A0 [main] Env - contains libraries (JavaClass) from Markus Dahm
INFO =A0 [main] Env - Copyright (C) under owner's respective terms.
INFO =A0 [main] Env - checking memory...
INFO =A0 [main] Env - =A0 =A0total: 66650112
INFO =A0 [main] Env - =A0 =A0free : 65681664
INFO =A0 [main] Env - =A0 =A0keep : 4000000
INFO =A0 [main] GarbageCollector - startup...
INFO =A0 [main] KeyGenerator - startup...
INFO =A0 [main] ClassManager - startup...
INFO =A0 [main] UserManager - startup...
INFO =A0 [main] UserManager - No state properties found. Initializing...
INFO =A0 [main] UserManager - admin user: per
INFO =A0 [main] TransactionManager - startup...
INFO =A0 [main] WizardStore - startup...
INFO =A0 [main] WizardStore - checking for pending shadow clusters...
INFO =A0 [main] WizardStore - =A0 =A0 java.io.FileNotFoundException: C:\Doc=
uments=20
and
Settings\per\testdb\nameTable.wizard (The system cannot find the file=20
specified)
INFO =A0 [main] WizardStore - =A0 =A0 recovering...
INFO =A0 [main] WizardStore - =A0 =A0 cleaning ID table...
INFO =A0 [main] WizardStore - =A0 =A0 cleaning name table...
INFO =A0 [main] WizardStore - =A0 =A0 0 IDs, 0 name(s))
INFO =A0 [main] AdminManager - startup...
INFO =A0 [main] AdminManager - No admin object found. Initializing...
INFO =A0 [main] AdminManager - Admin object created.
INFO =A0 [main] Env - deadlock recognition started
connected...
BusImpl ctor...
bus:class BusImpl_Proxy remoteID:104
Bus:Ford, 0, 12
AutoImpl ctor...
got: class AutoImpl_Proxy remoteID:110 (AutoImpl_Proxy)
auto:class AutoImpl_Proxy remoteID:110
auto.setAge (3)
auto2:class AutoImpl_Proxy remoteID:110
auto:class AutoImpl_Proxy remoteID:110
copy:class AutoImpl_Proxy remoteID:114
INFO =A0 [main] Env - shutdown...
INFO =A0 [main] Env - Deadlock recognition stopped.
INFO =A0 [main] TransactionManager - shutdown...
INFO =A0 [main] TransactionManager - =A0 =A0 there are 0 pending transactio=
n(s)
INFO =A0 [main] TransactionManager - acquire count total:13
INFO =A0 [main] WizardStore - shutdown...
INFO =A0 [main] IDTable - Statistics:
INFO =A0 [main] IDTable - =A0 =A0 sub-table accesses: 21 =A0hits: 21 loads:=
0
INFO =A0 [main] IDTable - =A0 =A0 cache accesses: 8 =A0hits: 7
INFO =A0 [main] UserManager - shutdown...
INFO =A0 [main] ClassManager - shutdown...
INFO =A0 [main] KeyGenerator - shutdown...
INFO =A0 [main] Env - Halted.
disconnected...
D:\ozone-1.2\samples\simple>
As you can guess look in LocalClient.java for an example of how to use the=
=20
LocalDatabase for embedded use instead of the ExternalDatabase for remote u=
se=20
examplified by Client.java.
Regards,
Per
On Tuesday 29 November 2005 15.09, ss wrote:
> 2. Start the Client.
>
> Open a new console. Change directory to <OZONE_HOME>/samples/simple. Build
> the client via '../../build.[sh|bat]' or 'make'. Start the client via
> 'ojvm Client'.
>
> That's it!
>
> 1.when the Client java program is compliled we get the following error:
> .\Auto.java:3: package org.ozoneDB does not exist
> import org.ozoneDB.*;
> ^
> n further errors related to this problem..........wat might b the reason
> for this ??????
>
> 2. Do we need to change the code of the client program that is...we have
> one cmd window which has started the server and in another cmd window we
> are starting the client on the same computer....do we need to use
> ExternalDatabase command or LocalDatabse command and how do we use
> it.....we have created a database folder in ozone_home with the name
> class4...... ie.E:\jdk1.4\bin\ozone-1.2\class4.....
>
>
>
>
> class Client {
>
> public static void main( String[] args ) throws Exception {
>
> ExternalDatabase db =3D
> ExternalDatabase.openDatabase("ozonedb:local:8080"); // this is just
> another way to open the same connection
> // db.open ("localhost", 8080);
>
> // this would initialize a local database instead of accessing a
> // server remote
> // LocalDatabase db =3D new LocalDatabase();
> // db.open ("/tmp/db");
> (what and how do we set our path here E:\jdk1.4\bin\ozone-1.2\class4)
>
>
>
> 3. please send the output of running this client step by step show that v
> can directly show it in our presentation hwich v ve tomorrow for the mean
> time
>
> also if possible also send us the output of any example(like car,etc....)
-------------------------------------------------------
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