Skip to content

Instantly share code, notes, and snippets.

The New Unix Philosophy
1. Do one thing and never try anything else
2. Everything is an unreadable shell script
3. Make every program a coffee filter
4. Threats are better than cleverness
5. Support diversity (add lots of options)
6. Bugs with many eyeballs make great pets
7. Fail noisily (troll the internet)
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
./bin/standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /Users/hbons/AeroGear/jboss-as-7.1.1.Final
JAVA: java
JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml
mvn build
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] AeroGear UnifiedPush Server
[INFO] UnifiedPush Model Layer
[INFO] UnifiedPush Server Model API
[INFO] UnifiedPush Server Model JPA implementation
[INFO] UnifiedPush Service Layer
mvn build
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] AeroGear UnifiedPush Server
[INFO] UnifiedPush Model Layer
[INFO] UnifiedPush Server Model API
[INFO] UnifiedPush Server Model JPA implementation
[INFO] UnifiedPush Service Layer
mvn build
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.jboss.aerogear.unifiedpush:unifiedpush-parent:0.11.0-SNAPSHOT (/Users/hbons/AeroGear/aerogear-unifiedpush-server/pom.xml) has 1 error
[ERROR] Child module /Users/hbons/AeroGear/aerogear-unifiedpush-server/server/pom.xml of /Users/hbons/AeroGear/aerogear-unifiedpush-server/pom.xml does not exist
[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]
*.class
# Package Files #
*.jar
*.war
*.ear
# Build targets #
target/
/target
12:22:11,040 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016005: Starting Services for CDI deployment: ag-push.war
12:22:11,094 INFO [org.jboss.weld.Version] (MSC service thread 1-3) WELD-000900 1.1.5 (AS71)
12:22:11,411 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "unifiedpush-h2-ds.xml" was rolled back with no failure message
12:22:11,413 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "auth-server.war" was rolled back with no failure message
12:22:11,415 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "ag-push.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"ag-push.war#unifiedpush-default\"jboss.naming.context.java.jboss.datasources.UnifiedPushDSMissing[jboss.persistenceunit.\"ag-push.war#unifiedpush-default\"jboss.naming.context.java.jboss.datasources.UnifiedPushDS]"]}
[ERROR] Failed to execute goal on project unifiedpush-auth-server: Could not resolve dependencies for project org.jboss.aerogear.unifiedpush:unifiedpush-auth-server:war:0.11.0-SNAPSHOT: The following artifacts could not be resolved: org.keycloak:keycloak-core:jar:1.0-beta-1-20150523, org.keycloak:keycloak-core-jaxrs:jar:1.0-beta-1-20150523, org.keycloak:keycloak-services:jar:1.0-beta-1-20150523, org.keycloak:keycloak-model-api:jar:1.0-beta-1-20150523, org.keycloak:keycloak-model-jpa:jar:1.0-beta-1-20150523, org.keycloak:keycloak-audit-api:jar:1.0-beta-1-20150523, org.keycloak:keycloak-audit-jpa:jar:1.0-beta-1-20150523, org.keycloak:keycloak-audit-jboss-logging:jar:1.0-beta-1-20150523, org.keycloak:keycloak-social-core:jar:1.0-beta-1-20150523, org.keycloak:keycloak-forms-common-freemarker:jar:1.0-beta-1-20150523, org.keycloak:keycloak-forms-common-themes:jar:1.0-beta-1-20150523, org.keycloak:keycloak-account-api:jar:1.0-beta-1-20150523, org.keycloak:keycloak-account-freemarker:jar:1.0-beta-1-20150523, org.keyc
mvn --version
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 13:51:28+0000)
Maven home: /usr/local/Cellar/maven/3.0.5/libexec
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.1", arch: "x86_64", family: "mac"