Hy, I'm trying to publish a webservice using Apache CXF 2.5.2 and Spring 3.1.1, but it seems it's not so easy. Here is the bean declaration:
<?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:jaxws="http://cxf.apache.org/jaxws" > xmlns:jaxrs="http://cxf.apache.org/jaxrs" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://cxf.apache.org/jaxrs > http://cxf.apache.org/schemas/jaxrs.xsd"> > <import resource="classpath:META-INF/cxf/cxf.xml" /> > <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> > > > <jaxrs:server id="scrum_REST_WS" address="/rest/scrumWS"> > <jaxrs:serviceBeans> > <ref bean="restScrumService" /> > </jaxrs:serviceBeans> > </jaxrs:server> > > > </beans> And this is the error that I'm getting when deploying the app to GAE: WARNING: Failed startup of context > com.google.appengine.tools.development.DevAppEngineWebAppContext@15d3388{/,C:\playground\webAPI\googleApi\WebContent} > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'scrum_REST_WS': Invocation of init method failed; nested > exception is java.lang.NoClassDefFoundError: javax.management.ObjectName is > a restricted class. Please see the Google App Engine developer's guide for > more details. > > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455) > > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) > > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) > > at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) > > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) > > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) > > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) > > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) > > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) > > at > org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385) > > at > org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284) > > 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 > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > > at org.mortbay.jetty.Server.doStart(Server.java:224) > > at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > > at > com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:196) > > at > com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:239) > > at > com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:146) > > at > com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:189) > > at > com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48) > > at > com.google.appengine.tools.development.DevAppServerMain.<init>(DevAppServerMain.java:128) > > at > com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:104) > Caused by: java.lang.NoClassDefFoundError: javax.management.ObjectName is > a restricted class. Please see the Google App Engine developer's guide for > more details. How can I solve this ? Thanks, Alin -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/CONiw4Kjb60J. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.