Re: about samples object creation

Per Nyfelt <[email protected]> Thu, 27 Jan 2005 08:32:35 +0100
Newsgroups gmane.comp.java.ozone.user
Organization Resourcing Networks
Message-ID <[email protected]>
Good to hear you got the servlet sample working.
The issue you have with the objectCreation sample looks like ant cannot find 
the ozoneServer jar. Try setting OZONE_HOME or add the path to the ozone jar 
to the build script explicitly. If you find issues with the sample please let 
us know so it can be fixed.

Regards,
Per

tisdagen den 25 januari 2005 05.49 skrev adi:
> i still cannot connect the cvs with my win cvs client
> and i have to download the file one by one with the browser
>
> i success with simpleServlet sample
> cause i download it again in cvs
>
> thanks
>
> in other problem i download the objectCreation sample
> and i compiled it
> the error have occured
>
> ************************
> 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 0.2 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.07 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.09 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.1 second s.
>      [java]    Generation completed with 0 warnings and 0 errors
>      [java] End OPP generated in 0.531 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:14:
> cannot res olve symbol
>     [javac] symbol  : class OzoneURL
>     [javac] location: package util
>     [javac] import org.ozoneDB.util.OzoneURL;
>     [javac]                         ^
>     [javac] C:\ozone\samples\objectCreation\src\OfficeClient.java:23:
> cannot res olve symbol
>     [javac] symbol  : variable OzoneURL
>     [javac] location: class OfficeClient
>     [javac]     static String url = OzoneURL.createRemoteURL("localhost",
> 3333);
>
>     [javac]                         ^
>     [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] 5 errors
>
> BUILD FAILED
> file:C:/ozone/samples/objectCreation/build.xml:144: Compile failed; see the
> comp iler error output for details.
>
> Total time: 4 seconds
> **********************
>
> what i have to do???
> thanks a lot for your help


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl