Code Monkey home page Code Monkey logo

ipaas-quickstarts's Introduction

Fabric8 Archetypes

Join the chat at https://gitter.im/fabric8io/ipaas-quickstarts

This project contains the following fabric8 parts:

Quickstarts

The base quickstarts upon which these archetypes are derived now live in a new github.com repo: github.com/fabric8-quickstarts. Browse around there to see which quickstarts are interesting. Then you can create a quickstart with the archetypes like this:

mvn archetype:generate -DarchetypeGroupId=io.fabric8.archetypes -DarchetypeArtifactId=%archetype% -DarchetypeVersion=%latest%

Where %archetype% is jvm-implementation-archetype.

For example, spring-boot-camel-archetype is the name of a Camel quickstart that uses Spring Boot. karaf-camel-log-archetype is a Karaf JVM with camel running in it with a timer that logs to developer logs, etc. See the fabric8 documentation for more information.

Building

The build requires Maven version 3.2.5 or later.

mvn clean install

Running the system tests

To run the system tests for all the quickstarts check out the docs on how to run them

ipaas-quickstarts's People

Contributors

apupier avatar astefanutti avatar chirino avatar christian-posta avatar cmoulliard avatar davsclaus avatar dhirajsb avatar ericwittmann avatar ffang avatar fusesource-ci avatar gastaldi avatar gitter-badger avatar gnodet avatar hekonsek avatar iocanel avatar jamesnetherton avatar janstey avatar jimmidyson avatar jstrachan avatar kevinearls avatar lburgazzoli avatar luebken avatar luksa avatar msavy avatar nicolaferraro avatar oscerd avatar purplefox avatar rajdavies avatar rawlingsj avatar rhuss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ipaas-quickstarts's Issues

http gateway CI job fails on new 2.0.9 release of fabric8

generates this error:

[ERROR] Failed to execute goal on project fabric8-http-gateway: Could not resolve dependencies for project io.fabric8.jube.images.fabric8:fabric8-http-gateway:jar:2.0-SNAPSHOT: Could not find artifact io.fabric8:gateway-fabric-support:jar:2.0.9 in central (http://repo.maven.apache.org/maven2) -> [Help 1]

lets re-enable when we can figure out the dependencies to work with 2.0.9

Error running camel-amq quickstart (2.0.12 & 2.1.5) in OpenShift

After running the latest karaf camel-amq quikstart using openshift in docker the container fails with the following in the logs..

jamesrawlings@jrmacbook:~/fabric8/quickstarts/quickstarts/karaf/camel-amq$ docker logs 6fd1e3e0990b
This is an STI ready Apache Karaf image.
You can use it with the sti tool, to build a docker image out of your source code.

sti build <url to git repo> fabric8/karaf-<version> <target image name>

The git url is expected to host a maven project for karaf, that will generate as part of its output any of the following:

i) One or more kar archives.
ii) A maven repo under fabric8/repository


Running an empty container:
to spin up an empty karaf container with this image you can just:

docker run fabric8/karaf-<version> deploy-and-start

Details:
If a pom.xml is present in the source directory, the project is built with maven and the
output in target will be copied into the /opt/jboss/deploy directory.

Add API support for Camel rest-dsl

Similar to how we find CXF ones.

We can look in JMX for Rest DSL services and get an API for them
https://github.com/jstrachan/quickstarts/blob/changes/apps/api-registry/src/main/java/io/fabric8/api/registry/ApiFinder.java#L82-82

https://github.com/jstrachan/quickstarts/blob/changes/apps/api-registry/src/main/java/io/fabric8/api/registry/ApiFinder.java#L131-131

We may need to have camel-swagger on the classpath so we get the swagger api enabled.

For WADL that is harder as the CXF wadl generator is too tightly coupled into CXF itself.

camel-sql quickstart

To show how to use Camel with a SQL database, such as an external kube service to a mysql or postgres image

