Mail Archive: Open Networks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Service Examples



Norman,

The problem is likely that the jar files for two services were NOT in
the ORE jar directory "jar/". Go to the service directories, type "make
install" or simply copy them (hello.jar and hellocli.jar) to that
directory.

Sorry for late reply since I just returned.

Phil

"Brickman,Norman F." wrote:
> 
> Phil or Albert,
> 
> 1)      Could either of you provide some assistance?  I am trying to get your
> Service 1 and Service 2 examples to load and execute with our Accelar
> 1100B.  I compiled both sets of java code and produced the jar files
> (jdk 1.2.2, windows, using command line).  I load the two jar files at
> the end of the load of start.jar by modifying the start.properties
> file.  The error I get is:
> 
> CONSOLE: Constructing class loader for http://128.29.1.2/jars/hello.jar
>   oplet installed: http://128.29.1.2/jars/hello.jar
>   ORE error: oplet class not found: examples.hello.HelloOplet
> Exception: com.nortelnetworks.ore.OpletException: oplet class not found:
> example
> s.hello.HelloOplet
> CONSOLE: Constructing class loader for
> http://128.29.1.2/jars/helloclient.jar
>   oplet installed: http://128.29.1.2/jars/helloclient.jar
>   ORE error: required service examples.hello.Hello not available for:
> http://128
> .29.1.2/jars/helloclient.jar
> Exception: com.nortelnetworks.ore.OpletException: required service
> examples.hell
> o.Hello not available for: http://128.29.1.2/jars/helloclient.jar
>   oplet started: http://128.29.1.2/jars/start.jar
> 
>         I did a jar tf on the jar files, and with hello.jar all 3 classes are
> listed as being present.  I'll attach the jars, and the bat files I used
> to create the jars, to this email in case that helps.  Could the order
> of files in the jar file be causing the problem?
> 
> 2)  Could you also help me to understand these two examples?  Like with
> the Hello example, I'm afraid it has been a while since I worked with
> Java and I am having a hard time understanding the combination of the 3
> classes - combined with the ORE.  If I get the jar file successfully
> loaded, how will I interface to it from my PC client?  (I presume I need
> to create a capsule?) If the service is HelloImpl, why is Hello loaded
> in the jar file also - so that it is available when an incoming capsule
> refers to it?  Sorry, but I seem to be lost.  If you have it all
> explained in some document that I haven't gotten to yet, please point it
> out so I won't have to use your time (I have the web AN_whitepaper).
> 
>         Thanks in advance.
>                 Norman
> --
> Norman F. Brickman     nfb@mitre.org     The MITRE Corporation
> Office:  703.883.5990


Home | Date Index | Thread Index