openshiftdemos / openshift-tasks Goto Github PK
View Code? Open in Web Editor NEWSample JBoss EAP (WildFly) App for OpenShift
Sample JBoss EAP (WildFly) App for OpenShift
Pulling this into openshift, and getting this:
[FATAL] Non-parseable POM /home/jboss/source/pom.xml: unexpected character in markup < (position: END_TAG seen ...\n\n<<... @73:3) @ line 73, column 3
looking at the pom.xml file, it has some unusual things in it, almost look like build annotations or something, but certainly, not pom-like!
Im no Jboss expert, so lets not go there, however i see this error in the logs when ever i use the project which is quite nice for a demo.
Are there a permission this project needs to run, or do you want to have a sa with access to some special settings for running it.
06:37:50,719 WARN [org.jgroups.protocols.openshift.KUBE_PING] (Timer-3,shared=tcp) Problem getting Pod json from Kubernetes Client[masterUrl=https://10.244.0.1:443/api/v1, headers={Authorization=#MASKED:845#}, connectTimeout=5000, readTimeout=30000, operationAttempts=3, operationSleep=1000, streamProvider=org.openshift.ping.common.stream.InsecureStreamProvider@d6ee295] for cluster [hornetq-channel], namespace [demo], labels [application=tasks]; encountered [java.lang.Exception: 3 attempt(s) with a 1000ms sleep to execute [OpenStream] failed. Last failure was [java.io.IOException: Server returned HTTP response code: 403 for URL: https://10.244.0.1:443/api/v1/namespaces/demo/pods?labelSelector=application%3Dtasks]]
I have been trying to do the openlearning "Red Hat OpenShift 3 Foundations "
But it fails at the lab 3:3: Demonstrate Aggregated Logging and Metrics.
That lab is using this repository, but I don't know if the problem is in the repository or elsewhere.
I have done the configuration as described in chapter 3:
3. Demonstrate Deploying an Application Using S2I
1 Action: After creating your project or after clicking Browse Catalog, enter eap in the catalog filter and select JBoss EAP 7.1 (no https).
2 Action: Fill in the fields as follows:
Application Name: openshift-tasks
Git Repository URL: https://github.com/openshiftdemos/openshift-tasks
Git Reference: master
Context Directory: /
3 Action: Click Next.
4 Action: Select Do not bind at this time and click Create.
5 Action: Click Continue to the project overview.
I get this status during the creation
The service is not yet ready. failed to prepare parameters nil: secrets "eap71-basic-s2i-parameterssp9b7" not found
Maven deploy to nexus is failing in my setup.
I think that, since we are switching to Nexus3, we need to change the repo url from:
<distributionManagement> <repository> <id>nexus</id> <url>http://nexus:8081/content/repositories/releases</url> </repository> <snapshotRepository> <id>nexus</id> <url>http://nexus:8081/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement>
to
<distributionManagement> <repository> <id>nexus</id> <url>http://nexus:8081/repository/maven-releases</url> </repository> <snapshotRepository> <id>nexus</id> <url>http://nexus:8081/repository/maven-snapshots</url> </snapshotRepository> </distributionManagement>
I am trying to build this through Openshift CD Demo & also locally, but I am facing build issues in beginning itself.
`[ERROR] Non-resolvable import POM: Could not find artifact org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:2.0.0 in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom.eap:jboss-javaee-6.0-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/eap/jboss-javaee-6.0-with-tools/6.4.0.GA/jboss-javaee-6.0-with-tools-6.4.0.GA.pom, line 55, column 25
[ERROR] Non-resolvable import POM: Could not find artifact org.jboss.arquillian:arquillian-bom:pom:1.1.0.Final in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom.eap:jboss-javaee-6.0-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/eap/jboss-javaee-6.0-with-tools/6.4.0.GA/jboss-javaee-6.0-with-tools-6.4.0.GA.pom, line 64, column 25
[ERROR] Non-resolvable import POM: Could not find artifact org.jboss.arquillian.extension:arquillian-drone-bom:pom:1.1.1.Final in nexus (http://nexus:8081/repository/maven-all-public/) @ org.jboss.bom.eap:jboss-javaee-6.0-with-tools:[unknown-version], /home/jenkins/.m2/repository/org/jboss/bom/eap/jboss-javaee-6.0-with-tools/6.4.0.GA/jboss-javaee-6.0-with-tools-6.4.0.GA.pom, line 74, column 25
[ERROR] 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 87, column 21
[ERROR] 'dependencies.dependency.version' for org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar is missing. @ line 94, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec:jar is missing. @ line 101, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar is missing. @ line 114, column 21
[ERROR] 'dependencies.dependency.version' for junit:junit:jar is missing. @ line 121, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.junit:arquillian-junit-container:jar is missing. @ line 127, column 21
[ERROR] 'dependencies.dependency.version' for org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar is missing. @ line 133, column 21`
RHEL7.3
OSCP 3.4
Pipeline runs successfully and deployments also successful. but on trying to access the url for the task app I get presented with an EAP 7 screen instead of the app
Followed the instructions from https://github.com/OpenShiftDemos/openshift-cd-demo which I finally got running locally with oc cluster up (setup and config see here: ).
Tried to create a task:
curl -i -u 'redhat:redhat1!' -H "Content-Length: 0" -X POST http://tasks-dev.apps.127.0.0.1.nip.io/ws/tasks/task1
Result:
HTTP/1.1 401 Unauthorized
Expires: 0
Cache-Control: no-cache, no-store, must-revalidate
X-Powered-By: Undertow/1
Server: JBoss-EAP/7
Pragma: no-cache
Date: Tue, 04 Apr 2017 18:37:18 GMT
WWW-Authenticate: Basic realm="RealmUsersRoles"
Content-Type: text/html;charset=UTF-8
Content-Length: 71
Set-Cookie: 5d1905427a4600d0082930fc85649db9=21c9d5dd6cefe390218571514e4c1701; path=/; HttpOnly
<html><head><title>Error</title></head><body>Unauthorized</body></html>
Just to let you know...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.