[jira] [Resolved] (AXIS2-5841) module archive name error when loading repository from url
[ https://issues.apache.org/jira/browse/AXIS2-5841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Veithen resolved AXIS2-5841. Resolution: Fixed Assignee: Andreas Veithen Fix Version/s: 1.7.5 > module archive name error when loading repository from url > -- > > Key: AXIS2-5841 > URL: https://issues.apache.org/jira/browse/AXIS2-5841 > Project: Axis2 > Issue Type: Bug > Components: deployment >Affects Versions: 1.7.4 >Reporter: Pieter @ DHL >Assignee: Andreas Veithen >Priority: Minor > Fix For: 1.7.5 > > > Hi, > I'm trying to deploy an axis 2 webservice on an embedded jetty server using > spring boot (1.5.1), but axis can't deploy any of the modules when I start > the application. > I bootstrap the axis servlet with spring boot as follows: > {code} > @Bean > public ServletRegistrationBean axisServletRegistration() { > // in order for the axis servlet to work as expected we need to tweak > the default axis settings (axis.xml) > // axis assumes that the axis servlet is mapped to "/*" in the > "axis2" context of the container > // but in this case the axis servlet is mapped to "/axis2/*" in the > root context of the container > // contextRoot -> /(instead of axis2) > // servicePath -> axis2/services (instead of services) > ServletRegistrationBean servletRegistrationBean = new > ServletRegistrationBean(new AxisServlet(), "/axis2/*"); > servletRegistrationBean.setName("AxisServlet"); > servletRegistrationBean.setOrder(1); > servletRegistrationBean.setLoadOnStartup(1); > servletRegistrationBean.getInitParameters().put(PARAM_AXIS2_XML_URL, > Resources.getResource("axis2/conf/axis2.xml").toString()); > > servletRegistrationBean.getInitParameters().put(PARAM_AXIS2_REPOSITORY_URL, > Resources.getResource("axis2/").toString()); > return servletRegistrationBean; > } > {code} > The axis2 folder on my classpath looks like this: > * axis2 > ** conf > *** axis2.xml > ** modules > *** addressing-1.7.4.mar > *** axis2-jaxws-mar-1.7.4.mar > *** mex-1.7.4.mar > *** modules.list > *** mtompolicy-1.7.4.mar > *** ping-1.7.4.mar > *** scripting-1.7.4.mar > *** soapmonitor-1.7.4.mar*services > *** services.list > *** version-1.7.4.aar > When I start the application I get the following exception: > {code} > ERROR 2017-03-09 16:32:40,259 [main] o.a.axis2.deployment.ModuleDeployer: The > mtompolicy-1.7.4.mar module, which is not valid, caused For input string: > "mar" > java.lang.NumberFormatException: For input string: "mar" > at > java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) > at java.lang.Integer.parseInt(Integer.java:580) > at java.lang.Integer.parseInt(Integer.java:615) > at org.apache.axis2.description.Version.(Version.java:78) > at > org.apache.axis2.description.AxisModule.setArchiveName(AxisModule.java:171) > at > org.apache.axis2.deployment.ModuleDeployer.deoloyFromUrl(ModuleDeployer.java:207) > at > org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:120) > 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.DeploymentEngine.loadRepositoryFromURL(DeploymentEngine.java:303) > at > org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:212) > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) > at > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620) > at > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471) > at > org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:637) > at > org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:421) > at > org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:744) > at > org.springframework.boot.context.embedded.jetty.JettyEmbeddedWebAppContext$JettyEmbeddedServletHandler.deferredInitialize(JettyEmbeddedWebAppContext.java:46) > at > org.springframework.boot.context.embedded.jetty.JettyEmbeddedWebAppContext.deferredInitialize(JettyEmbeddedWebAppContext.java:36) > at >
[jira] [Commented] (AXIS2-5841) module archive name error when loading repository from url
[ https://issues.apache.org/jira/browse/AXIS2-5841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15944752#comment-15944752 ] Hudson commented on AXIS2-5841: --- SUCCESS: Integrated in Jenkins build axis2-1.7 #110 (See [https://builds.apache.org/job/axis2-1.7/110/]) AXIS2-5841: Merge r1789029 to the 1.7 branch. (veithen: rev 1789058) * (edit) axis2/modules/kernel/src/org/apache/axis2/deployment/ModuleDeployer.java > module archive name error when loading repository from url > -- > > Key: AXIS2-5841 > URL: https://issues.apache.org/jira/browse/AXIS2-5841 > Project: Axis2 > Issue Type: Bug > Components: deployment >Affects Versions: 1.7.4 >Reporter: Pieter @ DHL >Priority: Minor > > Hi, > I'm trying to deploy an axis 2 webservice on an embedded jetty server using > spring boot (1.5.1), but axis can't deploy any of the modules when I start > the application. > I bootstrap the axis servlet with spring boot as follows: > {code} > @Bean > public ServletRegistrationBean axisServletRegistration() { > // in order for the axis servlet to work as expected we need to tweak > the default axis settings (axis.xml) > // axis assumes that the axis servlet is mapped to "/*" in the > "axis2" context of the container > // but in this case the axis servlet is mapped to "/axis2/*" in the > root context of the container > // contextRoot -> /(instead of axis2) > // servicePath -> axis2/services (instead of services) > ServletRegistrationBean servletRegistrationBean = new > ServletRegistrationBean(new AxisServlet(), "/axis2/*"); > servletRegistrationBean.setName("AxisServlet"); > servletRegistrationBean.setOrder(1); > servletRegistrationBean.setLoadOnStartup(1); > servletRegistrationBean.getInitParameters().put(PARAM_AXIS2_XML_URL, > Resources.getResource("axis2/conf/axis2.xml").toString()); > > servletRegistrationBean.getInitParameters().put(PARAM_AXIS2_REPOSITORY_URL, > Resources.getResource("axis2/").toString()); > return servletRegistrationBean; > } > {code} > The axis2 folder on my classpath looks like this: > * axis2 > ** conf > *** axis2.xml > ** modules > *** addressing-1.7.4.mar > *** axis2-jaxws-mar-1.7.4.mar > *** mex-1.7.4.mar > *** modules.list > *** mtompolicy-1.7.4.mar > *** ping-1.7.4.mar > *** scripting-1.7.4.mar > *** soapmonitor-1.7.4.mar*services > *** services.list > *** version-1.7.4.aar > When I start the application I get the following exception: > {code} > ERROR 2017-03-09 16:32:40,259 [main] o.a.axis2.deployment.ModuleDeployer: The > mtompolicy-1.7.4.mar module, which is not valid, caused For input string: > "mar" > java.lang.NumberFormatException: For input string: "mar" > at > java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) > at java.lang.Integer.parseInt(Integer.java:580) > at java.lang.Integer.parseInt(Integer.java:615) > at org.apache.axis2.description.Version.(Version.java:78) > at > org.apache.axis2.description.AxisModule.setArchiveName(AxisModule.java:171) > at > org.apache.axis2.deployment.ModuleDeployer.deoloyFromUrl(ModuleDeployer.java:207) > at > org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:120) > 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.DeploymentEngine.loadRepositoryFromURL(DeploymentEngine.java:303) > at > org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:212) > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) > at > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620) > at > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471) > at > org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:637) > at > org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:421) > at > org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:744) > at > org.springframework.boot.context.embedded.jetty.JettyEmbeddedWebAppContext$JettyEmbeddedServletHandler.deferredInitialize(JettyEmbeddedWebAppContext.java:46) > at >