Re: [Axis2] Dont get example POJOGUIDESPRING to run
robertlazarski <[email protected]> Fri, 6 Nov 2020 05:02:23 -1000
| Newsgroups | gmane.text.xml.axis.user |
|---|---|
| Message-ID | <CABpPLBWhUBGmY6OAmcJw3LNCVPbWhGmyQSf5u-2QA6e5u=87RQ@mail.gmail.com> |
As mentioned, you may have already had a working config after step 18.
If you are still stuck, along with the latest services.xml I pasted, try
adding this to your web.xml - use /WEB-INF/classes/applicationContext.xml
for your correct path or whatever it is.
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
On Fri, Nov 6, 2020 at 4:53 AM robertlazarski <[email protected]>
wrote:
> Your logs from step 18 shows the applicationContext.xml loaded with no
> errors. You may have had a working config somehow at that point.
>
> Did you try to invoke your web service after step 18?
>
> I asked for a file listing since you seemed to have more than one
> applicationContext.xml file in your war. Maybe not, but you should confirm
> that.
>
> After step 18 ...
>
> If the aar is invalid, the logs you pasted don't show why. Is that the
> entire log output?
>
> There is more than one way to configure axis2 for Spring. If you already
> are loading the applicationContext.xml as shown in your step 18, you don't
> want to do a SpringInit class invocation.
>
> If you are still stuck after step 18, try this services.xml that assumes
> Spring is already loaded.
>
> <service name="WeatherService" scope="application">
> <description>
> Weather POJO Service
> </description>
> <parameter
> name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
> <parameter name="SpringBeanName">weatherSpringService</parameter>
> <messageReceivers>
> <messageReceiver
> mep="http://www.w3.org/ns/wsdl/in-only"
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
> <messageReceiver
> mep="http://www.w3.org/ns/wsdl/in-out"
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> </messageReceivers>
> <parameter name="ServiceClass">
> sample.pojo.service.WeatherService
> </parameter>
> </service>
>
> On Fri, Nov 6, 2020 at 2:21 AM Daniel Otto <[email protected]>
> wrote:
>
>> The contents of the axis2.war in cd /var/lib/tomcat9/webapps/ are the
>> same as in the WAR distribution which I downloaded from the
>> download-site of axis2, nothing changed so far.
>>
>> So I should use the services.xml from another example? I have done this,
>> built with ant again, deployed the new .aar file and the service is shown
>> up again as faulty service in the servicelist in the axis2 panel on the web
>> browser.
>> I will write down all 26 steps I have done so far, possibly here you can
>> see something obviously incorrect in the way I think the example
>> pojoguidespring should run...
>>
>> 1) download and extract the WAR and the binary distribution of axis2
>> 2) install tomcat9 with APT
>> 3) cp the axis2.war to /var/lib/tomcat9/webapps/
>> 4) cd AXIS2_HOME/samples/pojoguidespring/
>> 5) nano build.xml and change the source url from the three jar files to
>> urls from maven which are functional and use a never version
>> spring-core-5.1.10.RELEASE.jar for example
>> 6) ant
>> 7) cp
>> AXIS2_HOME/samples/pojoguidespring/target/WeatherSpringService.aar /var/lib/tomcat9/webapps/axis2/WEB-INF/services/
>> 8) copy the loaded *.jars from AXIS2_HOME/samples/pojoguidespring/lib to
>> /var/Lib/tomcat9/webapps/axis2/WEB-INF/lib
>> 9) service is still faulty at this point
>> 10) add these lines in the log4j.properties in
>> /var/lib/tomcat9/webapps/axis2/WEB-INF/classes for better error log
>> log4j.rootCategory=INFO, CONSOLE, LOGFILE
>> log4j.appender.LOGFILE.File=/var/lib/tomcat9/logs/axis2.log
>> 11) stop and start tomcat again
>> 12) found the error
>> 2020-11-06 12:37:43,367 [main] INFO
>> org.apache.axis2.deployment.ServiceDeployer - The
>> WeatherSpringService.aar service, which is not valid, caused
>> java.lang.NoClassDefFoundError:
>> org/springframework/expression/PropertyAccessor
>> 13) watch at findjars.com for
>> org/springframework/expression/PropertyAccessor
>> 14) download spring-expression-5.1.10.RELEASE.jar and mv to
>> /var/lib/tomcat9/webapps/axis2/WEB-INF/lib/
>> 15) restart tomcat9
>> 16) service now is deployed correctly. It is shown in the service list at
>> the axis2 panel in a browser and the logfile has no errors shown up.
>> 17) add the following line in
>> /var/lib/tomcat9/webapps/axis2/WEB-INF/classes /log4j.properties
>> log4j.logger.org.springframework=TRACE
>> 18) restarted the server and got this log. (Btw no applicationContext.xml
>> is copied by me right now)
>>
>> 2020-11-06 12:47:51,018 [main] INFO
>> org.apache.axis2.deployment.ClusterBuilder - Clustering has been disabled
>> 2020-11-06 12:47:51,184 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> soapmonitor-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/soapmonitor-1.7.9.mar
>> 2020-11-06 12:47:51,200 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> mtompolicy-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mtompolicy-1.7.9.mar
>> 2020-11-06 12:47:51,219 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module: ping-1.7.9
>> - file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/ping-1.7.9.mar
>> 2020-11-06 12:47:51,227 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> jaxws-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/axis2-jaxws-mar-1.7.9.mar
>> 2020-11-06 12:47:51,235 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> metadataExchange-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mex-1.7.9.mar
>> 2020-11-06 12:47:51,242 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> script-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/scripting-1.7.9.mar
>> 2020-11-06 12:47:51,270 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> addressing-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/addressing-1.7.9.mar
>> 2020-11-06 12:47:51,561 [main] TRACE
>> org.springframework.context.support.ClassPathXmlApplicationContext -
>> Refreshing
>> org.springframework.context.support.ClassPathXmlApplicationContext@6d4f29a4,
>> started on Fri Nov 06 12:47:51 CET 2020
>> 2020-11-06 12:47:51,680 [main] TRACE
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading
>> XML bean definitions from class path resource [applicationContext.xml]
>> 2020-11-06 12:47:51,682 [main] TRACE
>> org.springframework.beans.factory.xml.DefaultDocumentLoader - Using JAXP
>> provider
>> [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
>> 2020-11-06 12:47:51,685 [main] TRACE
>> org.springframework.beans.factory.xml.BeansDtdResolver - Trying to resolve
>> XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [
>> http://www.springframework.org/dtd/spring-beans.dtd]
>> 2020-11-06 12:47:51,685 [main] TRACE
>> org.springframework.beans.factory.xml.BeansDtdResolver - Trying to locate
>> [spring-beans.dtd] in Spring jar on classpath
>> 2020-11-06 12:47:51,686 [main] TRACE
>> org.springframework.beans.factory.xml.BeansDtdResolver - Found beans DTD [
>> http://www.springframework.org/dtd/spring-beans.dtd] in classpath:
>> spring-beans.dtd
>> 2020-11-06 12:47:51,741 [main] DEBUG
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 3
>> bean definitions from class path resource [applicationContext.xml]
>> 2020-11-06 12:47:51,742 [main] TRACE
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 3
>> bean definitions from location pattern [applicationContext.xml]
>> 2020-11-06 12:47:51,788 [main] TRACE
>> org.springframework.context.support.ClassPathXmlApplicationContext - No
>> 'messageSource' bean, using [Empty MessageSource]
>> 2020-11-06 12:47:51,792 [main] TRACE
>> org.springframework.context.support.ClassPathXmlApplicationContext - No
>> 'applicationEventMulticaster' bean, using
>> [SimpleApplicationEventMulticaster]
>> 2020-11-06 12:47:51,794 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Pre-instantiating singletons in
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@13acb4:
>> defining beans [applicationContext,weatherSpringService,weatherBean]; root
>> of factory hierarchy
>> 2020-11-06 12:47:51,795 [main] DEBUG
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating shared instance of singleton bean 'applicationContext'
>> 2020-11-06 12:47:51,796 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating instance of bean 'applicationContext'
>> 2020-11-06 12:47:51,830 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Eagerly caching bean 'applicationContext' to allow for resolving potential
>> circular references
>> 2020-11-06 12:47:51,834 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Finished creating instance of bean 'applicationContext'
>> 2020-11-06 12:47:51,834 [main] DEBUG
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating shared instance of singleton bean 'weatherSpringService'
>> 2020-11-06 12:47:51,834 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating instance of bean 'weatherSpringService'
>> 2020-11-06 12:47:51,834 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Eagerly caching bean 'weatherSpringService' to allow for resolving
>> potential circular references
>> 2020-11-06 12:47:51,840 [main] DEBUG
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating shared instance of singleton bean 'weatherBean'
>> 2020-11-06 12:47:51,840 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating instance of bean 'weatherBean'
>> 2020-11-06 12:47:51,841 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Eagerly caching bean 'weatherBean' to allow for resolving potential
>> circular references
>> 2020-11-06 12:47:51,861 [main] TRACE
>> org.springframework.core.io.support.SpringFactoriesLoader - Loaded
>> [org.springframework.beans.BeanInfoFactory] names:
>> [org.springframework.beans.ExtendedBeanInfoFactory]
>> 2020-11-06 12:47:51,863 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Getting BeanInfo
>> for class [sample.spring.bean.Weather]
>> 2020-11-06 12:47:51,879 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Caching
>> PropertyDescriptors for class [sample.spring.bean.Weather]
>> 2020-11-06 12:47:51,880 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'class' of type [java.lang.Class]
>> 2020-11-06 12:47:51,902 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'forecast' of type [java.lang.String]
>> 2020-11-06 12:47:51,903 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'howMuchRain' of type [float]
>> 2020-11-06 12:47:51,903 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'rain' of type [boolean]
>> 2020-11-06 12:47:51,904 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'temperature' of type [float]
>> 2020-11-06 12:47:51,909 [main] DEBUG
>> org.springframework.beans.CachedIntrospectionResults - Not strongly
>> caching class [sample.spring.bean.Weather] because it is not cache-safe
>> 2020-11-06 12:47:51,936 [main] TRACE
>> org.springframework.beans.TypeConverterDelegate - Converting String to
>> [float] using property editor
>> [org.springframework.beans.propertyeditors.CustomNumberEditor@15f12e7b]
>> 2020-11-06 12:47:51,941 [main] TRACE
>> org.springframework.beans.TypeConverterDelegate - Converting String to
>> [boolean] using property editor
>> [org.springframework.beans.propertyeditors.CustomBooleanEditor@f0ead61]
>> 2020-11-06 12:47:51,942 [main] TRACE
>> org.springframework.beans.TypeConverterDelegate - Converting String to
>> [float] using property editor
>> [org.springframework.beans.propertyeditors.CustomNumberEditor@15f12e7b]
>> 2020-11-06 12:47:51,943 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Finished creating instance of bean 'weatherBean'
>> 2020-11-06 12:47:51,945 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Getting BeanInfo
>> for class [sample.spring.service.WeatherSpringService]
>> 2020-11-06 12:47:51,951 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Caching
>> PropertyDescriptors for class [sample.spring.service.WeatherSpringService]
>> 2020-11-06 12:47:51,952 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'class' of type [java.lang.Class]
>> 2020-11-06 12:47:51,953 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'weather' of type [sample.spring.bean.Weather]
>> 2020-11-06 12:47:51,953 [main] DEBUG
>> org.springframework.beans.CachedIntrospectionResults - Not strongly
>> caching class [sample.spring.service.WeatherSpringService] because it is
>> not cache-safe
>> 2020-11-06 12:47:51,954 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Finished creating instance of bean 'weatherSpringService'
>> 2020-11-06 12:47:51,954 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Returning cached instance of singleton bean 'weatherBean'
>> 2020-11-06 12:47:51,958 [main] TRACE
>> org.springframework.context.support.ClassPathXmlApplicationContext - No
>> 'lifecycleProcessor' bean, using [DefaultLifecycleProcessor]
>> 2020-11-06 12:47:51,958 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Returning cached instance of singleton bean 'lifecycleProcessor'
>> 2020-11-06 12:47:51,962 [main] TRACE
>> org.springframework.core.env.PropertySourcesPropertyResolver - Searching
>> for key 'spring.liveBeansView.mbeanDomain' in PropertySource
>> 'systemProperties'
>> 2020-11-06 12:47:51,962 [main] TRACE
>> org.springframework.core.env.PropertySourcesPropertyResolver - Searching
>> for key 'spring.liveBeansView.mbeanDomain' in PropertySource
>> 'systemEnvironment'
>> 2020-11-06 12:47:51,962 [main] TRACE
>> org.springframework.core.env.PropertySourcesPropertyResolver - Could not
>> find key 'spring.liveBeansView.mbeanDomain' in any property source
>> 2020-11-06 12:47:52,005 [main] INFO
>> org.apache.axis2.deployment.DeploymentEngine - Deploying Web service:
>> WeatherSpringService.aar -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/services/WeatherSpringService.aar
>> 2020-11-06 12:47:52,024 [main] INFO
>> org.apache.axis2.deployment.DeploymentEngine - Deploying Web service:
>> version-1.7.9.aar -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/services/version-1.7.9.aar
>>
>> 19) cp
>> AXIS2_HOME/samples/pojoguidespring/target/classes/applicationContext.xml
>> /var/lib/tomcat9/target/classes
>> 20) restarted the server, nothing changed in the log
>> 21) add "classpath*:" in
>> AXIS2_HOME/samples/pojoguidespring/src/sample/spring/service/Springinit.java
>> 22) ant in /AXIS2_HOME/samples/pojoguidespring/ again and cp
>> AXIS2_HOME/samples/pojoguidespring/target/WeatherSpringService.aar /var/lib/tomcat9/webapps/axis2/WEB-INF/services/
>>
>> 23) restarted the server and got this log
>>
>> 2020-11-06 13:08:27,031 [main] INFO
>> org.apache.axis2.deployment.ClusterBuilder - Clustering has been disabled
>> 2020-11-06 13:08:27,129 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> soapmonitor-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/soapmonitor-1.7.9.mar
>> 2020-11-06 13:08:27,136 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> mtompolicy-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mtompolicy-1.7.9.mar
>> 2020-11-06 13:08:27,150 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module: ping-1.7.9
>> - file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/ping-1.7.9.mar
>> 2020-11-06 13:08:27,170 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> jaxws-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/axis2-jaxws-mar-1.7.9.mar
>> 2020-11-06 13:08:27,182 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> metadataExchange-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mex-1.7.9.mar
>> 2020-11-06 13:08:27,194 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> script-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/scripting-1.7.9.mar
>> 2020-11-06 13:08:27,220 [main] INFO
>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>> addressing-1.7.9 -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/addressing-1.7.9.mar
>> 2020-11-06 13:08:27,419 [main] TRACE
>> org.springframework.context.support.ClassPathXmlApplicationContext -
>> Refreshing
>> org.springframework.context.support.ClassPathXmlApplicationContext@278e721e,
>> started on Fri Nov 06 13:08:27 CET 2020
>> 2020-11-06 13:08:27,523 [main] TRACE
>> org.springframework.core.io.support.PathMatchingResourcePatternResolver -
>> Resolved classpath location [applicationContext.xml] to resources [URL
>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml],
>> URL
>> [jar:file:/tmp/axis2-tmp-10320043896353072767.tmp/axis216220064735562797682WeatherSpringService.aar!/applicationContext.xml]]
>> 2020-11-06 13:08:27,528 [main] TRACE
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading
>> XML bean definitions from URL
>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml]
>> 2020-11-06 13:08:27,539 [main] TRACE
>> org.springframework.beans.factory.xml.DefaultDocumentLoader - Using JAXP
>> provider
>> [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
>> 2020-11-06 13:08:27,545 [main] TRACE
>> org.springframework.beans.factory.xml.BeansDtdResolver - Trying to resolve
>> XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [
>> http://www.springframework.org/dtd/spring-beans.dtd]
>> 2020-11-06 13:08:27,546 [main] TRACE
>> org.springframework.beans.factory.xml.BeansDtdResolver - Trying to locate
>> [spring-beans.dtd] in Spring jar on classpath
>> 2020-11-06 13:08:27,548 [main] TRACE
>> org.springframework.beans.factory.xml.BeansDtdResolver - Found beans DTD [
>> http://www.springframework.org/dtd/spring-beans.dtd] in classpath:
>> spring-beans.dtd
>> 2020-11-06 13:08:27,588 [main] DEBUG
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 3
>> bean definitions from URL
>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml]
>> 2020-11-06 13:08:27,589 [main] TRACE
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading
>> XML bean definitions from URL
>> [jar:file:/tmp/axis2-tmp-10320043896353072767.tmp/axis216220064735562797682WeatherSpringService.aar!/applicationContext.xml]
>> 2020-11-06 13:08:27,591 [main] TRACE
>> org.springframework.beans.factory.xml.DefaultDocumentLoader - Using JAXP
>> provider
>> [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
>> 2020-11-06 13:08:27,595 [main] TRACE
>> org.springframework.beans.factory.xml.BeansDtdResolver - Trying to resolve
>> XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [
>> http://www.springframework.org/dtd/spring-beans.dtd]
>> 2020-11-06 13:08:27,595 [main] TRACE
>> org.springframework.beans.factory.xml.BeansDtdResolver - Trying to locate
>> [spring-beans.dtd] in Spring jar on classpath
>> 2020-11-06 13:08:27,596 [main] TRACE
>> org.springframework.beans.factory.xml.BeansDtdResolver - Found beans DTD [
>> http://www.springframework.org/dtd/spring-beans.dtd] in classpath:
>> spring-beans.dtd
>> 2020-11-06 13:08:27,605 [main] DEBUG
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Overriding bean definition for bean 'applicationContext' with a different
>> definition: replacing [Generic bean: class
>> [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder];
>> scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
>> autowireCandidate=true; primary=false; factoryBeanName=null;
>> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
>> defined in URL
>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml]]
>> with [Generic bean: class
>> [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder];
>> scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
>> autowireCandidate=true; primary=false; factoryBeanName=null;
>> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
>> defined in URL
>> [jar:file:/tmp/axis2-tmp-10320043896353072767.tmp/axis216220064735562797682WeatherSpringService.aar!/applicationContext.xml]]
>> 2020-11-06 13:08:27,607 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Overriding bean definition for bean 'weatherSpringService' with an
>> equivalent definition: replacing [Generic bean: class
>> [sample.spring.service.WeatherSpringService]; scope=; abstract=false;
>> lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
>> primary=false; factoryBeanName=null; factoryMethodName=null;
>> initMethodName=null; destroyMethodName=null; defined in URL
>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml]]
>> with [Generic bean: class [sample.spring.service.WeatherSpringService];
>> scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
>> autowireCandidate=true; primary=false; factoryBeanName=null;
>> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
>> defined in URL
>> [jar:file:/tmp/axis2-tmp-10320043896353072767.tmp/axis216220064735562797682WeatherSpringService.aar!/applicationContext.xml]]
>> 2020-11-06 13:08:27,610 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Overriding bean definition for bean 'weatherBean' with an equivalent
>> definition: replacing [Generic bean: class [sample.spring.bean.Weather];
>> scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
>> autowireCandidate=true; primary=false; factoryBeanName=null;
>> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
>> defined in URL
>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml]]
>> with [Generic bean: class [sample.spring.bean.Weather]; scope=;
>> abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
>> autowireCandidate=true; primary=false; factoryBeanName=null;
>> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
>> defined in URL
>> [jar:file:/tmp/axis2-tmp-10320043896353072767.tmp/axis216220064735562797682WeatherSpringService.aar!/applicationContext.xml]]
>> 2020-11-06 13:08:27,611 [main] DEBUG
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 0
>> bean definitions from URL
>> [jar:file:/tmp/axis2-tmp-10320043896353072767.tmp/axis216220064735562797682WeatherSpringService.aar!/applicationContext.xml]
>> 2020-11-06 13:08:27,611 [main] TRACE
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 3
>> bean definitions from location pattern [classpath*:applicationContext.xml]
>> 2020-11-06 13:08:27,674 [main] TRACE
>> org.springframework.context.support.ClassPathXmlApplicationContext - No
>> 'messageSource' bean, using [Empty MessageSource]
>> 2020-11-06 13:08:27,677 [main] TRACE
>> org.springframework.context.support.ClassPathXmlApplicationContext - No
>> 'applicationEventMulticaster' bean, using
>> [SimpleApplicationEventMulticaster]
>> 2020-11-06 13:08:27,679 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Pre-instantiating singletons in
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@38138629:
>> defining beans [applicationContext,weatherSpringService,weatherBean]; root
>> of factory hierarchy
>> 2020-11-06 13:08:27,680 [main] DEBUG
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating shared instance of singleton bean 'applicationContext'
>> 2020-11-06 13:08:27,681 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating instance of bean 'applicationContext'
>> 2020-11-06 13:08:27,700 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Eagerly caching bean 'applicationContext' to allow for resolving potential
>> circular references
>> 2020-11-06 13:08:27,705 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Finished creating instance of bean 'applicationContext'
>> 2020-11-06 13:08:27,706 [main] DEBUG
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating shared instance of singleton bean 'weatherSpringService'
>> 2020-11-06 13:08:27,706 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating instance of bean 'weatherSpringService'
>> 2020-11-06 13:08:27,707 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Eagerly caching bean 'weatherSpringService' to allow for resolving
>> potential circular references
>> 2020-11-06 13:08:27,709 [main] DEBUG
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating shared instance of singleton bean 'weatherBean'
>> 2020-11-06 13:08:27,709 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Creating instance of bean 'weatherBean'
>> 2020-11-06 13:08:27,710 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Eagerly caching bean 'weatherBean' to allow for resolving potential
>> circular references
>> 2020-11-06 13:08:27,720 [main] TRACE
>> org.springframework.core.io.support.SpringFactoriesLoader - Loaded
>> [org.springframework.beans.BeanInfoFactory] names:
>> [org.springframework.beans.ExtendedBeanInfoFactory]
>> 2020-11-06 13:08:27,722 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Getting BeanInfo
>> for class [sample.spring.bean.Weather]
>> 2020-11-06 13:08:27,727 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Caching
>> PropertyDescriptors for class [sample.spring.bean.Weather]
>> 2020-11-06 13:08:27,728 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'class' of type [java.lang.Class]
>> 2020-11-06 13:08:27,734 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'forecast' of type [java.lang.String]
>> 2020-11-06 13:08:27,734 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'howMuchRain' of type [float]
>> 2020-11-06 13:08:27,734 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'rain' of type [boolean]
>> 2020-11-06 13:08:27,734 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'temperature' of type [float]
>> 2020-11-06 13:08:27,734 [main] DEBUG
>> org.springframework.beans.CachedIntrospectionResults - Not strongly
>> caching class [sample.spring.bean.Weather] because it is not cache-safe
>> 2020-11-06 13:08:27,751 [main] TRACE
>> org.springframework.beans.TypeConverterDelegate - Converting String to
>> [float] using property editor
>> [org.springframework.beans.propertyeditors.CustomNumberEditor@3a19b933]
>> 2020-11-06 13:08:27,760 [main] TRACE
>> org.springframework.beans.TypeConverterDelegate - Converting String to
>> [boolean] using property editor
>> [org.springframework.beans.propertyeditors.CustomBooleanEditor@c0ef9a8]
>> 2020-11-06 13:08:27,760 [main] TRACE
>> org.springframework.beans.TypeConverterDelegate - Converting String to
>> [float] using property editor
>> [org.springframework.beans.propertyeditors.CustomNumberEditor@3a19b933]
>> 2020-11-06 13:08:27,761 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Finished creating instance of bean 'weatherBean'
>> 2020-11-06 13:08:27,762 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Getting BeanInfo
>> for class [sample.spring.service.WeatherSpringService]
>> 2020-11-06 13:08:27,765 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Caching
>> PropertyDescriptors for class [sample.spring.service.WeatherSpringService]
>> 2020-11-06 13:08:27,766 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'class' of type [java.lang.Class]
>> 2020-11-06 13:08:27,766 [main] TRACE
>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>> 'weather' of type [sample.spring.bean.Weather]
>> 2020-11-06 13:08:27,766 [main] DEBUG
>> org.springframework.beans.CachedIntrospectionResults - Not strongly
>> caching class [sample.spring.service.WeatherSpringService] because it is
>> not cache-safe
>> 2020-11-06 13:08:27,767 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Finished creating instance of bean 'weatherSpringService'
>> 2020-11-06 13:08:27,767 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Returning cached instance of singleton bean 'weatherBean'
>> 2020-11-06 13:08:27,769 [main] TRACE
>> org.springframework.context.support.ClassPathXmlApplicationContext - No
>> 'lifecycleProcessor' bean, using [DefaultLifecycleProcessor]
>> 2020-11-06 13:08:27,769 [main] TRACE
>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>> Returning cached instance of singleton bean 'lifecycleProcessor'
>> 2020-11-06 13:08:27,772 [main] TRACE
>> org.springframework.core.env.PropertySourcesPropertyResolver - Searching
>> for key 'spring.liveBeansView.mbeanDomain' in PropertySource
>> 'systemProperties'
>> 2020-11-06 13:08:27,773 [main] TRACE
>> org.springframework.core.env.PropertySourcesPropertyResolver - Searching
>> for key 'spring.liveBeansView.mbeanDomain' in PropertySource
>> 'systemEnvironment'
>> 2020-11-06 13:08:27,774 [main] TRACE
>> org.springframework.core.env.PropertySourcesPropertyResolver - Could not
>> find key 'spring.liveBeansView.mbeanDomain' in any property source
>> 2020-11-06 13:08:27,793 [main] INFO
>> org.apache.axis2.deployment.DeploymentEngine - Deploying Web service:
>> WeatherSpringService.aar -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/services/WeatherSpringService.aar
>> 2020-11-06 13:08:27,800 [main] INFO
>> org.apache.axis2.deployment.DeploymentEngine - Deploying Web service:
>> version-1.7.9.aar -
>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/services/version-1.7.9.aar
>>
>> 24) changing the contents of services.xml in
>> AXIS2_HOME/samples/pojoguidespring/src/META-INF to the contents of the
>> services.xml file in AXIS2_HOME/samples/pojoguide/src/META-INF
>> 25) ant in /AXIS2_HOME/samples/pojoguidespring/ again and cp
>> AXIS2_HOME/samples/pojoguidespring/target/WeatherSpringService.aar /var/lib/tomcat9/webapps/axis2/WEB-INF/services/
>> 26) restarted the server and the service is shown up as faulty service in
>> the axis2 panel on a web browser
>>
>> Am Fr., 6. Nov. 2020 um 01:46 Uhr schrieb robertlazarski <
>> [email protected]>:
>>
>>> Looks like you are loading the applicationContext.xml file, then
>>> unheedingly loading it again in a SpringInit class.
>>>
>>> I am guessing that since there are two service.xml files in the POJO
>>> tutorial for two separate ways to load Srping, this other one better
>>> matches your config.
>>>
>>> <service name="WeatherService" scope="application">
>>> <description>
>>> Weather POJO Service
>>> </description>
>>> <messageReceivers>
>>> <messageReceiver
>>> mep="http://www.w3.org/ns/wsdl/in-only"
>>> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
>>> <messageReceiver
>>> mep="http://www.w3.org/ns/wsdl/in-out"
>>> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>>> </messageReceivers>
>>> <parameter name="ServiceClass">
>>> sample.pojo.service.WeatherService
>>> </parameter>
>>> </service>
>>>
>>> What are the contents of the war file?
>>>
>>> cd /var/lib/tomcat9/webapps/axis2
>>> find .
>>>
>>> On Thu, Nov 5, 2020 at 11:23 AM Daniel Otto <[email protected]>
>>> wrote:
>>>
>>>> You mean I should add the wildcard:
>>>>
>>>> *ClassPathXmlApplicationContext appCtx = new
>>>> ClassPathXmlApplicationContext*(new String[]
>>>> {"*classpath*:applicationContext.xml*"},
>>>> false);
>>>>
>>>> in the source file SpringInit.java, run ant again and deploy the new
>>>> WeatherSpringService.aar on axis2? So I have done that. I also have add the
>>>> line
>>>> log4j.logger.org.springframework=TRACE
>>>> in the WEB-INF/classes/log4j.properties file. The error now seems to
>>>> be the same to me, and I think the applicationContext.xml would be found
>>>> and loaded, like it is shown in the logfile:
>>>>
>>>> 2020-11-05 22:15:47,138 [main] INFO
>>>> org.apache.axis2.deployment.ClusterBuilder - Clustering has been disabled
>>>> 2020-11-05 22:15:47,312 [main] INFO
>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>> soapmonitor-1.7.9 -
>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/soapmonitor-1.7.9.mar
>>>> 2020-11-05 22:15:47,329 [main] INFO
>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>> mtompolicy-1.7.9 -
>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mtompolicy-1.7.9.mar
>>>> 2020-11-05 22:15:47,342 [main] INFO
>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module: ping-1.7.9
>>>> - file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/ping-1.7.9.mar
>>>> 2020-11-05 22:15:47,350 [main] INFO
>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>> jaxws-1.7.9 -
>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/axis2-jaxws-mar-1.7.9.mar
>>>> 2020-11-05 22:15:47,356 [main] INFO
>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>> metadataExchange-1.7.9 -
>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mex-1.7.9.mar
>>>> 2020-11-05 22:15:47,361 [main] INFO
>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>> script-1.7.9 -
>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/scripting-1.7.9.mar
>>>> 2020-11-05 22:15:47,394 [main] INFO
>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>> addressing-1.7.9 -
>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/addressing-1.7.9.mar
>>>> 2020-11-05 22:15:47,686 [main] TRACE
>>>> org.springframework.context.support.ClassPathXmlApplicationContext -
>>>> Refreshing
>>>> org.springframework.context.support.ClassPathXmlApplicationContext@1c645e05,
>>>> started on Thu Nov 05 22:15:47 CET 2020
>>>> 2020-11-05 22:15:47,767 [main] TRACE
>>>> org.springframework.core.io.support.PathMatchingResourcePatternResolver -
>>>> Resolved classpath location [applicationContext.xml] to resources [URL
>>>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml],
>>>> URL
>>>> [jar:file:/tmp/axis2-tmp-1700414997883174032.tmp/axis29848126902597901752WeatherSpringService.aar!/applicationContext.xml]]
>>>> 2020-11-05 22:15:47,767 [main] TRACE
>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading
>>>> XML bean definitions from URL
>>>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml]
>>>> 2020-11-05 22:15:47,769 [main] TRACE
>>>> org.springframework.beans.factory.xml.DefaultDocumentLoader - Using JAXP
>>>> provider
>>>> [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
>>>> 2020-11-05 22:15:47,771 [main] TRACE
>>>> org.springframework.beans.factory.xml.BeansDtdResolver - Trying to resolve
>>>> XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [
>>>> http://www.springframework.org/dtd/spring-beans.dtd]
>>>> 2020-11-05 22:15:47,771 [main] TRACE
>>>> org.springframework.beans.factory.xml.BeansDtdResolver - Trying to locate
>>>> [spring-beans.dtd] in Spring jar on classpath
>>>> 2020-11-05 22:15:47,773 [main] TRACE
>>>> org.springframework.beans.factory.xml.BeansDtdResolver - Found beans DTD [
>>>> http://www.springframework.org/dtd/spring-beans.dtd] in classpath:
>>>> spring-beans.dtd
>>>> 2020-11-05 22:15:47,806 [main] DEBUG
>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 3
>>>> bean definitions from URL
>>>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml]
>>>> 2020-11-05 22:15:47,807 [main] TRACE
>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading
>>>> XML bean definitions from URL
>>>> [jar:file:/tmp/axis2-tmp-1700414997883174032.tmp/axis29848126902597901752WeatherSpringService.aar!/applicationContext.xml]
>>>> 2020-11-05 22:15:47,808 [main] TRACE
>>>> org.springframework.beans.factory.xml.DefaultDocumentLoader - Using JAXP
>>>> provider
>>>> [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
>>>> 2020-11-05 22:15:47,814 [main] TRACE
>>>> org.springframework.beans.factory.xml.BeansDtdResolver - Trying to resolve
>>>> XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [
>>>> http://www.springframework.org/dtd/spring-beans.dtd]
>>>> 2020-11-05 22:15:47,815 [main] TRACE
>>>> org.springframework.beans.factory.xml.BeansDtdResolver - Trying to locate
>>>> [spring-beans.dtd] in Spring jar on classpath
>>>> 2020-11-05 22:15:47,815 [main] TRACE
>>>> org.springframework.beans.factory.xml.BeansDtdResolver - Found beans DTD [
>>>> http://www.springframework.org/dtd/spring-beans.dtd] in classpath:
>>>> spring-beans.dtd
>>>> 2020-11-05 22:15:47,819 [main] DEBUG
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Overriding bean definition for bean 'applicationContext' with a different
>>>> definition: replacing [Generic bean: class
>>>> [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder];
>>>> scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
>>>> autowireCandidate=true; primary=false; factoryBeanName=null;
>>>> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
>>>> defined in URL
>>>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml]]
>>>> with [Generic bean: class
>>>> [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder];
>>>> scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
>>>> autowireCandidate=true; primary=false; factoryBeanName=null;
>>>> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
>>>> defined in URL
>>>> [jar:file:/tmp/axis2-tmp-1700414997883174032.tmp/axis29848126902597901752WeatherSpringService.aar!/applicationContext.xml]]
>>>> 2020-11-05 22:15:47,820 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Overriding bean definition for bean 'weatherSpringService' with an
>>>> equivalent definition: replacing [Generic bean: class
>>>> [sample.spring.service.WeatherSpringService]; scope=; abstract=false;
>>>> lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
>>>> primary=false; factoryBeanName=null; factoryMethodName=null;
>>>> initMethodName=null; destroyMethodName=null; defined in URL
>>>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml]]
>>>> with [Generic bean: class [sample.spring.service.WeatherSpringService];
>>>> scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
>>>> autowireCandidate=true; primary=false; factoryBeanName=null;
>>>> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
>>>> defined in URL
>>>> [jar:file:/tmp/axis2-tmp-1700414997883174032.tmp/axis29848126902597901752WeatherSpringService.aar!/applicationContext.xml]]
>>>> 2020-11-05 22:15:47,821 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Overriding bean definition for bean 'weatherBean' with an equivalent
>>>> definition: replacing [Generic bean: class [sample.spring.bean.Weather];
>>>> scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
>>>> autowireCandidate=true; primary=false; factoryBeanName=null;
>>>> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
>>>> defined in URL
>>>> [file:/var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml]]
>>>> with [Generic bean: class [sample.spring.bean.Weather]; scope=;
>>>> abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
>>>> autowireCandidate=true; primary=false; factoryBeanName=null;
>>>> factoryMethodName=null; initMethodName=null; destroyMethodName=null;
>>>> defined in URL
>>>> [jar:file:/tmp/axis2-tmp-1700414997883174032.tmp/axis29848126902597901752WeatherSpringService.aar!/applicationContext.xml]]
>>>> 2020-11-05 22:15:47,821 [main] DEBUG
>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 0
>>>> bean definitions from URL
>>>> [jar:file:/tmp/axis2-tmp-1700414997883174032.tmp/axis29848126902597901752WeatherSpringService.aar!/applicationContext.xml]
>>>> 2020-11-05 22:15:47,821 [main] TRACE
>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loaded 3
>>>> bean definitions from location pattern [classpath*:applicationContext.xml]
>>>> 2020-11-05 22:15:47,883 [main] TRACE
>>>> org.springframework.context.support.ClassPathXmlApplicationContext - No
>>>> 'messageSource' bean, using [Empty MessageSource]
>>>> 2020-11-05 22:15:47,889 [main] TRACE
>>>> org.springframework.context.support.ClassPathXmlApplicationContext - No
>>>> 'applicationEventMulticaster' bean, using
>>>> [SimpleApplicationEventMulticaster]
>>>> 2020-11-05 22:15:47,901 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Pre-instantiating singletons in
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory@752eeec:
>>>> defining beans [applicationContext,weatherSpringService,weatherBean]; root
>>>> of factory hierarchy
>>>> 2020-11-05 22:15:47,905 [main] DEBUG
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Creating shared instance of singleton bean 'applicationContext'
>>>> 2020-11-05 22:15:47,905 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Creating instance of bean 'applicationContext'
>>>> 2020-11-05 22:15:47,934 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Eagerly caching bean 'applicationContext' to allow for resolving potential
>>>> circular references
>>>> 2020-11-05 22:15:47,946 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Finished creating instance of bean 'applicationContext'
>>>> 2020-11-05 22:15:47,946 [main] DEBUG
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Creating shared instance of singleton bean 'weatherSpringService'
>>>> 2020-11-05 22:15:47,946 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Creating instance of bean 'weatherSpringService'
>>>> 2020-11-05 22:15:47,957 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Eagerly caching bean 'weatherSpringService' to allow for resolving
>>>> potential circular references
>>>> 2020-11-05 22:15:47,960 [main] DEBUG
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Creating shared instance of singleton bean 'weatherBean'
>>>> 2020-11-05 22:15:47,961 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Creating instance of bean 'weatherBean'
>>>> 2020-11-05 22:15:47,962 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Eagerly caching bean 'weatherBean' to allow for resolving potential
>>>> circular references
>>>> 2020-11-05 22:15:47,974 [main] TRACE
>>>> org.springframework.core.io.support.SpringFactoriesLoader - Loaded
>>>> [org.springframework.beans.BeanInfoFactory] names:
>>>> [org.springframework.beans.ExtendedBeanInfoFactory]
>>>> 2020-11-05 22:15:47,975 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Getting BeanInfo
>>>> for class [sample.spring.bean.Weather]
>>>> 2020-11-05 22:15:47,983 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Caching
>>>> PropertyDescriptors for class [sample.spring.bean.Weather]
>>>> 2020-11-05 22:15:47,983 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>>>> 'class' of type [java.lang.Class]
>>>> 2020-11-05 22:15:47,997 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>>>> 'forecast' of type [java.lang.String]
>>>> 2020-11-05 22:15:47,997 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>>>> 'howMuchRain' of type [float]
>>>> 2020-11-05 22:15:47,998 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>>>> 'rain' of type [boolean]
>>>> 2020-11-05 22:15:47,998 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>>>> 'temperature' of type [float]
>>>> 2020-11-05 22:15:47,999 [main] DEBUG
>>>> org.springframework.beans.CachedIntrospectionResults - Not strongly
>>>> caching class [sample.spring.bean.Weather] because it is not cache-safe
>>>> 2020-11-05 22:15:48,011 [main] TRACE
>>>> org.springframework.beans.TypeConverterDelegate - Converting String to
>>>> [float] using property editor
>>>> [org.springframework.beans.propertyeditors.CustomNumberEditor@5f971e3d]
>>>> 2020-11-05 22:15:48,013 [main] TRACE
>>>> org.springframework.beans.TypeConverterDelegate - Converting String to
>>>> [boolean] using property editor
>>>> [org.springframework.beans.propertyeditors.CustomBooleanEditor@79cb6e98
>>>> ]
>>>> 2020-11-05 22:15:48,014 [main] TRACE
>>>> org.springframework.beans.TypeConverterDelegate - Converting String to
>>>> [float] using property editor
>>>> [org.springframework.beans.propertyeditors.CustomNumberEditor@5f971e3d]
>>>> 2020-11-05 22:15:48,015 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Finished creating instance of bean 'weatherBean'
>>>> 2020-11-05 22:15:48,017 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Getting BeanInfo
>>>> for class [sample.spring.service.WeatherSpringService]
>>>> 2020-11-05 22:15:48,020 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Caching
>>>> PropertyDescriptors for class [sample.spring.service.WeatherSpringService]
>>>> 2020-11-05 22:15:48,020 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>>>> 'class' of type [java.lang.Class]
>>>> 2020-11-05 22:15:48,021 [main] TRACE
>>>> org.springframework.beans.CachedIntrospectionResults - Found bean property
>>>> 'weather' of type [sample.spring.bean.Weather]
>>>> 2020-11-05 22:15:48,021 [main] DEBUG
>>>> org.springframework.beans.CachedIntrospectionResults - Not strongly
>>>> caching class [sample.spring.service.WeatherSpringService] because it is
>>>> not cache-safe
>>>> 2020-11-05 22:15:48,021 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Finished creating instance of bean 'weatherSpringService'
>>>> 2020-11-05 22:15:48,022 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Returning cached instance of singleton bean 'weatherBean'
>>>> 2020-11-05 22:15:48,023 [main] TRACE
>>>> org.springframework.context.support.ClassPathXmlApplicationContext - No
>>>> 'lifecycleProcessor' bean, using [DefaultLifecycleProcessor]
>>>> 2020-11-05 22:15:48,024 [main] TRACE
>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>> Returning cached instance of singleton bean 'lifecycleProcessor'
>>>> 2020-11-05 22:15:48,027 [main] TRACE
>>>> org.springframework.core.env.PropertySourcesPropertyResolver - Searching
>>>> for key 'spring.liveBeansView.mbeanDomain' in PropertySource
>>>> 'systemProperties'
>>>> 2020-11-05 22:15:48,028 [main] TRACE
>>>> org.springframework.core.env.PropertySourcesPropertyResolver - Searching
>>>> for key 'spring.liveBeansView.mbeanDomain' in PropertySource
>>>> 'systemEnvironment'
>>>> 2020-11-05 22:15:48,028 [main] TRACE
>>>> org.springframework.core.env.PropertySourcesPropertyResolver - Could not
>>>> find key 'spring.liveBeansView.mbeanDomain' in any property source
>>>> 2020-11-05 22:15:48,043 [main] INFO
>>>> org.apache.axis2.deployment.DeploymentEngine - Deploying Web service:
>>>> WeatherSpringService.aar -
>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/services/WeatherSpringService.aar
>>>> 2020-11-05 22:15:48,050 [main] INFO
>>>> org.apache.axis2.deployment.DeploymentEngine - Deploying Web service:
>>>> version-1.7.9.aar -
>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/services/version-1.7.9.aar
>>>> 2020-11-05 22:16:21,547 [http-nio-8080-exec-1] ERROR
>>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver - Exception occurred
>>>> while trying to invoke service method null
>>>> org.apache.axis2.AxisFault: Spring context file cannot be located for
>>>> AxisService
>>>> at
>>>> org.apache.axis2.extensions.spring.util.ApplicationContextUtil.getSpringApplicationContext(ApplicationContextUtil.java:120)
>>>> at
>>>> org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:47)
>>>> at org.apache.axis2.util.Utils.createServiceObject(Utils.java:702)
>>>> at
>>>> org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:173)
>>>> at
>>>> org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:210)
>>>> at
>>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:79)
>>>> at
>>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>>> at
>>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:106)
>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:169)
>>>> at
>>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:178)
>>>> at
>>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:164)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>> at
>>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>> at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>>>> at
>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
>>>> at
>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
>>>> at
>>>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
>>>> at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
>>>> at
>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
>>>> at
>>>> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
>>>> at
>>>> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
>>>> at
>>>> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
>>>> at
>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
>>>> at
>>>> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
>>>> at
>>>> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>>>> at
>>>> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>>>> at
>>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>> at java.base/java.lang.Thread.run(Thread.java:834)
>>>>
>>>> Am Do., 5. Nov. 2020 um 16:43 Uhr schrieb robertlazarski <
>>>> [email protected]>:
>>>>
>>>>> Also, put spring in trace mode in your WEB-INF/classes/log4j.properties
>>>>>
>>>>> log4j.logger.org.springframework=TRACE
>>>>>
>>>>> On Thu, Nov 5, 2020 at 5:33 AM robertlazarski <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Sorry I was seeing a previous error.
>>>>>>
>>>>>> You are still getting:
>>>>>>
>>>>>> occurred while trying to invoke service method null
>>>>>> org.apache.axis2.AxisFault: Spring context file cannot be located for
>>>>>> AxisService
>>>>>>
>>>>>> Try expanding your classpath in your startUp method by using a
>>>>>> wildcard, * .
>>>>>>
>>>>>> *ClassPathXmlApplicationContext appCtx = new
>>>>>> ClassPathXmlApplicationContext*(new String[]
>>>>>> {"*classpath*:applicationContext.xml*"},
>>>>>> false);
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Nov 5, 2020 at 5:24 AM robertlazarski <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> This is the current error:
>>>>>>>
>>>>>>> WeatherSpringService.aar service, which is not valid, caused
>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>> org/springframework/context/support/ClassPathXmlApplicationContext
>>>>>>>
>>>>>>> Try placing spring-context-5.1.10.RELEASE.jar in you WEB-INF/lib
>>>>>>> dir.
>>>>>>>
>>>>>>> On Wed, Nov 4, 2020 at 9:52 PM Daniel Otto <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I moved the applicationContext.xml from WEB-INF directory into
>>>>>>>> WEB-INF/classes/, but nothing changed in the error log. :/ Is there
>>>>>>>> something else I could have missed?
>>>>>>>>
>>>>>>>> 2020-11-05 08:25:34,979 [main] INFO
>>>>>>>> org.apache.axis2.deployment.ClusterBuilder - Clustering has been disabled
>>>>>>>> 2020-11-05 08:25:35,058 [main] INFO
>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>> soapmonitor-1.7.9 -
>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/soapmonitor-1.7.9.mar
>>>>>>>> 2020-11-05 08:25:35,063 [main] INFO
>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>> mtompolicy-1.7.9 -
>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mtompolicy-1.7.9.mar
>>>>>>>> 2020-11-05 08:25:35,086 [main] INFO
>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module: ping-1.7.9
>>>>>>>> - file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/ping-1.7.9.mar
>>>>>>>> 2020-11-05 08:25:35,094 [main] INFO
>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>> jaxws-1.7.9 -
>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/axis2-jaxws-mar-1.7.9.mar
>>>>>>>> 2020-11-05 08:25:35,101 [main] INFO
>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>> metadataExchange-1.7.9 -
>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mex-1.7.9.mar
>>>>>>>> 2020-11-05 08:25:35,109 [main] INFO
>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>> script-1.7.9 -
>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/scripting-1.7.9.mar
>>>>>>>> 2020-11-05 08:25:35,121 [main] INFO
>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>> addressing-1.7.9 -
>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/addressing-1.7.9.mar
>>>>>>>> 2020-11-05 08:25:35,397 [main] INFO
>>>>>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading
>>>>>>>> XML bean definitions from class path resource [applicationContext.xml]
>>>>>>>> 2020-11-05 08:25:35,435 [main] INFO
>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext - Bean
>>>>>>>> factory for application context
>>>>>>>> [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=1269777529]:
>>>>>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory
>>>>>>>> defining beans [applicationContext,weatherSpringService,weatherBean]; root
>>>>>>>> of BeanFactory hierarchy
>>>>>>>> 2020-11-05 08:25:35,446 [main] INFO
>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext - 3
>>>>>>>> beans defined in application context
>>>>>>>> [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=1269777529]
>>>>>>>> 2020-11-05 08:25:35,452 [main] INFO
>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext -
>>>>>>>> Unable to locate MessageSource with name 'messageSource': using default
>>>>>>>> [org.springframework.context.support.DelegatingMessageSource@78f7f351
>>>>>>>> ]
>>>>>>>> 2020-11-05 08:25:35,454 [main] INFO
>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext -
>>>>>>>> Unable to locate ApplicationEventMulticaster with name
>>>>>>>> 'applicationEventMulticaster': using default
>>>>>>>> [org.springframework.context.event.SimpleApplicationEventMulticaster@4942cabd
>>>>>>>> ]
>>>>>>>> 2020-11-05 08:25:35,455 [main] INFO
>>>>>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>>>>>> Pre-instantiating singletons in factory
>>>>>>>> [org.springframework.beans.factory.support.DefaultListableBeanFactory
>>>>>>>> defining beans [applicationContext,weatherSpringService,weatherBean]; root
>>>>>>>> of BeanFactory hierarchy]
>>>>>>>> 2020-11-05 08:25:35,531 [main] INFO
>>>>>>>> org.apache.axis2.deployment.DeploymentEngine - Deploying Web service:
>>>>>>>> WeatherSpringService.aar -
>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/services/WeatherSpringService.aar
>>>>>>>> 2020-11-05 08:25:49,091 [http-nio-8080-exec-7] ERROR
>>>>>>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver - Exception occurred
>>>>>>>> while trying to invoke service method null
>>>>>>>> org.apache.axis2.AxisFault: Spring context file cannot be located
>>>>>>>> for AxisService
>>>>>>>> at
>>>>>>>> org.apache.axis2.extensions.spring.util.ApplicationContextUtil.getSpringApplicationContext(ApplicationContextUtil.java:120)
>>>>>>>> at
>>>>>>>> org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:47)
>>>>>>>> at org.apache.axis2.util.Utils.createServiceObject(Utils.java:702)
>>>>>>>> at
>>>>>>>> org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:173)
>>>>>>>> at
>>>>>>>> org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:210)
>>>>>>>> at
>>>>>>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:79)
>>>>>>>> at
>>>>>>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>>>>>>> at
>>>>>>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:106)
>>>>>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:169)
>>>>>>>> at
>>>>>>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:178)
>>>>>>>> at
>>>>>>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:164)
>>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
>>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>>>>> at
>>>>>>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>>>>>>>> at
>>>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
>>>>>>>> at
>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
>>>>>>>> at
>>>>>>>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
>>>>>>>> at
>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
>>>>>>>> at
>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
>>>>>>>> at
>>>>>>>> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
>>>>>>>> at
>>>>>>>> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
>>>>>>>> at
>>>>>>>> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
>>>>>>>> at
>>>>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
>>>>>>>> at
>>>>>>>> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
>>>>>>>> at
>>>>>>>> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>>>>>>>> at
>>>>>>>> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>>>>>>>> at
>>>>>>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>>>>>> at java.base/java.lang.Thread.run(Thread.java:834)
>>>>>>>>
>>>>>>>> Am Do., 5. Nov. 2020 um 00:15 Uhr schrieb robertlazarski <
>>>>>>>> [email protected]>:
>>>>>>>>
>>>>>>>>> Looking more at your error, you are trying to load spring via a
>>>>>>>>> SpringInit class, which loads the file from the classloader instead of,
>>>>>>>>> alternatively, via web.xml.
>>>>>>>>>
>>>>>>>>> Try:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> /var/lib/tomcat9/webapps/axis2/WEB-INF/classes/applicationContext.xml
>>>>>>>>>
>>>>>>>>> On Wed, Nov 4, 2020, 12:06 Daniel Otto <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> You are right. I have missed the applicationContext.xml file. Now
>>>>>>>>>> I have created the file in the directory
>>>>>>>>>> /var/lib/tomcat9/webapps/axis2/WEB-INF/ with the content from
>>>>>>>>>> https://axis.apache.org/axis2/java/core/docs/pojoguide.html
>>>>>>>>>> The axis2 log now looks like this:
>>>>>>>>>>
>>>>>>>>>> 2020-11-04 23:00:06,878 [main] INFO
>>>>>>>>>> org.apache.axis2.deployment.ClusterBuilder - Clustering has been disabled
>>>>>>>>>> 2020-11-04 23:00:06,978 [main] INFO
>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>> soapmonitor-1.7.9 -
>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/soapmonitor-1.7.9.mar
>>>>>>>>>> 2020-11-04 23:00:06,985 [main] INFO
>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>> mtompolicy-1.7.9 -
>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mtompolicy-1.7.9.mar
>>>>>>>>>> 2020-11-04 23:00:06,997 [main] INFO
>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module: ping-1.7.9
>>>>>>>>>> - file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/ping-1.7.9.mar
>>>>>>>>>> 2020-11-04 23:00:07,005 [main] INFO
>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>> jaxws-1.7.9 -
>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/axis2-jaxws-mar-1.7.9.mar
>>>>>>>>>> 2020-11-04 23:00:07,012 [main] INFO
>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>> metadataExchange-1.7.9 -
>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mex-1.7.9.mar
>>>>>>>>>> 2020-11-04 23:00:07,017 [main] INFO
>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>> script-1.7.9 -
>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/scripting-1.7.9.mar
>>>>>>>>>> 2020-11-04 23:00:07,031 [main] INFO
>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>> addressing-1.7.9 -
>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/addressing-1.7.9.mar
>>>>>>>>>> 2020-11-04 23:00:07,236 [main] INFO
>>>>>>>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading
>>>>>>>>>> XML bean definitions from class path resource [applicationContext.xml]
>>>>>>>>>> 2020-11-04 23:00:07,272 [main] INFO
>>>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext - Bean
>>>>>>>>>> factory for application context
>>>>>>>>>> [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=1548692313]:
>>>>>>>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory
>>>>>>>>>> defining beans [applicationContext,weatherSpringService,weatherBean]; root
>>>>>>>>>> of BeanFactory hierarchy
>>>>>>>>>> 2020-11-04 23:00:07,276 [main] INFO
>>>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext - 3
>>>>>>>>>> beans defined in application context
>>>>>>>>>> [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=1548692313]
>>>>>>>>>> 2020-11-04 23:00:07,278 [main] INFO
>>>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext -
>>>>>>>>>> Unable to locate MessageSource with name 'messageSource': using default
>>>>>>>>>> [org.springframework.context.support.DelegatingMessageSource@2e221340
>>>>>>>>>> ]
>>>>>>>>>> 2020-11-04 23:00:07,279 [main] INFO
>>>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext -
>>>>>>>>>> Unable to locate ApplicationEventMulticaster with name
>>>>>>>>>> 'applicationEventMulticaster': using default
>>>>>>>>>> [org.springframework.context.event.SimpleApplicationEventMulticaster@6f3f1cb9
>>>>>>>>>> ]
>>>>>>>>>> 2020-11-04 23:00:07,280 [main] INFO
>>>>>>>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>>>>>>>> Pre-instantiating singletons in factory
>>>>>>>>>> [org.springframework.beans.factory.support.DefaultListableBeanFactory
>>>>>>>>>> defining beans [applicationContext,weatherSpringService,weatherBean]; root
>>>>>>>>>> of BeanFactory hierarchy]
>>>>>>>>>> 2020-11-04 23:00:07,318 [main] INFO
>>>>>>>>>> org.apache.axis2.deployment.DeploymentEngine - Deploying Web service:
>>>>>>>>>> WeatherSpringService.aar -
>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/services/WeatherSpringService.aar
>>>>>>>>>> 2020-11-04 23:00:15,661 [http-nio-8080-exec-1] ERROR
>>>>>>>>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver - Exception occurred
>>>>>>>>>> while trying to invoke service method null
>>>>>>>>>> org.apache.axis2.AxisFault: Spring context file cannot be located
>>>>>>>>>> for AxisService
>>>>>>>>>> at
>>>>>>>>>> org.apache.axis2.extensions.spring.util.ApplicationContextUtil.getSpringApplicationContext(ApplicationContextUtil.java:120)
>>>>>>>>>> at
>>>>>>>>>> org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:47)
>>>>>>>>>> at org.apache.axis2.util.Utils.createServiceObject(Utils.java:702)
>>>>>>>>>> at
>>>>>>>>>> org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:173)
>>>>>>>>>> at
>>>>>>>>>> org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:210)
>>>>>>>>>> at
>>>>>>>>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:79)
>>>>>>>>>> at
>>>>>>>>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>>>>>>>>> at
>>>>>>>>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:106)
>>>>>>>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:169)
>>>>>>>>>> at
>>>>>>>>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:178)
>>>>>>>>>> at
>>>>>>>>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:164)
>>>>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
>>>>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>>>>>>> at
>>>>>>>>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
>>>>>>>>>> at
>>>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
>>>>>>>>>> at
>>>>>>>>>> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
>>>>>>>>>> at
>>>>>>>>>> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
>>>>>>>>>> at
>>>>>>>>>> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
>>>>>>>>>> at
>>>>>>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
>>>>>>>>>> at
>>>>>>>>>> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
>>>>>>>>>> at
>>>>>>>>>> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>>>>>>>>>> at
>>>>>>>>>> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>>>>>>>>>> at
>>>>>>>>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>>>>>>>> at java.base/java.lang.Thread.run(Thread.java:834)
>>>>>>>>>>
>>>>>>>>>> Am Mi., 4. Nov. 2020 um 22:01 Uhr schrieb robertlazarski <
>>>>>>>>>> [email protected]>:
>>>>>>>>>>
>>>>>>>>>>> Looks like you are missing the applicationContext.xml, as shown
>>>>>>>>>>> in the guide:
>>>>>>>>>>>
>>>>>>>>>>> https://axis.apache.org/axis2/java/core/docs/pojoguide.html
>>>>>>>>>>>
>>>>>>>>>>> Please verify this file exists:
>>>>>>>>>>>
>>>>>>>>>>> /var/lib/tomcat9/webapps/axis2/WEB-INF/applicationContext.xml
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Nov 4, 2020 at 9:05 AM Daniel Otto <
>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> *a)* I have added all the *.jar files, which are needed to
>>>>>>>>>>>> build the service with ant in the tomcat/webapps/axis2/WEB-INF/lib
>>>>>>>>>>>> directory. The service is now correctly listed in the servicelist like the
>>>>>>>>>>>> screenshot below shows. But I have another error. Eventually I miss to add
>>>>>>>>>>>> something in phases in the axis2.xml?
>>>>>>>>>>>> [image: servicelist.png]
>>>>>>>>>>>> *b)* When I go to the directory
>>>>>>>>>>>> $AXIS2_HOME/samples/pojoguidespring and run the client with "ant
>>>>>>>>>>>> rpc.client" than the following error occurs: (axis2.log)
>>>>>>>>>>>>
>>>>>>>>>>>> 2020-11-04 19:19:00,963 [main] INFO
>>>>>>>>>>>> org.apache.axis2.deployment.ClusterBuilder - Clustering has been disabled
>>>>>>>>>>>> 2020-11-04 19:19:01,087 [main] INFO
>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>> soapmonitor-1.7.9 -
>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/soapmonitor-1.7.9.mar
>>>>>>>>>>>> 2020-11-04 19:19:01,099 [main] INFO
>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>> mtompolicy-1.7.9 -
>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mtompolicy-1.7.9.mar
>>>>>>>>>>>> 2020-11-04 19:19:01,116 [main] INFO
>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module: ping-1.7.9
>>>>>>>>>>>> - file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/ping-1.7.9.mar
>>>>>>>>>>>> 2020-11-04 19:19:01,126 [main] INFO
>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>> jaxws-1.7.9 -
>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/axis2-jaxws-mar-1.7.9.mar
>>>>>>>>>>>> 2020-11-04 19:19:01,136 [main] INFO
>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>> metadataExchange-1.7.9 -
>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mex-1.7.9.mar
>>>>>>>>>>>> 2020-11-04 19:19:01,145 [main] INFO
>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>> script-1.7.9 -
>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/scripting-1.7.9.mar
>>>>>>>>>>>> 2020-11-04 19:19:01,158 [main] INFO
>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>> addressing-1.7.9 -
>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/addressing-1.7.9.mar
>>>>>>>>>>>> 2020-11-04 19:19:21,374 [Timer-1] INFO
>>>>>>>>>>>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading
>>>>>>>>>>>> XML bean definitions from class path resource [applicationContext.xml]
>>>>>>>>>>>> 2020-11-04 19:19:21,406 [Timer-1] INFO
>>>>>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext - Bean
>>>>>>>>>>>> factory for application context
>>>>>>>>>>>> [org.springframework.context.support.ClassPathXmlApplic>
>>>>>>>>>>>> 2020-11-04 19:19:21,411 [Timer-1] INFO
>>>>>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext - 3
>>>>>>>>>>>> beans defined in application context
>>>>>>>>>>>> [org.springframework.context.support.ClassPathXmlAppl>
>>>>>>>>>>>> 2020-11-04 19:19:21,414 [Timer-1] INFO
>>>>>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext -
>>>>>>>>>>>> Unable to locate MessageSource with name 'messageSource': using default
>>>>>>>>>>>> [org.springframework>
>>>>>>>>>>>> 2020-11-04 19:19:21,415 [Timer-1] INFO
>>>>>>>>>>>> org.springframework.context.support.ClassPathXmlApplicationContext -
>>>>>>>>>>>> Unable to locate ApplicationEventMulticaster with name
>>>>>>>>>>>> 'applicationEventMulticaster': using >
>>>>>>>>>>>> 2020-11-04 19:19:21,416 [Timer-1] INFO
>>>>>>>>>>>> org.springframework.beans.factory.support.DefaultListableBeanFactory -
>>>>>>>>>>>> Pre-instantiating singletons in factory
>>>>>>>>>>>> [org.springframework.beans.factory.support.Default>
>>>>>>>>>>>> 2020-11-04 19:19:21,485 [Timer-1] INFO
>>>>>>>>>>>> org.apache.axis2.deployment.DeploymentEngine - Deploying Web service:
>>>>>>>>>>>> WeatherSpringService.aar -
>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/services/WeatherSpri>
>>>>>>>>>>>> 2020-11-04 19:19:55,427 [http-nio-8080-exec-2] ERROR
>>>>>>>>>>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver - Exception occurred
>>>>>>>>>>>> while trying to invoke service method null
>>>>>>>>>>>> org.apache.axis2.AxisFault: Spring context file cannot be
>>>>>>>>>>>> located for AxisService
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.extensions.spring.util.ApplicationContextUtil.getSpringApplicationContext(ApplicationContextUtil.java:120)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier.getServiceObject(SpringAppContextAwareObjectSupplier.java:47)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.util.Utils.createServiceObject(Utils.java:702)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:173)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:210)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:79)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:106)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:169)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:178)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:164)
>>>>>>>>>>>> at
>>>>>>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
>>>>>>>>>>>> at
>>>>>>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
>>>>>>>>>>>> at
>>>>>>>>>>>> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>>>>>>>>>>>> at
>>>>>>>>>>>> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>>>>>>>>>>>> at
>>>>>>>>>>>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>>>>>>>>>>> at java.base/java.lang.Thread.run(Thread.java:834)
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Am Mo., 2. Nov. 2020 um 08:15 Uhr schrieb robertlazarski <
>>>>>>>>>>>> [email protected]>:
>>>>>>>>>>>>
>>>>>>>>>>>>> WEB-INF/lib
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Oct 30, 2020, 00:37 Daniel Otto <
>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Where do I miss it?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Am Fr., 30. Okt. 2020 um 01:48 Uhr schrieb robertlazarski <
>>>>>>>>>>>>>> [email protected]>:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Looks like you are missing spring-context-5.1.10.RELEASE.jar.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Thu, Oct 29, 2020, 00:59 Daniel Otto <
>>>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *1) This is the output in the axis2.log**:*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> 2020-10-29 11:48:22,330 [main] INFO
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ClusterBuilder - Clustering has been disabled
>>>>>>>>>>>>>>>> 2020-10-29 11:48:22,415 [main] INFO
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>>>>>> soapmonitor-1.7.9 -
>>>>>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/soapmonitor-1.7.9.mar
>>>>>>>>>>>>>>>> 2020-10-29 11:48:22,422 [main] INFO
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>>>>>> mtompolicy-1.7.9 -
>>>>>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mtompolicy-1.7.9.mar
>>>>>>>>>>>>>>>> 2020-10-29 11:48:22,434 [main] INFO
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module: ping-1.7.9
>>>>>>>>>>>>>>>> - file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/ping-1.7.9.mar
>>>>>>>>>>>>>>>> 2020-10-29 11:48:22,440 [main] INFO
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>>>>>> jaxws-1.7.9 -
>>>>>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/axis2-jaxws-mar-1.7.9.mar
>>>>>>>>>>>>>>>> 2020-10-29 11:48:22,447 [main] INFO
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>>>>>> metadataExchange-1.7.9 -
>>>>>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/mex-1.7.9.mar
>>>>>>>>>>>>>>>> 2020-10-29 11:48:22,451 [main] INFO
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>>>>>> script-1.7.9 -
>>>>>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/scripting-1.7.9.mar
>>>>>>>>>>>>>>>> 2020-10-29 11:48:22,464 [main] INFO
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ModuleDeployer - Deploying module:
>>>>>>>>>>>>>>>> addressing-1.7.9 -
>>>>>>>>>>>>>>>> file:/var/lib/tomcat9/webapps/axis2/WEB-INF/modules/addressing-1.7.9.mar
>>>>>>>>>>>>>>>> 2020-10-29 11:48:22,633 [main] INFO
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ServiceDeployer - The
>>>>>>>>>>>>>>>> WeatherSpringService.aar service, which is not valid, caused
>>>>>>>>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>>>>>>>>> org/springframework/context/support/ClassPathXmlApplicationContext
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> sample.spring.service.SpringInit.startUp(SpringInit.java:61)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ServiceBuilder.startupServiceLifecycle(ServiceBuilder.java:942)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:444)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:117)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:232)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:154)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:149)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:164)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:136)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:289)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:622)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4871)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5180)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.startup.Catalina.start(Catalina.java:633)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>>>>>>> Method)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/java.lang.reflect.Method.invoke(Method.java:566)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:343)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478)
>>>>>>>>>>>>>>>> Caused by: java.lang.ClassNotFoundException: Class Not
>>>>>>>>>>>>>>>> found : org.springframework.context.support.ClassPathXmlApplicationContext
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:96)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:277)
>>>>>>>>>>>>>>>> at
>>>>>>>>>>>>>>>> java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
>>>>>>>>>>>>>>>> ... 61 more
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> 2020-10-29 11:48:22,638 [main] INFO
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.DeploymentEngine -
>>>>>>>>>>>>>>>> org.apache.axis2.deployment.DeploymentException:
>>>>>>>>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>>>>>>>>> org/springframework/context/support/ClassPathXmlApplicationContext
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> *2) and this is in the .aar*
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> applicationContext.xml
>>>>>>>>>>>>>>>> META-INF/
>>>>>>>>>>>>>>>> MANIFEST.MF
>>>>>>>>>>>>>>>> services.xml
>>>>>>>>>>>>>>>> sample/
>>>>>>>>>>>>>>>> spring/
>>>>>>>>>>>>>>>> bean/
>>>>>>>>>>>>>>>> Weather.class
>>>>>>>>>>>>>>>> service/
>>>>>>>>>>>>>>>> SpringInit.class
>>>>>>>>>>>>>>>> WeatherSpringService.class
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Am Do., 29. Okt. 2020 um 04:53 Uhr schrieb robertlazarski <
>>>>>>>>>>>>>>>> [email protected]>:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> In your log4j.properties file, try adding an absolute path
>>>>>>>>>>>>>>>>> which I expect will give you an axis2.log at that location with some clues
>>>>>>>>>>>>>>>>> on why WeatherSpringService.aar is having problems.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> log4j.appender.LOGFILE.File=/
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
servicelist.png
(image/png, 93 KB) - not displayed