It would help if you paste the full stack trace that you are seeing. But in
general, it sounds like you're running up against App Engine's sandbox
restrictions. For various reasons, including security, App Engine does not
allow applications to perform certain actions. For example, applications
cannot spawn new threads or processes, make other system calls, or open
direct socket connections:

http://code.google.com/appengine/docs/java/runtime.html#The_Sandbox

Further, for the same reasons, App Engine restricts the JRE classes that
your app can use using a white list. The full list of classes is available
below.

http://code.google.com/appengine/docs/java/jrewhitelist.html

Without seeing your exception, it's hard to say, but my educated guess is
that your use of EJB is violating one of these policies. From this point,
you have several choices: build your application without relying on EJB (App
Engine has several tutorials available if you want to see how GAE/J apps are
traditionally built), modify the library/framework in question so that it
works within App Engine's sandbox policies which may be easy or difficult
depending on the actual issue, or choose a different hosting provider if EJB
is essential to you.

If you are interested in using App Engine, I suggest that you read the full
documentation very closely so that you understand how it works and how best
to use it: http://code.google.com/appengine/docs/java/overview.html

- Jason

On Fri, Jan 8, 2010 at 10:48 PM, Vishal Shukla <[email protected]>wrote:

> Hello,
>
> I am not having any knowledge about google app engine. I am working on
> one enterprise application, in which I am using GWT, Struts2,
> Hibernate. Now I am integrating EJB session beans in business layer. I
> need to call session beans from GWT servlet. When I do JNDI lookup, I
> am getting AccessControlException. I spent quite a lot time in
> resolving this issue. From eclipse, I unchecked "Use google app
> engine" from Project Explorer->Properties->Google->App Engine. After
> doing this everything works fine. My question is what is consequence
> of disabling Google app engine? Right now, I had prepared on hello
> world application for testing Gwt-EJB integration. Can there be any
> other issues if I don't use Google App Engine?
>
> I would also like to ask that whether there is any workaround to get
> rid of this issue? something like changing some policy file or
> permission settings from google app engine? I am really on fire to
> solve this issue.
>
> --
> 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%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
>
>
--
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.

Reply via email to