Hi All,
Hope everybody is fine out there...
I had few hours free and decided to give a try to the web server and html page for my first time.
Until now I was only playing with GE graph and was satisfied with but I need to increase the number of operator station and would prefer to add this kind of web access rather than duplicating the proview nodes.
I tried to follow the Java operator environment chapter in proview designer guide but it looks like I'm missing something.
What I did so far is:
In the runtime node:
* Add an OpPlaceWeb object and enabled various option (Enable login / Enable AlarmList and Navigator)
* Add a Web graph below this object with the name attribute being equal to the name of a GE graph (with first letter in uppercase)
* I configured the security object DefaultWebPriv attribute with the rt_read privileges
* I installed a default open jre kit on the runtime
* I installed a web server (apache2) on the runtime
* apache2 config file is modified to match the virtual server /pwrp/common/web aliases to pwrp_web
In the development station:
* I installed a default java development kit
* I edited my GE graph, tick the IsJavaFrame option and Export it
* I build the volume and the node and distribute the package
What I tested:
* I used the maintenance computer as ethernet client to my server node
* I pointed my web browser to the address: NodeIPAddress/pwrp_web/index2.html
* I correctly received a web page with the correct right frame (xtt_help_index.html) but the left frame is empty (no button at all like login ..)
* I tried to point directly at Node/pwrp_web/index2_opwin_menu.html but page is empty as well
As I don't really know java, I don't know what is missing to display the following lines contained in file index2_opwin_menu.html:
<object classid="java:jpwr.jop.JopOpWindowApplet.class"
type="application/x-java-applet"
archive="pwr_rt_client.jar,pwr_jop.jar,pwr_jopg.jar,pwrp_17amar2101_web.jar"
width=100% height=100% >
<param name = "code" value="jpwr.jop.JopOpWindowApplet.class" >
<param name ="archive" value="pwr_rt_client.jar,pwr_jop.jar,pwr_jopg.jar,pwrp_17amar2101_web.jar">
<param name="persistState" value="false" />
<param name="scriptable" value="false">
<param name="pwrplace" value="Nodes-PLC-WebServer">
</object>
The only jar file I have in my $pwrp_web directory are :
pwr_jopg.jar pwr_jop.jar pwrp_17amar2101_web.jar pwr_rt_client.jar
17amar2101 being my project name.
Another question: I export my GE graph as javaframe but where is this "export" available ? is it a file or included into a java class ? Can I point directly to it to make a try ?
I hope you can help me as I can't see what I forget
Thanks in advance
Snarf