[appengine-java] Re: I got error: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! access denied (java.lang.RuntimePermission getClassLoader)

2009-09-02 Thread Thai

Because I cannot attach files, I copy and paste the errors here:

#

   1.
  09-02 11:16PM 02.693 /index.jsf 500 4472ms 6319cpu_ms 0kb
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090809
Firefox/3.5.2 (Swiftfox),gzip(gfe)
  See details

  68.196.94.203 - - [02/Sep/2009:23:16:07 -0700] "GET /index.jsf
HTTP/1.1" 500 0 - "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2)
Gecko/20090809 Firefox/3.5.2 (Swiftfox),gzip(gfe)"
"jsfexample1.appspot.com"

   2.
  I 09-02 11:16PM 04.453

  javax.servlet.ServletContext log: Initializing Spring root
WebApplicationContext

   3.
  I 09-02 11:16PM 06.531

  com.sun.faces.config.ConfigureListener contextInitialized:
Initializing Mojarra (1.2_13-b01-FCS) for context ''

   4.
  W 09-02 11:16PM 07.152

  Failed startup of context
com.google.apphosting.utils.jetty.runtimeappenginewebappcont...@1c45731
{/,/base/data/home/apps/jsfexample1/4.336070046792708930}
  com.sun.faces.config.ConfigurationException: CONFIGURATION
FAILED! access denied (java.lang.RuntimePermission getClassLoader)
at com.sun.faces.config.ConfigManager.initialize
(ConfigManager.java:215)
at com.sun.faces.config.ConfigureListener.contextInitialized
(ConfigureListener.java:196)
at org.mortbay.jetty.handler.ContextHandler.startContext
(ContextHandler.java:530)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:
135)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1218)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart
(WebAppContext.java:448)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler
(AppVersionHandlerMap.java:190)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler
(AppVersionHandlerMap.java:167)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:127)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4823)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4821)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication
(RpcUtil.java:359)
at com.google.net.rpc.impl.Server$2.run(Server.java:820)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
at com.google.net.rpc.impl.Server.startRpc(Server.java:775)
at com.google.net.rpc.impl.Server.processRequest(Server.java:
348)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:436)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent
(Connection.java:428)
at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:762)
at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:207)
at com.google.net.async.EventDispatcher.loop
(EventDispatcher.java:101)
at com.google.net.rpc.RpcService.runUntilServerShutdown
(RpcService.java:251)
at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
(JavaRuntime.java:374)
at java.lang.Thread.run(Unknown Source)
  Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission getClassLoader)
at java.security.AccessControlContext.checkPermission(Unknown
Source)
at java.security.AccessController.checkPermission(Unknown
Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.ClassLoader.getSystemClassLoader(Unknown Source)
at org.ajax4jsf.resource.ResourceBuilderImpl.
(ResourceBuilderImpl.java:104)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.ajax4jsf.resource.InternetResourceBuilder.getInstance
(InternetResourceBuilder.java:167)
at org.ajax4jsf.renderkit.ChameleonRenderKitFactory.
(ChameleonRenderKitFactory.jav

[appengine-java] I got error: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! access denied (java.lang.RuntimePermission getClassLoader)

2009-09-02 Thread Thai

Hello,

I have a web application using JSF RI 1.2_13, Spring 2.5.6, RichFaces
3.3.1.GA (all components are removed except the a4j core and
rich:message). The application runs fine in the GAE sdk on my machine.
If I don't use RichFaces, the application runs ok on GAE. So the
problem is with that RichFaces.

The errors I saw in the log are in the attached files. I can attach
the whole application (with source code) if it's needed. Does anybody
know what causes those errors?

Thank you.

PS: is there anyway to attach images?
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread Alexander Orlov

On Sep 3, 4:57 am, Matthew Blain  wrote:
> We are investigating this issue and are rolling back a recent change.

Hm, a few hours ago I've tried something new in my app... Hopefully I
haven't crashed Google's AE :D
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread Matthew Blain

We are investigating this issue and are rolling back a recent change.

--Matthew

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread hansamann

DataStore GET error rate is 100% currently, so I guess that is what
some of use are kind of experiencing.

Cheers
Sven

On Sep 2, 7:57 pm, Matthew Blain  wrote:
> We are investigating this issue and are rolling back a recent change.
>
> --Matthew
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread Cliff Hill
Now I'm getting the server 500 error.

On Wed, Sep 2, 2009 at 7:20 PM, hansamann wrote:

>
> same here, I get this
>
> Uncaught exception from servlet
> javax.servlet.UnavailableException: Initialization failed.
>at
> com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler
> (AppVersionHandlerMap.java:199)
>at
> com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler
> (AppVersionHandlerMap.java:167)
>at
>
> com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
> (JettyServletEngineAdapter.java:127)
>at com.google.apphosting.runtime.JavaRuntime.handleRequest
> (JavaRuntime.java:235)
>at com.google.apphosting.base.RuntimePb$EvaluationRuntime
> $6.handleBlockingRequest(RuntimePb.java:4950)
>at com.google.apphosting.base.RuntimePb$EvaluationRuntime
> $6.handleBlockingRequest(RuntimePb.java:4948)
>at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
> (BlockingApplicationHandler.java:24)
>at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
> 359)
>at com.google.net.rpc.impl.Server$2.run(Server.java:823)
>at com.google.tracing.LocalTraceSpanRunnable.run
> (LocalTraceSpanRunnable.java:56)
>at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
> (LocalTraceSpanBuilder.java:516)
>at com.google.net.rpc.impl.Server.startRpc(Server.java:778)
>at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
>at com.google.net.rpc.impl.ServerConnection.messageReceived
> (ServerConnection.java:437)
>at com.google.net.rpc.impl.RpcConnection.parseMessages
> (RpcConnection.java:319)
>at com.google.net.rpc.impl.RpcConnection.dataReceived
> (RpcConnection.java:290)
>at com.google.net.async.Connection.handleReadEvent(Connection.java:
> 428)
>at com.google.net.async.EventDispatcher.processNetworkEvents
> (EventDispatcher.java:762)
>at com.google.net.async.EventDispatcher.internalLoop
> (EventDispatcher.java:207)
>at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
> 101)
>at com.google.net.rpc.RpcService.runUntilServerShutdown
> (RpcService.java:251)
>at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
> (JavaRuntime.java:392)
>at java.lang.Thread.run(Unknown Source)
>
> Unexpected exception from servlet: javax.servlet.UnavailableException:
> Initialization failed.
>
> App-Id : groovytweets
>
> Also no changes and it was up after the last deployment...
>
> Cheers
> Sven
>
> On Sep 2, 4:55 pm, Alexander Orlov  wrote:
> > http://1.latest.xy.appspot.comis buggy buthttp://2.latest.xy.appspot.com
> > works. However all my http://*.latest.wentity.appspot.com/ instances
> > of my "heavy weight" app are down.
> >
> > On Sep 3, 1:52 am, Don Schwarz  wrote:
> >
> > > When was the last time thathttp://1.latest.xy.appspot.comworked? I see
> > > nothing but 500's since early August.
> > > Version 2 seems to be fine:  http://xy.appspot.com/
> >
> > > On Wed, Sep 2, 2009 at 6:37 PM, Alexander Orlov
> > > wrote:
> >
> > > >http://1.latest.xy.appspot.com/
> > > >http://4.latest.wentity.appspot.com/
> >
> > > > ...all my Java apps are down (Response Error 500). I know that my
> "xy"
> > > > app should work as haven't change it.
> >
>


-- 
"I'm not responcabel fer my computer's spleling errnors" - Xlorep DarkHelm
Website: http://darkhelm.org

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: JPA support for enum's

2009-09-02 Thread Larry Cable

I already did that and it still does not work, in fact I migrated my
code from JPA to JDO and it still does not work... (of course I
removed the annotation since it does not pertain to JDO)

On Aug 25, 3:09 pm, Abe Parvand  wrote:
> Annotate it with the @Enumerated annotation.
>
> On Aug 25, 2:11 pm, Larry Cable  wrote:
>
>
>
> > Has anyone managed to get anenumpersisted via JPA?
>
> > I can't I get an exception from the runtime, "no such method ()
> > V", which I take to mean that it cannot
> > locate a public no-args constructor for theenum... go figure ...
>
> > :(- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread hansamann

same here, I get this

Uncaught exception from servlet
javax.servlet.UnavailableException: Initialization failed.
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler
(AppVersionHandlerMap.java:199)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler
(AppVersionHandlerMap.java:167)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:127)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4950)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4948)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
359)
at com.google.net.rpc.impl.Server$2.run(Server.java:823)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
at com.google.net.rpc.impl.Server.startRpc(Server.java:778)
at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:437)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
428)
at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:762)
at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:207)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
101)
at com.google.net.rpc.RpcService.runUntilServerShutdown
(RpcService.java:251)
at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
(JavaRuntime.java:392)
at java.lang.Thread.run(Unknown Source)

Unexpected exception from servlet: javax.servlet.UnavailableException:
Initialization failed.

App-Id : groovytweets

Also no changes and it was up after the last deployment...

Cheers
Sven

On Sep 2, 4:55 pm, Alexander Orlov  wrote:
> http://1.latest.xy.appspot.comis buggy buthttp://2.latest.xy.appspot.com
> works. However all my http://*.latest.wentity.appspot.com/ instances
> of my "heavy weight" app are down.
>
> On Sep 3, 1:52 am, Don Schwarz  wrote:
>
> > When was the last time thathttp://1.latest.xy.appspot.comworked? I see
> > nothing but 500's since early August.
> > Version 2 seems to be fine:  http://xy.appspot.com/
>
> > On Wed, Sep 2, 2009 at 6:37 PM, Alexander Orlov
> > wrote:
>
> > >http://1.latest.xy.appspot.com/
> > >http://4.latest.wentity.appspot.com/
>
> > > ...all my Java apps are down (Response Error 500). I know that my "xy"
> > > app should work as haven't change it.
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] URLFetch Referer Header

