You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Kishanthan Thangarajah (Commented) (JIRA)" <ji...@apache.org> on 2012/01/14 08:20:39 UTC

[jira] [Commented] (AXIS2-5055) POJO Web Services using Apache Axis2 (Spring Sample Error)

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

Kishanthan Thangarajah commented on AXIS2-5055:
-----------------------------------------------

Hi Alan,
1) Yes, the spring dependency version should be updated in the doc. In fact, the spring framework version used by axis2 is 2.5.1. So in the sample (pojoguidespring/build.xml) and document page, the specified versions of spring jars has to be updated (currently it is 1.2.8). As default axis2 is not shipping the spring framework related jars with the release. When building the sample, it will try to download the spring jars and then you can place them in the lib directory.
2) Well, possible exceptions that could occur in the SpringInit class are context.xml file not found, invalid xml file, etc. But these exceptions will be caught when the service is being deployed. But you can also modify the startUp method of SpringInit class to catch these and see the trace.

Thanks,
Kishanthan.
                
> POJO Web Services using Apache Axis2 (Spring Sample Error)
> ----------------------------------------------------------
>
>                 Key: AXIS2-5055
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5055
>             Project: Axis2
>          Issue Type: Bug
>          Components: samples
>         Environment: Windows XP
>            Reporter: Alan Klein
>              Labels: pojo, samples, spring, webservice
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I note that the sample http://axis.apache.org/axis2/java/core/docs/pojoguide.html#pojows has a few errors.
> 1) The reference to "spring.jar" is obsolete (this file no longer exists) with recent releases of Spring. Either a reference to the Spring version used for this sample should be provided, the document should be updated to the latest Spring release and/or include the jar file in the lib (lib is empty in the 1.5.4 release). 
> 2) The SpringInit class will need to be updated to handle the "BeansException" exception. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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