Re: Extremely urgent !!!
Per Nyfelt <[email protected]> Tue, 29 Nov 2005 21:23:07 +0000
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Organization | New Field Consulting |
| Message-ID | <[email protected]> |
I Just ran the simple sample using the 1.2 binary on windows. Here are the=
=20
exact steps and output: (lines starting with :: are comments and should no=
t=20
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:
=A0 =A0 [javac] Compiling 6 source files to D:\ozone-1.2\samples\simple
proxies:
=A0 =A0 =A0[java] Begin OPP...
=A0 =A0 =A0[java] =A0 =A0Processing class: BusImpl
=A0 =A0 =A0[java] =A0 =A0Begin Processing BusImpl...
=A0 =A0 =A0[java] =A0 =A0 =A0 Begin Resolving update methods...
=A0 =A0 =A0[java] =A0 =A0 =A0 =A0 =A0No ocd was found!
=A0 =A0 =A0[java] =A0 =A0 =A0 End Resolving update methods
=A0 =A0 =A0[java] =A0 =A0 =A0 update method [4]: setName
=A0 =A0 =A0[java] =A0 =A0 =A0 Begin Generating proxy for: BusImpl...
=A0 =A0 =A0[java] =A0 =A0 =A0 End Generating proxy for: BusImpl
=A0 =A0 =A0[java] =A0 =A0 =A0 Begin Generating factory for: BusImpl...
=A0 =A0 =A0[java] =A0 =A0 =A0 End Generating factory for: BusImpl
=A0 =A0 =A0[java] =A0 =A0End Processing BusImpl generated in 0,188 seconds.
=A0 =A0 =A0[java] =A0 =A0Generation completed with 0 warnings and 0 errors
=A0 =A0 =A0[java] =A0 =A0Processing class: AutoImpl
=A0 =A0 =A0[java] =A0 =A0Begin Processing AutoImpl...
=A0 =A0 =A0[java] =A0 =A0 =A0 Begin Resolving update methods...
=A0 =A0 =A0[java] =A0 =A0 =A0 End Resolving update methods
=A0 =A0 =A0[java] =A0 =A0 =A0 update method [4]: setName
=A0 =A0 =A0[java] =A0 =A0 =A0 Begin Generating proxy for: AutoImpl...
=A0 =A0 =A0[java] =A0 =A0 =A0 End Generating proxy for: AutoImpl
=A0 =A0 =A0[java] =A0 =A0 =A0 Begin Generating factory for: AutoImpl...
=A0 =A0 =A0[java] =A0 =A0 =A0 End Generating factory for: AutoImpl
=A0 =A0 =A0[java] =A0 =A0End Processing AutoImpl generated in 0,359 seconds.
=A0 =A0 =A0[java] =A0 =A0Generation completed with 0 warnings and 0 errors
=A0 =A0 =A0[java] End OPP generated in 0,609 seconds.
=A0 =A0 =A0[java] Generation completed with 0 warnings and 0 errors
=A0 =A0 [javac] Compiling 2 source files to D:\ozone-1.2\samples\simple
main:
BUILD SUCCESSFUL
Total time: 5 seconds
:: open a new console window to have an extra one to run the server in
D:\ozone-1.2\samples\simple>start cmd
:: start the server in one of the windows=20
:: the -c switch creates a new db if none exists
D:\ozone-1.2\samples\simple>ozone -dd:/ozonedb -c
Installing new database in d:/ozonedb...
deleting d:/ozonedb\ ...
making dir d:/ozonedb\ ...
making d:/ozonedb\data\ ...
making d:/ozonedb\ostab ...
making d:/ozonedb\config.properties ...
=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
making d:/ozonedb\state.properties ...
=A0 =A0 ID counter =3D 0 * 2^40
Edit d:/ozonedbconfig.properties to change settings.
install complete
initializing environment...
logging level set to INFO
Loading props for d:\ozonedb\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 : 64960080
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: d:
\ozonedb\nameTa
ble.wizard (The system cannot find the file 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] Class - Shutdown hook successfully added.
INFO =A0 [main] InvokeServer - startup...
INFO =A0 [main] Env - external event processing started
INFO =A0 [main] Env - deadlock recognition started
(Ctrl-C or 'q' to shutdown without admin tool)
:: run the client in the other window
D:\ozone-1.2\samples\simple>ojvm Client
connected...
bus:class BusImpl_Proxy remoteID:103
auto:class AutoImpl_Proxy, class AutoImpl_Proxy remoteID:109
auto.setAge (3)
auto2:class AutoImpl_Proxy, class AutoImpl_Proxy remoteID:109
D:\ozone-1.2\samples\simple>
:: Server console output:
BusImpl ctor...
Bus:Ford, 0, 12
AutoImpl ctor...
got: class AutoImpl_Proxy remoteID:109 (AutoImpl_Proxy)
I do not know why it does not work for you but hopefully this output could=
=20
provide some clues.
Good luck with the presentation!
/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