2009-09-02 Thread Matt Farnell
I noticed today that you can now set the Referer HTTP header for a UrlFetch,
this is both a good (some services require setting it) and bad move (you can
pretend you are someone else). Is this a permanent change or a mistake?
thanks,
Matt

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: java.lang.NoClassDefFoundError: Could not initialize class freemarker.template.Configuration

2009-09-02 Thread Toby Reyelts
This looks like a bug. I believe you can work around it temporarily by
patching BeansWrapper to call setAccessible on the enum Constructor. Can you
please file an issue in our tracker?

On Wed, Sep 2, 2009 at 7:30 PM, Hani Naguib  wrote:

>
> The root exception seems to be:
>
> Nested in org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'freemarkerConfig' defined in
> ServletContext resource [/WEB-INF/gae/gae-web.xml]: Invocation of init
> method failed; nested exception is
> java.lang.ExceptionInInitializerError:
> Undeclared throwable:java.lang.IllegalAccessException: Class
>
> com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Constructor_
> can not access a member of class freemarker.ext.beans.EnumModels with
> modifiers ""
>at com.google.appengine.runtime.Request.process-8239fb992975c163
> (Request.java)
>at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
>at java.lang.reflect.Constructor.newInstance(Constructor.java:42)
> at freemarker.ext.beans.BeansWrapper.createEnumModels
> (BeansWrapper.java:1535)
> at freemarker.ext.beans.BeansWrapper.(BeansWrapper.java:174)
>at freemarker.ext.beans.BeansWrapper.(BeansWrapper.java:164)
> at
> freemarker.template.ObjectWrapper.(ObjectWrapper.java:69)
>at freemarker.core.Configurable.(Configurable.java:132)
>at freemarker.template.Configuration.(Configuration.java:109)
>at freemarker.template.Configuration.(Configuration.java:96)
>at
>
> org.springframework.ui.freemarker.FreeMarkerConfigurationFactory.newConfiguration
> (FreeMarkerConfigurationFactory.java:332)
>at
>
> org.springframework.ui.freemarker.FreeMarkerConfigurationFactory.createConfiguration
> (FreeMarkerConfigurationFactory.java:265)
>at
>
> org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer.afterPropertiesSet
> (FreeMarkerConfigurer.java:114)
>at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
> (AbstractAutowireCapableBeanFactory.java:1369)
>at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
> (AbstractAutowireCapableBeanFactory.java:1335)
> at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
> (AbstractAutowireCapableBeanFactory.java:473)
>at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
> $1.run(AbstractAutowireCapableBeanFactory.java:409)
>at java.security.AccessController.doPrivileged(Native Method)
>at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
> (AbstractAutowireCapableBeanFactory.java:380)
>at org.springframework.beans.factory.support.AbstractBeanFactory
> $1.getObject(AbstractBeanFactory.java:264)
>at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
> (DefaultSingletonBeanRegistry.java:222)
>at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
> (AbstractBeanFactory.java:261)
>at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:185)
>at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:164)
>at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
> (DefaultListableBeanFactory.java:429)
>at
>
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
> (AbstractApplicationContext.java:728)
>at
> org.springframework.context.support.AbstractApplicationContext.refresh
> (AbstractApplicationContext.java:380)
>at
>
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext
> (FrameworkServlet.java:402)
>at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext
> (FrameworkServlet.java:316)
>at org.springframework.web.servlet.FrameworkServlet.initServletBean
> (FrameworkServlet.java:282)
>at org.springframework.web.servlet.HttpServletBean.init
> (HttpServletBean.java:126)
>at javax.servlet.GenericServlet.init(GenericServlet.java:215)
>at org.mortbay.jetty.servlet.ServletHolder.initServlet
> (ServletHolder.java:433)
>at
> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
> 256)
>at org.mortbay.component.AbstractLifeCycle.start
> (AbstractLifeCycle.java:40)
>at org.mortbay.jetty.servlet.ServletHandler.initialize
> (ServletHandler.java:612)
>at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
>at org.mortbay.jetty.webapp.WebAppContext.startContext
> (WebAppContext.java:1218)
>at org.mortbay.jetty.handler.ContextHandler.doStart
> (ContextHandler.java:500)
>at
>

[appengine-java] Re: java.lang.NoClassDefFoundError: Could not initialize class freemarker.template.Configuration

2009-09-02 Thread Alexander Orlov

On Sep 3, 2:29 am, Hani Naguib  wrote:
> Well it looks like something has changed today.

Well, to be more precise, something has changed 2 hours ago. All
instances of my Grails (and therefore also Spring) based app are down
and responding with Server Error 500. Updating the app don't solve the
problem. It's like a kind of an app dead lock.
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: java.lang.NoClassDefFoundError: Could not initialize class freemarker.template.Configuration

2009-09-02 Thread Hani Naguib

Well it looks like something has changed today.
I had to change EnumModels's constructor and class and make them
public.
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] OpenID Consumer

2009-09-02 Thread anjolight

Hi, I'm trying to create an OpenID consumer in my appengine project.
My intention to use Google for OpenID provider with OpenID+OAuth. If
someone has an example code to share, I'd greatly appreciate it.

thank you.
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread Alexander Orlov

Such replies help too. So I'm not the only one, this helps :)

I hope these problems are caused by the deployment of an updated (ant
less buggy!!!) GAE environment version :)

On Sep 3, 1:47 am, Xlorep DarkHelm  wrote:
> yeah, noticing a lot of weirdness as of a few minutes ago. My app
> kinda works, but kinda doesn't. Components I haven't touched are now
> failing consistently.
>
> On Sep 2, 4:44 pm, Alexander Orlov  wrote:
>
> > Ok,http://2.latest.xy.appspot.com/worksbut ALL myhttp://wentity.appspot.com/
> > instances are down an won't come up :( Re-uploading the application
> > don't solve this problem. I get a permanent Response Error 500.
>
> > Application dead lock?
> > Help!
>
> > On Sep 3, 1:37 am, Alexander Orlov  wrote:
>
> > >http://1.latest.xy.appspot.com/http://4.latest.wentity.appspot.com/
>
> > > ...all my Java apps are down (Response Error 500). I know that my "xy"
> > > app should work as haven't change it.
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread Xlorep DarkHelm

I should note:

http://showsort.appspot.com

There should be 2 things that happen, a line drawn down the middle of
a big square, and a set of radio buttons are loaded. Only the line is
drawn.

On Sep 2, 4:47 pm, Xlorep DarkHelm  wrote:
> yeah, noticing a lot of weirdness as of a few minutes ago. My app
> kinda works, but kinda doesn't. Components I haven't touched are now
> failing consistently.
>
> On Sep 2, 4:44 pm, Alexander Orlov  wrote:
>
> > Ok,http://2.latest.xy.appspot.com/worksbut ALL myhttp://wentity.appspot.com/
> > instances are down an won't come up :( Re-uploading the application
> > don't solve this problem. I get a permanent Response Error 500.
>
> > Application dead lock?
> > Help!
>
> > On Sep 3, 1:37 am, Alexander Orlov  wrote:
>
> > >http://1.latest.xy.appspot.com/http://4.latest.wentity.appspot.com/
>
> > > ...all my Java apps are down (Response Error 500). I know that my "xy"
> > > app should work as haven't change it.
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread Xlorep DarkHelm

yeah, noticing a lot of weirdness as of a few minutes ago. My app
kinda works, but kinda doesn't. Components I haven't touched are now
failing consistently.

On Sep 2, 4:44 pm, Alexander Orlov  wrote:
> Ok,http://2.latest.xy.appspot.com/works but ALL myhttp://wentity.appspot.com/
> instances are down an won't come up :( Re-uploading the application
> don't solve this problem. I get a permanent Response Error 500.
>
> Application dead lock?
> Help!
>
> On Sep 3, 1:37 am, Alexander Orlov  wrote:
>
> >http://1.latest.xy.appspot.com/http://4.latest.wentity.appspot.com/
>
> > ...all my Java apps are down (Response Error 500). I know that my "xy"
> > app should work as haven't change it.
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: java.lang.NoClassDefFoundError: Could not initialize class freemarker.template.Configuration

2009-09-02 Thread 鱼雷导弹

I have the same problem, too.
What happened?

