DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003
    Posts
    4

    Apache and Java Security

    I'm running an Apache server on RH8, I have a java applet on my server's home page. The applet accesses a text file. The permissions on all the files involved (classes and text file) are -rw-r--r- . When bring up the servers home page on the net, I get a "applet not inited" message. I was getting a permissions error on my java console as well.
    Does Apache need some sort of other permissions set on files, because I'm confused.
    Any help on this would be appreciated.

    Jeremy Atkinson - new member.

  2. #2
    Join Date
    Mar 2003
    Posts
    86

    Client Server

    Saying "The applet accesses a text file" you want to say a file in the server, right?

    Keep in mind that the applet is runnign on the client's we browser. You can not access a file on the server.

    Sharbov.

  3. #3
    Join Date
    Jul 2003
    Posts
    4
    Yes, the text file is in the server. OK, I am aware that an applet cannot write to file, but I'm pretty sure applets can just read files, as long as they are on the same server.
    Doesn't Java's security manager requires you to create a policy file first? Then include some code in your applet telling Java to check your policy file?
    Does this ring any bells? I think this policy file and applet code telling where the policy file is would help...but I'm not too sure about it.
    What do you think?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links