Solved

using Protege as an applet

Posted on 2006-06-12
6
401 Views
Last Modified: 2012-06-21
I'm trying to run Protege (http://protege.stanford.edu/) as an applet. However, when I configure it to use the DB it gives me this stack trace. Do I need to sign the applet or something? This applet will only be used internally at our company, so it's acceptable if we have to do something on each user's machine, but it'd obviously be preferable if we could do it on the server side.

java.security.AccessControlException: access denied (java.util.PropertyPermission oracle.net.wallet_location 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 oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:1427)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.jdbc.driver.OracleDriver.getSystemProperty(OracleDriver.java:1423)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:596)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)
    at edu.stanford.smi.protege.storage.database.RobustConnection.setupConnection(Unknown Source)
    at edu.stanford.smi.protege.storage.database.RobustConnection.<init>(Unknown Source)
    at edu.stanford.smi.protege.storage.database.DatabaseFrameDb.<init>(Unknown Source)
    at edu.stanford.smi.protege.storage.database.DatabaseKnowledgeBaseFactory.addFrameStore(Unknown Source)
    at edu.stanford.smi.protege.storage.database.DatabaseKnowledgeBaseFactory.loadKnowledgeBase(Unknown Source)
    at edu.stanford.smi.protege.storage.database.DatabaseKnowledgeBaseFactory.loadKnowledgeBase(Unknown Source)
    at edu.stanford.smi.protege.model.Project.loadDomainKB(Unknown Source)
    at edu.stanford.smi.protege.model.Project.createDomainKnowledgeBase(Unknown Source)
    at edu.stanford.smi.protege.model.Project.<init>(Unknown Source)
    at edu.stanford.smi.protege.model.Project.<init>(Unknown Source)
    at edu.stanford.smi.protege.model.Project.loadProjectFromURI(Unknown Source)
    at edu.stanford.smi.protege.ui.ProjectManager.loadProjectFromURI(Unknown Source)
    at edu.stanford.smi.protege.ui.ProjectManager.loadProject(Unknown Source)
    at edu.stanford.smi.protege.Application.init(Unknown Source)
    at edu.stanford.smi.protege.Application.realmain(Unknown Source)
    at edu.stanford.smi.protege.Application$3.run(Unknown Source)
0
Comment
Question by:HappyEngineer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 92

Expert Comment

by:objects
ID: 16891203
yes, it needs signing. Or changing the security policy file on each box that needs to use it.
Signing would be the easiest though.
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 16892696
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 500 total points
ID: 16892702
>> Signing would be the easiest though

Yes, security policy file is not a good approach because it will give permissions to all applets which is not advisable ;-) as its a security-threat.
0
 
LVL 92

Expert Comment

by:objects
ID: 17055500
> Yes, security policy file is not a good approach because it will give permissions to all applets which is not advisable ;-) as its a security-threat.

thats actually incorrect :)
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 17079292
Why?
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question