09-02 05:49PM 42.341
Error for /home
java.lang.NoClassDefFoundError: Could not initialize class
freemarker.template.Configuration
at jtweet.web.HomeServlet.getHomeTimeline(HomeServlet.java:82)
at jtweet.web.HomeServlet.doGet(HomeServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:237)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:830)
at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:139)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4950)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4948)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
359)
at com.google.net.rpc.impl.Server$2.run(Server.java:823)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
at com.google.net.rpc.impl.Server.startRpc(Server.java:778)
at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:437)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
428)
at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:762)
at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:207)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
101)
at com.google.net.rpc.RpcService.runUntilServerShutdown
(RpcService.java:251)
at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
(JavaRuntime.java:392)
at java.lang.Thread.run(Unknown Source)
C 09-02 05:49PM 42.344
Uncaught exception from servlet
java.lang.NoClassDefFoundError: Could not initialize class
freemarker.template.Configuration
at jtweet.web.HomeServlet.getHomeTimeline(HomeServlet.java:82)
at jtweet.web.HomeServlet.doGet(HomeServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084

[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread Alexander Orlov

http://1.latest.xy.appspot.com is buggy but http://2.latest.xy.appspot.com
works. However all my http://*.latest.wentity.appspot.com/ instances
of my "heavy weight" app are down.

On Sep 3, 1:52 am, Don Schwarz  wrote:
> When was the last time thathttp://1.latest.xy.appspot.comworked?  I see
> nothing but 500's since early August.
> Version 2 seems to be fine:  http://xy.appspot.com/
>
> On Wed, Sep 2, 2009 at 6:37 PM, Alexander Orlov
> wrote:
>
>
>
> >http://1.latest.xy.appspot.com/
> >http://4.latest.wentity.appspot.com/
>
> > ...all my Java apps are down (Response Error 500). I know that my "xy"
> > app should work as haven't change it.
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] java.lang.NoClassDefFoundError: Could not initialize class freemarker.template.Configuration

2009-09-02 Thread Hani Naguib

Has any thing changed today. My java app stopped working after a
redeploy today. I get the following error:

org.springframework.web.servlet.FrameworkServlet initServletBean:
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'freemarkerConfig' defined in ServletContext
resource [/WEB-INF/gae/gae-web.xml]: Invocation of init method failed;
nested exception is java.lang.NoClassDefFoundError: Could not
initialize class freemarker.template.Configuration
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
(AbstractAutowireCapableBeanFactory.java:1338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:380)
at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext
(FrameworkServlet.java:402)
at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext
(FrameworkServlet.java:316)
at org.springframework.web.servlet.FrameworkServlet.initServletBean
(FrameworkServlet.java:282)
at org.springframework.web.servlet.HttpServletBean.init
(HttpServletBean.java:126)
at javax.servlet.GenericServlet.init(GenericServlet.java:215)
at org.mortbay.jetty.servlet.ServletHolder.initServlet
(ServletHolder.java:433)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
256)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:612)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1218)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler
(AppVersionHandlerMap.java:190)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler
(AppVersionHandlerMap.java:167)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:127)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4950)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4948)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
359)
at com.google.net.rpc.impl.Server$2.run(Server.java:823)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
at com.google.net.rpc.impl.Server.startRpc(Server.java:778)
at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:437)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Conn

[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread Alexander Orlov

Ok, http://2.latest.xy.appspot.com/ works but ALL my http://wentity.appspot.com/
instances are down an won't come up :( Re-uploading the application
don't solve this problem. I get a permanent Response Error 500.

Application dead lock?
Help!

On Sep 3, 1:37 am, Alexander Orlov  wrote:
> http://1.latest.xy.appspot.com/http://4.latest.wentity.appspot.com/
>
> ...all my Java apps are down (Response Error 500). I know that my "xy"
> app should work as haven't change it.
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Image Upload

2009-09-02 Thread Mike

I needed to copy the JARs into the WEB-INF/lib directory, in addition
to import them as libraries.  Sweet!

On Sep 2, 6:24 pm, Mike  wrote:
> GWT and java app engine
>
> eclipse galileo 3.5
>
> On Sep 2, 6:13 pm, Travis J Warren  wrote:
>
> > What environment are you developing in?
>
> > On Sep 3, 8:03 am, Michael Ring  wrote:
>
> > > I'm trying to use apache file upload per the example in the app engine
> > > file upload FAQ and am getting this error:
>
> > > java.lang.NoClassDefFoundError: org/apache/commons/fileupload/servlet/
> > > ServletFileUpload
>
> > > I have the apache file upload and commons io libraries properly added.
>
> > > Here is the servlet code directly from 
> > > google:http://code.google.com/appengine/kb/java.html#fileforms
>
> > > what can I check on?
>
> > > Thanks,
>
> > > Mike
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: GAE down? Response Error 500

2009-09-02 Thread Don Schwarz
When was the last time that http://1.latest.xy.appspot.com worked?  I see
nothing but 500's since early August.
Version 2 seems to be fine:  http://xy.appspot.com/

On Wed, Sep 2, 2009 at 6:37 PM, Alexander Orlov
wrote:

>
> http://1.latest.xy.appspot.com/
> http://4.latest.wentity.appspot.com/
>
> ...all my Java apps are down (Response Error 500). I know that my "xy"
> app should work as haven't change it.
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Image Upload

2009-09-02 Thread Mike

GWT and java app engine

eclipse galileo 3.5


On Sep 2, 6:13 pm, Travis J Warren  wrote:
> What environment are you developing in?
>
> On Sep 3, 8:03 am, Michael Ring  wrote:
>
> > I'm trying to use apache file upload per the example in the app engine
> > file upload FAQ and am getting this error:
>
> > java.lang.NoClassDefFoundError: org/apache/commons/fileupload/servlet/
> > ServletFileUpload
>
> > I have the apache file upload and commons io libraries properly added.
>
> > Here is the servlet code directly from 
> > google:http://code.google.com/appengine/kb/java.html#fileforms
>
> > what can I check on?
>
> > Thanks,
>
> > Mike
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Image Upload

2009-09-02 Thread Michael Ring

I'm trying to use apache file upload per the example in the app engine
file upload FAQ and am getting this error:

java.lang.NoClassDefFoundError: org/apache/commons/fileupload/servlet/
ServletFileUpload

I have the apache file upload and commons io libraries properly added.

Here is the servlet code directly from google:
http://code.google.com/appengine/kb/java.html#fileforms

what can I check on?

Thanks,

Mike
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Image Upload

2009-09-02 Thread Travis J Warren

What environment are you developing in?

On Sep 3, 8:03 am, Michael Ring  wrote:
> I'm trying to use apache file upload per the example in the app engine
> file upload FAQ and am getting this error:
>
> java.lang.NoClassDefFoundError: org/apache/commons/fileupload/servlet/
> ServletFileUpload
>
> I have the apache file upload and commons io libraries properly added.
>
> Here is the servlet code directly from 
> google:http://code.google.com/appengine/kb/java.html#fileforms
>
> what can I check on?
>
> Thanks,
>
> Mike
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: java.lang.NoClassDefFoundError: Could not initialize class freemarker.template.Configuration

2009-09-02 Thread Hani Naguib

The root exception seems to be:

Nested in org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'freemarkerConfig' defined in
ServletContext resource [/WEB-INF/gae/gae-web.xml]: Invocation of init
method failed; nested exception is
java.lang.ExceptionInInitializerError:
Undeclared throwable:java.lang.IllegalAccessException: Class
com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Constructor_
can not access a member of class freemarker.ext.beans.EnumModels with
modifiers ""
at com.google.appengine.runtime.Request.process-8239fb992975c163
(Request.java)
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Constructor.java:42)
at freemarker.ext.beans.BeansWrapper.createEnumModels
(BeansWrapper.java:1535)
at freemarker.ext.beans.BeansWrapper.(BeansWrapper.java:174)
at freemarker.ext.beans.BeansWrapper.(BeansWrapper.java:164)
at freemarker.template.ObjectWrapper.(ObjectWrapper.java:69)
at freemarker.core.Configurable.(Configurable.java:132)
at freemarker.template.Configuration.(Configuration.java:109)
at freemarker.template.Configuration.(Configuration.java:96)
at
org.springframework.ui.freemarker.FreeMarkerConfigurationFactory.newConfiguration
(FreeMarkerConfigurationFactory.java:332)
at
org.springframework.ui.freemarker.FreeMarkerConfigurationFactory.createConfiguration
(FreeMarkerConfigurationFactory.java:265)
at
org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer.afterPropertiesSet
(FreeMarkerConfigurer.java:114)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
(AbstractAutowireCapableBeanFactory.java:1369)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
(AbstractAutowireCapableBeanFactory.java:1335)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:380)
at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext
(FrameworkServlet.java:402)
at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext
(FrameworkServlet.java:316)
at org.springframework.web.servlet.FrameworkServlet.initServletBean
(FrameworkServlet.java:282)
at org.springframework.web.servlet.HttpServletBean.init
(HttpServletBean.java:126)
at javax.servlet.GenericServlet.init(GenericServlet.java:215)
at org.mortbay.jetty.servlet.ServletHolder.initServlet
(ServletHolder.java:433)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
256)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:612)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1218)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler
(AppVersionHandlerMap.java:190)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler
(AppVersionHandlerMap.java:167)
at
com.google.apphosting.runtime.jet

[appengine-java] GAE down? Response Error 500

2009-09-02 Thread Alexander Orlov

http://1.latest.xy.appspot.com/
http://4.latest.wentity.appspot.com/

...all my Java apps are down (Response Error 500). I know that my "xy"
app should work as haven't change it.
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: java.lang.NoClassDefFoundError: Could not initialize class freemarker.template.Configuration

2009-09-02 Thread Hani Naguib

The exception has now changed to: (what is going on!)

org.springframework.web.servlet.FrameworkServlet initServletBean:
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'freemarkerConfig' defined in ServletContext
resource [/WEB-INF/gae/gae-web.xml]: Invocation of init method failed;
nested exception is java.lang.ExceptionInInitializerError
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
(AbstractAutowireCapableBeanFactory.java:1338)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons
(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization
(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:380)
at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext
(FrameworkServlet.java:402)
at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext
(FrameworkServlet.java:316)
at org.springframework.web.servlet.FrameworkServlet.initServletBean
(FrameworkServlet.java:282)
at org.springframework.web.servlet.HttpServletBean.init
(HttpServletBean.java:126)
at javax.servlet.GenericServlet.init(GenericServlet.java:215)
at org.mortbay.jetty.servlet.ServletHolder.initServlet
(ServletHolder.java:433)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
256)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:612)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1218)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler
(AppVersionHandlerMap.java:190)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler
(AppVersionHandlerMap.java:167)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:127)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4950)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4948)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
359)
at com.google.net.rpc.impl.Server$2.run(Server.java:823)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
at com.google.net.rpc.impl.Server.startRpc(Server.java:778)
at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:437)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
428)
at com.google.net.async.EventDispatcher.processNetworkEv

[appengine-java] Re: Reg-What Java Frameworks supports With Google Java App Engine

2009-09-02 Thread Travis J Warren

Kanth.

Struts / Spring MVC etc all run on the servlet spec so you will pretty
much be OK with any of these frameworks.  There is the odd little
gotcha but most can be resolved with a bit of searching.

