Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 10853 invoked from network); 29 Sep 2007 10:48:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Sep 2007 10:48:24 -0000 Received: (qmail 68464 invoked by uid 500); 29 Sep 2007 10:48:13 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 68445 invoked by uid 500); 29 Sep 2007 10:48:13 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Received: (qmail 68436 invoked by uid 99); 29 Sep 2007 10:48:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Sep 2007 03:48:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jeff.yu@iona.com designates 12.170.54.180 as permitted sender) Received: from [12.170.54.180] (HELO amer-mx1.iona.com) (12.170.54.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Sep 2007 10:50:31 +0000 X-IronPort-AV: E=Sophos;i="4.21,212,1188792000"; d="scan'208";a="5825993" Received: from amer-ems1.ionaglobal.com ([10.65.6.25]) by amer-mx1.iona.com with ESMTP; 29 Sep 2007 06:47:30 -0400 Received: from [10.129.9.192] ([10.129.9.192]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Sat, 29 Sep 2007 06:47:34 -0400 Message-ID: <46FE2C0E.2060908@iona.com> Date: Sat, 29 Sep 2007 18:42:22 +0800 From: "Jeff.Yu" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: cxf-user@incubator.apache.org Subject: Re: Servlet container question ? References: <46FBBEE6.5080702@iona.com> <46FDBD91.60207@iona.com> <46FDCA30.1080802@iona.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Sep 2007 10:47:34.0923 (UTC) FILETIME=[24F8FDB0:01C80286] X-Virus-Checked: Checked by ClamAV on apache.org Hi, The error is saying that spring cannot set the property 'serviceClass', and I found in the bean-groovy.xml, you set the 'serviceClass="HelloWorld"', I am thinking it might be sort of "demo.hw.server.HelloWorld", it should be the full class name. Can you check that? Thanks Jeff tog wrote: > Actually > My goal is to deploy a cxf groovy service possibly using the aegis > service. I thought I was successful but get this error. When I do > compile the script this is working file. I also attached my conf > files. > > Thanks > > 29 sept. 2007 09:57:28 org.springframework.web.context.ContextLoader > initWebApplicationContext > GRAVE: Context initialization failed > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name > 'org.apache.cxf.frontend.ServerFactoryBean--2003537636': > Initialization of bean > failed; nested exception is > org.springframework.beans.TypeMismatchException: Failed to convert > property value of type [java.lang.String] to required type [java.lang. > Class] for property 'serviceClass'; nested exception is > java.lang.IllegalArgumentException: Cannot find class [HelloWorld]. > Root cause: java.lang.ClassNotFoundExcepti > on: HelloWorld > Caused by: org.springframework.beans.TypeMismatchException: Failed to > convert property value of type [java.lang.String] to required type > [java.lang.Class] for propert > y 'serviceClass'; nested exception is > java.lang.IllegalArgumentException: Cannot find class [HelloWorld]. > Root cause: java.lang.ClassNotFoundException: HelloWorld > Caused by: java.lang.IllegalArgumentException: Cannot find class > [HelloWorld]. Root cause: java.lang.ClassNotFoundException: HelloWorld > at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:223) > at org.springframework.beans.propertyeditors.ClassEditor.setAsText(ClassEditor.java:63) > at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:320) > at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:304) > at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:192) > at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138) > at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:380) > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1079) > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:835) > at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) > at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) > at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) > at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) > at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279) > at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360) > at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:241) > at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) > at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) > at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) > at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) > at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) > at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) > at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > at org.apache.catalina.core.StandardService.start(StandardService.java:448) > at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) > at org.apache.catalina.startup.Catalina.start(Catalina.java:552) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) > > > > On 9/29/07, Freeman Fang wrote: > >> Hi Guillaume, >> >> I just recall we programmatically publish endpoint in CXFServlet at very >> first version, but now we all delegate to spring to do it. You can refer to >> http://fisheye6.cenqua.com/browse/celtixfire/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/servlet/CXFServlet.java?r=448031 >> >> to get roughly idea how we do it before, but I don't think it's a good >> way now, spring is more flexsiable. >> >> Best Regard >> >> Freeman >> >> Jeff.Yu wrote: >> >>> Hi, >>> >>> Do you mean you want to publish the endpoint without spring >>> configuration? If you want to do this, you need to write your servlet >>> to publish the endpoint programmatically. >>> >>> Thanks >>> Jeff >>> >>> tog wrote: >>> >>>> Thanks >>>> This is working fine now ... >>>> I got a cxf groovy service running inside tomcat now. >>>> Is there a way to get rid of the spring configuration ? Should I write >>>> my own servlet as a mix of the groovy servlet and cxf servlet ? >>>> >>>> Thanks >>>> Guillaume >>>> >>>> On 9/27/07, Jeff.Yu wrote: >>>> >>>> >>>>> Hi, Guillaume >>>>> >>>>> See my comments inline. >>>>> >>>>> Thanks >>>>> Jeff >>>>> >>>>> tog wrote: >>>>> >>>>> >>>>>> Hiya, >>>>>> >>>>>> I would like to publish an aegis service in tomcat using groovyws. As >>>>>> a starting point, I have tried the java_first_pojo samples (2.0.2). I >>>>>> deployed successfully but could not access it using >>>>>> http://localhost:8080/services/hello_world?wsdl >>>>>> >>>>>> >>>>>> >>>>> The URL should be: >>>>> http://localhost:8080/helloworld/services/hello_world?wsdl >>>>> >>>>> >>>>> >>>>>> I then would like to avoid spring configuration and publish my >>>>>> endpoint in Java. The doc >>>>>> http://cwiki.apache.org/CXF20DOC/servlet-transport.html says I just >>>>>> need to use EndPoint.publish(...) ... >>>>>> Could someone give me more detail on this ? >>>>>> >>>>>> >>>>>> >>>>> There are two ways to publish the endpoint, one is using CXF interal >>>>> API >>>>> [1], the other is JAX-WS based [2] that you are looking for. >>>>> >>>>> [1] >>>>> http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/java_first_pojo/src/demo/hw/server/Server.java?view=markup >>>>> >>>>> [2] >>>>> http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/java_first_jaxws/src/demo/hw/server/Server.java?view=markup >>>>> >>>>> >>>>> >>>>>> Thanks >>>>>> Guillaume >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>> >>>> > > >