[jira] [Commented] (AXIS2-5841) module archive name error when loading repository from url

2017-03-27 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/AXIS2-5841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15944318#comment-15944318
 ] 

Hudson commented on AXIS2-5841:
---

SUCCESS: Integrated in Jenkins build Axis2 #3682 (See 
[https://builds.apache.org/job/Axis2/3682/])
AXIS2-5841: Fix module file name parsing for repositories loaded from URL. 
(veithen: rev 1789029)
* (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 
> 

[jira] [Commented] (AXIS2-5070) Enumeration type fromValue() function update breaks stub compilation

2017-03-27 Thread Andreas Veithen (JIRA)

[ 
https://issues.apache.org/jira/browse/AXIS2-5070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15943829#comment-15943829
 ] 

Andreas Veithen commented on AXIS2-5070:


1.6 is no longer maintained.

> Enumeration type fromValue() function update breaks stub compilation
> 
>
> Key: AXIS2-5070
> URL: https://issues.apache.org/jira/browse/AXIS2-5070
> Project: Axis2
>  Issue Type: Bug
>  Components: codegen
>Affects Versions: 1.6.0
>Reporter: Vilnis Termanis
>Assignee: Sagara Gunathunga 
>
> The "fix" in AXIS2-3034 unfortunately breaks WSDL generation in that the 
> fromValue() function is not compilable in certain situations. For example, 
> with the following type: 
>   
>   
> 
>   
>Something 
>   
> 
> 
>   
>Something else 
>   
> 
>   
> 
> Corresponding fromValue function now contains: 
>  public static TSomeType fromValue(int value) 
>throws java.lang.IllegalArgumentException { 
>  TSomeType enumeration = (TSomeType) 
>  
>   _table_.get(value + ""); 
>  
>  if ((enumeration == null) && !((value == null) || 
> (value.equals("" { 
>  throw new java.lang.IllegalArgumentException(); 
>  } 
>  return enumeration; 
>  } 
>  Since value is of type 'int', the updated if statement results in 
> compilation failure ("int cannot be dereferenced"). 
>  Tested with Axis2 1.6.0 wsdl2java. 
>  Regards, 
>  VT



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org



[jira] [Commented] (AXIS2-5070) Enumeration type fromValue() function update breaks stub compilation

2017-03-27 Thread Davide Cavarretta (JIRA)

[ 
https://issues.apache.org/jira/browse/AXIS2-5070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15942791#comment-15942791
 ] 

Davide Cavarretta commented on AXIS2-5070:
--

Is this issue going to be released on 1.6 branch?

I found in on 1.7 branch 
https://github.com/apache/axis2-java/blob/1_7/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl#L1819
 but 
https://github.com/apache/axis2-java/blob/1_6/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl#L2114


> Enumeration type fromValue() function update breaks stub compilation
> 
>
> Key: AXIS2-5070
> URL: https://issues.apache.org/jira/browse/AXIS2-5070
> Project: Axis2
>  Issue Type: Bug
>  Components: codegen
>Affects Versions: 1.6.0
>Reporter: Vilnis Termanis
>Assignee: Sagara Gunathunga 
>
> The "fix" in AXIS2-3034 unfortunately breaks WSDL generation in that the 
> fromValue() function is not compilable in certain situations. For example, 
> with the following type: 
>   
>   
> 
>   
>Something 
>   
> 
> 
>   
>Something else 
>   
> 
>   
> 
> Corresponding fromValue function now contains: 
>  public static TSomeType fromValue(int value) 
>throws java.lang.IllegalArgumentException { 
>  TSomeType enumeration = (TSomeType) 
>  
>   _table_.get(value + ""); 
>  
>  if ((enumeration == null) && !((value == null) || 
> (value.equals("" { 
>  throw new java.lang.IllegalArgumentException(); 
>  } 
>  return enumeration; 
>  } 
>  Since value is of type 'int', the updated if statement results in 
> compilation failure ("int cannot be dereferenced"). 
>  Tested with Axis2 1.6.0 wsdl2java. 
>  Regards, 
>  VT



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org