The "will it play" link above will sort you out.

On Sep 2, 5:06 pm, kanth  wrote:
> Hi,
>
> I am new to Google Java App Engine.Is Google Java App Engine supports
> Java Frame works like Struts1.x Struts2,JSF,etc?
>
> OR
>
> just one can develop by using servlets and jsps with Google Java App
> Engine?
>
> Please give information on this?
>
> Regards
> Rao
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Errors while uploading the application

2009-09-02 Thread Jason (Google)
What is your application's ID? I'm guessing it isn't 'example'. :)
Which version of the SDK are you using? Are you trying to deploy from
Eclipse or the command line? Are you seeing a more descriptive error, and if
so, can you paste it here?

- Jason

On Tue, Sep 1, 2009 at 7:13 AM, Mita Sakhalkar wrote:

>
> Hi barak,
> This is my applications appengine-web.xml and web.xml  respectively
>
> 
> http://appengine.google.com/ns/1.0";>
>example
>1
>
>
>
> value="WEB-INF/
> logging.properties"/>
>
>
> 
>
>
>
> 
> http://www.w3.org/2001/XMLSchema-instance";
> xmlns="http://java.sun.com/xml/ns/javaee";
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">
>
>Example
>example.ExampleServlet
>
>
>Example
>/examples
>
>
>index.html
>
> 
>
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: non-google authentication like in taskless

2009-09-02 Thread Filipe AlvesFerreira
Hi George,
I'm using taskless.appspot for Economy 4G3W notes at :
https://sites.google.com/a/datevalors1.com/mywebjurispersonquality/home/bem-vindo-a-wuwtools4g3w
 Any ideas anyone?

Thanks

2009/9/2 GregGG 

>
> Does anyone know who created http://taskless.appspot.com/ ?  I notice
> it allows for both Google account logins as well as a custom
> registration and authentication.  I'm curious what that app is using
> for authentication and authorization.  I've seen some people on here
> are using spring authentication.   Maybe they're using that, but I'm
> guessing it must have at least a little custom coding to allow both
> modes of authentication.  Any ideas anyone?
>
> I'm playing with the idea of creating my own custom servlet filter to
> do something similar but hate to write code when re-use is a
> possibility.
>
> Thanks.
>
> >
>


-- 
FilipeAlvesFerreira#4(1942)

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: how to serialize correctly the Vector member in @PersistenceCapable class

2009-09-02 Thread Dmitry Anipko

It is an interesting question - when I look in the debugger at the
object that just has been de-serialized, it shows null for that
member; however after I extract that value using a getMember helper,
that returns a Vector with 0 members. Since the former is probably a
debugger artifact, I think the answer is the latter.

On Wed, Sep 2, 2009 at 11:47 AM, Jason (Google) wrote:
> Hi Dmitry. After fetching the MyClassA entity, is the Vector object empty
> (i.e. the Vector has been instantiated but has 0 items) or null?
> - Jason
>
> On Tue, Sep 1, 2009 at 9:28 AM, Dmitry Anipko 
> wrote:
>>
>> Hi,
>>
>> I'm stuck with an issue I hope someone can help with (googling doesn't
>> produce much useful results)
>>
>> I have Java class MyClassA declared with @PersistenceCapable and that
>> has all its members declared with @Persistent.
>>
>> One of the members is of type Vector myClassBVectorMember,
>> declared with @Persistent(serialized="true").
>>
>> I want the POJO XML serialization to happen for the
>> myClassBVectorMember when I serialize the object of MyClassA using
>> JDO.
>>
>> MyClassB implements Serializable.
>>
>> Now, what happens, is that serialization and deserialization of all
>> the other fields (of core types) in MyClassA works fine, but the
>> vector isn't serialized correctl - when the object is serialized and
>> deserialized, the vector is always re-created empty.
>>
>> If someone can give any hints or references to what attributes I need
>> to use in both MyClassA and MyClassB to achieve the correct POJO XML
>> serialization within a GAE datastore object, I'd appreciate it.
>>
>> Thanks.
>>
>
>
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: memcache service down?

2009-09-02 Thread Jason (Google)
Hi Sven. There was a period of planned maintenance yesterday, but it should
have ended a couple of hours or so before your post. Can you confirm whether
you're still seeing issues? If so, what is your application ID?
- Jason

On Tue, Sep 1, 2009 at 8:24 PM, hansamann wrote:

>
> Adding to that: I just saw the new version live for one 'request' - I
> then thought it all works and changed the main version to the new
> version. Upon testing groovytweets.org it did not work any more... so
> I switched back but now the OLD version is also down... ? Soo
> There must be something strange going on here I hope.
>
> Cheers
> Sven
>
> On Sep 1, 8:13 pm, hansamann  wrote:
> > Hi all,
> >
> > I saw that most of my cron jobs which are using calls to memcache are
> > down, is this a known issue?
> >
> > This is the exception I see in the logs:
> >
> > com.google.appengine.api.memcache.LogAndContinueErrorHandler
> > handleServiceError: Service error in memcache
> > com.google.appengine.api.memcache.MemcacheServiceException: Memcache
> > getStatistics: exception
> > at
> com.google.appengine.api.memcache.MemcacheServiceImpl.makeSyncCall
> > (MemcacheServiceImpl.java:168)
> > at
> com.google.appengine.api.memcache.MemcacheServiceImpl.getStatistics
> > (MemcacheServiceImpl.java:582)
> > at
> com.google.appengine.api.memcache.stdimpl.GCache.getCacheStatistics
> > (GCache.java:110)
> > at
> com.google.appengine.api.memcache.stdimpl.GCache.size(GCache.java:
> > 138)
> > at com.google.appengine.api.memcache.stdimpl.GCache.isEmpty
> > (GCache.java:142)
> > at
> >
> org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToBoolean
> > (DefaultTypeTransformation.java:157)
> > at
> >
> org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.booleanUnbox
> > (DefaultTypeTransformation.java:61)
> > at MemcacheService.getCache(MemcacheService.groovy:69)
> > at MemcacheService$getCache.callCurrent(Unknown Source)
> > at MemcacheService.containsKey(MemcacheService.groovy:32)
> > at
> MemcacheService$$FastClassByCGLIB$$9f2adf08.invoke()
> > at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
> > at org.springframework.aop.framework.Cglib2AopProxy
> > $DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
> > at MemcacheService$$EnhancerByCGLIB$$2dbfd592.containsKey
> > ()
> > at MemcacheService$containsKey.call(Unknown Source)
> > at TwitterService.getTweets(TwitterService.groovy:97)
> > at TwitterService$$FastClassByCGLIB$$e73568e2.invoke()
> > at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
> > at org.springframework.aop.framework.Cglib2AopProxy
> > $CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
> > at
> > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
> > (ReflectiveMethodInvocation.java:149)
> > at
> > org.springframework.transaction.interceptor.TransactionInterceptor.invoke
> > (TransactionInterceptor.java:106)
> > at
> > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed
> > (ReflectiveMethodInvocation.java:171)
> > at org.springframework.aop.framework.Cglib2AopProxy
> > $DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
> > at
> TwitterService$$EnhancerByCGLIB$$d755a070.getTweets()
> > at TwitterService$getTweets.call(Unknown Source)
> > at org.groovytweets.CronController$_closure2.doCall
> > (CronController.groovy:47)
> > at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> > at java.lang.reflect.Method.invoke(Unknown Source)
> > at
> >
> com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_
> > $3.run(Method_.java:149)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
> com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.privilegedInvoke
> > (Method_.java:147)
> > at
> >
> com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke
> > (Method_.java:120)
> > at
> >
> > The app was not changed since a couple of days (appid groovytweets),
> > so I cannot imagine this is an error on my side. Are there any know
> > issues right now, maybe because of the datacenter move?
> >
> > Cheers
> > Sven
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--

[appengine-java] Re: test unit doesn't work more

2009-09-02 Thread Jason (Google)
If you're running JUnit tests that rely on the local datastore, you have to
add these JARs to your build path manually.

- Jason

On Tue, Sep 1, 2009 at 4:02 PM, OliBye  wrote:

