[
https://issues.apache.org/jira/browse/CXF-7805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16554023#comment-16554023
]
Colm O hEigeartaigh commented on CXF-7805:
------------------------------------------
On mvn clean install I get:
Compilation failure:
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[8,21]
package javax.servlet does not exist
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[9,21]
package javax.servlet does not exist
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[10,21]
package javax.servlet does not exist
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[23,36]
cannot find symbol
[ERROR] symbol: class ServletContextListener
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[26,17]
cannot find symbol
[ERROR] symbol: class ServletContext
[ERROR] location: class de.destatis.idb.server.lifecycle.IDBContext
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[33,38]
cannot find symbol
[ERROR] symbol: class ServletContextEvent
[ERROR] location: class de.destatis.idb.server.lifecycle.IDBContext
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[41,40]
cannot find symbol
[ERROR] symbol: class ServletContextEvent
[ERROR] location: class de.destatis.idb.server.lifecycle.IDBContext
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[48,69]
cannot find symbol
[ERROR] symbol: class ServletContextEvent
[ERROR] location: class de.destatis.idb.server.lifecycle.IDBContext
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[69,43]
cannot find symbol
[ERROR] symbol: class ServletContextEvent
[ERROR] location: class de.destatis.idb.server.lifecycle.IDBContext
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[146,61]
cannot find symbol
[ERROR] symbol: class ServletContext
[ERROR] location: class
de.destatis.idb.server.lifecycle.IDBContext.IDBLifeCycle
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[156,34]
cannot find symbol
[ERROR] symbol: class ServletContext
[ERROR] location: class
de.destatis.idb.server.lifecycle.IDBContext.IDBLifeCycle
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[32,9]
method does not override or implement a method from a supertype
[ERROR]
/home/colm/Desktop/tmp/cxfOutDropElements/src/main/java/de/destatis/idb/server/lifecycle/IDBContext.java:[40,9]
method does not override or implement a method from a supertype
[ERROR] -> [Help 1]
> Transform feature outDropElements has no effect
> -----------------------------------------------
>
> Key: CXF-7805
> URL: https://issues.apache.org/jira/browse/CXF-7805
> Project: CXF
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 3.2.5
> Environment: Java 8
> Tomcat 8.5
> Eclipse 4.3
> CXF 3.2.5
> Windows 7 Professional
> Reporter: Michael Schäfer
> Priority: Major
> Labels: features, outDropElements, transform
> Attachments: cxfOutDropElements-2.zip, cxfOutDropElements.zip,
> eingangsdb-eks-2.0.jar
>
>
> We're running CXF 3.2.5 web services in Tomcat, java-first-approach.
> For compatibility with older clients, we'd like to remove some elements from
> the response using the transform feature. We'd prefer to do this via
> configuration, so the feature can be easily removed once all clients have
> upgraded.
> We put the configuration - jaxws:feature and beans - in
> WEB-INF/classes/CXF/beans.xml, referenced throug web.xml. Any other way - via
> cxf.xml, be it on classpath or referenced per JVM parameter - failed to find
> the bean defintion. Introducing errors in the bean definition leads to
> corresponding errors, so the bean is recognized, but the configuration has no
> effect on the outbound XML. We also tried addressing the elements with and
> without namespace, full paths, shallow and deep drop, and the XSLT feature,
> too, but to no avail.
> We suspect this might still be a configuration issue or some peculiar
> constellation we fail to recognize, but we are at out wit's end finding the
> real cause of it.
> Attached you find a Maven test project, stripped down to the one web service
> with the one method in question, and exported from Eclipse after running
> maven --clean. The pom contains all dependencies of the original project.
> There is no test case, we simply used SOAPUI which worked fine. The archive
> also contains the WSDL file copied from the source view of the browser.
> TIA,
> Michael
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)