You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by tog <gu...@gmail.com> on 2007/09/27 16:21:20 UTC

Servlet container question ?

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

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 ?

Thanks
Guillaume


-- 

Best Regards
Guillaume
http://cheztog.blogspot.com

Re: Servlet container question ?

Posted by tog <gu...@gmail.com>.
Hi

You are right but I removed the package in the groovy file so this
should work ok.
I have placed the groovy files in WEB-INF/classes and get the mentioned error.
When I do compile the groovy file I get the classes (.class) and
everything is working fine. It looks like the groovy files can not be
loaded without having been compiled

Cheers
Guillaume

On 9/29/07, Jeff.Yu <je...@iona.com> wrote:
> 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 <fr...@iona.com> 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 <je...@iona.com> 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
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >
> >
> >
>


-- 

Best Regards
Guillaume
http://cheztog.blogspot.com

Re: Servlet container question ?

Posted by "Jeff.Yu" <je...@iona.com>.
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 <fr...@iona.com> 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 <je...@iona.com> 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
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>
>>>>         
>
>
>   

Re: Servlet container question ?

Posted by tog <gu...@gmail.com>.
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 <fr...@iona.com> 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 <je...@iona.com> 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
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >>
> >>
> >
>


-- 

Best Regards
Guillaume
http://cheztog.blogspot.com

Re: Servlet container question ?

Posted by Freeman Fang <fr...@iona.com>.
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 <je...@iona.com> 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
>>>>
>>>>
>>>>
>>>>       
>>
>>
>>   
>

Re: Servlet container question ?

Posted by "Jeff.Yu" <je...@iona.com>.
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 <je...@iona.com> 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
>>>
>>>
>>>
>>>       
>
>
>   

Re: Servlet container question ?

Posted by tog <gu...@gmail.com>.
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 <je...@iona.com> 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
> >
> >
> >
>


-- 

Best Regards
Guillaume
http://cheztog.blogspot.com

Re: Servlet container question ?

Posted by "Jeff.Yu" <je...@iona.com>.
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
>
>
>