You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Robert Liguori (JIRA)" <ji...@apache.org> on 2010/10/22 21:14:15 UTC

[jira] Commented: (CXF-3081) Deprecated Soap getPrefix() calls should be replaced.

    [ https://issues.apache.org/jira/browse/CXF-3081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923980#action_12923980 ] 

Robert Liguori commented on CXF-3081:
-------------------------------------

Here are some more deprecated methods, where the code could be adjusted:

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache CXF Runtime JAX-RS Frontend
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
...
[WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\frontend\jaxrs\src\main\java\org\apache\cxf\jaxrs\impl\tl\ThreadLocalHttpServletRequest.java:[137,19] [deprecation] isRequestedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated

[WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\frontend\jaxrs\src\main\java\org\apache\cxf\jaxrs\impl\tl\ThreadLocalHttpServletRequest.java:[218,18] [deprecation] getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated

[WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\frontend\jaxrs\src\main\java\org\apache\cxf\jaxrs\impl\tl\ThreadLocalServletContext.java:[133,16] [deprecation] log(java.lang.Exception,java.lang.String) in javax.servlet.ServletContext has been deprecated

[WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\frontend\jaxrs\src\main\java\org\apache\cxf\jaxrs\impl\tl\ThreadLocalServletContext.java:[119,31] [deprecation] getServletNames() in javax.servlet.ServletContext has been deprecated

[WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\frontend\jaxrs\src\main\java\org\apache\cxf\jaxrs\impl\tl\ThreadLocalServletContext.java:[124,32] [deprecation] getServlets() in javax.servlet.ServletContext has been deprecated

[WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\frontend\jaxrs\src\main\java\org\apache\cxf\jaxrs\impl\tl\ThreadLocalServletContext.java:[110,19] [deprecation] getServlet(java.lang.String) in javax.servlet.ServletContext has been deprecated

[WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\frontend\jaxrs\src\main\java\org\apache\cxf\jaxrs\impl\tl\ThreadLocalHttpServletResponse.java:[106,16] [deprecation] setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

[WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\frontend\jaxrs\src\main\java\org\apache\cxf\jaxrs\impl\tl\ThreadLocalHttpServletResponse.java:[62,18] [deprecation] encodeRedirectUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated

[WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\frontend\jaxrs\src\main\java\org\apache\cxf\jaxrs\impl\tl\ThreadLocalHttpServletResponse.java:[71,18] [deprecation] encodeUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated



> Deprecated Soap getPrefix() calls should be replaced.
> -----------------------------------------------------
>
>                 Key: CXF-3081
>                 URL: https://issues.apache.org/jira/browse/CXF-3081
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Robert Liguori
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I think the getPrefix() calls from the org.apache.cxf.binding.soap.SoapVersion class should be replaced with getPrefix() calls from org.apache.cxf.binding.soap.Soap11 and org.apache.cxf.binding.soap.Soap12 in order to resolve the respective warnings in the following reference (from a CXF 2.3.0 maven build):
> Reference: 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache CXF Runtime SOAP Binding
> [INFO]    task-segment: [clean, install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting C:\_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\bindings\soap\target
> [INFO] [checkstyle:checkstyle {execution: validate}]
> [INFO] Starting audit...
> Audit done.
> [INFO] Preparing pmd:check
> [INFO] [pmd:pmd {execution: pmd}]
> [INFO] [pmd:check {execution: validate}]
> [INFO] 
> [INFO] [cxf-xml2fastinfoset:xml2fastinfoset {execution: xml2fastinfoset}]
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] Copying 7 resources
> [INFO] skip non existing resourceDirectory C:\_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\bindings\soap\src\main\resources-filtered
> [INFO] Copying 1 resource
> [INFO] Copying 3 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 68 source files to C:\_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\bindings\soap\target\classes
> [WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\bindings\soap\src\main\java\org\apache\cxf\binding\soap\Soap12.java:[141,18] [deprecation] getPrefix() in org.apache.cxf.binding.soap.SoapVersion has been deprecated
> [WARNING] \_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\bindings\soap\src\main\java\org\apache\cxf\binding\soap\Soap11.java:[161,18] [deprecation] getPrefix() in org.apache.cxf.binding.soap.SoapVersion has been deprecated
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] Copying 12 resources
> [INFO] skip non existing resourceDirectory C:\_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\bindings\soap\target\generated\src\test\resources
> [INFO] Copying 3 resources
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Compiling 16 source files to C:\_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\bindings\soap\target\test-classes
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory: C:\_CXF\apache-cxf-2.3.0-src\apache-cxf-2.3.0-src\rt\bindings\soap\target\surefire-reports

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