facebook

Export applet error

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #281083 Reply

    mcaprioli
    Member

    I am trying to export an applet by creating a jar file.

    MyEclipse version 5.5.1 GA
    Build: 20070521-5.5.1-GA
    Code compiled with Java 1.4

    Jarsigner 1.4.2 used.

    JRE 1.5.0_04

    Java Console error for applet

    java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.commons.logging.Log write)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.System.setProperty(Unknown Source)
    at com.cgi.was.applet.UploadApplet.init(UploadApplet.java:75)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    #281094 Reply

    Loyal Water
    Member

    mcaprioli,
    I need some more information on how you ran into this error. What were the steps you followed ? What app are you working with ? Can you go to MyEclipse > Installation Suimmary > Installation Details and paste the information here for me.

    #281243 Reply

    mcaprioli
    Member

    *** Date:
    Tuesday, January 29, 2008 7:43:19 AM EST

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 5.5.1 GA
    Build id: 20070521-5.5.1-GA

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.5.1 GA
    Build id: 20070521-5.5.1-GA

    Eclipse Platform

    Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
    Build id: M20070212-1330

    Eclipse RCP

    Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
    Build id: M20070212-1330

    Eclipse Java Development Tools

    Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
    Build id: M20070212-1330

    Eclipse Plug-in Development Environment

    Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
    Build id: M20070212-1330

    Eclipse Project SDK

    Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
    Build id: M20070212-1330

    Eclipse Graphical Editing Framework

    Version: 3.2.2.v20070208
    Build id: 20070208-1315

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Program Files\MyEclipse 5.5.1 GA\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    45c_7c
    -vm
    C:\Program Files\MyEclipse 5.5.1 GA\jre\bin\javaw.exe

    #281244 Reply

    mcaprioli
    Member

    I export the project as an applet with the existing manifest (I have tried creating a new manifest and both fail). Use jarsigner to sign the applet.

    #281264 Reply

    Loyal Water
    Member

    How are you exporting the project as an applet using ME ? Can you list the steps here for me please.

    #281267 Reply

    mcaprioli
    Member

    NOTE: This applet export functioned properly in the past using WDSC 5.1.2. Our company just moved to MyEclipse.
    STEPS>
    Right click on <applet name> project, select Export
    Select JAR file and click next;
    On the next screen: Select a destination directory,
    The following are checked : .classpath and .project, export generated class files and resources, compress the contents of the JAR file, add directory entries ; CLICK NEXT
    Next screen> Both are checked: Export class files with compile errors, export class files with compile warnings CLICK NEXT;
    Next screen> Use existing manifest
    CLICK FINISH

    #281303 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    From the error you originally reported, it looks like the use of commons-logging is triggering the security manager to throw an exception. This is a generic Applet permission issue and not one specific to MyEclipse, moving for community’s input on JAR signing or permission suggestions with the JAR.

    #281452 Reply

    mcaprioli
    Member

    We had already upgraded the commons-logging.jar to version 1.1.1.
    What is the next course of action?

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Export applet error

You must be logged in to post in the forum log in