Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Watzman  
#1 Posted : Monday, January 18, 2010 5:26:42 AM(UTC)
Watzman

Rank: Newbie

Groups: Member
Joined: 1/18/2010(UTC)
Posts: 4

Hi,

I'm using eclipse to run the JSP examples but I'm unable to set file access permissions.
So I am receiving an access violation on the main example page, that tests to write a file
to the servlet directory named 'Gallery'.
I've not been able to find out, where I can setup a policy file, so that the servlet container used by eclipse finds it.
As far as I found out, jetty is being used. Can anybody help me to get this running?


Regards,
Michael
andreym  
#2 Posted : Wednesday, January 20, 2010 1:27:23 AM(UTC)
andreym

Rank: Advanced Member

Groups:
Joined: 6/16/2009(UTC)
Posts: 134

Was thanked: 8 time(s) in 8 post(s)
Hello!

I download and install Eclipse from here http://www.eclipse.org/downloads/ and it seems it hasn't built-in support for Jetty server. Do you install any other plugin for it?

BTW, I install stand-alone Jetty server (http://dist.codehaus.org/jetty/jetty-hightide-7.0.1/jetty-hightide-7.0.1.v20091125.zip) and try this samples. I found jetty.policy policy file in the lib\policy\ in the Jetty server directory, but I doesn't make any changes in it and the sample works fine. You can try the same and reply if it works for you. But if it doesn't you can provide us more details about your environment (OS, Eclipse version, additional plugins installed, etc...) and we will try to reproduce your problem.
Watzman  
#3 Posted : Sunday, January 24, 2010 10:27:14 PM(UTC)
Watzman

Rank: Newbie

Groups: Member
Joined: 1/18/2010(UTC)
Posts: 4

Hi,

I'm running Java EE version of Eclipse (downloaded from eclipse.org) and using the GWT plugin in hosted mode on MacOSX.
The run configuration of the GWT plugin uses a jetty server, so the solution you suggested does not work for me. I already tried to add a policy file to the run configuration adding 'java.security.policy' as VM argument, but it is still not working.


Michael

Tamila  
#4 Posted : Tuesday, January 26, 2010 3:38:47 AM(UTC)
Tamila

Rank: Advanced Member

Groups:
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hi Michael,

Thank you for information. There is nothing special. I recommend you to set Read and Write permissions for Gallery folder for Everyone user.
How to do it:
  1. Open Info window for Gallery folder (Right click on folder -> Get Info or Command+I)
  2. At the bottom of this window you can find Sharing and Permissions point.
  3. Set for everyone Read and Write permissions
I hope it helps you.
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
Watzman  
#5 Posted : Wednesday, January 27, 2010 6:33:48 AM(UTC)
Watzman

Rank: Newbie

Groups: Member
Joined: 1/18/2010(UTC)
Posts: 4

Hi Tamila,

thanks for your help, but it did not work for me, yet. I set the permissions in the filesystem as you suggested, if I got you right. I don't have to set those in eclipse, do I? As in Eclipse I don't have an 'Get Info' in the context menu.
In properties of the folder there's no setting to allow write access. There's a checkbox 'read only' but it is not checked.

The exception I get is:
WARNUNG: /aurigma/index.jsp
java.security.AccessControlException: access denied (java.io.FilePermission <pathToServletContainer>/Gallery/test.txt write)

As I understand this is the servlet container preventing file access. When using another servlet container (Tomcat) it did run after allowing write access in policy file. To this point I have no idea where the jetty configuration of the GWT plugin lives eq has to be altered.


Best regards,
Michael
Tamila  
#6 Posted : Thursday, January 28, 2010 8:27:07 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hi Michael,

Unfortunately, we have not the specialists in this area. I recommend you to find some information on different sites, forums, blogs etc. probably someone knows how to resolve this issue.

Edited by user Thursday, January 28, 2010 8:28:48 PM(UTC)  | Reason: Not specified

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.