Skip to content

Instantly share code, notes, and snippets.

View arun-gupta's full-sized avatar

Arun Gupta arun-gupta

View GitHub Profile
Unable to clone your repository. Called Git with: git clone
ssh://52b7a816500446d63e0003ca@mywildfly-milestogo.rhcloud.com/~/git/mywildfly.git/ "mywildfly"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: Your application was created successfully but had problems during
configuration. Below is a list of the issues and steps you can
take to complete the configuration of your application.
Application URL: http://mywildfly-milestogo.rhcloud.com/
@arun-gupta
arun-gupta / gist:8417713
Last active January 3, 2016 05:39
Deploy using curl
hash=`curl -X POST -F "file=@javaee7-1.0-SNAPSHOT.war;Content-Type=application/octet-stream" --digest http://u1:p1@localhost:9990/management/add-content | sed -e "s/.*\"BYTES_VALUE\".*\:.*\"\(.*\)\".*/\1/g"`
echo "The uploaded hash is: $hash."
content='{"content":[{"hash" : {"BYTES_VALUE":"'$hash'"}}],
"address"[{"deployment":"foo.jar"}],
"operation":"add",
"enabled":"true"}'
result=`curl -S -X POST -d $content --digest http://localhost:9990/management`
@arun-gupta
arun-gupta / gist:9850720
Created March 29, 2014 08:27
Regular expression constraint
[Book.java]$ constraint-add --onProperty isbn --constraint Pattern --regexp ^\d{9}[\d|X]$
***ERROR*** org.eclipse.jdt.core.dom.MarkerAnnotation cannot be cast to org.eclipse.jdt.core.dom.NormalAnnotation
@arun-gupta
arun-gupta / gist:9984573
Created April 4, 2014 22:48
Bukkit-Javadoc error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:javadoc (default-cli) on project bukkit: An error has occurred in JavaDocs report generation:
[ERROR] Exit code: 1 - /Users/arungupta/workspaces/Bukkit-JavaDoc/src/main/java/org/bukkit/BanEntry.java:30: error: no summary or caption for table
[ERROR] * </table>
[ERROR] ^
[ERROR] /Users/arungupta/workspaces/Bukkit-JavaDoc/src/main/java/org/bukkit/Bukkit.java:73: warning: no @return
[ERROR] public static String getName() {
[ERROR] ^
[ERROR] /Users/arungupta/workspaces/Bukkit-JavaDoc/src/main/java/org/bukkit/Bukkit.java:80: warning: no @return
[ERROR] public static String getVersion() {
[ERROR] ^
pi@raspberrypi ~/wildfly-8.1.0.CR2 $ ./bin/standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/pi/wildfly-8.1.0.CR2
JAVA: java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
@arun-gupta
arun-gupta / gist:77e8ea3406b0d2a17428
Created May 22, 2014 15:49
Network configuration for Raspi
#/etc/nework/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
@arun-gupta
arun-gupta / gist:63617df251782f04fdfb
Last active August 29, 2015 14:05
Liberty Profile and JDK 8
[ERROR ] CWWKZ0002E: An exception occurred while starting the application metadata-complete. The exception message was: CWWKC2262E: The server is unable to process the 3.1 version and the http://xmlns.jcp.org/xml/ns/javaee namespace in the /WEB-INF/web.xml deployment descriptor on line 7.
[AUDIT ] CWWKE0055I: Server shutdown requested on Wednesday, August 20, 2014 at 12:55 PM. The server test is shutting down.
[AUDIT ] CWWKE0036I: The server test stopped after 1 minutes, 6.519 seconds.
@arun-gupta
arun-gupta / Red Hat Maven Repository settings.xml
Last active August 29, 2015 14:05
Red Hat Maven Repository settings.xml
<?xml version=”1.0″ encoding=”UTF-8″ standalone=”no”?>
<settings xmlns=”http://maven.apache.org/SETTINGS/1.1.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd”>
<profiles>
<profile>
<id>redhat-techpreview-all-repository</id>
<repositories>
<repository>
<id>redhat-techpreview-all-repository</id>
<name>Red Hat Tech Preview repository (all)</name>
<url>http://maven.repository.redhat.com/techpreview/all/</url>
@arun-gupta
arun-gupta / gist:b26c3424ef662dbec871
Created August 22, 2014 22:25
Compiling PCRE 8.33 Output
pcre-8.33> ./configure --prefix=/usr/local/pcre
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
@arun-gupta
arun-gupta / gist:c0f8160a68a83e1c0acd
Last active August 29, 2015 14:05
Apache HTTPD 2.4 Configuration Output
httpd-2.4.10> ./configure --prefix=/usr/local/apache2 --with-pcre=/usr/local/pcre
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... x86_64-apple-darwin13.3.0
checking host system type... x86_64-apple-darwin13.3.0
checking target system type... x86_64-apple-darwin13.3.0
configure:
configure: Configuring Apache Portable Runtime library...