- This topic has 7 replies, 3 voices, and was last updated 16 years, 11 months ago by mcaprioli.
-
AuthorPosts
-
mcaprioliMemberI 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.4Jarsigner 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)
Loyal WaterMembermcaprioli,
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.
mcaprioliMember*** 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 WorkbenchVersion: 5.5.1 GA
Build id: 20070521-5.5.1-GAEclipse Platform
Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
Build id: M20070212-1330Eclipse RCP
Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
Build id: M20070212-1330Eclipse Java Development Tools
Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
Build id: M20070212-1330Eclipse Plug-in Development Environment
Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
Build id: M20070212-1330Eclipse Project SDK
Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
Build id: M20070212-1330Eclipse Graphical Editing Framework
Version: 3.2.2.v20070208
Build id: 20070208-1315Eclipse 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
mcaprioliMemberI 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.
Loyal WaterMemberHow are you exporting the project as an applet using ME ? Can you list the steps here for me please.
mcaprioliMemberNOTE: 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
Riyad KallaMemberMoving 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.
mcaprioliMemberWe had already upgraded the commons-logging.jar to version 1.1.1.
What is the next course of action? -
AuthorPosts