Java.security.AccessControlException: access denied when loading from a jar
Hello!
I am trying to deploy an applet into a browser but I have encountered a security problem.
The name of the applet is SWTInBrowser(not exactly mine, it's an example from the web).
package my.applet;
import org.eclipse.swt.awt.SWT_AWT;
import java.applet.Applet;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Canvas;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.FillLayout;
public class SWTInBrowser extends Applet implements Runnable{
public void init () {
/* Create Example AWT and Swing widgets */
java.awt.Button awtButton = new java.awt.Button("AWT Button");
add(awtButton);
awtButton.addActionListener(new ActionListener () {
public void actionPerformed (ActionEvent event) {
showStatus ("AWT Button Selected");
javax.swing.JButton jButton = new javax.swing.JButton("Swing Button");
add(jButton);
jButton.addActionListener(new ActionListener () {
public void actionPerformed (ActionEvent event) {
showStatus ("Swing Button Selected");
Thread swtUIThread = new Thread (this);
swtUIThread.start ();
public void run() {
/* Create an SWT Composite from an AWT canvas to be the parent of the SWT
widgets.
* The AWT Canvas will be layed out by the Applet layout manager. The
layout of the
* SWT widgets is handled by the application (see below).
Canvas awtParent = new Canvas();
add(awtParent);
Display display = new Display();
Shell swtParent = SWT_AWT.new_Shell(display, awtParent);
// Display display = swtParent.getDisplay();
swtParent.setLayout(new FillLayout());
/* Create SWT widget */
org.eclipse.swt.widgets.Button swtButton = new
org.eclipse.swt.widgets.Button(swtParent, SWT.PUSH);
swtButton.setText("SWT Button");
swtButton.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event event){
showStatus("SWT Button selected.");
swtButton.addListener(SWT.Dispose, new Listener() {
public void handleEvent(Event event){
System.out.println("Button was disposed.");
// Size AWT Panel so that it is big enough to hold the SWT widgets
Point size = swtParent.computeSize (SWT.DEFAULT, SWT.DEFAULT);
awtParent.setSize(size.x + 2, size.y + 2);
// Need to invoke the AWT layout manager or AWT and Swing
// widgets will not be visible
validate();
// The SWT widget(s) require an event loop
while (!swtParent.isDisposed()) {
if (!display.readAndDispatch()) display.sleep ();
}It works perfectly in the Applet Viewer, but not in the browser. In the browser, I only get two buttons working, the SWT button doesn't appear, because of this error:
Exception in thread "Thread-21" java.lang.ExceptionInInitializerError
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:130)
at my.applet.SWTInBrowser.run(SWTInBrowser.java:52)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission sun.arch.data.model read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:167)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
... 3 moreI have exported the application in a jar, and in that jar I have put the swt.jar that the application need for the displaying of the third button, swt button.
Here is also the HTML file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252"/>
<title>
Test
</title>
</head>
<body>
<p>
<applet code="my.applet.SWTInBrowser"
archive="Test.jar"
width="1400" height="800">
</applet>
</p>
</body>
</html>Could anyone please help me solve this problem?
This is in reply to the first post. I don't know what happened after.
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission sun.arch.data.model read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:167)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
If you read the above trace from bottom to top, it shows none of you classes, only classes from that Eclipse library, which seems to loadLibrary() a native DLL. In order to do this, it needs to call System.getProperty( "sun.arch.data.model" ). This call is not allowed from un unsigned applet. So I guess you need to sign the applet and this problem will go away. Many other problems may follow. Just read very very carefully all the related documentation, which I did not.
Similar Messages
-
Hi !
WLS version: 5.1 with SP10
Server OS: NT4
Client distr.: Java WebStart
Client OS: Windows 2000
I get the following exception when I try to create a T3 connection
(tunnelled through HTTP) to my WLS server:
java.security.AccessControlException: access denied
(java.util.PropertyPermission proxyHost read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at weblogic.net.http.HttpClient.resetProperties(HttpClient.java:62)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:186)
at weblogic.net.http.HttpClient.<init>(HttpClient.java:85)
at weblogic.net.http.HttpClient.New(HttpClient.java:117)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:97)
at
weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1
44)
at weblogic.socket.JVMSocketHTTPClient.sendMsg(JVMSocketHTTPClient.java:260)
at weblogic.socket.JVMAbbrevSocket.sendOutMsg(JVMAbbrevSocket.java:348)
at weblogic.socket.JVMAbbrevSocket.sendMsg(JVMAbbrevSocket.java:237)
at weblogic.rjvm.ConnectionManager.sendMsg(ConnectionManager.java:420)
at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:564)
at
weblogic.rjvm.MsgAbbrevOutputStream.flushAndSendRaw(MsgAbbrevOutputStream.ja
va:155)
at
weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:
163)
at
weblogic.rjvm.MsgAbbrevOutputStream.sendRecv(MsgAbbrevOutputStream.java:186)
at
weblogic.rmi.internal.BasicOutgoingRequest.sendRecv(BasicOutgoingRequest.jav
a:23)
at
weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:73)
at
com.unitor.message.server.UserInformationServiceBeanHomeImpl_WLStub.create(U
serInformationServiceBeanHomeImpl_WLStub.java:151)
at
com.unitor.message.server.UserInformationServiceBeanHomeImpl_ServiceStub.cre
ate(UserInformationServiceBeanHomeImpl_ServiceStub.java:121)
at
com.unitor.message.beans.gui.MessageLogic.getUserInformationService(MessageL
ogic.java:230)
at
com.unitor.message.beans.gui.MessageLogic.addUserInformation(MessageLogic.ja
va:186)
at com.unitor.message.beans.gui.MessageLogic.<init>(MessageLogic.java:104)
at
com.unitor.message.beans.gui.MessageApplication.internalStartApplication(Mes
sageApplication.java:64)
at
com.unitor.ifs.util.gui.UnitorApplication.startApplication(UnitorApplication
.java:167)
at
com.unitor.ifs.util.gui.DesktopApplication$ApplicationLoader.run(DesktopAppl
ication.java:676)
at
com.unitor.ifs.util.gui.DesktopApplication.startApplication(DesktopApplicati
on.java:303)
at
com.unitor.ifs.util.gui.UnitorDesktopAppStarter$SwingEventCall.run(UnitorDes
ktopAppStarter.java:294)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
The strange thing is that I can connect to my server if I run the client on
NT4 !!!
I solved the problem by modifying my local java.policy file with the
following settings:
// Test with HTTP tunnelling. 18.10.2001
[email protected]
permission java.util.PropertyPermission "proxyHost", "read";
permission java.util.PropertyPermission "proxyPort", "read";
permission java.util.PropertyPermission "http.proxyHost", "read";
permission java.util.PropertyPermission "http.proxyPort", "read";
permission java.net.SocketPermission "*","connect,resolve";
// Test with HTTP tunnelling. 18.10.2001
[email protected]
Have someone else experienced the same or similar problems ?
How can I make sure that the client gets access to read the properties
http.proxyHost, http.proxyPort, proxyHost and proxyPort without telling the
users of the client application to modify their java.policy files ?
Any leads will be greatly appreciated !
Regards
Sten RichardThis is in reply to the first post. I don't know what happened after.
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission sun.arch.data.model read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:167)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
If you read the above trace from bottom to top, it shows none of you classes, only classes from that Eclipse library, which seems to loadLibrary() a native DLL. In order to do this, it needs to call System.getProperty( "sun.arch.data.model" ). This call is not allowed from un unsigned applet. So I guess you need to sign the applet and this problem will go away. Many other problems may follow. Just read very very carefully all the related documentation, which I did not. -
Applet Error:java.security.AccessControlException: access denied
Hi,
I just successful deploy an business component project to oralce 8.1.6 as an EJB Session bean, and
the test of application module is successful. In the same workspace, I create an new project with
an applet(which contains only an grid control)as a client of the business component. Everything works
fine within the Applet viewer, however, when I trying to load the applet in IE5.5 I got the following
error message in java console:
Java(TM) Plug-in
Using JRE version 1.2.1
User home directory = D:\Documents and Settings\ERic
Proxy Configuration: no proxy
JAR cache enabled.
Failed to query environment: 'access denied (java.util.PropertyPermission jbo.debugoutput read)'
Diagnostics: Silencing all diagnostic output (use -Djbo.debugoutput=console to see it)
Failed to query environment: 'access denied (java.util.PropertyPermission jbo.logging.show.timing read)'
Failed to query environment: 'access denied (java.util.PropertyPermission jbo.logging.show.function read)'
Failed to query environment: 'access denied (java.util.PropertyPermission jbo.logging.show.level read)'
Failed to query environment: 'access denied (java.util.PropertyPermission jbo.logging.show.linecount read)'
Failed to query environment: 'access denied (java.util.PropertyPermission jbo.logging.trace.threshold read)'
Failed to query environment: 'access denied (java.util.PropertyPermission jbo.jdbc.driver.verbose read)'
java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission org.omg.CORBA.ORBClass read)
at java.security.AccessControlContext.checkPermission(Compiled Code)
at oracle.aurora.jndi.orb_dep.Orb.<clinit>(Orb.java:24)
at oracle.aurora.jndi.sess_iiop.sess_iiopURLContext.<clinit>(sess_iiopURLContext.java:9)
at javax.naming.spi.NamingManager.getURLObject(NamingManager.java:588)
at javax.naming.spi.NamingManager.getURLContext(NamingManager.java:537)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:274)
at javax.naming.InitialContext.lookup(InitialContext.java:349)
at oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.connectToService(AuroraEJBAmHomeImpl.java:179)
at oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.createSession(AuroraEJBAmHomeImpl.java:152)
at oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.initRemoteHome(AuroraEJBAmHomeImpl.java:123)
at oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.<init>(AuroraEJBAmHomeImpl.java:59)
at oracle.jbo.client.remote.ejb.aurora.AuroraEJBInitialContext.createJboHome(AuroraEJBInitialContext.java:47)
at oracle.jbo.common.JboInitialContext.lookup(JboInitialContext.java:72)
at javax.naming.InitialContext.lookup(InitialContext.java:349)
at oracle.dacf.dataset.SessionInfo._createAppModule(SessionInfo.java:2330)
at oracle.dacf.dataset.SessionInfo.connect(SessionInfo.java:1799)
at oracle.dacf.dataset.SessionInfo.openProducerObject(SessionInfo.java:1848)
at oracle.dacf.dataset.ProducerObject.open(ProducerObject.java:94)
at oracle.dacf.dataset.SessionInfo.publishSession(SessionInfo.java:1305)
at oracle.dacf.dataset.SessionInfo.publishSession(SessionInfo.java:1287)
at broadcastapplet.myBroadCastApplet.init(myBroadCastApplet.java:70)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
The Oracle 8.1.6 runs on Win2000, I put the JAR & related zip files in the same machine's IIS webserver.
Is anyone can help?
ERicHi Shaji,
Are you calling a webservice from within an Xacute Query for your applet? On first glance, it looks like a web service call is being rejected due to security permissions. If you have a webservice call (or HTTP post/get), can you test it separately with the same credentials as the webpage is using?
Regards,
Mike -
Hello,
I am very near to complete my this task but every time i think this i find myself stuck in a new exception. Plz get me out of it.My problem is:
I created a client/server chat applet for providing online support to our company site visitors. Both server and client are applet.I am using serversocket at server side and socket(getCodeBase()) at client side to establish the connection.
The code compiled and run fine, without any exception or error when i run it on a standalone PC (althought PC is in LAN but i used that PC name to connect to itself).
But when i uploaded the applet on my personal site (i don't know any other way to test it:- dont know how to use tomcat even yet.) it is throwing an exception:-
java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkExit(Unknown Source)
at java.lang.Runtime.exit(Unknown Source)
at java.lang.System.exit(Unknown Source)
at Connect.run(ClientChat.java:229)
at java.lang.Thread.run(Unknown Source)
I didnt made it jar or signed the applet which is not needed bcoz applet is trying to make connection to the site it is loaded from. I think i have to grant permission in the policy file and then complie it again. But i couldnt find which permission to grant. Plz pull me out of this problem, I dont want to drown on shore.
Thanx in advance CHAO
luv
Manuat java.lang.Runtime.exit(Unknown Source)
at java.lang.System.exit(Unknown Source)
at Connect.run(ClientChat.java:229)
at java.lang.Thread.run(Unknown Source)You can't call System.exit() from an Applet - there might be other things running in the JVM that you would be killing. Stop that.
Grant -
Java.security.AccessControlException: access denied; for a signed applet
Hi,
I have a signed applet which is used to read local files. When I call the applet method which is reading the file, from javascript I am getting "java.security.AccessControlException: access denied ". Where as if the method gets called during applet load, file is read without errors? How can I get over this problem?
If there is a way loading the applet based on a condition from Javascript, please let me know.
Thanks,[http://forums.sun.com/thread.jspa?forumID=421&threadID=5308353]
-
This looks like it might be a bug in 6.1SP5,
weblogic/kernel/Kernel.java at line 85.
It's trying to do the right thing to ignore an exception if in
an applet but it's ignoring the wrong exception
(SecurityException, when it looks like the stack
trace is throwing a java.security.AccessControlException).
If you need a fix, this would need to go through support
and be filed as a problem with WLS Core.
"Ram Gopal" <[email protected]> wrote in message
news:[email protected]...
>
> We are in the process of migrating from Weblogic 6.1 SP2 to SP5. We have
an applet
> that subscribes to a JMS Topic.
> The applet is throwing the following exception with SP5:
>
> java.lang.ExceptionInInitializerError:
java.security.AccessControlException: access
> denied (java.util.PropertyPermission weblogic.kernel.allowQueueThrottling
read)
>
> at java.security.AccessControlContext.checkPermission(Unknown Source)
>
> at java.security.AccessController.checkPermission(Unknown Source)
>
> at java.lang.SecurityManager.checkPermission(Unknown Source)
>
> at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
>
> at java.lang.System.getProperty(Unknown Source)
>
> at weblogic.kernel.Kernel.initAllowThrottleProp(Kernel.java:79)
>
> at weblogic.kernel.Kernel.<clinit>(Kernel.java:54)
>
> at
weblogic.jndi.WLInitialContextFactoryDelegate.<init>(WLInitialContextFactory
Delegate.java:166)
>
> at java.lang.Class.newInstance0(Native Method)
>
> at java.lang.Class.newInstance(Unknown Source)
>
> at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:147)
>
> at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
>
> at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
>
> at javax.naming.InitialContext.init(Unknown Source)
>
> at javax.naming.InitialContext.<init>(Unknown Source)
>
> at
com.fedex.efm.frontend.model.JMSMessageProcessor.<init>(JMSMessageProcessor.
java:266)
>
> at
com.fedex.efm.frontend.view.EFMAbstractApplet.startMessageProcessor(EFMAbstr
actApplet.java:81)
>
> at
com.fedex.efm.frontend.view.EFMAbstractApplet.start(EFMAbstractApplet.java:1
87)
>
> at com.fedex.efm.frontend.view.EFMApplet.start(EFMApplet.java:430)
>
> at sun.applet.AppletPanel.run(Unknown Source)
>
> at java.lang.Thread.run(Unknown Source)
>
>
> Any ideas as to what I am missing?
>
> Thanks,
> Ram
I suggest going through customer support, I don't know what
the resolution was. You might also try the security newsgroup,
as no JMS code has been called by the application yet at
the point the exception is thrown.
Tom
lee wrote:
> All:
> We are upgrading weblogic 6.0 to weblogic 6.1 and encounted exactly the same error. Just wondering if you guys were able to fix the issue with bea.
>
> Your response is highly appreciated.
>
> Thanks!
>
> Li
-
Hi Everybody
I downloaded and installed weblogic as per the installation document
but I am getting the following exception and finally the server
is started. Can somebody help me to resolve this problem
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jts.internal.TransactionManagerImpl.<init>(TransactionManagerImpl.java:24)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:35 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jts.internal.CoordinatorFactoryImpl.start(CoordinatorFactoryImpl.java:52)
at weblogic.jts.internal.TransactionManagerImpl.<init>(TransactionManagerImpl.java:33)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:35 EST 2001:<I> <WebLogicServer> Invoking main-style
startup weblogic.jdbc.common.internal.JdbcStartup weblogic.jdbc.common.internal.JdbcStartup
Wed Feb 28 12:55:35 EST 2001:<E> <JDBC Init> ERROR: Could not get
JNDI context: javax.naming.NoInitialContextException: Cannot instantiate
class: weblogic.jndi.WLInitialContextFactory [Root exception is
java.security.AccessControlException: access denied (java.lang.RuntimePermission
getClassLoader )]
Wed Feb 28 12:55:35 EST 2001:<I> <JMS> Beginning startup process
Wed Feb 28 12:55:35 EST 2001:<I> <JMS> Init JMS Security
Wed Feb 28 12:55:35 EST 2001:<I> <JMS> Initializing from weblogic.properties
Wed Feb 28 12:55:35 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jms.server.JMSManager.getContext(JMSManager.java:851)
at weblogic.jms.server.JMSManager.getContext(JMSManager.java:835)
at weblogic.jms.server.JMSManager.doInitFromProperties(JMSManager.java:483)
at weblogic.jms.server.JMSManager.initFromProperties(JMSManager.java:472)
at weblogic.jms.server.JMSManager.init(JMSManager.java:299)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:35 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jms.server.JMSManager.getContext(JMSManager.java:851)
at weblogic.jms.server.JMSManager.doInitFromProperties(JMSManager.java:488)
at weblogic.jms.server.JMSManager.initFromProperties(JMSManager.java:472)
at weblogic.jms.server.JMSManager.init(JMSManager.java:299)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<I> <JMS> Startup process complete.
JMS is active
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jms.server.JMSManager.getContext(JMSManager.java:851)
at weblogic.jms.server.JMSManager.initSessionPoolManager(JMSManager.java:317)
at weblogic.jms.server.JMSManager.init(JMSManager.java:308)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<I> <JMS> Bound SessionPoolManager
as weblogic.jms.SessionPoolManager
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jms.server.JMSManager.getContext(JMSManager.java:851)
at weblogic.jms.server.JMSManager.initConnectionConsumerManager(JMSManager.java:333)
at weblogic.jms.server.JMSManager.init(JMSManager.java:310)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<I> <JMS> Bound ConnectionConsumerManager
as weblogic.jms.ConnectionConsumerManager
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.t3.srvr.T3Srvr.bindServer(T3Srvr.java:1476)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(Compiled
Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.t3.srvr.T3Srvr.bindServer(T3Srvr.java:1495)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<I> <WebLogicServer> Invoking main-style
startup RMI Registry weblogic.rmi.internal.RegistryImpl
Wed Feb 28 12:55:36 EST 2001:<I> <RMI> Registry started
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(Compiled
Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.common.internal.T3BindableServices.initialize(T3BindableServices.java:114)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(Compiled
Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.ejb.internal.EJBManagerImpl.bindToJNDI(EJBManagerImpl.java:580)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:226)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<E> <EJB> Cannot intialize Mail Session
resources because could not get JNDI context: javax.naming.NoInitialContextException:
Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
[Root exception is java.security.AccessControlException: access
denied (java.lang.RuntimePermission getClassLoader )]
Wed Feb 28 12:55:36 EST 2001:<I> <EJB> 0 EJB jar files loaded,
containing 0 EJBs
Wed Feb 28 12:55:36 EST 2001:<I> <EJB> 0 deployed, 0 failed to
deploy.
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(Compiled
Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(Compiled
Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.io.common.internal.T3FileSystemProxyImpl.installFileSystems(Compiled
Code)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<E> <ServletContext-General> cannot
make temp directory '/opt/weblogic/myserver/public_html/_tmp_war',
will not be able to compile JSPs
Wed Feb 28 12:55:36 EST 2001:<E> <HTTP> Cannot intialize httpd
URL resources because could not get JNDI context: javax.naming.NoInitialContextException:
Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
[Root exception is java.security.AccessControlException: access
denied (java.lang.RuntimePermission getClassLoader )]
Lot of thanks for your help.Check the weblogic.policy file to make sure that it is giving permissions to the right directories. If you have
installed a Service Pack, make sure that both service pack jar files are at the front of their corresponding
classpaths...
vj wrote:
Hi Everybody
I downloaded and installed weblogic as per the installation document
but I am getting the following exception and finally the server
is started. Can somebody help me to resolve this problem
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jts.internal.TransactionManagerImpl.<init>(TransactionManagerImpl.java:24)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:35 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jts.internal.CoordinatorFactoryImpl.start(CoordinatorFactoryImpl.java:52)
at weblogic.jts.internal.TransactionManagerImpl.<init>(TransactionManagerImpl.java:33)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:35 EST 2001:<I> <WebLogicServer> Invoking main-style
startup weblogic.jdbc.common.internal.JdbcStartup weblogic.jdbc.common.internal.JdbcStartup
Wed Feb 28 12:55:35 EST 2001:<E> <JDBC Init> ERROR: Could not get
JNDI context: javax.naming.NoInitialContextException: Cannot instantiate
class: weblogic.jndi.WLInitialContextFactory [Root exception is
java.security.AccessControlException: access denied (java.lang.RuntimePermission
getClassLoader )]
Wed Feb 28 12:55:35 EST 2001:<I> <JMS> Beginning startup process
Wed Feb 28 12:55:35 EST 2001:<I> <JMS> Init JMS Security
Wed Feb 28 12:55:35 EST 2001:<I> <JMS> Initializing from weblogic.properties
Wed Feb 28 12:55:35 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jms.server.JMSManager.getContext(JMSManager.java:851)
at weblogic.jms.server.JMSManager.getContext(JMSManager.java:835)
at weblogic.jms.server.JMSManager.doInitFromProperties(JMSManager.java:483)
at weblogic.jms.server.JMSManager.initFromProperties(JMSManager.java:472)
at weblogic.jms.server.JMSManager.init(JMSManager.java:299)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:35 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jms.server.JMSManager.getContext(JMSManager.java:851)
at weblogic.jms.server.JMSManager.doInitFromProperties(JMSManager.java:488)
at weblogic.jms.server.JMSManager.initFromProperties(JMSManager.java:472)
at weblogic.jms.server.JMSManager.init(JMSManager.java:299)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<I> <JMS> Startup process complete.
JMS is active
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jms.server.JMSManager.getContext(JMSManager.java:851)
at weblogic.jms.server.JMSManager.initSessionPoolManager(JMSManager.java:317)
at weblogic.jms.server.JMSManager.init(JMSManager.java:308)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<I> <JMS> Bound SessionPoolManager
as weblogic.jms.SessionPoolManager
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.jms.server.JMSManager.getContext(JMSManager.java:851)
at weblogic.jms.server.JMSManager.initConnectionConsumerManager(JMSManager.java:333)
at weblogic.jms.server.JMSManager.init(JMSManager.java:310)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<I> <JMS> Bound ConnectionConsumerManager
as weblogic.jms.ConnectionConsumerManager
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:240)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.t3.srvr.T3Srvr.bindServer(T3Srvr.java:1476)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(Compiled
Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.t3.srvr.T3Srvr.bindServer(T3Srvr.java:1495)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<I> <WebLogicServer> Invoking main-style
startup RMI Registry weblogic.rmi.internal.RegistryImpl
Wed Feb 28 12:55:36 EST 2001:<I> <RMI> Registry started
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(Compiled
Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.common.internal.T3BindableServices.initialize(T3BindableServices.java:114)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(WLInitialContextFactoryDelegate.java:279)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(Compiled
Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.ejb.internal.EJBManagerImpl.bindToJNDI(EJBManagerImpl.java:580)
at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:226)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<E> <EJB> Cannot intialize Mail Session
resources because could not get JNDI context: javax.naming.NoInitialContextException:
Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
[Root exception is java.security.AccessControlException: access
denied (java.lang.RuntimePermission getClassLoader )]
Wed Feb 28 12:55:36 EST 2001:<I> <EJB> 0 EJB jar files loaded,
containing 0 EJBs
Wed Feb 28 12:55:36 EST 2001:<I> <EJB> 0 deployed, 0 failed to
deploy.
Wed Feb 28 12:55:36 EST 2001:<E> <Service>
java.lang.reflect.InvocationTargetException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission setContextClassLoader
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at java.lang.SecurityException.<init>(Compiled Code)
at java.security.AccessControlException.<init>(Compiled Code)
at java.security.AccessControlContext.checkPermission(Compiled
Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.Thread.setContextClassLoader(Compiled Code)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.jndi.internal.Utils.setContextClassLoader(Utils.java:73)
at weblogic.jndi.WLInitialContextFactoryDelegate.newLocalContext(Compiled
Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(Compiled
Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compiled
Code)
at weblogic.jndi.Environment.getContext(Environment.java:122)
at weblogic.jndi.Environment.getInitialContext(Environment.java:105)
at weblogic.io.common.internal.T3FileSystemProxyImpl.installFileSystems(Compiled
Code)
at weblogic.t3.srvr.T3Srvr.start(Compiled Code)
at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:99)
at weblogic.Server.main(Server.java:65)
at weblogic.Server.main(Server.java:55)
Wed Feb 28 12:55:36 EST 2001:<E> <ServletContext-General> cannot
make temp directory '/opt/weblogic/myserver/public_html/_tmp_war',
will not be able to compile JSPs
Wed Feb 28 12:55:36 EST 2001:<E> <HTTP> Cannot intialize httpd
URL resources because could not get JNDI context: javax.naming.NoInitialContextException:
Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
[Root exception is java.security.AccessControlException: access
denied (java.lang.RuntimePermission getClassLoader )]
Lot of thanks for your help. -
Primavera P6 WebAcess "java.security.AccessControlException: access denied"
Hi, everyone.
We try continuing evaluation and testing our P6 installation.
We have deployment our "primaveraweb" on an WebLogic 11.g
When try to access to our "activities": Dashboards -> Personal Workspace -> "my project" -> Activities of "my project" I obtain the following stack of errors at javaconsole
java.security.AccessControlException: access denied (java.util.PropertyPermission http.strictPostRedirect read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at java.lang.Boolean.getBoolean(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.followRedirect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.primavera.infr.q.httpq.HttpQProxyObject.dequeue(Unknown Source)
at com.primavera.infr.q.AbstractQProxyObject.executeStaticMethod(Unknown Source)
at com.primavera.bo.remotable.qproxy.RemoteRequest.loadData(Unknown Source)
at com.primavera.pvapplets.gantt.GanttContainer.loadDataStore(Unknown Source)
at com.primavera.pvapplets.activities.ActivitiesContainer.loadDataStore(Unknown Source)
at com.primavera.pvapplets.gantt.GanttContainer.loadData(Unknown Source)
at com.primavera.pvapplets.gantt.ToolbarGanttContainer.reloadDataAndReinitGUI(Unknown Source)
at com.primavera.pvapplets.activities.ActivitiesContainer.reloadDataAndReinitGUI(Unknown Source)
at com.primavera.pvapplets.gantt.ToolbarGanttContainer.reloadData(Unknown Source)
at com.primavera.pvapplets.activities.ActivitiesContainer.reloadData(Unknown Source)
at com.primavera.pvapplets.gantt.GanttContainer.initialize(Unknown Source)
at com.primavera.pvapplets.activities.ActivitiesContainer.<init>(Unknown Source)
at com.primavera.pvapplets.activities.ActivitiesApplet.start(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Loading ilog/jlm/messages2.properties
Loading ilog/views/gantt/scale/resources/timescale.properties
Loading ilog/views/gantt/resources/actions_en.properties
Loading ilog/views/gantt/resources/actions.properties
Any help are welcome
Thanks in advance,
Diego.
Edited by: DiegoL on Oct 7, 2009 5:25 PMjava.security.AccessControlException: access denied (java.util.PropertyPermission http.strictPostRedirect read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
happens if the JRE you downloaded is not letting you run the applet that primavera downloaded.
does it happen in both IE / Firefox? For all users?
Cheers
Sury -
Hi, I am receiving the following error when I attempt to add a crypto provider.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.security.jca.ProviderConfig$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jca.ProviderConfig.doLoadProvider(Unknown Source)
at sun.security.jca.ProviderConfig.getProvider(Unknown Source)
at sun.security.jca.ProviderList.loadAll(Unknown Source)
at sun.security.jca.ProviderList.removeInvalid(Unknown Source)
at sun.security.jca.Providers.getFullProviderList(Unknown Source)
at java.security.Security.removeProvider(Unknown Source)
at com.gro.applet.GROAuthenticateApplet$2.run(GROAuthenticateApplet.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at com.gro.applet.GROAuthenticateApplet.validateUser(GROAuthenticateApplet.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.sunmscapi)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkLink(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.mscapi.SunMSCAPI$1.run(SunMSCAPI.java:34)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.mscapi.SunMSCAPI.<clinit>(SunMSCAPI.java:32)
... 32 more
java.lang.Exception: java.lang.ExceptionInInitializerError
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)I read somewhere that it is "Due to an additional dll that needs to be loaded for the Sun Java SE 6 JVM we get an exception during initialization"
Does anyone have any other information on this bug?I have just bumped into this with a Webstart application.
It seems to happen only on certain machines.
Is there a solution to this problem? -
Getting java.security.AccessControlException: access denied
My application is applet based. In this when i trying to read one image file from my drive folder it is giving
java.security.AccessControlException: access denied
i tried AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
// perform the security-sensitive operation here
but this is also not helping..
What i m suppossing is that applet will not allow to acess Client machine
then how i 'll get that image file from from my machine folder....
I want to use this image file set as windows icon..
or is there any other method to set the icon of the window
Edited by: Sandy10 on Mar 17, 2010 10:27 AM
Edited by: Sandy10 on Mar 17, 2010 12:06 PMHow does this differ from your [other question|http://forums.sun.com/thread.jspa?threadID=5432244]?
-
See my error java.security.AccessControlException: access denied how change
hi master
sir wrote connection class that run and give me right result
but when i call data from applet then
java give me error
java.security.AccessControlException: access denied (java.util.PropertyPermission oracle.jserver.version read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
=======
sir i serch in net i got some idea
i. change java.policy
and put this code
grant codeBase "http://ib-s01/-" {
permission java.security.AllPermission;
sir please give me idea i serch java.policy in my system that show many java.policy file
sir which file i use and where i put
this code
grant codeBase "http://ib-s01/-" {
permission java.security.AllPermission;
second idea got from net change the java.security
2. change java.security
and put this code
policy.url.1=file:${java.home}/lib/security/java.policy
sir please give me idea i serch java.policy in my system that show many java.security file
sir which file i use and where i put
this code
policy.url.1=file:${java.home}/lib/security/java.policy
please give me idea how i chang my java.policy and java.security file
thank you
aamirAmir,
You have to make your applet a signed applet.
Please search the Internet to find out how to do this.
Good Luck,
Avi. -
HELP!!! java.security.AccessControlException: access denied
Please help!
I have the project to use the applet to show the form, this applet is needed to read the file from the server side. when i using the jbuilder to coding, it can work to use the appletviewer to run the program to read the file.
After that i placed the code to the webapp (localhost), when i start up tomcat and use the ie to view the http://localhost:8080/auditForm/AuditForm.html. (this AuditForm.html is embedded the test.class. test.class use to read the file.
but error was occurred.
i am using the File Object to read file
File propertyFile=new File("C:/Tomcat/webapps/XX/WEB-INF/dbconfig.properties");java.security.AccessControlException: access denied (java.io.FilePermission C:\Tomcat\webapps\auditform\test\dbconfig.properties read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.canRead(Unknown Source)
at DBconfig.<init>(DBconfig.java:31)
at test.init(test.java:19)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
i am try to set the security policy in jdk, and tomcat, but also cannot work??? is it wrong setting??? how come.
urgent!!!!Hey guys,
You can access what ever file you want on the originating host i.e. the server.
Im guessing you guys are testing your applet code probably before it takes the form of an applet. It's fundamental to realise that applets are downloaded to the client and excuted in a 'sandbox' by the java-plugin installed in the client browser. Hence using a File instance pointing somewhere on the C:\ drive is totally pointless as you likely won't have permission to access the client's hard drive anyway. More to the point, it is totally wrong; the property files or movies do not reside on the client machine.... and there is no need to confuse matters by talking about signing Jars.
My advice is to read the Applet/JApplet APIs which cleary show how to access 'resources' on the server - no extra permissions are needed so it is not even a security issue. Also, you web application usually can not see outside its context/document base so you will need to put the property file or movies in the same directory (or a visible sub-directory) as the applet code/jar itself.
Hope this info is of some use.
Warm regards. -
import java.rmi.*;
public class Rem extends java.rmi.server.UnicastRemoteObject implements RemInt {
public static void main(String args[]) {
System.setSecurityManager(new RMISecurityManager());
try {
Rem r = new Rem();
Naming.rebind("saurabh", r);
} catch(Exception e) { e.printStackTrace(); }
public Rem() throws java.rmi.RemoteException {
public String give() {
return("u got it from server");
import java.rmi.Remote;
public interface RemInt extends java.rmi.Remote {
public String give() throws java.rmi.RemoteException;
STACK TRACE
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.
0.1:1099 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.ja
va:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1044)
at java.net.Socket.connect(Socket.java:419)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.<init>(Socket.java:290)
at java.net.Socket.<init>(Socket.java:118)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocke
tFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocke
tFactory.java:122)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:159)
at Rem.main(Rem.java:10)I also get that exception, but only when I use SSL and the client is launched with Java Web Start.
I have tried to solve the problem by changing the permissions in the policy file but the problem still arises.
If I use default sockets (i.e.: no SSL) the client runs ok.
This is the policy file that the server uses:
grant {
// allows anyone to listen on un-privileged ports
permission java.net.SocketPermission "*:1024-65535", "listen,accept,connect";
permission java.util.PropertyPermission "*", "read";
permission java.io.FilePermission "*", "read,write";
permission java.lang.RuntimePermission "*"; -
Hi All,
I try to run an applet from Solaris 8 server on some client machine using IE5 and NetScape 6.2 ( I installed JRE 1.4, I also try other JRE versions) but I get the following errors again and agian,
I even try to use appletviewer on the Solaris Box itself to open the applet but it makes no difference same errors
could somebody please help or give me a hint how should I start tracing what the problem might be ?
this applet comes with Solaris Bandwidth Manager as a gui administration tool ( webbased ) it supposed to change the configurations remotly over the web. I asure there is no solaris permission problem exist.
I use Tomcat on the server side.Installed JDK 1.3 on Solaris 8 with all the default settings.
i suppose something should be done with java.policy or java.security files i know nothing about java security please at least give me some URL's to find out more about this matter i searched a lot but couldn't find good documents about java default security restrictions
java.lang.ExceptionInInitializerError
at com.sun.ba.common.QConfiguration.loadPredefServices(QConfiguration.java:617)
at com.sun.ba.common.QConfiguration.getPredefServices(QConfiguration.java:630)
at com.sun.ba.tool.MainPanel.<init>(MainPanel.java:95)
at com.sun.ba.tool.QoSFrame.<init>(QoSFrame.java:48)
at com.sun.ba.tool.baApplet.init(baApplet.java:46)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission console read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at com.sun.ba.common.QDebug.<clinit>(QDebug.java:39)
... 7 more
any help would be appriciated so much.
thanks
mehmadI dont know, but It may be that an Applet can only access the local machine. ie. If you run the applet on computer A and you want to edit the config on computer B, I do not believe you can. The applet can only talk to Computer A. You would have to:
1) Run an application on computer A and the applet would tell the application what to change.
2)Maybe sign the applet in a JAR File
You will probably have to do #1.
US101 -
Hi All,
I try to run an applet from Solaris 8 server on some client machine using IE5 and NetScape 6.2 ( I installed JRE 1.4, I also try other JRE versions) but I get the following errors again and agian,
I even try to use appletviewer on the Solaris Box itself to open the applet but it makes no difference same errors
could somebody please help or give me a hint how should I start tracing what the problem might be ?
this applet comes with Solaris Bandwidth Manager as a gui administration tool ( webbased ) it supposed to change the configurations remotly over the web. I asure there is no solaris permission problem exist.
I use Tomcat on the server side.Installed JDK 1.3 on Solaris 8 with all the default settings.
i suppose something should be done with java.policy or java.security files i know nothing about java security please at least give me some URL's to find out more about this matter i searched a lot but couldn't find good documents about java default security restrictions
java.lang.ExceptionInInitializerError
at com.sun.ba.common.QConfiguration.loadPredefServices(QConfiguration.java:617)
at com.sun.ba.common.QConfiguration.getPredefServices(QConfiguration.java:630)
at com.sun.ba.tool.MainPanel.<init>(MainPanel.java:95)
at com.sun.ba.tool.QoSFrame.<init>(QoSFrame.java:48)
at com.sun.ba.tool.baApplet.init(baApplet.java:46)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission console read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at com.sun.ba.common.QDebug.<clinit>(QDebug.java:39)
... 7 more
any help would be appriciated so much.
thanks
mehmadHi,
Please make changes in the java.security files present in the jdk1.3/lib/jre/security/java.security.There you make the changes in the property which gives you the error.See if this helps..
regards vickyk
Maybe you are looking for
-
Adobe Photoshop CS6 registration failed
My Adobe Photoshop CS6 product registration failed. "Failed" message appear on my screen. Anyone here can help me to solve this issue? Thanks, Sally D
-
is ther a way to recover a restriction password without restarting the phone as a new phone
-
Hi, I have created an output ZINL in NACE tcode to generate an IDoc assigned partner type LS. This output should be automatically assigned when i change any invoice list (VF22). Parnter name is ZLSPAR. Logical system ZLSPAR was created first in BD54
-
Wireless Network Connection Status
Hello I right clicked on my network by clicking on the "bar graph" icon on the bottom of the screen, and then clicked on "status", which opens Wireless Connection Status. Unfortunately, I clikced on "disable". Now, when I right click on the network
-
from Marcia. I have a kobo touch ereader. Try to install adobe digital editions. i only access to a library computer window 7. Try to download ADE 3. 0. Installater.exe. No administrative password. Can you help me. My kobo touch software is 1.9