http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java ---------------------------------------------------------------------- diff --git a/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java b/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java deleted file mode 100755 index 85fd25f..0000000 --- a/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorldImpl.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -// START SNIPPET: service -package org.apache.servicemix.examples.cxf; - -import javax.jws.WebService; - -@WebService(endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld") -public class HelloWorldImpl implements HelloWorld { - - public String sayHi(String text) { - return "Hello " + text; - } -} -// END SNIPPET: service
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/ServerPasswordCallback.java ---------------------------------------------------------------------- diff --git a/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/ServerPasswordCallback.java b/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/ServerPasswordCallback.java deleted file mode 100644 index c7f6cf9..0000000 --- a/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/ServerPasswordCallback.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package org.apache.servicemix.examples.cxf; - -import java.io.IOException; -import javax.security.auth.callback.Callback; -import javax.security.auth.callback.CallbackHandler; -import javax.security.auth.callback.UnsupportedCallbackException; -import org.apache.ws.security.WSPasswordCallback; - -public class ServerPasswordCallback implements CallbackHandler { - - public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException { - - WSPasswordCallback pc = (WSPasswordCallback) callbacks[0]; - - if (pc.getIdentifier().equals("joe")) { - pc.setPassword("password"); - } - } - -} - - http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-ws-security-osgi/src/main/resources/META-INF/spring/beans.xml ---------------------------------------------------------------------- diff --git a/itests/cxf-ws-security-osgi/src/main/resources/META-INF/spring/beans.xml b/itests/cxf-ws-security-osgi/src/main/resources/META-INF/spring/beans.xml deleted file mode 100755 index b4306c8..0000000 --- a/itests/cxf-ws-security-osgi/src/main/resources/META-INF/spring/beans.xml +++ /dev/null @@ -1,53 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF licenses this file -to you under the Apache License, Version 2.0 (the -"License"); you may not use this file except in compliance -with the License. You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, -software distributed under the License is distributed on an -"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, either express or implied. See the License for the -specific language governing permissions and limitations -under the License. ---> -<!-- START SNIPPET: beans --> -<beans xmlns="http://www.springframework.org/schema/beans" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:jaxws="http://cxf.apache.org/jaxws" - 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"> - - <import resource="classpath:META-INF/cxf/cxf.xml" /> - <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" /> - - <bean id="myPasswordCallback" class="org.apache.servicemix.examples.cxf.ServerPasswordCallback"/> - - <jaxws:endpoint id="helloWorld" - implementor="org.apache.servicemix.examples.cxf.HelloWorldImpl" - address="/HelloWorldSecurity"> - <jaxws:inInterceptors> - <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor"> - <constructor-arg> - <map> - <entry key="action" value="UsernameToken"/> - <entry key="passwordType" value="PasswordText"/> - <entry key="passwordCallbackRef"> - <ref bean="myPasswordCallback"/> - </entry> - - </map> - </constructor-arg> - </bean> - </jaxws:inInterceptors> - </jaxws:endpoint> - -</beans> -<!-- END SNIPPET: beans --> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/pom.xml ---------------------------------------------------------------------- diff --git a/itests/pom.xml b/itests/pom.xml deleted file mode 100644 index 6d9fbd7..0000000 --- a/itests/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<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"> - - <!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.servicemix</groupId> - <artifactId>parent</artifactId> - <version>4.6.0-SNAPSHOT</version> - <relativePath>../parent/pom.xml</relativePath> - </parent> - - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>itests</artifactId> - <packaging>pom</packaging> - <name>Apache ServiceMix :: Features :: Integration Tests</name> - - <modules> - <module>test-commons</module> - <module>cxf-http-osgi</module> - <module>cxf-ws-security-osgi</module> - <module>cxf-jms-osgi</module> - <module>cxf-nmr-osgi</module> - <module>cxf-soap-handler-osgi</module> - <module>cxf-handler-cfg</module> - <module>cxf-mtom-osgi</module> - <module>tests</module> - </modules> - -</project> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/test-commons/pom.xml ---------------------------------------------------------------------- diff --git a/itests/test-commons/pom.xml b/itests/test-commons/pom.xml deleted file mode 100644 index 6dab4fa..0000000 --- a/itests/test-commons/pom.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<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"> - - <!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>itests</artifactId> - <version>4.6.0-SNAPSHOT</version> - </parent> - - <artifactId>org.apache.servicemix.itests.test-commons</artifactId> - <packaging>bundle</packaging> - <name>Apache ServiceMix :: Features :: Integration Tests :: Common Classes</name> - - <dependencies> - <dependency> - <groupId>org.apache.cxf</groupId> - <artifactId>cxf-rt-frontend-jaxws</artifactId> - <scope>provided</scope> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-ws-metadata_2.0_spec</artifactId> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.cxf</groupId> - <artifactId>cxf-codegen-plugin</artifactId> - <executions> - <execution> - <id>generate-test-sources</id> - <phase>generate-sources</phase> - <configuration> - <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> - <wsdlOptions> - <wsdlOption> - <wsdl>${basedir}/src/main/resources/wsdl/hello_world.wsdl</wsdl> - </wsdlOption> - </wsdlOptions> - </configuration> - <goals> - <goal>wsdl2java</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.felix</groupId> - <artifactId>maven-bundle-plugin</artifactId> - <configuration> - <instructions> - <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> - <Import-Package> - javax.jws, - javax.wsdl, - javax.xml.bind, - javax.xml.bind.annotation, - javax.xml.namespace, - javax.xml.ws, - META-INF.cxf, - META-INF.cxf.osgi, - org.apache.cxf.bus, - org.apache.cxf.bus.spring, - org.apache.cxf.bus.resource, - org.apache.cxf.configuration.spring, - org.apache.cxf.resource, - org.apache.cxf.transport.http, - org.springframework.beans.factory.config - </Import-Package> - <Export-Package>org.apache.servicemix.examples.cxf</Export-Package> - <Require-Bundle>org.apache.cxf.bundle</Require-Bundle> - </instructions> - </configuration> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/test-commons/src/main/resources/wsdl/hello_world.wsdl ---------------------------------------------------------------------- diff --git a/itests/test-commons/src/main/resources/wsdl/hello_world.wsdl b/itests/test-commons/src/main/resources/wsdl/hello_world.wsdl deleted file mode 100644 index fcf66bd..0000000 --- a/itests/test-commons/src/main/resources/wsdl/hello_world.wsdl +++ /dev/null @@ -1,79 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<wsdl:definitions name="HelloWorldImplService" - targetNamespace="http://cxf.examples.servicemix.apache.org/" - xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" - xmlns:tns="http://cxf.examples.servicemix.apache.org/" - xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <wsdl:types> - <xsd:schema attributeFormDefault="unqualified" - elementFormDefault="unqualified" - targetNamespace="http://cxf.examples.servicemix.apache.org/" - xmlns:tns="http://cxf.examples.servicemix.apache.org/" - xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <xsd:element name="sayHi" type="tns:sayHi" /> - <xsd:complexType name="sayHi"> - <xsd:sequence> - <xsd:element minOccurs="0" name="arg0" type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - <xsd:element name="sayHiResponse" type="tns:sayHiResponse" /> - <xsd:complexType name="sayHiResponse"> - <xsd:sequence> - <xsd:element minOccurs="0" name="return" type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - </xsd:schema> - </wsdl:types> - <wsdl:message name="sayHiResponse"> - <wsdl:part element="tns:sayHiResponse" name="parameters"> - </wsdl:part> - </wsdl:message> - <wsdl:message name="sayHi"> - <wsdl:part element="tns:sayHi" name="parameters"> - </wsdl:part> - </wsdl:message> - <wsdl:portType name="HelloWorld"> - <wsdl:operation name="sayHi"> - <wsdl:input message="tns:sayHi" name="sayHi"> - </wsdl:input> - <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"> - </wsdl:output> - </wsdl:operation> - </wsdl:portType> - <wsdl:binding name="HelloWorldImplServiceSoapBinding" type="tns:HelloWorld"> - <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> - <wsdl:operation name="sayHi"> - <soap:operation soapAction="" style="document" /> - <wsdl:input name="sayHi"> - <soap:body use="literal" /> - </wsdl:input> - <wsdl:output name="sayHiResponse"> - <soap:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:service name="HelloWorldImplService"> - <wsdl:port binding="tns:HelloWorldImplServiceSoapBinding" name="HelloWorldImplPort"> - <soap:address location="http://localhost:8181/cxf/HelloWorld" /> - </wsdl:port> - </wsdl:service> -</wsdl:definitions> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/tests/pom.xml ---------------------------------------------------------------------- diff --git a/itests/tests/pom.xml b/itests/tests/pom.xml deleted file mode 100644 index 1c254d8..0000000 --- a/itests/tests/pom.xml +++ /dev/null @@ -1,562 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<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"> - - <!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - - <modelVersion>4.0.0</modelVersion> - - <parent> - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>itests</artifactId> - <version>4.6.0-SNAPSHOT</version> - </parent> - - <artifactId>org.apache.servicemix.itests.tests</artifactId> - <packaging>jar</packaging> - <name>Apache ServiceMix :: Features :: Integration Tests :: Tests</name> - - <dependencies> - <dependency> - <groupId>org.osgi</groupId> - <artifactId>org.osgi.compendium</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.servicemix.platform.testing</groupId> - <artifactId>org.apache.servicemix.platform.testing.support</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.felix</groupId> - <artifactId>org.apache.felix.fileinstall</artifactId> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>org.apache.felix</groupId> - <artifactId>org.osgi.core</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.apache.karaf.jaas</groupId> - <artifactId>org.apache.karaf.jaas.boot</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.karaf.jaas</groupId> - <artifactId>org.apache.karaf.jaas.config</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.karaf.management</groupId> - <artifactId>org.apache.karaf.management.server</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.fusesource.commonman</groupId> - <artifactId>commons-management</artifactId> - </dependency> - <dependency> - <groupId>org.osgi</groupId> - <artifactId>org.osgi.core</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.dom4j</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.ant</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.jaxb-impl</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.jasypt</artifactId> - </dependency> - <dependency> - <groupId>org.apache.neethi</groupId> - <artifactId>neethi</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.saaj-impl</artifactId> - </dependency> - <dependency> - <groupId>org.codehaus.woodstox</groupId> - <artifactId>woodstox-core-asl</artifactId> - </dependency> - <dependency> - <groupId>org.codehaus.woodstox</groupId> - <artifactId>stax2-api</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.wsdl4j</artifactId> - </dependency> - <dependency> - <groupId>org.apache.ws.xmlschema</groupId> - <artifactId>xmlschema-core</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.xmlresolver</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.cglib</artifactId> - </dependency> - <dependency> - <groupId>org.apache.cxf</groupId> - <artifactId>cxf-bundle</artifactId> - <exclusions> - <exclusion> - <groupId>org.codehaus.jra</groupId> - <artifactId>jra</artifactId> - </exclusion> - <exclusion> - <groupId>xml-apis</groupId> - <artifactId>xml-apis</artifactId> - </exclusion> - <exclusion> - <groupId>jaxen</groupId> - <artifactId>jaxen</artifactId> - </exclusion> - </exclusions> - </dependency> - <dependency> - <groupId>org.apache.servicemix.jbi</groupId> - <artifactId>org.apache.servicemix.jbi.runtime</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.servicemix.nmr</groupId> - <artifactId>org.apache.servicemix.nmr.api</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.servicemix.nmr</groupId> - <artifactId>org.apache.servicemix.nmr.core</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.servicemix.nmr</groupId> - <artifactId>org.apache.servicemix.nmr.management</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.servicemix.nmr</groupId> - <artifactId>org.apache.servicemix.nmr.osgi</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.servicemix.nmr</groupId> - <artifactId>org.apache.servicemix.nmr.spring</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.servicemix.document</groupId> - <artifactId>org.apache.servicemix.document</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.servicemix.cxf</groupId> - <artifactId>org.apache.servicemix.cxf.transport.nmr</artifactId> - <version>${project.version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.felix</groupId> - <artifactId>org.apache.felix.prefs</artifactId> - <scope>test</scope> - <exclusions> - <exclusion> - <groupId>org.apache.felix</groupId> - <artifactId>org.osgi.core</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.felix</groupId> - <artifactId>org.osgi.compendium</artifactId> - </exclusion> - </exclusions> - - </dependency> - <dependency> - <groupId>org.apache.servicemix.examples</groupId> - <artifactId>cxf-osgi</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.examples</groupId> - <artifactId>cxf-jaxrs</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>org.apache.servicemix.itests.test-commons</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>org.apache.servicemix.itests.cxf-http-osgi</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>org.apache.servicemix.itests.cxf-ws-security-osgi</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>org.apache.servicemix.itests.cxf-jms-osgi</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>org.apache.servicemix.itests.cxf-nmr-osgi</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>org.apache.servicemix.itests.cxf-mtom-osgi</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>org.apache.servicemix.itests.cxf-soap-handler-osgi</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.itests</groupId> - <artifactId>org.apache.servicemix.itests.cxf-handler-cfg</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.examples</groupId> - <artifactId>cxf-ws-addressing</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.examples</groupId> - <artifactId>cxf-nmr</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.servicemix.specs</groupId> - <artifactId>org.apache.servicemix.specs.java-persistence-api-2.0</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.specs</groupId> - <artifactId>org.apache.servicemix.specs.stax-api-1.0</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.specs</groupId> - <artifactId>org.apache.servicemix.specs.saaj-api-1.3</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.specs</groupId> - <artifactId>org.apache.servicemix.specs.jaxb-api-${jaxb.api.version}</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.specs</groupId> - <artifactId>org.apache.servicemix.specs.jaxws-api-${jaxws-api.version}</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.specs</groupId> - <artifactId>org.apache.servicemix.specs.activation-api-1.1</artifactId> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-annotation_1.0_spec</artifactId> - </dependency> - <dependency> - <groupId>javax.mail</groupId> - <artifactId>mail</artifactId> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-servlet_2.5_spec</artifactId> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-j2ee-connector_1.5_spec</artifactId> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-j2ee-management_1.1_spec</artifactId> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jta_1.1_spec</artifactId> - </dependency> - <dependency> - <groupId>commons-pool</groupId> - <artifactId>commons-pool</artifactId> - </dependency> - <dependency> - <groupId>org.apache.xbean</groupId> - <artifactId>xbean-spring</artifactId> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-core</artifactId> - <version>${activemq.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-ra</artifactId> - <version>${activemq.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-console</artifactId> - <version>${activemq.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-pool</artifactId> - <version>${activemq.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>kahadb</artifactId> - <version>${activemq.version}</version> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jms_1.1_spec</artifactId> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-saaj_1.3_spec</artifactId> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-ws-metadata_2.0_spec</artifactId> - </dependency> - <dependency> - <groupId>org.ops4j.pax.web</groupId> - <artifactId>pax-web-api</artifactId> - </dependency> - <dependency> - <groupId>org.ops4j.pax.web</groupId> - <artifactId>pax-web-spi</artifactId> - </dependency> - <dependency> - <groupId>org.ops4j.pax.web</groupId> - <artifactId>pax-web-runtime</artifactId> - </dependency> - <dependency> - <groupId>org.ops4j.pax.web</groupId> - <artifactId>pax-web-jetty</artifactId> - </dependency> - <dependency> - <groupId>org.ops4j.pax.web</groupId> - <artifactId>pax-web-extender-whiteboard</artifactId> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-context</artifactId> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-aop</artifactId> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-expression</artifactId> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-test</artifactId> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-jms</artifactId> - </dependency> - <dependency> - <groupId>org.springframework</groupId> - <artifactId>spring-tx</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix</groupId> - <artifactId>servicemix-utils</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.specs</groupId> - <artifactId>org.apache.servicemix.specs.jbi-api-1.0</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.bcel</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.xerces</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.xalan</artifactId> - </dependency> - <dependency> - <groupId>org.apache.santuario</groupId> - <artifactId>xmlsec</artifactId> - </dependency> - <dependency> - <groupId>commons-codec</groupId> - <artifactId>commons-codec</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.commons-httpclient</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.abdera</artifactId> - </dependency> - <dependency> - <groupId>org.codehaus.jettison</groupId> - <artifactId>jettison</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.xmlbeans</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.specs</groupId> - <artifactId>org.apache.servicemix.specs.jsr311-api-1.1.1</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.commons-lang</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.velocity</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.oro</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.josql</artifactId> - </dependency> - <dependency> - <groupId>org.apache.ws.security</groupId> - <artifactId>wss4j</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.opensaml</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.joda-time</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-util</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-io</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-http</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-continuation</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-webapp</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-server</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-security</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-servlet</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-servlets</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-xml</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-client</artifactId> - </dependency> - <dependency> - <groupId>org.eclipse.jetty</groupId> - <artifactId>jetty-jmx</artifactId> - </dependency> - <dependency> - <groupId>org.apache.servicemix.bundles</groupId> - <artifactId>org.apache.servicemix.bundles.asm</artifactId> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.servicemix.tooling</groupId> - <artifactId>depends-maven-plugin</artifactId> - <executions> - <execution> - <id>generate-depends-file</id> - <goals> - <goal>generate-depends-file</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <forkMode>pertest</forkMode> - <systemProperties> - <!-- to work around the xml resolver bug --> - <property> - <name>xml.catalog.files</name> - <value /> - </property> - </systemProperties> - <argLine>-Dxml.catalog.files=</argLine> - </configuration> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/tests/src/test/java/org/apache/servicemix/examples/CXFNMRIntegrationTest.java ---------------------------------------------------------------------- diff --git a/itests/tests/src/test/java/org/apache/servicemix/examples/CXFNMRIntegrationTest.java b/itests/tests/src/test/java/org/apache/servicemix/examples/CXFNMRIntegrationTest.java deleted file mode 100644 index 78f1451..0000000 --- a/itests/tests/src/test/java/org/apache/servicemix/examples/CXFNMRIntegrationTest.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.servicemix.examples; - -import org.apache.servicemix.examples.cxf.HelloWorld; -import org.apache.servicemix.nmr.api.NMR; -import org.apache.servicemix.platform.testing.support.AbstractIntegrationTest; -import org.osgi.framework.Constants; -import org.osgi.framework.ServiceReference; - -import java.util.Properties; -import java.util.jar.Manifest; - -public class CXFNMRIntegrationTest extends AbstractIntegrationTest { - - private Properties dependencies; - - /** - * The manifest to use for the "virtual bundle" created - * out of the test classes and resources in this project - * - * This is actually the boilerplate manifest with one additional - * import-package added. We should provide a simpler customization - * point for such use cases that doesn't require duplication - * of the entire manifest... - */ - protected String getManifestLocation() { - return "classpath:org/apache/servicemix/MANIFEST.MF"; - } - - /** - * The location of the packaged OSGi bundles to be installed - * for this test. Values are Spring resource paths. The bundles - * we want to use are part of the same multi-project maven - * build as this project is. Hence we use the localMavenArtifact - * helper method to find the bundles produced by the package - * phase of the maven build (these tests will run after the - * packaging phase, in the integration-test phase). - * - * JUnit, commons-logging, spring-core and the spring OSGi - * test bundle are automatically included so do not need - * to be specified here. - */ - protected String[] getTestBundlesNames() { - return new String[] { - getBundle("org.apache.felix", "org.apache.felix.prefs"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.activation-api-1.1"), - getBundle("org.apache.geronimo.specs", "geronimo-annotation_1.0_spec"), - getBundle("org.apache.geronimo.specs", "geronimo-servlet_2.5_spec"), - getBundle("org.apache.geronimo.specs", "geronimo-ws-metadata_2.0_spec"), - getBundle("org.apache.geronimo.specs", "geronimo-j2ee-connector_1.5_spec"), - getBundle("org.apache.geronimo.specs", "geronimo-jta_1.1_spec"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.jbi-api-1.0"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.stax-api-1.0"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.saaj-api-1.3"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.jaxb-api-2.2"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.jaxws-api-2.2"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.java-persistence-api-2.0"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.asm"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.cglib"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.jaxb-impl"), - getBundle("org.apache.neethi", "neethi"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.saaj-impl"), - getBundle("commons-pool", "commons-pool"), - getBundle("org.codehaus.woodstox", "stax2-api"), - getBundle("org.codehaus.woodstox", "woodstox-core-asl"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.dom4j"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.wsdl4j"), - getBundle("org.apache.ws.xmlschema", "xmlschema-core"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.xmlresolver"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.bcel"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.xerces"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.xalan"), - getBundle("org.apache.santuario", "xmlsec"), - //getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.jetty"), - getBundle("org.eclipse.jetty", "jetty-util"), - getBundle("org.eclipse.jetty", "jetty-io"), - getBundle("org.eclipse.jetty", "jetty-http"), - getBundle("org.eclipse.jetty", "jetty-client"), - getBundle("org.eclipse.jetty", "jetty-continuation"), - getBundle("org.eclipse.jetty", "jetty-jmx"), - getBundle("org.eclipse.jetty", "jetty-server"), - getBundle("org.eclipse.jetty", "jetty-security"), - getBundle("org.eclipse.jetty", "jetty-servlet"), - getBundle("org.eclipse.jetty", "jetty-servlets"), - getBundle("org.eclipse.jetty", "jetty-xml"), - getBundle("org.eclipse.jetty", "jetty-webapp"), - getBundle("javax.mail", "mail"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.commons-codec"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.abdera"), - getBundle("org.codehaus.jettison", "jettison"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.xmlbeans"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.jsr311-api-1.1.1"), - getBundle("org.ops4j.pax.web", "pax-web-api"), - getBundle("org.ops4j.pax.web", "pax-web-spi"), - getBundle("org.ops4j.pax.web", "pax-web-runtime"), - getBundle("org.ops4j.pax.web", "pax-web-jetty"), - getBundle("org.ops4j.pax.web", "pax-web-extender-whiteboard"), - getBundle("org.apache.servicemix", "servicemix-utils"), - getBundle("org.fusesource.commonman", "commons-management"), - getBundle("org.apache.karaf.jaas", "org.apache.karaf.jaas.boot"), - getBundle("org.apache.karaf.jaas", "org.apache.karaf.jaas.config"), - getBundle("org.apache.karaf.management", "org.apache.karaf.management.server"), - getBundle("org.apache.cxf", "cxf-bundle"), - getBundle("org.apache.servicemix.cxf", "org.apache.servicemix.cxf.transport.nmr"), - getBundle("org.apache.servicemix.nmr", "org.apache.servicemix.nmr.api"), - getBundle("org.apache.servicemix.nmr", "org.apache.servicemix.nmr.core"), - getBundle("org.apache.servicemix.nmr", "org.apache.servicemix.nmr.management"), - getBundle("org.apache.servicemix.nmr", "org.apache.servicemix.nmr.osgi"), - getBundle("org.apache.servicemix.document", "org.apache.servicemix.document"), - getBundle("org.apache.servicemix.itests", "org.apache.servicemix.itests.test-commons"), - getBundle("org.apache.servicemix.itests", "org.apache.servicemix.itests.cxf-nmr-osgi"), - }; - } - - - - public void testNMROsgi() throws Exception { - Thread.sleep(5000); - waitOnContextCreation("org.apache.servicemix.itests.cxf-nmr-osgi"); - Thread.sleep(5000); - NMR nmr = getOsgiService(NMR.class); - assertNotNull(nmr); - - - ServiceReference ref = bundleContext.getServiceReference(HelloWorld.class.getName()); - assertNotNull("Service Reference is null", ref); - org.apache.servicemix.examples.cxf.HelloWorld helloWorld = null; - - helloWorld = (org.apache.servicemix.examples.cxf.HelloWorld) bundleContext.getService(ref); - assertNotNull("Cannot find the service", helloWorld); - - assertEquals("Hello Bonjour", helloWorld.sayHi("Bonjour")); - - - } - - protected Manifest getManifest() { - Manifest mf = super.getManifest(); - String importP = mf.getMainAttributes().getValue(Constants.IMPORT_PACKAGE); - mf.getMainAttributes().putValue(Constants.IMPORT_PACKAGE, - importP + ",META-INF.cxf, org.apache.servicemix.jbi.jaxp"); - String exportP = mf.getMainAttributes().getValue(Constants.EXPORT_PACKAGE); - mf.getMainAttributes().putValue(Constants.EXPORT_PACKAGE, - exportP + ",org.apache.handlers, " - + "org.apache.springcfg.handlers, " - + "org.apache.handlers.types,org.apache.servicemix.examples.cxf," - + "org.apache.servicemix.examples.cxf.soaphandler," - + "org.apache.servicemix.examples.cxf.springcfghandler," - + "org.apache.servicemix.examples.cxf.wsaddressing," - + "org.apache.hello_world_soap_http," - + "org.apache.cxf," - + "org.apache.cxf.bus," - + "org.apache.cxf.interceptor" - ); - return mf; - } - - -} http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/tests/src/test/java/org/apache/servicemix/examples/IntegrationTest.java ---------------------------------------------------------------------- diff --git a/itests/tests/src/test/java/org/apache/servicemix/examples/IntegrationTest.java b/itests/tests/src/test/java/org/apache/servicemix/examples/IntegrationTest.java deleted file mode 100644 index 1423b2b..0000000 --- a/itests/tests/src/test/java/org/apache/servicemix/examples/IntegrationTest.java +++ /dev/null @@ -1,405 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.servicemix.examples; - -import org.apache.cxf.Bus; -import org.apache.servicemix.examples.cxf.HelloWorld; -import org.apache.servicemix.jbi.jaxp.StringSource; -import org.apache.servicemix.nmr.api.*; -import org.apache.servicemix.platform.testing.support.AbstractIntegrationTest; -import org.apache.servicemix.util.FileUtil; -import org.osgi.framework.Constants; -import org.osgi.framework.ServiceReference; - -import javax.activation.DataHandler; -import javax.xml.ws.Holder; -import java.io.ByteArrayOutputStream; -import java.io.InputStream; -import java.io.OutputStream; -import java.io.PrintWriter; -import java.net.URL; -import java.net.URLConnection; -import java.util.Properties; -import java.util.jar.Manifest; - -public class IntegrationTest extends AbstractIntegrationTest { - - private Properties dependencies; - - /** - * The manifest to use for the "virtual bundle" created - * out of the test classes and resources in this project - * - * This is actually the boilerplate manifest with one additional - * import-package added. We should provide a simpler customization - * point for such use cases that doesn't require duplication - * of the entire manifest... - */ - protected String getManifestLocation() { - return "classpath:org/apache/servicemix/MANIFEST.MF"; - } - - /** - * The location of the packaged OSGi bundles to be installed - * for this test. Values are Spring resource paths. The bundles - * we want to use are part of the same multi-project maven - * build as this project is. Hence we use the localMavenArtifact - * helper method to find the bundles produced by the package - * phase of the maven build (these tests will run after the - * packaging phase, in the integration-test phase). - * - * JUnit, commons-logging, spring-core and the spring OSGi - * test bundle are automatically included so do not need - * to be specified here. - */ - protected String[] getTestBundlesNames() { - return new String[] { - getBundle("org.apache.felix", "org.apache.felix.prefs"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.activation-api-1.1"), - getBundle("org.apache.geronimo.specs", "geronimo-annotation_1.0_spec"), - getBundle("org.apache.geronimo.specs", "geronimo-servlet_2.5_spec"), - getBundle("org.apache.geronimo.specs", "geronimo-ws-metadata_2.0_spec"), - getBundle("org.apache.geronimo.specs", "geronimo-j2ee-connector_1.5_spec"), - getBundle("org.apache.geronimo.specs", "geronimo-jta_1.1_spec"), - - //for activemq - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.commons-lang"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.jasypt"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.josql"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.oro"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.velocity"), - getBundle("commons-collections", "commons-collections"), - getBundle("org.springframework", "spring-jms"), - getBundle("org.springframework", "spring-tx"), - getBundle("org.apache.geronimo.specs", "geronimo-j2ee-management_1.1_spec"), - getBundle("org.apache.geronimo.specs", "geronimo-jms_1.1_spec"), - getBundle("commons-pool", "commons-pool"), - getBundle("org.apache.xbean", "xbean-spring"), - getBundle("org.apache.activemq", "activemq-core"), - getBundle("org.apache.activemq", "activemq-ra"), - getBundle("org.apache.activemq", "activemq-console"), - getBundle("org.apache.activemq", "activemq-pool"), - getBundle("org.apache.activemq", "kahadb"), - - //for ws-security - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.opensaml"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.joda-time"), - getBundle("org.apache.ws.security", "wss4j"), - - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.jbi-api-1.0"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.stax-api-1.0"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.saaj-api-1.3"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.jaxb-api-2.2"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.jaxws-api-2.2"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.java-persistence-api-2.0"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.asm"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.cglib"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.jaxb-impl"), - getBundle("org.apache.neethi", "neethi"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.saaj-impl"), - getBundle("org.codehaus.woodstox", "stax2-api"), - getBundle("org.codehaus.woodstox", "woodstox-core-asl"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.dom4j"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.wsdl4j"), - getBundle("org.apache.ws.xmlschema", "xmlschema-core"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.xmlresolver"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.bcel"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.xerces"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.xalan"), - getBundle("org.apache.santuario", "xmlsec"), - //getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.jetty"), - getBundle("org.eclipse.jetty", "jetty-util"), - getBundle("org.eclipse.jetty", "jetty-io"), - getBundle("org.eclipse.jetty", "jetty-http"), - getBundle("org.eclipse.jetty", "jetty-client"), - getBundle("org.eclipse.jetty", "jetty-continuation"), - getBundle("org.eclipse.jetty", "jetty-jmx"), - getBundle("org.eclipse.jetty", "jetty-server"), - getBundle("org.eclipse.jetty", "jetty-security"), - getBundle("org.eclipse.jetty", "jetty-servlet"), - getBundle("org.eclipse.jetty", "jetty-servlets"), - getBundle("org.eclipse.jetty", "jetty-xml"), - getBundle("org.eclipse.jetty", "jetty-webapp"), - getBundle("javax.mail", "mail"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.commons-codec"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.commons-httpclient"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.abdera"), - getBundle("org.codehaus.jettison", "jettison"), - getBundle("org.apache.servicemix.bundles", "org.apache.servicemix.bundles.xmlbeans"), - getBundle("org.apache.servicemix.specs", "org.apache.servicemix.specs.jsr311-api-1.1.1"), - getBundle("org.ops4j.pax.web", "pax-web-api"), - getBundle("org.ops4j.pax.web", "pax-web-spi"), - getBundle("org.ops4j.pax.web", "pax-web-runtime"), - getBundle("org.ops4j.pax.web", "pax-web-jetty"), - getBundle("org.ops4j.pax.web", "pax-web-extender-whiteboard"), - getBundle("org.apache.servicemix", "servicemix-utils"), - getBundle("org.fusesource.commonman", "commons-management"), - getBundle("org.apache.karaf.jaas", "org.apache.karaf.jaas.boot"), - getBundle("org.apache.karaf.jaas", "org.apache.karaf.jaas.config"), - getBundle("org.apache.karaf.management", "org.apache.karaf.management.server"), - getBundle("org.apache.cxf", "cxf-bundle"), - getBundle("org.apache.servicemix.cxf", "org.apache.servicemix.cxf.transport.nmr"), - getBundle("org.apache.servicemix.nmr", "org.apache.servicemix.nmr.api"), - getBundle("org.apache.servicemix.nmr", "org.apache.servicemix.nmr.core"), - getBundle("org.apache.servicemix.nmr", "org.apache.servicemix.nmr.management"), - getBundle("org.apache.servicemix.nmr", "org.apache.servicemix.nmr.osgi"), - getBundle("org.apache.servicemix.document", "org.apache.servicemix.document"), - getBundle("org.apache.servicemix.itests", "org.apache.servicemix.itests.test-commons"), - getBundle("org.apache.servicemix.itests", "org.apache.servicemix.itests.cxf-http-osgi"), - getBundle("org.apache.servicemix.itests", "org.apache.servicemix.itests.cxf-ws-security-osgi"), - getBundle("org.apache.servicemix.itests", "org.apache.servicemix.itests.cxf-jms-osgi"), - getBundle("org.apache.servicemix.itests", "org.apache.servicemix.itests.cxf-soap-handler-osgi"), - getBundle("org.apache.servicemix.itests", "org.apache.servicemix.itests.cxf-mtom-osgi"), - getBundle("org.apache.servicemix.itests", "org.apache.servicemix.itests.cxf-handler-cfg"), - getBundle("org.apache.servicemix.examples", "cxf-ws-addressing"), - getBundle("org.apache.servicemix.examples", "cxf-jaxrs"), - getBundle("org.apache.servicemix.itests", "org.apache.servicemix.itests.cxf-nmr-osgi"), - }; - } - - public void testJbiComponent() throws Exception { - Thread.sleep(5000); - installBundle("org.apache.servicemix.examples", "cxf-osgi", null, "jar"); - Thread.sleep(5000); - } - - public void testHttpOsgi() throws Exception { - Thread.sleep(5000); - waitOnContextCreation("org.apache.servicemix.itests.cxf-http-osgi"); - Thread.sleep(5000); - - String filter = "(&(" + "objectclass=" + HelloWorld.class.getName() + ")(TEST-BUNDLE-NAME=cxf-http-osgi))"; - ServiceReference ref = bundleContext.getServiceReferences(null, filter)[0]; - assertNotNull("Service Reference is null", ref); - - org.apache.servicemix.examples.cxf.HelloWorld helloWorld = null; - - helloWorld = (org.apache.servicemix.examples.cxf.HelloWorld) bundleContext.getService(ref); - assertNotNull("Cannot find the service", helloWorld); - - assertEquals("Hello Bonjour", helloWorld.sayHi("Bonjour")); - } - - public void testJmsOsgi() throws Exception { - Thread.sleep(5000); - waitOnContextCreation("org.apache.servicemix.itests.cxf-jms-osgi"); - Thread.sleep(5000); - String filter = "(&(" + "objectclass=" + HelloWorld.class.getName() + ")(TEST-BUNDLE-NAME=cxf-jms-osgi))"; - ServiceReference ref = bundleContext.getServiceReferences(null, filter)[0]; - assertNotNull("Service Reference is null", ref); - - org.apache.servicemix.examples.cxf.HelloWorld helloWorld = null; - - helloWorld = (org.apache.servicemix.examples.cxf.HelloWorld) bundleContext.getService(ref); - assertNotNull("Cannot find the service", helloWorld); - - assertEquals("Hello Bonjour", helloWorld.sayHi("Bonjour")); - } - - public void testNMROsgi() throws Exception { - Thread.sleep(5000); - waitOnContextCreation("org.apache.servicemix.itests.cxf-nmr-osgi"); - Thread.sleep(5000); - NMR nmr = getOsgiService(NMR.class); - assertNotNull(nmr); - - Channel client = nmr.createChannel(); - Exchange e = client.createExchange(Pattern.InOut); - for (Endpoint ep : nmr.getEndpointRegistry().getServices()) { - e.setTarget(nmr.getEndpointRegistry().lookup(nmr.getEndpointRegistry().getProperties(ep))); - e.getIn().setBody(new StringSource("<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><ns2:sayHi xmlns:ns2=\"http://cxf.examples.servicemix.apache.org/\"><arg0>Bonjour</arg0></ns2:sayHi></soap:Body></soap:Envelope>")); - boolean res = client.sendSync(e); - assertTrue(res); - } - - } - - protected Manifest getManifest() { - Manifest mf = super.getManifest(); - String importP = mf.getMainAttributes().getValue(Constants.IMPORT_PACKAGE); - mf.getMainAttributes().putValue(Constants.IMPORT_PACKAGE, - importP + ",META-INF.cxf, org.apache.servicemix.jbi.jaxp"); - String exportP = mf.getMainAttributes().getValue(Constants.EXPORT_PACKAGE); - mf.getMainAttributes().putValue(Constants.EXPORT_PACKAGE, - exportP + ",org.apache.handlers, " - + "org.apache.springcfg.handlers, " - + "org.apache.cxf.mime, " - + "javax.xml.ws, " - + "javax.activation, " - + "org.apache.handlers.types, " - + "org.apache.servicemix.examples.cxf," - + "org.apache.servicemix.examples.cxf.soaphandler," - + "org.apache.servicemix.examples.cxf.springcfghandler," - + "org.apache.servicemix.examples.cxf.wsaddressing," - + "org.apache.servicemix.util," - + "org.apache.hello_world_soap_http," - + "org.apache.cxf," - + "org.apache.cxf.bus," - + "org.apache.cxf.interceptor" - ); - return mf; - } - - public void testSoapHandlerOsgi() throws Exception { - Thread.sleep(5000); - waitOnContextCreation("org.apache.servicemix.itests.cxf-soap-handler-osgi"); - Thread.sleep(5000); - - ServiceReference ref = bundleContext.getServiceReference(org.apache.handlers.AddNumbers.class.getName()); - assertNotNull("Service Reference is null", ref); - - org.apache.handlers.AddNumbers addNumbers = null; - - addNumbers = (org.apache.handlers.AddNumbers) bundleContext.getService(ref); - assertNotNull("Cannot find the service", addNumbers); - - assertEquals(2, addNumbers.addNumbers(1,1)); - - } - - public void testSpringConfigHandlerOsgi() throws Exception { - Thread.sleep(5000); - waitOnContextCreation("org.apache.servicemix.itests.cxf-handler-cfg"); - Thread.sleep(5000); - - ServiceReference ref = bundleContext.getServiceReference(org.apache.springcfg.handlers.AddNumbers.class.getName()); - assertNotNull("Service Reference is null", ref); - - org.apache.springcfg.handlers.AddNumbers addNumbers = null; - - addNumbers = (org.apache.springcfg.handlers.AddNumbers) bundleContext.getService(ref); - assertNotNull("Cannot find the service", addNumbers); - - assertEquals(1016, addNumbers.addNumbers(10, 16)); - } - - public void testWsAddressingOsgi() throws Exception { - Thread.sleep(5000); - waitOnContextCreation("cxf-ws-addressing"); - - ServiceReference busref = bundleContext.getServiceReference(org.apache.cxf.bus.CXFBusImpl.class.getName()); - assertNotNull("Bus Reference is null", busref); - - Bus bus = (Bus)bundleContext.getService(busref); - - ByteArrayOutputStream input = new ByteArrayOutputStream(); - PrintWriter writer = new PrintWriter(input, true); - org.apache.cxf.interceptor.LoggingInInterceptor in = new org.apache.cxf.interceptor.LoggingInInterceptor(writer); - bus.getInInterceptors().add(in); - - ByteArrayOutputStream output = new ByteArrayOutputStream(); - PrintWriter outwriter = new PrintWriter(output, true); - org.apache.cxf.interceptor.LoggingOutInterceptor out = new org.apache.cxf.interceptor.LoggingOutInterceptor(outwriter); - bus.getOutInterceptors().add(out); - - ServiceReference ref = bundleContext.getServiceReference(org.apache.hello_world_soap_http.Greeter.class.getName()); - assertNotNull("Service Reference is null", ref); - - - org.apache.hello_world_soap_http.Greeter greeter = null; - - greeter = (org.apache.hello_world_soap_http.Greeter) bundleContext.getService(ref); - assertNotNull("Cannot find the service", greeter); - - assertEquals("Bonjour", greeter.sayHi()); - - String expectedOut = "<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>"; - String expectedIn = "<RelatesTo xmlns=\"http://www.w3.org/2005/08/addressing\">"; - - assertTrue(output.toString().indexOf(expectedOut) != -1); - assertTrue(input.toString().indexOf(expectedIn) != -1); - } - - public void testJaxRS() throws Exception { - Thread.sleep(5000); - waitOnContextCreation("cxf-jaxrs"); - - URL url = new URL("http://localhost:8080/cxf/crm/customerservice/customers/123"); - InputStream in = url.openStream(); - - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - int c = 0; - while ((c = in.read()) != -1) { - bos.write(c); - } - in.close(); - bos.close(); - System.out.println(bos.toString()); - assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Customer><id>123</id><name>John</name></Customer>", - bos.toString()); - } - - public void testWSSecurity() throws Exception { - Thread.sleep(5000); - waitOnContextCreation("org.apache.servicemix.itests.cxf-ws-security-osgi"); - Thread.sleep(5000); - URLConnection connection = new URL("http://localhost:8080/cxf/HelloWorldSecurity") - .openConnection(); - connection.setDoInput(true); - connection.setDoOutput(true); - OutputStream os = connection.getOutputStream(); - // Post the request file. - InputStream fis = getClass().getClassLoader().getResourceAsStream("org/apache/servicemix/request.xml"); - FileUtil.copyInputStream(fis, os); - // Read the response. - InputStream is = connection.getInputStream(); - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - FileUtil.copyInputStream(is, baos); - assertTrue(baos.toString().indexOf("Hello John Doe") >= 0); - - } - - public void testMtomOsgi() throws Exception { - Thread.sleep(5000); - waitOnContextCreation("org.apache.servicemix.itests.cxf-mtom-osgi"); - Thread.sleep(5000); - - ServiceReference ref = bundleContext.getServiceReference(org.apache.cxf.mime.TestMtom.class.getName()); - assertNotNull("Service Reference is null", ref); - - org.apache.cxf.mime.TestMtom testMtom = null; - - testMtom = (org.apache.cxf.mime.TestMtom) bundleContext.getService(ref); - assertNotNull("Cannot find the service", testMtom); - - URL fileURL = getClass().getClassLoader().getResource("me.bmp"); - System.out.println("\nStarting MTOM test with DataHandler:"); - Holder<String> name = new Holder<String>("Bob"); - Holder<DataHandler> handler = new Holder<DataHandler>(); - - handler.value = new DataHandler(fileURL); - - System.out.println("--Sending the me.bmp image to server"); - System.out.println("--Sending a name value of " + name.value); - - testMtom.testXop(name, handler); - - InputStream mtomIn = handler.value.getInputStream(); - long fileSize = 0; - for (int i = mtomIn.read(); i != -1; i = mtomIn.read()) { - fileSize++; - } - - System.out.println("--Received DataHandler back from server, " - + "returned size is " + fileSize); - System.out.println("--Returned string value is " + name.value); - assertEquals(fileSize, 163166); - System.out.println("Successfully ran MTOM/DataHandler demo"); - - } - -} http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/tests/src/test/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/itests/tests/src/test/resources/log4j.properties b/itests/tests/src/test/resources/log4j.properties deleted file mode 100644 index d880b6e..0000000 --- a/itests/tests/src/test/resources/log4j.properties +++ /dev/null @@ -1,34 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -################################################################################ - -log4j.rootLogger=DEBUG, stdout - -log4j.logger.org.springframework.osgi=DEBUG -log4j.logger.org.apache.camel=DEBUG -log4j.logger.org.apache.servicemix=DEBUG - -log4j.appender.stdout=org.apache.log4j.ConsoleAppender -log4j.appender.stdout.layout=org.apache.log4j.PatternLayout -log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n - -log4j.appender.out=org.apache.log4j.FileAppender -log4j.appender.out.layout=org.apache.log4j.PatternLayout -log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n -log4j.appender.out.file=target/servicemix-test.log -log4j.appender.out.append=true - http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/tests/src/test/resources/me.bmp ---------------------------------------------------------------------- diff --git a/itests/tests/src/test/resources/me.bmp b/itests/tests/src/test/resources/me.bmp deleted file mode 100644 index 800c536..0000000 Binary files a/itests/tests/src/test/resources/me.bmp and /dev/null differ http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/tests/src/test/resources/org/apache/servicemix/MANIFEST.MF ---------------------------------------------------------------------- diff --git a/itests/tests/src/test/resources/org/apache/servicemix/MANIFEST.MF b/itests/tests/src/test/resources/org/apache/servicemix/MANIFEST.MF deleted file mode 100644 index 141413e..0000000 --- a/itests/tests/src/test/resources/org/apache/servicemix/MANIFEST.MF +++ /dev/null @@ -1,32 +0,0 @@ -Manifest-Version: 1.0 -License-00: . -License-01: Licensed to the Apache Software Foundation (ASF) under one or more -License-02: contributor license agreements. See the NOTICE file distributed with -License-03: this work for additional information regarding copyright ownership. -License-04: The ASF licenses this file to You under the Apache License, Version 2.0 -License-05: (the "License"); you may not use this file except in compliance with -License-06: the License. You may obtain a copy of the License at -License-07: . -License-08: http://www.apache.org/licenses/LICENSE-2.0 -License-09: . -License-10: Unless required by applicable law or agreed to in writing, software -License-11: distributed under the License is distributed on an "AS IS" BASIS, -License-12: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -License-13: See the License for the specific language governing permissions and -License-14: limitations under the License. -License-15: . -Bundle-Name: org.apache.servicemix.test -Bundle-SymbolicName: org.apache.servicemix.test -Bundle-Vendor: Spring Framework -Bundle-Activator: org.springframework.osgi.test.JUnitTestActivator -Import-Package: junit.framework, - org.osgi.framework;specification-version="1.3.0", - org.slf4j, - org.springframework.core, - org.springframework.core.io, - org.springframework.osgi.test, - org.springframework.osgi.test.platform, - org.apache.servicemix.nmr.api, - org.apache.servicemix.nmr.core, - org.apache.servicemix.platform.testing.support, - org.springframework.osgi.util http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/tests/src/test/resources/org/apache/servicemix/request.xml ---------------------------------------------------------------------- diff --git a/itests/tests/src/test/resources/org/apache/servicemix/request.xml b/itests/tests/src/test/resources/org/apache/servicemix/request.xml deleted file mode 100755 index 7f00050..0000000 --- a/itests/tests/src/test/resources/org/apache/servicemix/request.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> - <soap:Header> - <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> - <wsse:UsernameToken > - <wsse:Username>joe</wsse:Username> - <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password> - </wsse:UsernameToken> - </wsse:Security> - </soap:Header> - <soap:Body> - <ns2:sayHi xmlns:ns2="http://cxf.examples.servicemix.apache.org/"> - <arg0>John Doe</arg0> - </ns2:sayHi> - </soap:Body> -</soap:Envelope> http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/logging/jms-appender/README.txt ---------------------------------------------------------------------- diff --git a/logging/jms-appender/README.txt b/logging/jms-appender/README.txt deleted file mode 100644 index f5c737a..0000000 --- a/logging/jms-appender/README.txt +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -ServiceMix Pax JMS Appender -=========================== - -This ServiceMix features allows to configure a JMS appender with ActiveMQ. When the bundle -is deployed, a new OPS4J Pax logging appender will be registered using Pax Logging OSGI service. -This appender can be used next by modifying the org.ops4j.pax.logging.cfg file and adding the -following lines - -log4j.rootLogger=INFO, out, osgi:VmLogAppender, osgi:JMSLogAppender - -Procedure to install the bundle and configure it -================================================ - - 1) Compile the project - mvn install - - 2) Create config file under ${servicemix.home}/etc directory - touch org.apache.servicemix.logging.cfg - edit the file and add destinationName=logTopic - - 3) Modify org.ops4j.pax.logging.cfg - - log4j.rootLogger=INFO, out, osgi:VmLogAppender, osgi:JMSLogAppender - # Be sure that ActiveMQ messages are not logged to 'jms' appender - log4j.logger.org.apache.activemq=INFO, stdout - log4j.logger.org.apache.activemq.karaf.logging = INFO, stdout - - 4) Start ServiceMix server - ./bin/servicemix or bin/servicemix.bat - - 5) Deploy the bundle - install -s mvn:org.apache.servicemix.logging/pax-jms-appender/${project.version} - - 5) Check that topic logTopic contains entries ! http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/logging/jms-appender/pom.xml ---------------------------------------------------------------------- diff --git a/logging/jms-appender/pom.xml b/logging/jms-appender/pom.xml deleted file mode 100644 index aa9a401..0000000 --- a/logging/jms-appender/pom.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<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> - - <parent> - <groupId>org.apache.servicemix.logging</groupId> - <artifactId>logging</artifactId> - <version>4.6.0-SNAPSHOT</version> - </parent> - - <artifactId>jms-appender</artifactId> - <name>Apache ServiceMix :: Features :: Logging :: JMS Appender</name> - - <packaging>bundle</packaging> - - <dependencies> - <dependency> - <groupId>org.ops4j.pax.logging</groupId> - <artifactId>pax-logging-service</artifactId> - <version>${pax.logging.version}</version> - </dependency> - <dependency> - <groupId>org.ops4j.pax.logging</groupId> - <artifactId>pax-logging-api</artifactId> - <version>${pax.logging.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-core</artifactId> - <version>${activemq.version}</version> - </dependency> - <dependency> - <groupId>org.json</groupId> - <artifactId>json</artifactId> - <version>20090211</version> - </dependency> - - <dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-test</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-camel</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.slf4j</groupId> - <artifactId>slf4j-log4j12</artifactId> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.felix</groupId> - <artifactId>maven-bundle-plugin</artifactId> - <extensions>true</extensions> - <configuration> - <instructions> - <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> - <Import-Package> - * - </Import-Package> - <Private-Package> - org.apache.servicemix.logging.jms - </Private-Package> - <Embed-Dependency> - json - </Embed-Dependency> - </instructions> - </configuration> - </plugin> - </plugins> - </build> - - -</project>