>
> I also had this issue using the Eclipse plug-in.
>
> This does not appear to be the original issue (http://code.google.com/
> p/googleappengine/issues/detail?id=1876)
>
> I think the documentation is correct. I think it's the Eclipse plug-in
> that has the this new issue.
> It appears that the Eclipse plug-in does not add appengine-api-
> stubs.jar and appengine-local-runtime.jar to your class path (which
> the JUnit documentation mentions
> http://code.google.com/appengine/docs/java/howto/unittesting.html).
>
> These jars are distributed with the Eclipse 1.2.2-200907291526 plug-in
> in the lib/impl directory. So to work around this issue I made an
> eclipse user library with these two jars in and added it to my class
> path.
>
> This has solved my local issues.
> I've not tried uploading this to GAE yet, nor checked for any
> overlapping classpath issues with sealed jars etc.
>
>
> On Jul 24, 5:18 pm, Jason Barnes  wrote:
> > Hi,  I am new to App Engine for Java.  I just downloaded Eclipse 3.4.2
> > and the latest Google plug-ins.  I cannot get any of the example code
> > either here or in the official documentation to compile.  I seem to be
> > hung up on that fact that Eclipse cannot import
> > "com.google.appengine.tools.development.ApiProxyLocalImpl"?
> >
> > Any help is appreciated!
> >
> > Thanks,
> > Jason
> >
> > On Jul 14, 1:22 pm, Max Ross 
> > >
> wrote:
> >
> > > Hi everyone, let's see if we can get this ironed out.
> >
> > > First off, the ApiProxy.Environment interface did change in 1.2.2.
>  There is
> > > one new method (getAttributes()), and the existing methods now need to
> > > return meaningful values in your tests.  If you're following the how-to
> > > article on unit testing (
> http://code.google.com/appengine/docs/java/howto/unittesting.html) you'll
> > > need to update your TestEnvironment class to look like this one:
> http://code.google.com/p/datanucleus-appengine/source/browse/branches...
> > > (lines 34 - 66)
> >
> > > We're working on getting the docs updated right now.
> >
> > > If your TestEnvironment class looks exactly like this and your unit
> tests
> > > are still failing, please post a complete example including model
> classes
> > > and test code and I'll investigate.
> >
> > > Thanks, and sorry for the trouble.
> >
> > > Max
> >
> > > On Tue, Jul 14, 2009 at 8:08 AM, cmin  wrote:
> >
> > > > same here.. All requiree methods of TestAPIEnvironment are returning
> > > > something relevant.
> >
> > > > Also verified, that hosted mode everything is ok , just tests fails.
> >
> > > > On Jul 14, 7:23 am, ivo  wrote:
> > > > > +1 with all unit tests queries failing
> > > > > every query returns empty / null
> >
> > > > > I tried to troubleshoot in the same ways described in the previous
> > > > > messages and got the same results
> >
> > > > > On Jul 14, 2:43 pm, "Alejandro D. Garin"  wrote:
> >
> > > > > > I have the same TestEnvironment but my queries still fail.  what
> can I
> > > > do?
> >
> > > > > > On Tue, Jul 14, 2009 at 10:18 AM, Ronald Mathies <
> > > > ronaldmath...@gmail.com>wrote:
> >
> > > > > > > Oke, and again here i am (Man i shoult test further before
> > > > > > > shouting :) )
> >
> > > > > > > My sollution:
> >
> > > > > > > In the class that implement ApiProxy.Environment make sure the
> > > > > > > following methods return something meaningfull:
> >
> > > > > > > public class TestEnvironment  implements ApiProxy.Environment {
> >
> > > > > > >public String getAppId() {
> > > > > > >return "Unit Tests";
> > > > > > >}
> >
> > > > > > >public String getVersionId() {
> > > > > > >return "1.0";
> > > > > > > }
> >
> > > > > > >public Map getAttributes() {
> > > > > > >Map map = new HashMap > > > Object>();
> > > > > > >return map;
> > > > > > >}
> >
> > > > > > > public String getRequestNamespace() {
> > > > > > >return "gmail.com";
> > > > > > >}
> >
> > > > > > >// Rest of the methods contain iether null or false.
> > > > > > > }
> >
> > > > > > > On Jul 14, 3:13 pm, Ronald Mathies 
> wrote:
> > > > > > > > I also encountered this problem, using unit tests it fails.
> > > > However,
> > > > > > > > when i execute the same code
> > > > > > > > in hosted mode it does work. I updated the
> appengine-api-stubs.jar
> > > > and
> > > > > > > > appengine-local-runtime.jar so this cannot be the problem. I
> also
> > > > > > > > removed my current datastore from disk so this also can't
> cause the
> > > > > > > > problem.
> >
> > > > > > > > A few things i notice, in the log at one point i see the
> following:
> >
> > > > > > > >  datastore URL="appengine" driver="" userName=""
> >
> > > > > > > > Is this correct?
> >
> > > > > > > > And, i the problems i am having are NullPointerExceptions.
>

[appengine-java] Re: how to serialize correctly the Vector member in @PersistenceCapable class

2009-09-02 Thread Jason (Google)
Hi Dmitry. After fetching the MyClassA entity, is the Vector object empty
(i.e. the Vector has been instantiated but has 0 items) or null?
- Jason

On Tue, Sep 1, 2009 at 9:28 AM, Dmitry Anipko wrote:

>
> Hi,
>
> I'm stuck with an issue I hope someone can help with (googling doesn't
> produce much useful results)
>
> I have Java class MyClassA declared with @PersistenceCapable and that
> has all its members declared with @Persistent.
>
> One of the members is of type Vector myClassBVectorMember,
> declared with @Persistent(serialized="true").
>
> I want the POJO XML serialization to happen for the
> myClassBVectorMember when I serialize the object of MyClassA using
> JDO.
>
> MyClassB implements Serializable.
>
> Now, what happens, is that serialization and deserialization of all
> the other fields (of core types) in MyClassA works fine, but the
> vector isn't serialized correctl - when the object is serialized and
> deserialized, the vector is always re-created empty.
>
> If someone can give any hints or references to what attributes I need
> to use in both MyClassA and MyClassB to achieve the correct POJO XML
> serialization within a GAE datastore object, I'd appreciate it.
>
> Thanks.
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: When create a multiple module entry in a project?

2009-09-02 Thread Jason (Google)
I'm not sure what you mean by module entry. Can you explain what you're
trying to do in more detail?

If you're new to server-side programming, you will probably find the App
Engine tutorial helpful:

http://code.google.com/appengine/docs/java/gettingstarted/

- Jason

On Tue, Sep 1, 2009 at 8:56 AM, Xavier Pegenaute wrote:

>
> Hi,
>
> I am not used to develop web apps and I have no a clear idea about
> when use more than one module entry in my project. Any one could me
> explain me when could be a better solution?
>
> Thanks & Regards.
> Xavi.
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: bigtable allow external connection?

2009-09-02 Thread Erik Bengtson

You can also use DataNucleus REST.

http://www.datanucleus.org/products/accessplatform_2_0/rest/api.html

On 1 sep, 09:33, asianCoolz  wrote:
> possible to only utitlieze bigtable for storing data ? may i know is
> it possible to connect to certain port on google app engine to query
> for database in bigtable? let say i deployed my app in amazon and i
> want to use google app engine's bigtable
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: polling technique

2009-09-02 Thread Jason (Google)
I mentioned PubSubHubbub in my last post, which is definitely preferred over
polling for feed updates:
http://code.google.com/p/pubsubhubbub/

If this won't work for you, App Engine does support scheduled tasks (i.e.
cron), so you can set up a cron job to run periodically to fetch a feed,
send out email reminders, etc.

http://code.google.com/appengine/docs/java/config/cron.html

- Jason

On Tue, Sep 1, 2009 at 2:14 AM, asianCoolz  wrote:

>
> may i know what polling technique that you folks use to minimize hit
> to servers? i know it's bad ideas. but there is no other way besides
> waiting for comet support in app engine
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: java.lang.NoClassDefFoundError

2009-09-02 Thread Jason (Google)
Please post the full stack trace.
- Jason

On Mon, Aug 31, 2009 at 9:17 PM, g  wrote:

>
> I use freemarker as my template engine.
> I have the freemarker.jar under the \war\WEB-INFO\lib
> from this morning all my pages return 500 error:
> java.lang.NoClassDefFoundError: Could not initialize class
> freemarker.template.Configuration
>
> but the localhost is fine.
>
> Is there anything wrong with appengine-java?
>
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Bulk Uploading Data

2009-09-02 Thread Jason (Google)
A Java upload utility is coming, but I suggest using the Python bulkloader
for now -- even though the script is written in Python, you'll still be able
to access your data from your deployed Java app.

- Jason

On Tue, Sep 1, 2009 at 8:40 AM, mscwd01  wrote:

>
> Hmm, thats an idea. May give that a try.
>
> Still, its rather pathetic we aren't provided with an upload utility.
>
> On Sep 1, 4:30 pm, stumpy  wrote:
> > You could compress the files before uploading and decompress them on
> > the server.
> >
> > On Sep 1, 3:46 pm, mscwd01  wrote:
> >
> > > I have some 30,000 files consisting of 800kb that I want to upload and
> > > save in the data store. As us java users dont have an easy way of
> > > uploading data I am resorting to using http POST requests to upload
> > > the files. This is painfully slow, each file takes about 2 minutes.
> >
> > > Has anyone come up with a better solution to uplaoding data?
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: live feed

2009-09-02 Thread Jason (Google)
If you're interested in real-time feed updates, you should look into the
PubSubHubbub protocol:
http://code.google.com/p/pubsubhubbub/

- Jason

On Mon, Aug 31, 2009 at 8:17 PM, asianCoolz  wrote:

>
> since comet not supported, may i know what workaround you folks do to
> create live feed ? any such example on gwt?
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Sign in to security constraint enabled page programmatically

2009-09-02 Thread Jason (Google)
You will have to use the ClientLogin API to get a token and use the token to
get a cookie from App Engine which you can then use for all subsequent
requests. The general process (for Python) is written up here:
http://stackoverflow.com/questions/101742/how-do-you-access-an-authenticated-google-app-engine-service-from-a-non-web-pyt

Please let me know if you have any more questions on this.

- Jason

On Mon, Aug 31, 2009 at 8:54 AM, Erdinc Yilmazel
wrote:

> Hi,
>
> I have a servlet in my appengine java application which has an admin role
> security constraint on it. When I try to access this servlet google asks me
> to login using my google account and everything works fine. What I want to
> do is to write a desktop application which interacts with this servlet
> remotely over https. So instead of using a browser to communicate with the
> servlet, I am going to implement an http client for my application (Using
> commons httpclient). Since there is a security constraint on the servlet
> running on appengine, my http client has to sign in to google somehow... If
> I login using a browser and copy the cookies set by google to my own http
> client, everything works as expected. What is the best way to implement a
> login procedure for a desktop app like this? I want the user of the app (Me
> in this case) to enter the google username and password and access the
> password protected servlet remotely...
>
> One thing I tried was simulating the exact browser and user behaviour
> (Filling in the form for username and password, submitting it, following
> redirects etc.) and this was working a couple of months ago, but when google
> changes something, it fails. Is there an api for this?
>
> Thanks
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Unowned relationships

2009-09-02 Thread Jason (Google)
I haven't tested this, but I believe this should work, yes. Let me know
if/when you try it.
As an aside, the object you return here won't actually be detached since
you're not using transactions (and hence, not committing). You'll want to
use something like the following or use a transaction.

