0

zkspring-core 3.0 not supported on Google App Engine?

asked 2013-07-27 01:27:43 +0800

willisra gravatar image willisra
58 1 3

Hello,

I'm trying to deploy my application to GAE but I'm getting this error when I try to access the login page:
ERROR ContextLoader - Context initialization failed java.lang.SecurityException: Unable to get members for class org.zkoss.spring.bean.ZkComponentFactoryBean at com.google.appengine.runtime.Request.process-91ecf10fc4f8d236(Request.java) at java.lang.Class.getDeclaredMethods(Class.java:256) at org.springframework.core.type.StandardAnnotationMetadata.hasAnnotatedMethods(StandardAnnotationMetadata.java:136) at org.springframework.context.annotation.ConfigurationClassUtils.isLiteConfigurationCandidate(ConfigurationClassUtils.java:105) at org.springframework.context.annotation.ConfigurationClassUtils.checkConfigurationClassCandidate(ConfigurationClassUtils.java:86) at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:216) at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:178) at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:617) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:446) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:446) at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:453) at com.google.tracing.TraceContext.runInContext(TraceContext.java:740) at com.google.tracing.TraceContext$DoInTraceContext.runInContext(TraceContext.java:717) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:308) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:300) at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:450) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) ... 25 more Caused by: java.lang.NoClassDefFoundError: javax/naming/NamingException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2447) ... 25 more Caused by: java.lang.ClassNotFoundException: javax.naming.NamingException ... 25 more

I have seen that class org.zkoss.spring.bean.ZkComponentFactoryBean has a method ( public void afterPropertiesSet()) that throws javax.naming.NamingException which is actually causing the error since GAE doesn't allow any use or reference to javax.naming package.

Is there anybody struggling with this same issue? is there any way around this?

Does anybody know if there will be any update/patch/fix for zkspring-core-3.0.jar so it doesn't use javax.naming.NamingException?

Thanx!

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-07-27 01:27:43 +0800

Seen: 4 times

Last updated: Jul 27 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More