apps-groups/base oauthclient borked

When I fabric8:apply, the following JSON is generated:

"objects": [
    {
      "apiVersion": "v1beta3",
      "kind": "OAuthClient",
      "metadata": {
        "annotations": {},
        "labels": {},
        "name": "fabric8"
      },
      "redirectURIs": [
        "http://localhost:9090",
        "http://localhost:2772",
        "http://localhost:9000",
        "http://fabric8.fabric8.vagrant.local",
        "https://fabric8.fabric8.vagrant.local"
      ]
    }, ....

However, I deploy it on a Digital Ocean box (BTW, perfect fit for Demos: cheap, fast, reliable ;-), so no of the redirecURI will work and in fact I have oauth problems when connecting to the fabric8 console. Although I don't understand much about the OpenShift OpenAuth integration yet (and there is really not much docs), this configuration feels wrong.

The relevant env looks like:

KUBERNETES_NAMESPACE=fabric8
KUBERNETES_TRUST_CERT=true
KUBERNETES_MASTER=https://188.166.46.48:8443
DOCKER_HOST=tcp://188.166.46.48:2375
DOCKER_REGISTRY=docker-registry.digital.ocean:80
DOCKER_IP=188.166.46.48
KUBERNETES_DOMAIN=digital.ocean
FABRIC8_CONSOLE=http://188.166.46.48

all pointing to the remote system.

camel-cdi fails to startup

mvn test-compile exec:java generates:

[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ java-camel-cdi ---
2014-11-13 07:01:18,455 [cdi.Main.main()] INFO  Version                        - WELD-000900: 2.2.5 (Final)
2014-11-13 07:01:19,719 [cdi.Main.main()] INFO  Bootstrap                      - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
2014-11-13 07:01:20,254 [cdi.Main.main()] WARN  Interceptor                    - WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled
2014-11-13 07:01:20,255 [cdi.Main.main()] WARN  Interceptor                    - WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled
2014-11-13 07:01:20,969 [cdi.Main.main()] WARN  Event                          - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.camel.cdi.internal.CamelExtension.detectRouteBuilders(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2014-11-13 07:01:20,999 [cdi.Main.main()] WARN  Event                          - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.message.MessageBundleExtension.detectInterfaces(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
2014-11-13 07:01:21,058 [cdi.Main.main()] WARN  Event                          - WELD-000411: Observer method [BackedAnnotatedMethod] protected org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension.vetoBeans(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
Nov 13, 2014 7:01:21 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.scope.DeltaSpikeContextExtension activated=true
Nov 13, 2014 7:01:21 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.config.ConfigurationExtension activated=true
Nov 13, 2014 7:01:21 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exception.control.extension.ExceptionControlExtension activated=true
Nov 13, 2014 7:01:21 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.MessageBundleExtension activated=true
Nov 13, 2014 7:01:21 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.message.NamedMessageBundleInvocationHandler activated=true
Nov 13, 2014 7:01:21 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.extension.ExcludeExtension activated=true
Nov 13, 2014 7:01:21 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.CustomProjectStageBeanFilter activated=true
Nov 13, 2014 7:01:21 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.exclude.GlobalAlternative activated=true
Nov 13, 2014 7:01:21 AM org.apache.deltaspike.core.util.ClassDeactivationUtils cacheResult
INFO: class: org.apache.deltaspike.core.impl.jmx.MBeanExtension activated=true
Nov 13, 2014 7:01:21 AM org.apache.deltaspike.core.util.ProjectStageProducer initProjectStage
INFO: Computed the following DeltaSpike ProjectStage: Production
2014-11-13 07:01:23,093 [weld-worker-8  ] WARN  Validator                      - WELD-001473: javax.enterprise.inject.spi.Bean implementation org.apache.camel.cdi.internal.CamelContextBean@3b5689c6 declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable. It won't be possible to inject this bean into a bean with a passivating scope (@SessionScoped, @ConversationScoped). This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.
2014-11-13 07:01:23,816 [cdi.Main.main()] INFO  CdiCamelContext                - Apache Camel 2.14.0 (CamelContext: myCdiCamelContext) is starting
2014-11-13 07:01:23,818 [cdi.Main.main()] INFO  ManagedManagementStrategy      - JMX is enabled
2014-11-13 07:01:24,062 [cdi.Main.main()] INFO  DefaultTypeConverter           - Loaded 178 type converters
2014-11-13 07:01:24,115 [cdi.Main.main()] INFO  CdiCamelContext                - AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
2014-11-13 07:01:24,115 [cdi.Main.main()] INFO  CdiCamelContext                - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
2014-11-13 07:01:24,115 [cdi.Main.main()] INFO  CdiCamelContext                - Total 0 routes, of which 0 is started.
2014-11-13 07:01:24,116 [cdi.Main.main()] INFO  CdiCamelContext                - Apache Camel 2.14.0 (CamelContext: myCdiCamelContext) started in 0.301 seconds
2014-11-13 07:01:24,123 [cdi.Main.main()] INFO  MainSupport                    - Apache Camel 2.14.0 stopping
[WARNING]
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:
Exception 0 :
org.jboss.weld.exceptions.IllegalStateException: WELD-000143: Container lifecycle event method invoked outside of extension observer method invocation.
    at org.jboss.weld.bootstrap.events.ContainerEvent.checkWithinObserverNotification(ContainerEvent.java:61)
    at org.jboss.weld.bootstrap.events.ProcessAnnotatedTypeImpl.getAnnotatedType(ProcessAnnotatedTypeImpl.java:56)
    at org.apache.camel.cdi.internal.CamelContextConfig.configure(CamelContextConfig.java:47)
    at org.apache.camel.cdi.internal.CamelContextBean.configureCamelContext(CamelContextBean.java:131)
    at org.apache.camel.cdi.internal.CamelExtension.startConsumeBeans(CamelExtension.java:231)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:90)
    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:271)
    at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:121)
    at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:258)
    at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:237)
    at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:174)
    at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:133)
    at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:107)
    at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:54)
    at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)
    at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
    at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:437)
    at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)
    at org.jboss.weld.environment.se.Weld.initialize(Weld.java:148)
    at org.apache.deltaspike.cdise.weld.WeldContainerControl.boot(WeldContainerControl.java:65)
    at org.apache.camel.cdi.Main.doStart(Main.java:122)
    at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
    at org.apache.camel.main.MainSupport.run(MainSupport.java:149)
    at org.apache.camel.main.MainSupport.run(MainSupport.java:353)
    at org.apache.camel.cdi.Main.main(Main.java:49)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
    at java.lang.Thread.run(Thread.java:745)

    at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:37)
    at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
    at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:437)
    at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)
    at org.jboss.weld.environment.se.Weld.initialize(Weld.java:148)
    at org.apache.deltaspike.cdise.weld.WeldContainerControl.boot(WeldContainerControl.java:65)
    at org.apache.camel.cdi.Main.doStart(Main.java:122)
    at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
    at org.apache.camel.main.MainSupport.run(MainSupport.java:149)
    at org.apache.camel.main.MainSupport.run(MainSupport.java:353)
    at org.apache.camel.cdi.Main.main(Main.java:49)
    ... 6 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.279s
