[ 
https://issues.apache.org/jira/browse/AXIS2-4283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Veithen resolved AXIS2-4283.
------------------------------------

    Resolution: Invalid

Neither Axis2, nor the sample uses DWR in any way. Thus, the problem comes from 
additional JARs, services or code deployed by the reporter.

Anyway, I can confirm Tharindu's statement that the sample deploys correctly 
with a clean Axis2 distribution.

> pls help me to run WeatherSpringService sample
> ----------------------------------------------
>
>                 Key: AXIS2-4283
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4283
>             Project: Axis2
>          Issue Type: Task
>          Components: samples, samples, build,site, Tools, transports, wsdl
>            Reporter: thipbodee
>
> hi i have problem like this
>  at fisrt i go to axis2 sample and do command like this
> xpl...@xplink-desktop:~/Desktop/axis/axis2-1.4.1/samples/pojoguidespring$ ant
> Buildfile: build.xml
> clean:
> prepare:
>     [mkdir] Created dir: 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target
>     [mkdir] Created dir: 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target/classes
>     [mkdir] Created dir: 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target/classes/META-INF
> checkSpringJarAvailability:
> download.jars:
>      [echo] Spring jars not available.Downloading....
>     [mkdir] Created dir: 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/lib
>       [get] Getting: 
> http://ws.zones.apache.org/repository/org.springframework/jars/spring-core-1.2.8.jar
>       [get] To: 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/lib/spring-core-1.2.8.jar
>       [get] ....................................................
>       [get] ......................
>       [get] Getting: 
> http://ws.zones.apache.org/repository/org.springframework/jars/spring-context-1.2.8.jar
>       [get] To: 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/lib/spring-context-1.2.8.jar
>       [get] ......................................
>       [get] Getting: 
> http://ws.zones.apache.org/repository/org.springframework/jars/spring-beans-1.2.8.jar
>       [get] To: 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/lib/spring-beans-1.2.8.jar
>       [get] ....................................................
>       [get] ....................................................
>       [get] .
> generate.service:
>      [copy] Copying 1 file to 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target/classes/META-INF
>      [copy] Copying 1 file to 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target/classes
>     [javac] Compiling 3 source files to 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target/classes
>       [jar] Building jar: 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target/WeatherSpringService.aar
>      [copy] Copying 1 file to 
> /home/xplink/Desktop/axis/axis2-1.4.1/repository/services
> generate.service:
>      [copy] Copying 1 file to 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target/classes/META-INF
>      [copy] Copying 1 file to 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target/classes
>     [javac] Compiling 3 source files to 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target/classes
>       [jar] Building jar: 
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target/WeatherSpringService.aar
>      [copy] Copying 1 file to 
> /home/xplink/Desktop/axis/axis2-1.4.1/repository/services
> BUILD SUCCESSFUL
>  
>  after that step i get WeatherSpringService.aar at  
> /home/xplink/Desktop/axis/axis2-1.4.1/samples/pojoguidespring/target
> then i deploy  *.aar at axis2 
> axis2 show message like this
> This Web axisService has deployment faults
> Error: org.apache.axis2.deployment.DeploymentException: Unexpected exception 
> parsing XML document from class path resource [applicationContext.xml]; 
> nested exception is java.lang.IllegalArgumentException: Class 
> [org.directwebremoting.spring.DwrNamespaceHandler] does not implement the 
> NamespaceHandler interface at 
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:151)
>  at 
> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81) 
> at 
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>  at 
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
>  at 
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
>  at 
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:330)
>  at 
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:227)
>  at 
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131)
>  at 
> org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284)
>  at 
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:82)
>  at 
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
>  at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436) at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
>  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925) 
> at 
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
>  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118) 
> at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) 
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:894) 
> at 
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:857) 
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475) at 
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1102) at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020) at 
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at 
> org.apache.catalina.core.StandardService.start(StandardService.java:450) at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:537) 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:271) at 
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) Caused by: 
> org.apache.axis2.deployment.DeploymentException: Unexpected exception parsing 
> XML document from class path resource [applicationContext.xml]; nested 
> exception is java.lang.IllegalArgumentException: Class 
> [org.directwebremoting.spring.DwrNamespaceHandler] does not implement the 
> NamespaceHandler interface at 
> org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:106)
>  at 
> org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:110)
>  at 
> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:144)
>  ... 37 more Caused by: org.apache.axis2.deployment.DeploymentException: 
> Unexpected exception parsing XML document from class path resource 
> [applicationContext.xml]; nested exception is 
> java.lang.IllegalArgumentException: Class 
> [org.directwebremoting.spring.DwrNamespaceHandler] does not implement the 
> NamespaceHandler interface at 
> org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:431)
>  at 
> org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
>  ... 39 more Caused by: org.apache.axis2.deployment.DeploymentException: 
> Unexpected exception parsing XML document from class path resource 
> [applicationContext.xml]; nested exception is 
> java.lang.IllegalArgumentException: Class 
> [org.directwebremoting.spring.DwrNamespaceHandler] does not implement the 
> NamespaceHandler interface at 
> org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(ServiceBuilder.java:521)
>  at 
> org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:205)
>  ... 40 more Caused by: 
> org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
> exception parsing XML document from class path resource 
> [applicationContext.xml]; nested exception is 
> java.lang.IllegalArgumentException: Class 
> [org.directwebremoting.spring.DwrNamespaceHandler] does not implement the 
> NamespaceHandler interface at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:375)
>  at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
>  at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
>  at 
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
>  at 
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
>  at 
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173)
>  at 
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)
>  at 
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
>  at 
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
>  at 
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)
>  at 
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
>  at sample.spring.service.SpringInit.startUp(SpringInit.java:64) at 
> org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass(ServiceBuilder.java:518)
>  ... 41 more Caused by: java.lang.IllegalArgumentException: Class 
> [org.directwebremoting.spring.DwrNamespaceHandler] does not implement the 
> NamespaceHandler interface at 
> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
>  at 
> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.(DefaultNamespaceHandlerResolver.java:96)
>  at 
> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.(DefaultNamespaceHandlerResolver.java:82)
>  at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:488)
>  at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:477)
>  at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)
>  at 
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)
>  ... 53 more
> please help me to fix this problem

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to