Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Google Appengine Support

8 views
Skip to first unread message

Laurent Pellegrino

unread,
Apr 15, 2011, 3:12:36 PM4/15/11
to Induction Framework
Hello,

When I try to startup on Google Appengine an application that uses the
Induction Framework I get the following exception:

javax.servlet.UnavailableException: java.lang.SecurityException:
Google Apphosting only supports custom ClassLoaders that derive from
ClassLoader or URLClassLoader, not SecureClassLoader.

This problem has already been reported (http://groups.google.com/group/
induction-framework/browse_thread/thread/733d47d9bc313b1). However, in
response it has been said (in 2009):

> That said I could Induction classloader could easily have extended
> ClassLoader instead of SecureClassLoader, in fact I think it would be nice
> if I let you choose it that would not be difficult as I think about. OK I
> will do it after the current 2 features I am working on.

Does this feature is available in the Induction Framework version
1.5.1b?

Adi

unread,
Apr 15, 2011, 3:21:19 PM4/15/11
to Induction Framework
Laurent,

I did not end up making the change back then, if you like I could
setup a version with that classloader change and email you a special
version for you to try, I will need a day or two for this.

Adi

On Apr 15, 12:12 pm, Laurent Pellegrino <laurent.pellegr...@gmail.com>
wrote:

Laurent Pellegrino

unread,
Apr 15, 2011, 3:41:40 PM4/15/11
to Induction Framework
Hi Adi,

> if you like I could setup a version with that classloader
> change and email you a special version for you to try

Yes, it would be nice if I can run your really interesting framework
on GAE :)

Thanks.

Laurent

Laurent Pellegrino

unread,
Apr 18, 2011, 1:07:05 PM4/18/11
to Induction Framework
I have added the issue into the google-code issue tracker to keep it
in mind:

http://code.google.com/p/induction/issues/detail?id=6

Laurent

On 15 avr, 21:41, Laurent Pellegrino <laurent.pellegr...@gmail.com>
wrote:

Adinath Raveendra Raj

unread,
Apr 18, 2011, 2:08:52 PM4/18/11
to induction...@googlegroups.com
Laurent,

Thanks. First, there is a new 1.5.2b release of Induction with the latest fixes. This release fixes an issue that caused Induction to not find controller/view classes when running from a .war file in Linux. There is no link to this new release yet from the project site you have to download it directly from http://code.google.com/p/induction/downloads

Second, as we discussed I created an experimental version of Induction that extends Classloader instead of SecureClassloader for you to test with. The file is named acciente-induction-1.5.2e-GAE-core.zip this is also at http://code.google.com/p/induction/downloads

And one final note. You should actually be able to deploy to GAE using the standard version of Induction, provided that as you run from a .war file and your Induction config XML does not contain an entry for  <classpath>. When there is not a <classpath> Induction just loads classes from the standard classpath (which includes the contents of the .war) and since not dynamic reloading is possible in this case Induction uses the standard system provided classloader instead of Induction's reloading classloader.

Ofcourse you do want a <classpath> in the Induction XML during development that points to the compiled output from your IDE (to enable the dynamic class reloading).

So those are the updates. Please let me know how this work out. What operating system and IDE do you use?

Adi


--
You received this message because you are subscribed to the Google Groups "Induction Framework" group.
To post to this group, send email to induction...@googlegroups.com.
To unsubscribe from this group, send email to induction-frame...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/induction-framework?hl=en.




--
Adinath Raveendra Raj
President/CEO
Acciente, LLC
Systems Architecture and Software Design

www.acciente.com
www.inductionframework.org

480.626.0248 (office)
480.250.0170 (mobile)

Laurent Pellegrino

unread,
Apr 18, 2011, 2:33:16 PM4/18/11
to Induction Framework
Hi Adi,

I have deployed a basic HelloWorld application on GAE by using
acciente-induction-1.5.2e-GAE-core.zip and it runs with success!
Thanks for your fast update.

PS: I use Eclipse on Mac Os X.

Kind Regards,

Laurent

On 18 avr, 20:08, Adinath Raveendra Raj <adin...@acciente.com> wrote:
> Laurent,
>
> Thanks. First, there is a new 1.5.2b release of Induction with the latest
> fixes. This release fixes an issue that caused Induction to not find
> controller/view classes when running from a .war file in Linux. There is no
> link to this new release yet from the project site you have to download it
> directly fromhttp://code.google.com/p/induction/downloads
>
> Second, as we discussed I created an experimental version of Induction that
> extends Classloader instead of SecureClassloader for you to test with. The
> file is named acciente-induction-1.5.2e-GAE-core.zip this is also athttp://code.google.com/p/induction/downloads

Adinath Raveendra Raj

unread,
Apr 18, 2011, 3:41:19 PM4/18/11
to induction...@googlegroups.com

Awesome! Keep me posted.

Adi

Reply all
Reply to author
Forward
0 new messages