[INFO] Finished at: Thu Nov 13 07:01:24 GMT 2014
[INFO] Final Memory: 27M/228M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "docker-host" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project java-camel-cdi: An exception occured while executing the Java class. null: InvocationTargetException: Exception List with 1 exceptions:
[ERROR] Exception 0 :
[ERROR] org.jboss.weld.exceptions.IllegalStateException: WELD-000143: Container lifecycle event method invoked outside of extension observer method invocation.
[ERROR] at org.jboss.weld.bootstrap.events.ContainerEvent.checkWithinObserverNotification(ContainerEvent.java:61)
[ERROR] at org.jboss.weld.bootstrap.events.ProcessAnnotatedTypeImpl.getAnnotatedType(ProcessAnnotatedTypeImpl.java:56)
[ERROR] at org.apache.camel.cdi.internal.CamelContextConfig.configure(CamelContextConfig.java:47)
[ERROR] at org.apache.camel.cdi.internal.CamelContextBean.configureCamelContext(CamelContextBean.java:131)
[ERROR] at org.apache.camel.cdi.internal.CamelExtension.startConsumeBeans(CamelExtension.java:231)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:606)
[ERROR] at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:90)
[ERROR] at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:271)
[ERROR] at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:121)
[ERROR] at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:258)
[ERROR] at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:237)
[ERROR] at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:174)
[ERROR] at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:133)
[ERROR] at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:107)
[ERROR] at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:54)
[ERROR] at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)
[ERROR] at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
[ERROR] at org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:437)
[ERROR] at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:90)
[ERROR] at org.jboss.weld.environment.se.Weld.initialize(Weld.java:148)
[ERROR] at org.apache.deltaspike.cdise.weld.WeldContainerControl.boot(WeldContainerControl.java:65)
[ERROR] at org.apache.camel.cdi.Main.doStart(Main.java:122)
[ERROR] at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
[ERROR] at org.apache.camel.main.MainSupport.run(MainSupport.java:149)
[ERROR] at org.apache.camel.main.MainSupport.run(MainSupport.java:353)
[ERROR] at org.apache.camel.cdi.Main.main(Main.java:49)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:606)
[ERROR] at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
[ERROR] at java.lang.Thread.run(Thread.java:745)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
2014-11-13 07:01:24,507 [Thread-3       ] INFO  MainSupport$HangupInterceptor  - Received hang up - stopping the main instance.