object = pm.getObjectById(type,id);
object = pm.detachCopy(object);
...
return type.cast(object);

- Jason

On Tue, Sep 1, 2009 at 6:12 AM, funkforce  wrote:

>
> Hi,
>
> Regarding generic methods for presistance, has anybody been doing
> that?
> Like this for example:
>
> public static  T readDataObject(Class type, Long id) {
>Object object = null;
>PersistenceManager pm = PMF.get().getPersistenceManager();
>pm.setDetachAllOnCommit(true);
>try {
>object = pm.getObjectById(type,id);
>} finally {
>pm.close();
>}
>return type.cast(object);
> }
>
> You call it like this:
>
> Beverage b =  PersistenceHandler.readDataObject(Beverage.class,
> beverageId);
>
> Will this kind of code work?
>
> Thanks.
> FF
>
> On Sep 1, 11:54 am, funkforce  wrote:
> > Hi,
> >
> > First of all, thanks for posting, it really helps me.
> >
> > objectuser  : Good post and the link was really nice.
> > Albert Attard  : Thanks for the examples, it shows that you have to
> > wright lots of code to manage your own relationships (which I was
> > trying to avoid).
> > leszek: This is what I did and I was trying to avoid to handle
> > persistence issues as much as I could.
> >
> > I will re-model and start over and see how I should go on.
> >
> > Thanks.
> >
> > FF
> >
> > On Sep 1, 9:52 am, leszek  wrote:
> >
> >
> >
> > > You can follow something like that
> >
> > > class Parent {
> > >   
> > >   @Persistent
> > >   private List childList;
> >
> > >   // non Persistent
> > >   private List list;
> > >   ...
> >
> > > }
> >
> > > class Child {
> >
> > >@PrimaryKey
> > >private Long/Key key;
> > >...
> >
> > > }
> >
> > > // before save Parent
> > >   private void beforeSave(EntityManager em,Parent pa) {
> > >  if (pa.getList() != null) {
> > >List chList = new ArrayList();
> > >for (Child ch : pa.getList) {
> > >  pm.makePersistent(ch);
> > >  pm.flush();
> > >  chList.add(ch.getKey());
> > >}
> > >pa.setChildList(chList);
> > > }
> > >   }
> >
> > >   private void afterLoad(EntityManager em,Parent pa)  {
> > > List chList = new ArrayList();
> > > for (Long key : pa.getChildList()) {
> > >Child ch = pm.getObjectById(Child.class,key);
> > >chList.add(ch);
> > > }
> > > pa.setList(chList);
> > >   }
> >
> > >   PersistenManager pm;
> > >   
> >
> > >   // main service
> > >   Parent pa = pm..getObjectById(...)
> > >   afterLoad(pm,pa);
> > >   ...
> > >   ...
> > >   beforeSave(pm,pa);
> > >   pm.makePersistent(pa);
> >
> > >   List pList = pm.queryExecute();
> > >   for (Parent pa : pList) {
> > > afterLoad(pm,pa);
> > >   }
> > >   ...
> > >   // etc
> >
> > > In order to avoid repeating the same beforeSave and afterLoad for all
> > > Entity classes having "onowned" relationship you can apply Annotation
> > > and, by  the use of reflection, develop generic approach for all
> > > classes having this feature.- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: i have create a gwt project ,now when deploy the project with gae ,some problem has appear

2009-09-02 Thread Jason (Google)
Yes, in a nutshell, you'll have to create a new List that does implement
Serializable (e.g. ArrayList), copy each element from your results list to
your new seralizable list, and return this new list instead.
StreamingQueryResult
is not serializable and you'll run into issues if you try to send it over
the wire.

- Jason

On Tue, Sep 1, 2009 at 4:07 AM, 郑杰  wrote:

> thank you,leszek,you are a good men!
>
> 2009/9/1 leszek 
>
>
>> It is a common problem. Read this thread:
>>
>>
>> http://groups.google.co.uk/group/google-appengine-java/browse_frm/thread/bce6630a3f01f23a/62cb1c4d38cc06c7?lnk=gst&q=com.google.gwt.user.client.rpc.SerializationException%3A+Type+%27org.datanucleus.store.appengine.query.StreamingQueryResult%27+was+not+included+in+the+set+of+types+which+can+be+serialized+by+this+SerializationPolicy
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: http duration 30seconds

2009-09-02 Thread Jason (Google)
Yes, as long as you can retrieve if from the datastore within 30 seconds.
Remember that each datastore entity can be at most 1 MB, so you'll have to
split large files into several entities and "stitch" them together on
retrieval.

- Jason

On Mon, Aug 31, 2009 at 6:17 PM, CoolDude  wrote:

>
> what if my avi is binary stream stored in bigtable can i retrieve it
> through servlet and return to user?
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: bigtable allow external connection?

2009-09-02 Thread Jason (Google)
In general, you'll have to set up an HTTP-based interface to your data (e.g.
handlers to create, retrieve, update, etc.) -- you won't be able to connect
to and interface directly with the datastore service in particular. That
said, you might find the remote_api module (Python-only, for now)
interesting:
http://code.google.com/appengine/articles/remote_api.html

- Jason

On Tue, Sep 1, 2009 at 12:33 AM, asianCoolz  wrote:

>
> possible to only utitlieze bigtable for storing data ? may i know is
> it possible to connect to certain port on google app engine to query
> for database in bigtable? let say i deployed my app in amazon and i
> want to use google app engine's bigtable
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Problems in Connecting to Mysql database using Hibernate

2009-09-02 Thread Jason (Google)
As leszek wrote earlier, you cannot use JDBC to connect to MySQL or other
traditional database systems directly. You can either run this database
outside of App Engine and put a web service in front of it or, more
preferably, use App Engine's datastore, which is documented at
http://code.google.com/appengine/docs/java/datastore/.
- Jason

On Mon, Aug 31, 2009 at 9:30 PM, Raji  wrote:

>
> A big thanks to you all for quick response...i will try to implement
> what you said,but can u explain me in more detail.
>
>
>
> cheers
> Raji
>
> On Aug 31, 5:07 pm, Maciej Machulak  wrote:
> > You may connect to a database from a Google App Engine application.
> > Your data must simply reside outside of the App Engine. You can also
> > get data from inside a private network (consider using Google Secure
> > Data Connector)http://code.google.com/securedataconnector/.
> >
> > Cheers,
> > Maciej
> >
> > 2009/8/31 leszek :
> >
> >
> >
> > > "DataNucleus JPA"
> >
> > --
> > Maciej Machulak
> > email: maciej.machu...@gmail.com
> > tel: +48 602 45 31 44
> > tel: +44 7999 606 767
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Better or Tighter Google Check-out integration Please

2009-09-02 Thread victor

I have found the following beta feature that might be a valid
workaround:
http://code.google.com/apis/checkout/developer/Google_Checkout_Beta_Polling_API.html

On Aug 31, 12:29 am, victor  wrote:
> Looks like there is already an enhancement request for this 
> one:http://code.google.com/p/googleappengine/issues/detail?id=25&q=checko...
>
> On Aug 30, 9:19 am, David Fuelling  wrote:
>
> > Currently the only solution here is to point Googlecheckoutto use
> > SSL on the appengine domain for your app:
>
> >https://your-app-id.appspot.com/
>
> > It's not ideal (and there's lots of clamoring for Google to support
> > SSL on custom domains), but this solution should work for you since
> > your customers/users aren't going to be seeing these notifications or
> > the URL being used.
>
> > david
>
> > On Aug 30, 1:28 am, victor  wrote:
>
> > > Please providebetterintegrationwith Google check-out. I am creating
> > > a google app but I am having trouble integrating with Google Check-out
> > > when it comes to supporting Notifications 
> > > --http://code.google.com/apis/checkout/developer/Google_Checkout_XML_AP
>
> > > From the Google Check-out requirements for processing
> > > notifcation:"Your web service must be secured by SSL v3 or TLS and
> > > must use a valid SSL certificate. The API callback URL that you use
> > > for your production account must use port 443, which is the default
> > > port for HTTPS. "
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] non-google authentication like in taskless

2009-09-02 Thread GregGG

Does anyone know who created http://taskless.appspot.com/ ?  I notice
it allows for both Google account logins as well as a custom
registration and authentication.  I'm curious what that app is using
for authentication and authorization.  I've seen some people on here
are using spring authentication.   Maybe they're using that, but I'm
guessing it must have at least a little custom coding to allow both
modes of authentication.  Any ideas anyone?

I'm playing with the idea of creating my own custom servlet filter to
do something similar but hate to write code when re-use is a
possibility.

Thanks.

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Is there limitation of size of webapp uploaded to GAE?

2009-09-02 Thread Jason (Google)
Static files can be up to 10 MB each. There is no limit on the total storage
size for static files. There is, however for resource files -- the combined
size of all resource files can't exceed 150 MB.
- Jason

On Mon, Aug 31, 2009 at 12:21 AM, barak  wrote:

>
> I was wondering - does GAE has some limitation regarding the size of
> an applicatian uploaded to GAE? I know there is limitation regarding
> single size upload, but can my application for example holds hundreds
> of files (source, static, what ever)?
>
> Thanks.
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: issues with compass for GAE apps

2009-09-02 Thread Toby Reyelts
Thanks for the code. I have three suggestions (mostly from my previous
post):
1)  Are you maybe loading that singleton class in different classloaders?
Try logging the classloader object reference that tries to create the
PersistenceManagerFactory. You can add a static initializer ABOVE
pmfInstance.

static {
  logger.log(Level.SEVERE, "Loading PMF in " + PMF.class.getClassLoader()");
}

2) Patch the datanucleus plugin code that makes the check for duplicate PMF
creations to log a stacktrace first thing every time it's called. Then
you'll know for sure which code paths are causing this to happen.

3) Disable the check if you're sure you're only creating the PMF a small
number of times.

