Hi,
I faced the same problem while porting FOP to appengine. The only
difference is that I did want to write to the filesystem or such. In my
case I only had to provide FOP an implementation of some awt graphic
classes.
What I did was to change in fop sources every reference to java.awt in
myjava.awt and provide the sources for java.awt classes (and every
dependencies) from gnu classpath jvm implementation (obviously with the
namespace changed to myjava.awt. That way, I have been able to trick GAE
and make it use some blacklisted classes.
In your case, I don't think is possible, because FileWriter classes rely
on native code that GAE's jvm implementation doesn't provide you.
Cristian.
On 01/22/2010 09:43 AM, ivanceras wrote:
Alright I have followed to allow the blacklisted classes to be
exempted from the validation in eclipse and it did not show any error
in my eclipse IDE anymore, so the class is compiled. But when I tried
to run the application(still using the app engine web server) it would
still throw the security error that the use of FileWriter is not
allowed. Therefore we would still need to deploy my web application
into another web container such as tomcat, while it makes the
development of the web application very complex.
I hope anyone from google could pin-point a way to do this.
On Jan 22, 1:24 pm, ivanceras<[email protected]> wrote:
Hello Miguel,
Thanks for the link. Just a quick question here if you have tried it.
That this mean if I exclude the validation, my code will now be able
to use the blacklisted classes?
Thanks,
ivanceras
On Jan 22, 3:51 am, Miguel Méndez<[email protected]> wrote:
See if the following link
helps:http://code.google.com/eclipse/docs/appengine_validation.html.
On Thu, Jan 21, 2010 at 4:08 AM, ivanceras<[email protected]> wrote:
Is there a way to circumbent google app engine sdk to allow the usage
of classes that are not present in the GAE JRE white list? I know the
app that I would be building would not run in appspot, but at least in
my development server, I need to access a postgresql database
(java.net.socket.*) and generate some files(java.io.FileWriter) in my
development server.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to
[email protected].
To unsubscribe from this group, send email to
[email protected]<google-appengine-java%2B
[email protected]>
.
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.
--
Miguel
--
You received this message because you are subscribed to the Google Groups "Google
App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.