cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexis Caruana (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7245) Weblogic 10.3.6 + CXF 2.7.12 : The signature or decryption was invalid
Date Fri, 10 Feb 2017 10:11:41 GMT

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

Alexis Caruana commented on CXF-7245:
-------------------------------------

I solved the issue.

I modified my weblogic.xml with this 

<prefer-application-packages>
<!-- <package-name>com.ctc.wstx.*</package-name> -->
<package-name>org.apache.cxf.*</package-name>
<package-name>sun.security.*</package-name>
<!-- <package-name>javax.jws.*</package-name> -->
<!-- // for logging -->
<package-name>org.apache.log4j.*</package-name>
<!-- // for jaxb -->
<!-- 			<package-name>com.sun.xml.*</package-name> -->
<!-- // for apache commons lang/io -->
<package-name>org.apache.commons.*</package-name>
<!-- // for spring -->
<package-name>org.springframework.*</package-name>
<!-- // for jstl -->
<package-name>javax.servlet.jsp.jstl.*</package-name>
<!-- // for jax-ws -->
<package-name>javax.jws.*</package-name>
<package-name>javax.ws.*</package-name>
<!-- // xml processing -->
<!--	<package-name>javax.xml.*</package-name> -->
<!-- 	<package-name>javax.xml.stream.*</package-name> -->
<!--	<package-name>org.xml.sax.*</package-name> -->
<!--	<package-name>org.w3c.*</package-name> -->
<package-name>org.apache.xmlcommons.*</package-name>
<package-name>org.apache.xml.serializer.*</package-name>
<package-name>org.apache.xerces.*</package-name>
<package-name>org.apache.xalan.*</package-name>
<package-name>com.ctc.wstx.*</package-name>
<package-name>org.codehaus.*</package-name>

<!-- 	<package-name>javax.servlet.*</package-name> -->
 <package-name>com.ibm.*</package-name>
 <package-name>javax.wsdl.*</package-name>  
 
 <package-name>org.apache.jcp.*</package-name>
 <package-name>org.apache.xml.security.*</package-name>
<!-- 	 <package-name>javax.xml.crypto.*</package-name> -->
 <package-name>org.apache.ws.security.*</package-name>
 <package-name>org.opensaml.*</package-name>


and here my final pom.xml dependencies : 

<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>com.sun.xml.ws</groupId>
			<artifactId>jaxws-rt</artifactId>
			<version>2.1.3</version>
			<exclusions>
				<exclusion>
					<groupId>com.sun.xml.bind</groupId>
					<artifactId>jaxb-impl</artifactId>
				</exclusion>
				<exclusion>
					<groupId>javax.xml.bind</groupId>
					<artifactId>jaxb-api</artifactId>
				</exclusion>
				
			</exclusions>
		</dependency>

		<dependency>
			<groupId>javax.jws</groupId>
			<artifactId>jsr181-api</artifactId>
			<version>1.0-MR1</version>
		</dependency>

		<dependency>
			<groupId>***.*****.*****</groupId>
			<artifactId>****_custom</artifactId>
			<version>2.7.12</version>
			<scope>compile</scope>
			<exclusions>
				
				<exclusion>
					<groupId>org.apache.cxf</groupId>
					<artifactId>cxf-bundle</artifactId>
				</exclusion>
				
			</exclusions>
		</dependency>

	

		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-bundle</artifactId>
			<version>2.7.18</version>

		</dependency>











		<dependency>
			<groupId>org.codehaus.woodstox</groupId>
			<artifactId>woodstox-core-asl</artifactId>
			<version>4.4.1</version>
			<exclusions>
				<exclusion>
					<groupId>javax.xml.stream</groupId>
					<artifactId>stax-api</artifactId>
				</exclusion>


			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.codehaus.woodstox</groupId>
			<artifactId>stax2-api</artifactId>
			<version>3.1.4</version>
		</dependency>



		<dependency>
			<groupId>com.sanofi</groupId>
			<artifactId>Sanofi_F3_Utils</artifactId>
			<version>0.0.1-SNAPSHOT</version>
		</dependency>

		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-core</artifactId>
			<version>2.6.2</version>
		</dependency>

		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
			<version>1.1.3</version>
		</dependency>

		<dependency>
			<groupId>javax.xml.parsers</groupId>
			<artifactId>jaxp-api</artifactId>
			<version>1.4.5</version>
		</dependency>

		<dependency>
			<groupId>xerces</groupId>
			<artifactId>xercesImpl</artifactId>
			<version>2.11.0</version>

		</dependency>

		<dependency>
			<groupId>xalan</groupId>
			<artifactId>xalan</artifactId>
			<version>2.7.2</version>
		</dependency>

		<dependency>
			<groupId>org.apache.servicemix.bundles</groupId>
			<artifactId>org.apache.servicemix.bundles.saaj-impl</artifactId>
			<version>1.3.25_1</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/org.jvnet.staxex/stax-ex -->
		<dependency>
			<groupId>org.jvnet.staxex</groupId>
			<artifactId>stax-ex</artifactId>
			<version>1.7.8</version>
		</dependency>

	</dependencies>

Thanks
			 

> Weblogic 10.3.6 + CXF 2.7.12 : The signature or decryption was invalid
> ----------------------------------------------------------------------
>
>                 Key: CXF-7245
>                 URL: https://issues.apache.org/jira/browse/CXF-7245
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.7.12
>            Reporter: Alexis Caruana
>         Attachments: message_after_SAAJInterceptor_handlemessage.xml, message_before_SAAJInterceptor_handlemessage.xml,
pom_xml_dependencies.xml, spring_configuration.xml
>
>
> Using CXF 2.7.12 on weblogic server 10.3.6, i'm facing issue : 
> org.apache.ws.security.WSSecurityException: The signature or decryption was invalid
> One reference failed : reference with ID 2, the body reference 
> 2017-02-06 12:01:30.835 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #_2 check: false
> 2017-02-06 12:01:30.835 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #_3 check: true
> 2017-02-06 12:01:30.835 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #_4 check: true
> 2017-02-06 12:01:30.836 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #_5 check: true
> 2017-02-06 12:01:30.836 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #_6 check: true
> 2017-02-06 12:01:30.836 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #uuid-5b84c5c2-a9de-48ad-a136-59b43f43bf9f-2288 check: true
> It works with metro implementation.
> Below logs :
> 2017-02-06 12:01:30.835 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - signatureOK false
> 2017-02-06 12:01:30.835 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - XML Signature verification has failed
> Verify XML Signature
> Signature Validation check: true
> 2017-02-06 12:01:30.835 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #_2 check: false
> 2017-02-06 12:01:30.835 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #_3 check: true
> 2017-02-06 12:01:30.835 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #_4 check: true
> 2017-02-06 12:01:30.836 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #_5 check: true
> 2017-02-06 12:01:30.836 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference
> Reference #_6 check: true
> 2017-02-06 12:01:30.836 [DEBUG] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] SignatureProcessor - reference : class org.apache.jcp.xml.dsig.internal.dom.DOMReference




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

Mime
View raw message