Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Spring + Tiles environment
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bruno Cardoso  
View profile  
 More options Apr 14, 9:38 am
From: Bruno Cardoso <bcardoso.h...@gmail.com>
Date: Tue, 14 Apr 2009 06:38:37 -0700 (PDT)
Local: Tues, Apr 14 2009 9:38 am
Subject: Spring + Tiles environment
I'm trying to configure an environment with spring and tiles. So far I
manage to be successful running the local web server but when I upload
my app and run it I get this error:

org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'tilesConfigurer' defined in class path
resource [spring/web/tiles-config-applicationcontext.xml]: Invocation
of init method failed; nested exception is
java.security.AccessControlException: access denied
(java.lang.RuntimePermission setContextClassLoader)
..
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission setContextClassLoader)
        at java.security.AccessControlContext.checkPermission(Unknown Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at java.lang.Thread.setContextClassLoader(Unknown Source)
        at org.apache.tiles.util.ClassUtil.instantiate(ClassUtil.java:82)
        at org.apache.tiles.util.ClassUtil.instantiate(ClassUtil.java:48)

Again, this doesn't happen when I run my application locally.

Any idea of what it may be?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikolay Gorylenko  
View profile  
 More options Apr 14, 9:45 am
From: Nikolay Gorylenko <n0...@jug.ua>
Date: Tue, 14 Apr 2009 16:45:50 +0300
Local: Tues, Apr 14 2009 9:45 am
Subject: Re: [appengine-java] Spring + Tiles environment
as general idea - why AppEngine SDK does not contain the same
whitelist as runtime?
This will be very handy to check against this type of errors on dev.machine


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Cardoso  
View profile  
 More options Apr 14, 12:20 pm
From: Bruno Cardoso <bcardoso.h...@gmail.com>
Date: Tue, 14 Apr 2009 09:20:47 -0700 (PDT)
Local: Tues, Apr 14 2009 12:20 pm
Subject: Re: Spring + Tiles environment
Any idea on how to resolve this issue?

On 14 Abr, 14:45, Nikolay Gorylenko <n0...@jug.ua> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Don Schwarz  
View profile  
 More options Apr 14, 12:44 pm
From: Don Schwarz <schwa...@google.com>
Date: Tue, 14 Apr 2009 11:44:39 -0500
Local: Tues, Apr 14 2009 12:44 pm
Subject: Re: [appengine-java] Re: Spring + Tiles environment

Hi Bruno,

We don't currently grant user code permission to call
Thread.setContextClassLoader().  This is consistent in both the development
server and the production environment, so I don't know why you're seeing
different behavior from Tiles.  Perhaps there is some other difference that
is triggering it.

Regardless, I think this code in Tiles could be written differently.
Assuming you're using this version:

http://google.com/codesearch/p?hl=en#nAF3L7bnkkA/tiles-core-2.0.1/src...

It appears to be setting the context class loader temporarily during a
Class.forName() call, but I Class.forName(String) uses the calling class
loader rather than the context classloader.  This code seems to be trying to
set the context classloader to the calling classloader anyway, so just
commenting out the setContextClassLoader() calls should do the trick.

Let me know if that helps,
Don

On Tue, Apr 14, 2009 at 11:20 AM, Bruno Cardoso <bcardoso.h...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Cardoso  
View profile  
 More options Apr 15, 5:41 pm
From: Bruno Cardoso <bcardoso.h...@gmail.com>
Date: Wed, 15 Apr 2009 14:41:23 -0700 (PDT)
Local: Wed, Apr 15 2009 5:41 pm
Subject: Re: Spring + Tiles environment
Well, this only happens in production. That I can confirm. I can send
you a zip file with the app so you can test it out.

Changing a third party library is something that I really would like
to avoid so I guess I won't be able to use tiles with GAE.

On Apr 14, 5:44 pm, Don Schwarz <schwa...@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Toby Reyelts  
View profile  
 More options Apr 15, 6:04 pm
From: Toby Reyelts <to...@google.com>
Date: Wed, 15 Apr 2009 18:04:55 -0400
Local: Wed, Apr 15 2009 6:04 pm
Subject: Re: [appengine-java] Re: Spring + Tiles environment

Bruno,

I imagine that if you reported this to the Tiles devs, they would be very
quick to fix it. Setting a Thread's contextClassLoader is not something you
can expect to be able to do in a sandboxed environment, and there is a very
trivial and reasonable fix.

On Wed, Apr 15, 2009 at 5:41 PM, Bruno Cardoso <bcardoso.h...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Cardoso  
View profile  
 More options Apr 15, 6:24 pm
From: Bruno Cardoso <bcardoso.h...@gmail.com>
Date: Wed, 15 Apr 2009 15:24:46 -0700 (PDT)
Local: Wed, Apr 15 2009 6:24 pm
Subject: Re: Spring + Tiles environment
I actually did that. Waiting for feedback.

On Apr 15, 11:04 pm, Toby Reyelts <to...@google.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Cardoso  
View profile  
 More options Apr 16, 6:03 pm
From: Bruno Cardoso <bcardoso.h...@gmail.com>
Date: Thu, 16 Apr 2009 15:03:35 -0700 (PDT)
Local: Thurs, Apr 16 2009 6:03 pm
Subject: Re: Spring + Tiles environment
Ok, this issue is fixed in Tiles 2.0.7

Spring 2.5 + Tiles 2.0.7 is working in GAE now.

Thanks to everyone, including Antonio Petrelli from Tiles dev team.

On Apr 15, 11:24 pm, Bruno Cardoso <bcardoso.h...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Don Schwarz  
View profile  
 More options Apr 16, 6:42 pm
From: Don Schwarz <schwa...@google.com>
Date: Thu, 16 Apr 2009 17:42:31 -0500
Local: Thurs, Apr 16 2009 6:42 pm
Subject: Re: [appengine-java] Re: Spring + Tiles environment

That's great news.  Thanks for following up, Bruno.

On Thu, Apr 16, 2009 at 5:03 PM, Bruno Cardoso <bcardoso.h...@gmail.com>wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google