Building quickstarts with -Pdocker-build creates invalid .tar files

I have boot2docker running locally with a clean docker.

I then run a full build of the quickstarts with

mvn clean install -Pdocker-build

And during all the maven output I noticed the tar files are created using the property placeholder.

Maybe its something on our end, or its docker-maven-plugin that should validate the file name becomes valid and that all property placeholders are valid.

[INFO]
[INFO] --- docker-maven-plugin:0.11.3:build (default) @ cdelivery ---
[INFO] DOCKER> Creating image [${env.DOCKER_REGISTRY}/fabric8/cdelivery:2.2-SNAPSHOT]
[INFO] Copying files to /Users/davsclaus/workspace/quickstarts/apps/cdelivery/target/docker/${env.DOCKER_REGISTRY}/fabric8/cdelivery/2.2-SNAPSHOT/build/maven
[INFO] Building tar: /Users/davsclaus/workspace/quickstarts/apps/cdelivery/target/docker/${env.DOCKER_REGISTRY}/fabric8/cdelivery/2.2-SNAPSHOT/tmp/docker-build.tar

Wonder if the cxf quickstarts have some system out println debug code

I see its kinda outputting the code exeuction path during build all quickstarts

Payload: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><Customer xmlns="http://cxfcdi.fabric.quickstarts.fabric8.io/"><id>125</id><name>Jack</name></Customer>
--------------------------------------
org.eclipse.jetty.server.HttpConnection$CommitCallback@2fa11ca[ITERATING] generate: NEED_HEADER (null,[p=0,l=158,c=32768,r=158],false)@START
org.eclipse.jetty.server.HttpConnection$CommitCallback@2fa11ca[ITERATING] generate: FLUSH ([p=0,l=151,c=8192,r=151],[p=0,l=158,c=32768,r=158],false)@COMMITTED
write: WriteFlusher@6fa5e64c{IDLE} [HeapByteBuffer@4ae4771e[p=0,l=151,c=8192,r=151]={<<<HTTP/1.1 200 OK||...140505)||||9E||>>>|����������������...���������������},HeapByteBuffer@5d4878fb[p=0,l=158,c=32768,r=158]={<<<<?xml version="1....ame></Customer>>>>>323</id></Produc...���������������}]
update WriteFlusher@6fa5e64c{WRITING}:IDLE-->WRITING
<< "HTTP/1.1 200 OK[\r][\n]"
<< "HTTP/1.1 200 OK[\r][\n]"
flushed 309 SelectChannelEndPoint@1a78eb00{/127.0.0.1:54987<->8586,Open,in,out,-,W,30000,HttpConnection}{io=0,kio=0,kro=1}
enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
flushed true
enter HttpConnection.getResponseInputStream()
enter HeaderParser.parseHeaders(InputStream, String)
enter HttpParser.readLine(InputStream, String)
enter HttpParser.readRawLine()
update WriteFlusher@6fa5e64c{IDLE}:WRITING-->IDLE
<< "Content-Type: application/xml[\r][\n]"
org.eclipse.jetty.server.HttpConnection$CommitCallback@2fa11ca[ITERATING] generate: DONE ([p=151,l=151,c=8192,r=0],[p=158,l=158,c=32768,r=0],false)@COMMITTED
enter HttpParser.readLine(InputStream, String)
enter HttpParser.readRawLine()
org.eclipse.jetty.server.HttpConnection$ContentCallback@f0be919[ITERATING] generate: CONTINUE ([p=0,l=0,c=0,r=0],true)@COMPLETING
<< "Date: Fri, 24 Apr 2015 15:41:48 GMT[\r][\n]"
org.eclipse.jetty.server.HttpConnection$ContentCallback@f0be919[ITERATING] generate: NEED_CHUNK ([p=0,l=0,c=0,r=0],true)@COMPLETING
enter HttpParser.readLine(InputStream, String)
enter HttpParser.readRawLine()
org.eclipse.jetty.server.HttpConnection$ContentCallback@f0be919[ITERATING] generate: FLUSH ([p=0,l=0,c=0,r=0],true)@COMPLETING
<< "Transfer-Encoding: chunked[\r][\n]"
enter HttpParser.readLine(InputStream, String)
enter HttpParser.readRawLine()
write: WriteFlusher@6fa5e64c{IDLE} [HeapByteBuffer@307941f6[p=0,l=7,c=1024,r=7]={<<<||0||||>>>�����������������...���������������}]
<< "Server: Jetty(9.1.5.v20140505)[\r][\n]"
enter HttpParser.readLine(InputStream, String)
enter HttpParser.readRawLine()
update WriteFlusher@6fa5e64c{WRITING}:IDLE-->WRITING
<< "[\r][\n]"
enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
enter HttpMethodBase.processCookieHeaders(Header[], HttpState, HttpConnection)
enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
enter HttpMethodBase.readResponseBody(HttpConnection)
enter HttpConnection.getResponseInputStream()
enter HttpMethodBase.canResponseHaveBody(int)
enter HeaderElement.parseElements(String)
flushed 7 SelectChannelEndPoint@1a78eb00{/127.0.0.1:54987<->8586,Open,in,out,-,W,30000,HttpConnection}{io=0,kio=0,kro=1}
enter HeaderElement.parseElements(char[])
flushed true
enter HttpConnection.isResponseAvailable(int)
update WriteFlusher@6fa5e64c{IDLE}:WRITING-->IDLE
Response status code: 200
org.eclipse.jetty.server.HttpConnection$ContentCallback@f0be919[ITERATING] generate: DONE ([p=0,l=0,c=0,r=0],true)@END
Response body:
Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Finished servicing http request on thread: Thread[qtp538814100-14 - /java-cxf-cdi/cxfcdi/customerservice/customers,5,main]
Buffering response body
Finished servicing http request on thread: Thread[qtp538814100-14 - /java-cxf-cdi/cxfcdi/customerservice/customers,5,main]
<< "9"
<< "E"
RESPONSE /java-cxf-cdi/cxfcdi/customerservice/customers  200 handled=true
<< "[\r]"
<< "[\n]"
HttpChannelState@3f63dfdf{s=DISPATCHED i=true a=null} unhandle DISPATCHED
<< "<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Customer xmlns="http://cxfcdi.fabric.quickstarts.fabric8.io/"><id>125</id><name>Jack</name></Customer>"
<< "[\r]"
<< "[\n]"
<< "0"
reset HttpParser{s=END,98 of 98}
<< "[\r]"

MQ Producer and Consumer apps aren't being scheduled when run

It looks like a new label is causing the issue.

I edited the kubernetes.json files removing all occurrences of "queueName": "TEST.FOO"from the replicaSelector and labels.

i.e.

        "replicaSelector": {
          "container": "java", 
          "queueName": "TEST.FOO", 
          "group": "fabric8MQConsumer"
        },

I could fix by removing <fabric8.label.queueName>${destinationName}</fabric8.label.queueName> from https://github.com/fabric8io/quickstarts/blob/master/apps/fabric8-mq-producer/pom.xml and the consumer pom but I wanted to check it's not in there for a reason that I'm missing.

API Registry fails to testing

Doing a mvn clean install on quickstarts fails in the api registry module.

Results :

Failed tests:
  ApiRegistryTest.before:61 Jetty Server could not be started
org.jboss.weld.exceptions.DeploymentException: Exception List with 1 exceptions:
Exception 0 :
javax.ws.rs.core.UriBuilderException: URI can not be built
    at org.apache.cxf.jaxrs.impl.UriBuilderImpl.doBuild(UriBuilderImpl.java:105)
    at org.apache.cxf.jaxrs.impl.UriBuilderImpl.buildFromEncoded(UriBuilderImpl.java:230)
    at org.apache.cxf.jaxrs.client.AbstractClient.getCurrentURI(AbstractClient.java:270)
    at org.apache.cxf.jaxrs.client.JAXRSClientFactory.fromClient(JAXRSClientFactory.java:352)
    at org.apache.cxf.jaxrs.client.JAXRSClientFactory.fromClient(JAXRSClientFactory.java:340)
    at io.fabric8.kubernetes.api.KubernetesFactory.createWebClient(KubernetesFactory.java:108)
    at io.fabric8.kubernetes.api.KubernetesFactory.createKubernetes(KubernetesFactory.java:91)
    at io.fabric8.kubernetes.jolokia.JolokiaClients.<init>(JolokiaClients.java:51)
    at io.fabric8.api.registry.ApiFinder.<init>(ApiFinder.java:77)

for the CXF quickstarts; can we return a simple index.html page on the root URL so folks can more easily test them?

if we run a service for a CXF quickstart we get to invoke it from the hawtio Services tab using its kubernetes host / port. Though kubernetes / hawtio has no idea what magic URI path within the web app is a valid one.

So it'd be good to return a simple HTML file by default for "/" or "/index.html" or something which provides a few links so folks can click on the service in the UI and get some HTML back that has a few links so folks can click a few times and test it out

A few maven warnings

[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.fabric8.jube.images.fabric8:fabric8-http-gateway:jar:2.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 73, column 15
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.fabric8.jube.images.fabric8:fabric8-mq:jar:2.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 79, column 15
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.fabric8.jube.images.fabric8:fabric8-mq-producer:jar:2.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 66, column 15
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.fabric8.jube.images.fabric8:fabric8-mq-consumer:jar:2.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 60, column 15
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.fabric8.jube.images.fabric8:fabric8-mq-autoscaler:jar:2.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 73, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.fabric8.jube.images.fabric8:quickstart-java-simple-fatjar:jar:2.1-SNAPSHOT
[WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.