fabric8io / fabric8

fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins
http://fabric8.io/
1.77k stars 505 forks source link

cdi-quickstart fail to start #5785

Closed davsclaus closed 8 years ago

davsclaus commented 8 years ago

Found this in the log

davsclaus:~/Documents/workspace/mycdi/$ oc logs -p mycdi-pw35z
Executing /deployments/bin/run ...
Launching application in folder: /deployments
Running  java  -javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/jolokia.properties,useSslClientAuthentication=true,extraClientCheck=true,protocol=https,caCert=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt,clientPrincipal=cn=system:master-proxy -javaagent:agents/jolokia.jar=config=etc/jolokia.properties -classpath :/deployments/lib/mycdi.jar:/deployments/lib/camel-core-2.16.2.jar:/deployments/lib/slf4j-api-1.6.6.jar:/deployments/lib/jaxb-core-2.2.11.jar:/deployments/lib/jaxb-impl-2.2.11.jar:/deployments/lib/camel-cdi-2.16.2.jar:/deployments/lib/deltaspike-core-api-1.5.3.jar:/deployments/lib/deltaspike-core-impl-1.5.3.jar:/deployments/lib/weld-se-2.3.3.Final.jar:/deployments/lib/weld-core-2.3.3.Final.jar:/deployments/lib/weld-api-2.3.SP1.jar:/deployments/lib/weld-spi-2.3.SP1.jar:/deployments/lib/jboss-classfilewriter-1.1.2.Final.jar:/deployments/lib/jboss-annotations-api_1.2_spec-1.0.0.Final.jar:/deployments/lib/guava-18.0.jar:/deployments/lib/jboss-el-api_3.0_spec-1.0.0.Alpha1.jar:/deployments/lib/jboss-interceptors-api_1.2_spec-1.0.0.Final.jar:/deployments/lib/jboss-logging-3.2.1.Final.jar:/deployments/lib/deltaspike-cdictrl-weld-1.5.3.jar:/deployments/lib/deltaspike-cdictrl-api-1.5.3.jar:/deployments/lib/slf4j-log4j12-1.7.12.jar:/deployments/lib/log4j-1.2.17.jar org.apache.camel.cdi.Main
Error opening zip file or JAR manifest missing : agents/jolokia.jar
Error occurred during initialization of VM
agent library failed to init: instrument

This is with a release and created the project from a mvn archetype (which is what the cd / ipaas tool would do)

<fabric8.version>2.2.95</fabric8.version>

Will try snapshot not from master branch.

davsclaus commented 8 years ago

@rhuss just noticed this

davsclaus commented 8 years ago

It looks like the jolokia java agent is added 2 times

-javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/jolokia.properties,useSslClientAuthentication=true,extraClientCheck=true,protocol=https,caCert=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt,clientPrincipal=cn=system:master-proxy

and

-javaagent:agents/jolokia.jar=config=etc/jolokia.properties
rhuss commented 8 years ago

I will check. The second argument looks unfamiliar to me, so probably not sth I added :) (and it seems according the to the error message, that the wrong jar was added, too).

davsclaus commented 8 years ago

Yes also fails with 100-SNAPSHOT

rhuss commented 8 years ago

Fix is proposed here: https://github.com/fabric8io/ipaas-quickstarts/issues/1156

Let's continue over there ...