Worked,Thanks Dan.
Date: Fri, 18 Jan 2013 14:20:57 -0800
From: [email protected]
To: [email protected]
Subject: Re: The matching wildcard is strict cxf no declaration can be found 
for jaxws:properties



        
The jaxws:properties element likely needs to go inside the <jaxws:endpoint> 
element.  It's not meant to be a top level element.


Dan




On Jan 18, 2013, at 5:14 PM, cb9 <[hidden email]> wrote:


> Hi,

> 

> I am trying to create simple UsernameToken security using ws-policy. For

> that I configured spring configuration like this

> 

> <beans xmlns="http://www.springframework.org/schema/beans";

>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 

>       xmlns:jaxws="http://cxf.apache.org/jaxws";

>       xmlns:wsa="http://cxf.apache.org/ws/addressing";

>       xsi:schemaLocation="http://www.springframework.org/schema/beans 

>       http://www.springframework.org/schema/beans/spring-beans.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
> http://cxf.apache.org/ws/addressing
> http://cxf.apache.org/schemas/ws-addr-conf.xsd";>

> 

>       <import resource="classpath:META-INF/cxf/cxf.xml" />

>       <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

>       <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />

>       <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />

> 

> 

>       <bean id="logInBound"

> class="org.apache.cxf.interceptor.LoggingInInterceptor" />

>       <bean id="logOutBound"

> class="org.apache.cxf.interceptor.LoggingOutInterceptor" />

>       

>       

>       

>       <jaxws:properties>

>         <entry key="ws-security.callback-handler"

> value-ref="com.test.cx5.ServerPasswordCallback"/>

>      </jaxws:properties> 

>       <jaxws:endpoint id="helloWorld" 
> implementor="com.test.cxf5.HelloWorldImpl"

>               address="/HelloWorld">

> 

>               <jaxws:inInterceptors>

>                               <ref bean="logInBound" />

>               </jaxws:inInterceptors>

>               <jaxws:outInterceptors>

>                               <ref bean="logOutBound" />

>               </jaxws:outInterceptors>

>               <jaxws:inFaultInterceptors>

>                               <ref bean="logInBound" />

>               </jaxws:inFaultInterceptors>

>               <jaxws:outFaultInterceptors>

>                               <ref bean="logOutBound" />

>               </jaxws:outFaultInterceptors>

>       </jaxws:endpoint>

>       

> </beans>

> 

> 

> But I get error saying

> 

> Description   Resource        Path    Location        Type

> cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration

> can be found for element 'jaxws:properties'.  beans.xml

> /cxf5/src/main/webapp/WEB-INF line 21 XML Problem

> 

> 

> My Maven pom.xml is as follows.

> 

> 

> <project xmlns="http://maven.apache.org/POM/4.0.0";

> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>

>  <modelVersion>4.0.0</modelVersion>

> 

>  <groupId>com.test.cxf5</groupId>

>  <artifactId>cxf5</artifactId>

>  <packaging>war</packaging>

>  <version>1.0-SNAPSHOT</version>

> 

>  <name>cxf5</name>

>  <url>http://maven.apache.org</url>

> 

>  <properties>

>               
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

>               <cxf.version>2.7.0</cxf.version>

>       </properties>

> 

>       <dependencies>

>               <dependency>

>                       <groupId>org.slf4j</groupId>

>                       <artifactId>slf4j-log4j12</artifactId>

>                       <version>1.6.1</version>

>               </dependency>

> 

>               <dependency>

>                       <groupId>javax.servlet</groupId>

>                       <artifactId>servlet-api</artifactId>

>                       <version>2.5</version>

>                       <scope>provided</scope>

>               </dependency>

>               <dependency>

>                       <groupId>javax.servlet.jsp</groupId>

>                       <artifactId>jsp-api</artifactId>

>                       <version>2.1</version>

>                       <scope>provided</scope>

>               </dependency>

>               <dependency>

>                       <groupId>org.apache.cxf</groupId>

>                       <artifactId>cxf-rt-frontend-jaxws</artifactId>

>                       <version>${cxf.version}</version>

>               </dependency>

>               <dependency>

>                       <groupId>org.apache.cxf</groupId>

>                       <artifactId>cxf-rt-transports-http</artifactId>

>                       <version>${cxf.version}</version>

>               </dependency>

>               <dependency>

>                       <groupId>org.apache.cxf</groupId>

>                       <artifactId>cxf-rt-ws-security</artifactId>

>                       <version>${cxf.version}</version>

>               </dependency>

> 

> 

>               <dependency>

>                       <groupId>org.apache.ws.security</groupId>

>                       <artifactId>wss4j</artifactId>

>                       <version>1.6.9</version>

>               </dependency>

>               <dependency>

>                       <groupId>org.springframework</groupId>

>                       <artifactId>spring-webmvc</artifactId>

>                       <version>3.1.2.RELEASE</version>

>               </dependency>

> 

>       </dependencies>

> 

>       <build>

>               <plugins>

>                       <plugin>

>                               <groupId>org.apache.maven.plugins</groupId>

>                               <artifactId>maven-compiler-plugin</artifactId>

>                               <version>2.0.2</version>

>                               <configuration>

>                                       <source>1.7</source>

>                                       <target>1.7</target>

>                               </configuration>

>                       </plugin>

>               </plugins>

>               <finalName>cxf5</finalName>

>       </build>

> </project>

> 

> 

> I am tired of searching on google, I could not find solution.

> 

> Thanks

> 

> Charles

> 

> 

> 

> --

> View this message in context: 
> http://cxf.547215.n5.nabble.com/The-matching-wildcard-is-strict-cxf-no-declaration-can-be-found-for-jaxws-properties-tp5721881.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 

Daniel Kulp

[hidden email] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com



        
        
        
        

        

        
        
                If you reply to this email, your message will be added to the 
discussion below:
                
http://cxf.547215.n5.nabble.com/The-matching-wildcard-is-strict-cxf-no-declaration-can-be-found-for-jaxws-properties-tp5721881p5721882.html
        
        
                
                To unsubscribe from The matching wildcard is strict cxf no 
declaration can be found for jaxws:properties, click here.

                NAML
                                                  



--
View this message in context: 
http://cxf.547215.n5.nabble.com/The-matching-wildcard-is-strict-cxf-no-declaration-can-be-found-for-jaxws-properties-tp5721881p5721897.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to