This section describes problems with sample programs.
[CR #273318] The readme.html file for the AuthServiceDemo sample refers to an incorrect property name. The property referred to as com.sybase.jaguar.component.adminipaddress should be com.sybase.jaguar.component.jagadminipaddress.
[CR #290444] You can run the SecurityDemo sample as described in the following.
Running the SecurityDemo sample
Import the JAR file:
Highlight the top-level Packages folder and choose File | Deploy | Jaguar JAR.
Browse to the html/classes/Sample/SecurityDemo directory in your EAServer installation, and select the file SecurityDemo.jar.
Click OK to import.
Install the package to the Jaguar server:
Expand the Servers folder, then expand the Jaguar icon.
Highlight the Installed Packages folder under the Jaguar server and choose File | Install Package.
Click Install an Existing Package.
Choose SecurityDemo from the list and click OK.
Generate stubs and skeletons:
Expand the Packages folder and highlight the SecurityDemo package. Choose File | Generate Stubs/Skeletons…
Select Generate Stubs.
Select Generate Java Stubs and change the type to CORBA if another type is displayed in the drop-down list.
Select Generate Java Files.
Change the Java code base to the html/classes directory in your EAServer installation location; for example:
C:\EAS\EAServer\html\classes
Select the Compile Java Stubs option.
Select Generate Skeletons.
Change the Java code base to the html/classes directory in your EAServer installation location; for example:
C:\EAS\EAServer\html\classes
Select Compile Java Skeletons.
For Java Version, select JDK 1.2 and Above.
For Generation Strategy, select Full.
Click Generate.
Edit the UserCredentialsClient.java client source file to add the following import statement above the existing import statements:
import SecurityDemo.*;
Compile the UserCredentialsClient.java client source file with the jc batch file provided in your EAServer installation. For example:
cd %JAGUAR%\html\classes\Sample\SecurityDemo %JAGUAR%\bin\jc UserCredentialsClient.java
Copy the easclient.jar and easj2ee.jar files from java/lib in your installation to the html/classes directory.
The client applet must be run in Sun’s Java Plug-in, version 1.3 or later. If necessary, download and install the plug-in from the Sun Web site.
Edit the runsecdemo.html file.
Replace the <APPLET></APPLET>
tag
and its contents with the following:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 600 HEIGHT = 400 codebase= "http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version =1,3,0,0" > <PARAM NAME = CODE VALUE = "Sample/SecurityDemo/UserCredentialsClient.class"> <PARAM NAME = CODEBASE VALUE = "/classes"> <PARAM NAME = ARCHIVE VALUE = "easj2ee.jar,easclient.jar"> <PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.3"> <PARAM NAME="scriptable" VALUE="false"> <PARAM NAME = "org.omg.CORBA.ORBClass" VALUE = "com.sybase.CORBA.ORB"> <PARAM NAME = "compName" VALUE = "SecurityDemo/JUserCredentialTest"> <COMMENT> <EMBED type="application/x–java-applet;version=1.3" CODE = "Sample/SecurityDemo/UserCredentialsClient.class" CODEBASE = "/classes" ARCHIVE = "easj2ee.jar,easclient.jar" WIDTH = 600 HEIGHT = 400 org.omg.CORBA.ORBClass="com.sybase.CORBA.ORB" compName="SecurityDemo/JUserCredentialTest" scriptable=false pluginspage= "http://java.sun.com/products/plugin/1.3/plugin–install.html"> <NOEMBED> </COMMENT> <H2>This would be a Cool Applet, but you are not running a Java enabled browser...</H2> </NOEMBED> </EMBED> </OBJECT>
Edit the runcsecdemo.html file.
Replace the <APPLET></APPLET>
tag and
its contents with the following:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 600 HEIGHT = 400 codebase= "http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version =1,3,0,0" > <PARAM NAME = CODE VALUE = "Sample/SecurityDemo/UserCredentialsClient.class"> <PARAM NAME = CODEBASE VALUE = "/classes"> <PARAM NAME = ARCHIVE VALUE = "easj2ee.jar,easclient.jar"> <PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.3"> <PARAM NAME="scriptable" VALUE="false"> <PARAM NAME = "org.omg.CORBA.ORBClass" VALUE = "com.sybase.CORBA.ORB"> <PARAM NAME = "compName" VALUE = "SecurityDemo/CUserCredentialTest"> <COMMENT> <EMBED type="application/x-java-applet;version=1.3" CODE = "Sample/SecurityDemo/UserCredentialsClient.class" CODEBASE = "/classes" ARCHIVE = "easj2ee.jar,easclient.jar" WIDTH = 600 HEIGHT = 400 org.omg.CORBA.ORBClass="com.sybase.CORBA.ORB" compName="SecurityDemo/CUserCredentialTest" scriptable=false pluginspage= "http://java.sun.com/products/plugin/1.3/plugin-install.html"> <NOEMBED> </COMMENT> <H2>This would be a Cool Applet, but you are not running a Java enabled browser...</H2> </NOEMBED> </EMBED> </OBJECT>
To run the Java security demo, load this URL in the browser where the Java Plug-in is installed, substituting the server machine name for host:
http://host:8080/classes/Sample/SecurityDemo/runsecdemo.html
To run the C++ security demo, load this URL in the browser where the Java Plug-in is installed, substituting the server machine name for host:
http://host:8080/classes/Sample/SecurityDemo/runcsecdemo.html
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |