JB, I am using smx on weblogic 10.3 version. I have copied file basic_auth.xml in server/lib directory of webloigc. When i am deploying SA . I am not getting the error. When i am trying to call the consumer using SOAP UI for testing, its not asking for authentication. I think its ignoring basic_auth.xml file. Is there a way to test it ?
Or am i doing right way? Regards Brijesh N K Jean-Baptiste Onofré wrote: > > OK. > > So, could you try to copy the basic_auth.xml file in the web container > classpath ? Simply add a classpath entry to your webcontainer or use a > directory already in the classpath (such as the lib directory using > Tomcat). > > Regards > JB > > brijesh wrote: >> JB, >> >> I am using 'apache-servicemix-web-3. 4. 0. 4-fuse. war' from fuse site. >> >> I don't have conf directly for war deployment , I have exploded war and >> cudn't see conf directory. >> >> >> >> Following is bean file. >> >> <beans xmlns="http://www.springframework.org/schema/beans" >> xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" >> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance" >> xmlns:bp="urn:awb:sapr3:external_bp" >> xmlns:invap="urn:awb:sapr3:external_ap" >> xmlns:invar="urn:awb:sapr3:external_ar" >> xmlns:invgl="urn:awb:sapr3:external_gl" >> xmlns:lstn="http://www.ekaplus.com/ListenerEvent/" >> xmlns:nte="http://www.ekaplus.com/NotifyEvent/" >> xmlns:syncnte="http://www.ekaplus.com/SyncNotifyEvent/" >> xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0 >> http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.2.xsd >> http://www.springframework.org/schema/beans >> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> >> >> <cxfbc:consumer wsdl="classpath:NotifyEvent.wsdl" >> targetService="nte:gatewayRouter" useJBIWrapper="false" >> useSOAPEnvelope="false" /> >> <cxfbc:consumer wsdl="classpath:SyncNotifyEvent.wsdl" >> targetService="nte:gatewayRouter" >> useJBIWrapper="false" >> useSOAPEnvelope="false" >> busCfg="basic_auth.xml" /> >> >> >> </beans> >> >> >> Following is POM file for BC. >> >> <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/maven-v4_0_0.xsd"> >> <modelVersion>4.0.0</modelVersion> >> <groupId>com.ekaplus.common.notifyevent</groupId> >> <artifactId>bc-notifyevent</artifactId> >> <packaging>jbi-service-unit</packaging> >> <version>1.0-SNAPSHOT</version> >> <name>A Cxf BC Service Unit</name> >> <url>http://www.ekaplus.com</url> >> <repositories> >> <repository> >> <id>apache</id> >> <name>Apache Repository</name> >> >> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url> >> <snapshots> >> <enabled>false</enabled> >> </snapshots> >> <releases> >> <enabled>true</enabled> >> </releases> >> </repository> >> <repository> >> <id>apache.snapshots</id> >> <name>Apache Snapshots Repository</name> >> <url>http://people.apache.org/repo/m2-snapshot-repository</url> >> <snapshots> >> <enabled>true</enabled> >> </snapshots> >> <releases> >> <enabled>false</enabled> >> </releases> >> </repository> >> </repositories> >> <pluginRepositories> >> <pluginRepository> >> <id>apache</id> >> <name>Apache Repository</name> >> >> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository</url> >> <snapshots> >> <enabled>false</enabled> >> </snapshots> >> <releases> >> <enabled>true</enabled> >> </releases> >> </pluginRepository> >> <pluginRepository> >> <id>apache.snapshots</id> >> <name>Apache Snapshots Repository</name> >> <url>http://people.apache.org/repo/m2-snapshot-repository</url> >> <snapshots> >> <enabled>true</enabled> >> </snapshots> >> <releases> >> <enabled>false</enabled> >> </releases> >> </pluginRepository> >> </pluginRepositories> >> <properties> >> <servicemix-version>3.2.2</servicemix-version> >> </properties> >> <dependencies> >> <dependency> >> <groupId>org.apache.servicemix</groupId> >> <artifactId>servicemix-cxf-bc</artifactId> >> <version>${servicemix-version}</version> >> </dependency> >> </dependencies> >> <build> >> <resources> >> <resource> >> <directory>src/main/resources</directory> >> <includes> >> <include>**/*</include> >> </includes> >> </resource> >> </resources> >> <plugins> >> <plugin> >> <groupId>org.apache.servicemix.tooling</groupId> >> <artifactId>jbi-maven-plugin</artifactId> >> <version>${servicemix-version}</version> >> <extensions>true</extensions> >> </plugin> >> </plugins> >> </build> >> </project> >> >> >> Regards >> Brijesh N K >> >> >> >> >> >> Jean-Baptiste Onofré wrote: >>> Hi Brijesh, >>> >>> sorry I was with a customer yesterday. >>> >>> Could you please provide your xbean.xml, pom.xml and in which directory >>> have you put the basic_auth.xml file ? >>> >>> In the same time, you can try to copy the basic_auth.xml in the conf >>> directory (loaded in the main classpath using classworlds). >>> >>> Regards >>> JB >>> >>> brijesh wrote: >>>> JB, >>>> >>>> Any help on this , this is very critical for me in my work. >>>> Please help me on this? >>>> >>>> >>>> Regards >>>> Brijesh N K >>>> >>>> >>>> brijesh wrote: >>>>> JB, >>>>> >>>>> still gives same error, is there different way to implement basic >>>>> authentication??. >>>>> I am using smx web version 3.3 . Is there any other place i can keep >>>>> basic_auth.xml file??. so that BC can load it?? >>>>> >>>>> Following is error stack >>>>> >>>>> <loc-message>java.lang.RuntimeException: >>>>> org.springframework.context.ApplicationContextException: Failed to >>>>> load >>>>> configuration classpath:basic_auth.xml</loc-message> >>>>> <stack-trace><