Skip to content

Instantly share code, notes, and snippets.

View gilbertoca's full-sized avatar

Gilberto Caetano de Andrade gilbertoca

View GitHub Profile
<plugin>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-embedded-maven-plugin</artifactId>
<version>${tomee-embedded-maven-plugin.version}</version>
<dependencies>
<dependency>
<groupId>org.apache.tomee</groupId>
<artifactId>openejb-core</artifactId>
<version>${tomee-embedded-maven-plugin.version}</version>
<exclusions>
@gilbertoca
gilbertoca / gitblit_on_opensuse
Last active July 13, 2016 15:13
Manual install of the GitBlit project on openSUSE
#folder structure
#GITBLIT_PATH=/opt/gitblit/app/[VERSION]
#GITBLIT_BASE_FOLDER=/opt/gitblit/data
#GITBLIT_HTTP_PORT=0
#GITBLIT_HTTPS_PORT=8443
#GITBLIT_LOG=/opt/gitblit/app/[VERSION]/gitblit.log
#run as gitblit user
groupadd gitblit
useradd -g gitblit -d /opt/gitblit gitblit
@gilbertoca
gilbertoca / payara-micro.log
Created July 11, 2016 14:28
payara-micro-4.1.1.162 - [DEP0004:Deployment failed - data-source]
[11:25] gilberto.andrade@BEM-INF007:gace (ticket/33 * u+11) $ java -jar ~/bin/payara-micro-4.1.1.162.jar --deploy target/gace.war
[2016-07-11T11:25:55.332-0300] [Payara Micro 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1468247155332] [levelValue: 800] Grizzly Framework 2.3.24 started in: 43ms - bound to [/0.0.0.0:8080]
[2016-07-11T11:25:55.377-0300] [Payara Micro 4.1] [INFO] [NCLS-CORE-00058] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1468247155377] [levelValue: 800] Network listener https-listener on port 8443 disabled per domain.xml
[2016-07-11T11:25:55.555-0300] [Payara Micro 4.1] [INFO] [SEC-SVCS-00100] [javax.enterprise.security.services] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1468247155555] [levelValue: 800] Authorization Service has successfully initialized.
[2016-07-11T11:25:55.749-0300] [Payara Micro 4.1] [INFO] [] [com.hazelcast.instance.DefaultAddressPicker] [tid: _ThreadID=1 _Thread
@gilbertoca
gilbertoca / wildfly-swarm-plugin:1.0.0.CR2.xml
Created July 1, 2016 15:23
wildfly-swarm-plugin:1.0.0.CR2 - [pom.xml]
<plugin>
<groupId>org.wildfly.swarm</groupId>
<artifactId>wildfly-swarm-plugin</artifactId>
<version>${wildfly-swarm-plugin.version}</version>
<executions>
<execution>
<id>package</id>
<phase>none</phase>
</execution>
</executions>
@gilbertoca
gilbertoca / wildfly-swarm-plugin:1.0.0.CR2.log
Created July 1, 2016 15:22
wildfly-swarm-plugin:1.0.0.CR2 - [SHRINKWRAP-93]
12:21] gilberto.andrade@BEM-INF007:jsf-sandbox (master * u=) $ java -jar target/jsf-sandbox-swarm.jar
[WARN] logging not available, logging will not be configured
jul 01, 2016 12:21:48 PM org.jboss.msc.service.ServiceContainerImpl <clinit>
INFO: JBoss MSC version 1.2.6.Final
jul 01, 2016 12:21:48 PM org.jboss.as.server.ApplicationServerService start
INFO: WFLYSRV0049: WildFly Core 2.0.10.Final "Kenny" starting
jul 01, 2016 12:21:49 PM org.jboss.as.server.BootstrapListener done
INFO: WFLYSRV0025: WildFly Core 2.0.10.Final "Kenny" started in 1058ms - Started 29 of 33 services (4 services are lazy, passive or on-demand)
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
@gilbertoca
gilbertoca / AuthorizationBean.java
Created July 1, 2016 13:25
payara-micro-4.1.1.162 - [AuthorizationBean.java]
package br.gov.to.bem.security.view;
import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
/**
*
@gilbertoca
gilbertoca / payara-micro.log
Last active July 1, 2016 13:12
payara-micro-4.1.1.162 - [SEVERE and java.io.NotSerializableException]
[2016-07-01T09:54:56.010-0300] [Payara Micro 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1467377696010] [levelValue: 800] Grizzly Framework 2.3.24 started in: 34ms - bound to [/0.0.0.0:8080]
[2016-07-01T09:54:56.049-0300] [Payara Micro 4.1] [INFO] [NCLS-CORE-00058] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1467377696049] [levelValue: 800] Network listener https-listener on port 8443 disabled per domain.xml
[2016-07-01T09:54:56.215-0300] [Payara Micro 4.1] [INFO] [SEC-SVCS-00100] [javax.enterprise.security.services] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1467377696215] [levelValue: 800] Authorization Service has successfully initialized.
[2016-07-01T09:54:56.322-0300] [Payara Micro 4.1] [INFO] [] [com.hazelcast.instance.DefaultAddressPicker] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1467377696322] [levelValue: 800] [LOCAL] [development] [3.6.2] Prefer IPv4 stack is true.
[2016-07-01T09:5
@gilbertoca
gilbertoca / web.xml
Last active July 1, 2016 13:11
payara-micro-4.1.1.162 - [data-source definition in the web file]
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<!-- servlet mapping do JSF -->
<servlet>
<servlet-name>FacesServlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
@gilbertoca
gilbertoca / gist:5ed86f72cfe17b39843330187ad287b4
Created May 10, 2016 19:36 — forked from jagregory/gist:710671
How to move to a fork after cloning
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear!
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
* Off the top of my head *
1. Fork their repo on Github
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it
git remote add my-fork git@github...my-fork.git