Using the ASA ODBC driver  Makefile for C components

Release Bulletin Sybase® Enterprise Portal Enterprise Edition Version 5.0 for Windows

Sample program issues

This section describes problems with sample programs.


AuthServiceDemo sample

[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.


SecurityDemo sample

[CR #290444] You can run the SecurityDemo sample as described in the following.

StepsRunning the SecurityDemo sample

  1. Import the JAR file:

    1. Highlight the top-level Packages folder and choose File | Deploy | Jaguar JAR.

    2. Browse to the html/classes/Sample/SecurityDemo directory in your EAServer installation, and select the file SecurityDemo.jar.

    3. Click OK to import.

  2. Install the package to the Jaguar server:

    1. Expand the Servers folder, then expand the Jaguar icon.

    2. Highlight the Installed Packages folder under the Jaguar server and choose File | Install Package.

    3. Click Install an Existing Package.

    4. Choose SecurityDemo from the list and click OK.

  3. Generate stubs and skeletons:

    1. Expand the Packages folder and highlight the SecurityDemo package. Choose File | Generate Stubs/Skeletons…

    2. Select Generate Stubs.

    3. Select Generate Java Stubs and change the type to CORBA if another type is displayed in the drop-down list.

    4. Select Generate Java Files.

    5. Change the Java code base to the html/classes directory in your EAServer installation location; for example:

      C:\EAS\EAServer\html\classes
      
    6. Select the Compile Java Stubs option.

    7. Select Generate Skeletons.

    8. Change the Java code base to the html/classes directory in your EAServer installation location; for example:

      C:\EAS\EAServer\html\classes
      
    9. Select Compile Java Skeletons.

    10. For Java Version, select JDK 1.2 and Above.

      For Generation Strategy, select Full.

    11. Click Generate.

  4. Edit the UserCredentialsClient.java client source file to add the following import statement above the existing import statements:

    import SecurityDemo.*;
    
  5. 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
    
  6. Copy the easclient.jar and easj2ee.jar files from java/lib in your installation to the html/classes directory.

  7. 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.

  8. 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>
    
  9. 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>
    
  10. 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
    
  11. 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. Makefile for C components

View this release bulletin as PDF