On Wed, Sep 2, 2009 at 2:45 AM, Vik  wrote:

> Hie
> here is the code I am using:
> package vik.sakshum.sakshumweb.jsp.model.jdo;
>
> import javax.jdo.JDOHelper;
> import javax.jdo.PersistenceManagerFactory;
>
> import org.compass.core.Compass;
> import org.compass.core.config.CompassConfiguration;
> import org.compass.core.config.CompassEnvironment;
> import org.compass.gps.CompassGps;
> import org.compass.gps.device.jdo.Jdo2GpsDevice;
> import org.compass.gps.impl.SingleCompassGps;
>
> public final class PMF {
> private static final PersistenceManagerFactory pmfInstance =
> JDOHelper.getPersistenceManagerFactory("transactions-optional");
>
> private static final Compass compass;
> private static final CompassGps compassGps;
>
> static {
>  compass = new CompassConfiguration().setConnection("gae://index")
>  .setSetting(CompassEnvironment.ExecutorManager.EXECUTOR_MANAGER_TYPE,
> "disabled")
>  .addScan("vik.sakshum.sakshumweb.jsp.model.jdo")
>  .buildCompass();
>
>  compassGps = new SingleCompassGps(compass);
>  compassGps.addGpsDevice(new Jdo2GpsDevice("appenine", pmfInstance));
>  compassGps.start();
>
>  compassGps.index();
>
> }
>
> private PMF() {}
>
> public static PersistenceManagerFactory get() {
>  return pmfInstance;
> }
>
> public static Compass getCompass(){
>  return compass;
> }
> }
>
> any clues?
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Wed, Sep 2, 2009 at 12:34 AM, Toby Reyelts  wrote:
>
>> Vik,
>>
>> Do you have some sample code to reproduce this? By default, we throw an
>> exception if you try to create more than one PersistenceManagerFactory. Are
>> you using a singleton class to prevent more than one from being created? If
>> so, are you maybe loading that singleton class in different classloaders?
>> (Try logging the classloader object reference that tries to create the
>> PersistenceManagerFactory).
>>
>> Lastly, you can disable the exception if you want (details should be in
>> the exception message), but it will be a performance problem for you if
>> you're creating more than a few PersistenceManagerFactory's.
>>
>>
>> On Tue, Sep 1, 2009 at 1:51 PM, Vik  wrote:
>>
>>> anyone any updates on this please?
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.com
>>>
>>>
>>> On Sun, Aug 30, 2009 at 8:51 PM, Vik  wrote:
>>>
 Hie
 Any one using compass on his GAE app?

 I am frequently getting error cannot initialize PMF where there is
 static code to initialize compass apis.
 Any idea how to resolve?

 Thankx and Regards

 Vik
 Founder
 www.sakshum.com
 www.sakshum.blogspot.com

>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: question on redeploying from eclipse

2009-09-02 Thread Arun

I am not using GWT yet (still learning). next time i will measure the
size of file transmitted and then i can get a better picture of whats
going on.

On Aug 31, 8:50 pm, Jason Parekh  wrote:
> Hi Arun,
> I believe it uploads only the changed files.  Are you using GWT?  If so, the
> delay you're seeing could be the GWT compile taking place.
>
> jason
>
> On Mon, Aug 31, 2009 at 11:30 AM, Arun  wrote:
>
> > Hi,
> > If i redeploy my google app from eclipse, without changing the version
> > number of the app, does the plugin copy over only the changed files
> > since last deployment or does it copy all the files?
>
> > I just want to find out because i am using some 3rd party jars in my
> > apphttp://flickrexplorer.appspot.comand it always takes quite some
> > time to deploy even if i change only a jsp or a java file.
>
> > Regards,
> > Arun
> > ps:
>
> >http://flickrexplorer.appspot.com/
> > My app lets you view the 500 best flickr photos of any day with their
> > EXIF data
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Log4J vs. java.util.logging in App Engine projects

2009-09-02 Thread Rajeev Dayal
Hi Bill,

Would you mind filing an issue for this:

http://code.google.com/p/googleappengine/issues/list


Thanks,
Rajeev

On Tue, Sep 1, 2009 at 10:12 PM, Bill Higgins  wrote:

>
> Thanks again for the explanation Rajeev. I would politely suggest
> beefing up the header comments in the log4j.properties file and the
> logging.properties, explaining to the user that they may either use
> Log4J or java.util.logging as they please.
>
> On Sep 1, 11:09 am, Rajeev Dayal  wrote:
> > Yes, I think you've got it exactly right. If you notice any deviations
> from
> > this behavior, please post back on this thread and let us know.
> >
> >
> >
> > On Tue, Sep 1, 2009 at 9:31 AM, Bill Higgins  wrote:
> >
> > > Thanks much for the response Rajeev. Let me see if I can repeat and
> > > reduce it to make sure I understand the formula.
> >
> > > 1) DataNucleus will use EITHER log4j OR java.util.logging. It never
> > > uses both.
> > > 2) DataNucleus will use log4j if it detects log4j classes on the
> > > classpath, otherwise it will use java.util.logging
> > > 3) If my app doesn't use log4j, then I can safely delete the default
> > > log4j.properties file and DataNucleus will happily use
> > > java.util.logging
> >
> > > Is this correct?
> >
> > > On Aug 31, 5:22 pm, Rajeev Dayal  wrote:
> > > > +[tobyr]
> >
> > > > Hi Bill,
> >
> > > > We include both logging files due to the implementation of
> Datanucleus.
> > > If
> > > > you have log4j on your classpath (or if you have any jars which
> bundle
> > > the
> > > > log4j classes), then Datanucleus will use the log4j logging system.
> If
> > > you
> > > > don't have a configuration file for log4j, then none of the
> information
> > > will
> > > > be displayed. That is why we include one by default. If you do not
> have
> > > > log4j on your classpath, then the log4j system is not used, and
> neither
> > > is
> > > > the log4j.properties file which we include.
> >
> > > > If you are sure that you do not have any log4j classes on your
> classpath,
> > > > then you can safely remove the log4j.properties file, and control all
> of
> > > > your logging via the logging.properties file. If you're using log4j,
> you
> > > can
> > > > get rid of the logging.properties file.
> >
> > > > My recommendation would be to keep both files, and only update the
> one
> > > for
> > > > the logging system that you're using. You don't need to keep both of
> them
> > > in
> > > > sync unless you adjust the Datanucleus logging levels.
> >
> > > > Let me know if you have any questions - I know that this is somewhat
> > > > confusing.
> >
> > > > Rajeev
> >
> > > > On Sun, Aug 30, 2009 at 7:51 AM, Bill Higgins 
> > > wrote:
> >
> > > > > Hi, I'm new to App Engine development, and am a bit confused by the
> > > > > logging configuration files that the Google Eclipse project
> produces
> > > > > in a new web application project.
> >
> > > > > When you create a new web app project, the new project includes two
> > > > > logging configuration files:
> >
> > > > > /src/log4j.properties
> > > > > /war/WEB-INF/logging.properties
> >
> > > > > I understand that the first is for log4j and the second for
> > > > > java.util.logging but I'm not sure why one would need both and how
> > > > > each affect logging determinations. If I make changes to one should
> I
> > > > > make changes to another? Is there a safe way to delete one and
> simply
> > > > > use the other? If so which one is the keeper?
> >
> > > > > Thanks in advance.
>
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Redeployment/Reloading of Java classes in SDK

2009-09-02 Thread Rajeev Dayal
Filed as http://code.google.com/p/googleappengine/issues/detail?id=2055.

On Wed, Sep 2, 2009 at 10:35 AM, Rusco  wrote:

>
>
> This hit me too, I am developing servlets with Scala.
>
> I can't find a "/_ah/reloadwebapp" link (I use the eclipse plugin),
> what am I doing wrong ?
>
> In the meantime I went back to good old Tomcat for development, so far
> everything works smoothly.
>
> Here a sample "server.xml" snippet, I just put my context-docbase on
> the normal eclipse workspace:
>
>  autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
>
> 
> className="org.apache.catalina.logger.FileLogger"
> prefix="localhost_examples_log." suffix=".txt"  timestamp="true"/>
>
>
> 
>
> I hope the SDK sources get published sooner or later, the
> "com.google.appengine.tools.development.DevAppServer Interface" has a
> "restart" method which is somewhow hidden, to fix this would be faster
> than submitting an issue.
>
> BR/Rusco
>
>
>
> On Aug 29, 6:38 pm, Klaus  wrote:
> > Ok, it works fine. But now I need to touch "appengine-web.xml" for a
> > redeploy... This is about the same "effort" as stopping and restarting
> > the devservletengine... :-)
> >
> > On 29 Aug., 00:09, Toby Reyelts  wrote:
> >
> > > Try either touching your appengine-web.xml file or hitting
> > > /_ah/reloadwebapp. Either of those should do a hot reload of your
> webapp. We
> > > haven't seen a lot of requests for webapp hotreloading, because the
> > > dev_appserver is usually very fast to boot. What is it that you're
> doing
> > > that would save a lot of time with a webapp reload but not be fast from
> a
> > > server boot? Can you let us know if this does indeed work and save you
> > > significant time?
> >
> > > On Fri, Aug 28, 2009 at 5:54 PM, Klaro  wrote:
> >
> > > > TheServletEngine in the SDK translates JSPs right after they were
> > > > changed - fine!
> >
> > > > When changing Java code (such as aServlet), the changes are not
> > > > redeployed - bad!
> >
> > > > So I have to stop and start the localServletEngine to see the
> > > > effects of the changes in my classes. This leads to hardly acceptable
> > > > turn around times.
> >
> > > > My question: Is there a trick or even an official configuration
> option
> > > > to deploy/reload classes immediately without restarting the server?
> (I
> > > > was using Tomcat previously, and there is some configurtaion option
> in
> > > > the server.xml.)
> >
> > > > Regards,
> > > > Klaro
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Redeployment/Reloading of Java classes in SDK

