Re: object creation sample need help...
Per Nyfelt <[email protected]> Wed, 9 Feb 2005 00:29:48 +0100
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Organization | Resourcing Networks |
| Message-ID | <[email protected]> |
Looks like you do not have a compatible server version with this sample.
Since you seem to have problems getting cvs to work I'll put a snapshot of the
current CVS code up on SourceForge. You should be able to build fine using it
instead.
Anyway, I just updated from CVS and build the objectCreation sample
successfully:
per@erlang:~/project/ozone/server/samples/objectCreation$ ant
Buildfile: build.xml
init:
[echo] -------- Ozone Object Creation Example --------
prepare:
compile-server:
[javac] Compiling 13 source files
to /home/per/project/ozone/server/samples/objectCreation/build/classes
[java] Begin OPP...
[java] Processing class: office.FloorImpl
[java] Begin Processing office.FloorImpl...
[java] Begin Resolving update methods...
[java] No ocd was found!
[java] End Resolving update methods
[java] Begin Generating factory for: office.FloorImpl...
[java] End Generating factory for: office.FloorImpl
[java] Begin Generating proxy for: office.FloorImpl...
[java] Upgrading method: setLevel to lock level WRITE
[java] End Generating proxy for: office.FloorImpl
[java] End Processing office.FloorImpl generated in 0.623 seconds.
[java] Generation completed with 0 warnings and 0 errors
[java] Processing class: office.MeetingRoomImpl
[java] Begin Processing office.MeetingRoomImpl...
[java] Begin Resolving update methods...
[java] No ocd was found!
[java] End Resolving update methods
[java] Begin Generating factory for: office.MeetingRoomImpl...
[java] End Generating factory for: office.MeetingRoomImpl
[java] Begin Generating proxy for: office.MeetingRoomImpl...
[java] Upgrading method: setPeopleCapacity to lock level WRITE
[java] Upgrading method: setRoomNumber to lock level WRITE
[java] End Generating proxy for: office.MeetingRoomImpl
[java] End Processing office.MeetingRoomImpl generated in 0.116
seconds.
[java] Generation completed with 0 warnings and 0 errors
[java] Processing class: office.SiteImpl
[java] Begin Processing office.SiteImpl...
[java] Begin Resolving update methods...
[java] No ocd was found!
[java] End Resolving update methods
[java] Begin Generating factory for: office.SiteImpl...
[java] End Generating factory for: office.SiteImpl
[java] Begin Generating proxy for: office.SiteImpl...
[java] Upgrading method: setName to lock level WRITE
[java] Upgrading method: setAddress to lock level WRITE
[java] Upgrading method: setFloor to lock level WRITE
[java] End Generating proxy for: office.SiteImpl
[java] End Processing office.SiteImpl generated in 0.069 seconds.
[java] Generation completed with 0 warnings and 0 errors
[java] Processing class: office.PrivateWorkRoomImpl
[java] Begin Processing office.PrivateWorkRoomImpl...
[java] Begin Resolving update methods...
[java] No ocd was found!
[java] End Resolving update methods
[java] Begin Generating factory for: office.PrivateWorkRoomImpl...
[java] End Generating factory for: office.PrivateWorkRoomImpl
[java] Begin Generating proxy for: office.PrivateWorkRoomImpl...
[java] Upgrading method: setOwner to lock level WRITE
[java] Upgrading method: setRoomNumber to lock level WRITE
[java] End Generating proxy for: office.PrivateWorkRoomImpl
[java] End Processing office.PrivateWorkRoomImpl generated in 0.062
seconds.
[java] Generation completed with 0 warnings and 0 errors
[java] End OPP generated in 1.129 seconds.
[java] Generation completed with 0 warnings and 0 errors
[javac] Compiling 8 source files
to /home/per/project/ozone/server/samples/objectCreation/build/classes
compile-client:
[javac] Compiling 1 source file
to /home/per/project/ozone/server/samples/objectCreation/build/classes
compile:
BUILD SUCCESSFUL
Total time: 11 seconds
Regards,
Per
tisdagen den 8 februari 2005 00.55 skrev adi:
> i have compiled the objectcreation sample that downloaded from sourceforge
> cvs and some error occured
> please give me some advice to solve this error
>
> ******************************************************
> C:\ozone\samples\objectCreation>..\..\build
> Win NT/2000/XP build script
>
> Buildfile: build.xml
>
> init:
> [echo] -------- Ozone Object Creation Example --------
>
> prepare:
>
> compile-server:
> [java] Begin OPP...
> [java] Processing class: office.FloorImpl
> [java] Begin Processing office.FloorImpl...
> [java] Begin Resolving update methods...
> [java] No ocd was found!
> [java] End Resolving update methods
> [java] Begin Generating factory for: office.FloorImpl...
> [java] End Generating factory for: office.FloorImpl
> [java] Begin Generating proxy for: office.FloorImpl...
> [java] Upgrading method: setLevel to lock level WRITE
> [java] End Generating proxy for: office.FloorImpl
> [java] End Processing office.FloorImpl generated in 2.073 seconds.
> [java] Generation completed with 0 warnings and 0 errors
> [java] Processing class: office.MeetingRoomImpl
> [java] Begin Processing office.MeetingRoomImpl...
> [java] Begin Resolving update methods...
> [java] No ocd was found!
> [java] End Resolving update methods
> [java] Begin Generating factory for: office.MeetingRoomImpl...
> [java] End Generating factory for: office.MeetingRoomImpl
> [java] Begin Generating proxy for: office.MeetingRoomImpl...
> [java] Upgrading method: setPeopleCapacity to lock level
> WRITE [java] Upgrading method: setRoomNumber to lock level WRITE
> [java] End Generating proxy for: office.MeetingRoomImpl [java] End
> Processing office.MeetingRoomImpl generated in 0.59 seconds. [java]
> Generation completed with 0 warnings and 0 errors
> [java] Processing class: office.SiteImpl
> [java] Begin Processing office.SiteImpl...
> [java] Begin Resolving update methods...
> [java] No ocd was found!
> [java] End Resolving update methods
> [java] Begin Generating factory for: office.SiteImpl...
> [java] End Generating factory for: office.SiteImpl
> [java] Begin Generating proxy for: office.SiteImpl...
> [java] Upgrading method: setName to lock level WRITE
> [java] Upgrading method: setAddress to lock level WRITE
> [java] Upgrading method: setFloor to lock level WRITE
> [java] End Generating proxy for: office.SiteImpl
> [java] End Processing office.SiteImpl generated in 0.331 seconds.
> [java] Generation completed with 0 warnings and 0 errors
> [java] Processing class: office.PrivateWorkRoomImpl
> [java] Begin Processing office.PrivateWorkRoomImpl...
> [java] Begin Resolving update methods...
> [java] No ocd was found!
> [java] End Resolving update methods
> [java] Begin Generating factory for:
> office.PrivateWorkRoomImpl... [java] End Generating factory for:
> office.PrivateWorkRoomImpl [java] Begin Generating proxy for:
> office.PrivateWorkRoomImpl... [java] Upgrading method: setOwner to
> lock level WRITE [java] Upgrading method: setRoomNumber to lock
> level WRITE [java] End Generating proxy for:
> office.PrivateWorkRoomImpl [java] End Processing
> office.PrivateWorkRoomImpl generated in 0.451 seco nds.
> [java] Generation completed with 0 warnings and 0 errors
> [java] End OPP generated in 3.806 seconds.
> [java] Generation completed with 0 warnings and 0 errors
> [javac] Compiling 8 source files to
> C:\ozone\samples\objectCreation\build\cl asses
>
> compile-client:
> [javac] Compiling 1 source file to
> C:\ozone\samples\objectCreation\build\cla sses
> [javac] C:\ozone\samples\objectCreation\src\OfficeClient.java:45:
> deleteObje ct(org.ozoneDB.OzoneRemote) in org.ozoneDB.OzoneInterface cannot
> be applied to ( java.lang.String)
> [javac]
> SiteImplFactory.getDefault().getDatabase().deleteObject(site 1);
> [javac] ^
> [javac] C:\ozone\samples\objectCreation\src\OfficeClient.java:105:
> cannot re solve symbol
> [javac] symbol : method hasNamedObject (java.lang.String)
> [javac] location: class org.ozoneDB.ExternalDatabase
> [javac] if (db.hasNamedObject(site1)) {
> [javac] ^
> [javac] C:\ozone\samples\objectCreation\src\OfficeClient.java:107:
> cannot re solve symbol
> [javac] symbol : method deleteObject (java.lang.String)
> [javac] location: class org.ozoneDB.ExternalDatabase
> [javac] db.deleteObject(site1);
> [javac] ^
> [javac] 3 errors
>
> BUILD FAILED
> file:C:/ozone/samples/objectCreation/build.xml:144: Compile failed; see the
> comp iler error output for details.
> ********************************
>
> thanks
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click