Skip to content

Instantly share code, notes, and snippets.

@lfryc
lfryc / gist:aae879ceb5534292e150
Last active May 11, 2020 18:51
Switch WildFly to debug mode in Runtime using jboss-cli
# switch the log level to DEBUG on console
{wildfly}/bin/jboss-cli.sh --connect
[standalone@localhost:9990 /] /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=DEBUG)
[standalone@localhost:9990 /] /subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=DEBUG)
# switch it back to whatever it was initial configuration (here it is INFO)
[standalone@localhost:9990 /] /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=INFO)
[standalone@localhost:9990 /] /subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=INFO)
@lfryc
lfryc / create-tunnel-and-unpack-files.sh
Last active April 15, 2020 07:12
Using ncat (netcat) from nmap package to transfer files via SSL-enabled tunnel
ncat -lp 12345 --ssl | base 64 -d | tar xz
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 8.x
#author :Dmitriy Sukharev
#date :20131222
#usage :/bin/bash wildfly-install.sh
WILDFLY_VERSION=8.0.0.CR1
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION
WILDFLY_ARCHIVE_NAME=$WILDFLY_FILENAME.tar.gz
/**
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
/**
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
@lfryc
lfryc / gist:7892521
Created December 10, 2013 15:33
jboss-javaee6-webapp fails on WildFly 8.0.0.Beta2-SNAPSHOT Caused by: javax.faces.application.ViewExpiredException: viewId:/index.jsf - View /index.jsf could not be restored.
16:31:58,758 DEBUG [org.jboss.weld.Conversation] (default task-4) WELD-000327: Resuming conversation with id null
16:31:58,761 FINE [javax.enterprise.resource.webcontainer.jsf.application] (default task-4) servletPath /index.jsf
16:31:58,761 FINE [javax.enterprise.resource.webcontainer.jsf.application] (default task-4) pathInfo null
16:31:58,761 FINE [javax.enterprise.resource.webcontainer.jsf.application] (default task-4) URL pattern of the FacesServlet executing the current request .jsf
16:31:58,762 FINE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (default task-4) execute(com.sun.faces.context.FacesContextImpl@5849fd1d)
16:31:58,762 FINE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (default task-4) Entering RestoreViewPhase
16:32:06,149 FINE [javax.enterprise.resource.webcontainer.jsf.application] (default task-4) URL pattern of the FacesServlet executing the current request .jsf
16:32:06,149 FINE [javax.enterprise.resource.webcontainer.jsf.application] (default task-4) Unable to
@lfryc
lfryc / richwidgets-release-process.adoc
Last active December 29, 2015 05:49
Draft of RichWidgets release process

Prerequisites

Environment

Node

0.10.21

Notify Development Team

public class ArquillianExtension implements LoadableExtension {
@Override
public void register(ExtensionBuilder builder) {
builder.service(BrowserCapabilities.class, PhantomJSIgnoringSSL.class);
}
public static class PhantomJSIgnoringSSL implements BrowserCapabilities {
@Override
/**
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
@lfryc
lfryc / $.java
Last active December 22, 2015 06:08
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@ImplementsLocationStrategy(ByJQuery.JQueryLocationStrategy.class)
public @interface $ {
String value();
}