2009-09-02 Thread Rusco


This hit me too, I am developing servlets with Scala.

I can't find a "/_ah/reloadwebapp" link (I use the eclipse plugin),
what am I doing wrong ?

In the meantime I went back to good old Tomcat for development, so far
everything works smoothly.

Here a sample "server.xml" snippet, I just put my context-docbase on
the normal eclipse workspace:









I hope the SDK sources get published sooner or later, the
"com.google.appengine.tools.development.DevAppServer Interface" has a
"restart" method which is somewhow hidden, to fix this would be faster
than submitting an issue.

BR/Rusco



On Aug 29, 6:38 pm, Klaus  wrote:
> Ok, it works fine. But now I need to touch "appengine-web.xml" for a
> redeploy... This is about the same "effort" as stopping and restarting
> the devservletengine... :-)
>
> On 29 Aug., 00:09, Toby Reyelts  wrote:
>
> > Try either touching your appengine-web.xml file or hitting
> > /_ah/reloadwebapp. Either of those should do a hot reload of your webapp. We
> > haven't seen a lot of requests for webapp hotreloading, because the
> > dev_appserver is usually very fast to boot. What is it that you're doing
> > that would save a lot of time with a webapp reload but not be fast from a
> > server boot? Can you let us know if this does indeed work and save you
> > significant time?
>
> > On Fri, Aug 28, 2009 at 5:54 PM, Klaro  wrote:
>
> > > TheServletEngine in the SDK translates JSPs right after they were
> > > changed - fine!
>
> > > When changing Java code (such as aServlet), the changes are not
> > > redeployed - bad!
>
> > > So I have to stop and start the localServletEngine to see the
> > > effects of the changes in my classes. This leads to hardly acceptable
> > > turn around times.
>
> > > My question: Is there a trick or even an official configuration option
> > > to deploy/reload classes immediately without restarting the server? (I
> > > was using Tomcat previously, and there is some configurtaion option in
> > > the server.xml.)
>
> > > Regards,
> > > Klaro
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Exception while deploying JSP Tag Lib Files

2009-09-02 Thread Jim McCabe

Klaus -

I had the same problem, but there is a way to fix it.  Take a look at
the link suggested by Rajeev:

http://groups.google.com/group/google-appengine-java/browse_thread/thread/175e70cc0c93ded9

About 75% of the way deep into the thread you'll start to find some
solutions.  For me, there were two things that I had to do (these are
detailed in that thread):

1. Copy tools.jar into the AppEngine lib/shared directory.
2. Modify appcfg.cmd so it fully-qualifies the reference to java.exe
in the JDK/bin directory.

I switched from Eclipse to IntelliJ IDEA a month or two ago, and
upgraded to the newest App Engine SDK.  However #1 was still required
on my machine.

Don't give up hope, you're almost there!

- Jim
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Confirmation of Google Multi-Tenant app policy

2009-09-02 Thread doc123

Hi

Now I am planning to start free project management service  =>
http://www.chainofasker.com/ by using Google App Engine

When I try to provide this free project management service, problem is
server fee because once I release this service,  I can not expect how
many user come to this site and use free service.

So I want to ask user to have their dedicated server if they want use
stable service. Procedure is following

User create User own account at Google app engine site.
User nominate me as a administrator or invite me as a developer.
I install server software.
User remove me from administrator list.
User start using my service

Is this meet Google App Engine’s terms of use?

I found related article which is posted by Jason but now I can not
find it url so I post previous multi-tenant discussion image to here
=> http://www.chainofasker.com/muti-tenant-past-post

I think above procedure is keeping Jason’s recommendation.

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: xmpp support

2009-09-02 Thread Roberto Saccon

last time I asked (a few months back, before wave announcement) and
got an answer from a Google employee, BOSH was not intended to be part
of the GAE supported XMPP subset.

--
Roberto

On Sep 2, 5:47 am, asianCoolz  wrote:
> May i know when GAE mentioned will support XMPP for next version of
> GAE, does that mean, it will support "all" features of xmpp?  can we
> use "BOSH" to replace comet feature? the reason i asking is because
> i'm very interested to use comet in my application but found out GAE
> doesn't support it. So, I am wondering should i invest my time create
> 'xmpp/bosh' feature on my app and anticipating for next version of
> GAE? what is the estimate date of the next release?
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: A matter in local time

2009-09-02 Thread le anh



On Sep 2, 2:24 pm, leszek  wrote:
> If you delete double declaration (String formattedDate) and add proper
> imports and declaration  'Calendar cal = Calendar.getInstance()); it
> should work.
> But you are having this problem while running in local  environment
> (in your machine) or it does not work after deploying to google
> (production) environment ?

It's also not correct when I change " Date date=new Date() " to
Calendar cal = Calendar.getInstance(). They are same result.

The code does not work correct after deploying to google (production)
environment , meaning it does not work in Web Application Project of
AppEngine .
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: self join in google app engine

2009-09-02 Thread leszek

Read this thread - could be helpfull :

http://groups.google.co.uk/group/google-appengine-java/browse_frm/thread/3affdf1441f864b6/99a166946ad0ef61?lnk=gst&q=self#99a166946ad0ef61


--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] xmpp support

2009-09-02 Thread asianCoolz

May i know when GAE mentioned will support XMPP for next version of
GAE, does that mean, it will support "all" features of xmpp?  can we
use "BOSH" to replace comet feature? the reason i asking is because
i'm very interested to use comet in my application but found out GAE
doesn't support it. So, I am wondering should i invest my time create
'xmpp/bosh' feature on my app and anticipating for next version of
GAE? what is the estimate date of the next release?
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] self join in google app engine

2009-09-02 Thread Midhat



Hi

I have modified the guestbook example shipped with google app engine
(java) to include a parent-child relationship using some sort of a
'self join'.

Now my greeting.java file looks like this

package guestbook;

import java.util.Date;
import java.util.List;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.users.User;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Greeting {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;

@Persistent
private User author;

@Persistent
private String content;

@Persistent
private Date date;

@Persistent
private Greeting parent;

@Persistent(mappedBy="parent")
private List children;

public Greeting getParent() {
return parent;
}

public void setParent(Greeting parent) {
this.parent = parent;
}

public List getChildren() {
return children;
}

public void setChildren(List children) {
this.children = children;
}

public Greeting(User author, String content, Date date) {
this.author = author;
this.content = content;
this.date = date;
}

public Key getId() {
return id;
}

public User getAuthor() {
return author;
}

public String getContent() {
return content;
}

public Date getDate() {
return date;
}

public void setAuthor(User author) {
this.author = author;
}

public void setContent(String content) {
this.content = content;
}

public void setDate(Date date) {
this.date = date;
}
}

Notice the addition of the parent and child fields, and changing the
primary key type to com.google.appengine.api.datastore.Key (as shown
in 
http://code.google.com/appengine/docs/java/datastore/relationships.html#Owned%5FOne%5Fto%5FMany%5FRelationships)

Now it wont save the data to the datastore. I fail to understand why.
I have tried deleting the local datastore and index file(as said
somewhere on the web) but it wont work. no exceptions, nothing.

Can someone look into it and please help

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: A matter in local time

2009-09-02 Thread leszek

If you delete double declaration (String formattedDate) and add proper
imports and declaration  'Calendar cal = Calendar.getInstance()); it
should work.
But you are having this problem while running in local  environment
(in your machine) or it does not work after deploying to google
(production) environment ?
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Reg-What Java Frameworks supports With Google Java App Engine

2009-09-02 Thread Jos Snellings

http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine

On Wed, Sep 2, 2009 at 9:06 AM, kanth wrote:
>
> Hi,
>
> I am new to Google Java App Engine.Is Google Java App Engine supports
> Java Frame works like Struts1.x Struts2,JSF,etc?
>
> OR
>
> just one can develop by using servlets and jsps with Google Java App
> Engine?
>
> Please give information on this?
>
> Regards
> Rao
> >
>

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Problem while using Gilead for Hibernate and Gwt

2009-09-02 Thread Rajitha

Hi All,
Im currently working on Sim Applications using Hibernate,Gwt,mysql  in
eclipse 3.4.im using Gilead for this.

When im running my Application im getting following errors:



SEVERE: [125187460050] javax.servlet.ServletContext log: Exception
while dispatching incoming RPC call
java.lang.NoSuchMethodError:
net.sf.beanlib.spi.BeanTransformerSpi.initCustomTransformerFactory
(Lnet/sf/beanlib/spi/CustomBeanTransformerSpi$Factory;)Lnet/sf/beanlib/
spi/BeanTransformerSpi;
at
net.sf.gilead.core.beanlib.merge.MergeBeanPopulator.newBeanPopulator
(MergeBeanPopulator.java:51)
at net.sf.gilead.core.LazyKiller.populate(LazyKiller.java:249)
at net.sf.gilead.core.LazyKiller.attach(LazyKiller.java:216)
at net.sf.gilead.core.PersistentBeanManager.mergePojo
(PersistentBeanManager.java:517)
at net.sf.gilead.core.PersistentBeanManager.merge
(PersistentBeanManager.java:305)
at net.sf.gilead.gwt.GileadRPCHelper.parseInputParameters
(GileadRPCHelper.java:95)
at net.sf.gilead.gwt.PersistentRemoteService.processCall
(PersistentRemoteService.java:147)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:306)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)

com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details






Anyone can please help me..

Thanks in advance

--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Reg-What Java Frameworks supports With Google Java App Engine

2009-09-02 Thread kanth

Hi,

I am new to Google Java App Engine.Is Google Java App Engine supports
Java Frame works like Struts1.x Struts2,JSF,etc?

OR

just one can develop by using servlets and jsps with Google Java App
Engine?

Please give information on this?

Regards
Rao
--~--~-~--~~~---~--~~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---