This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Describes Maven Resolution Element. | |
* | |
* Contract encapsulates Maven dependency as known from POM files. | |
* | |
*/ | |
public interface MavenDependency extends ResolutionElement<MavenDependency> | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A filter which accept all dependencies. This is the default behavior is no | |
* other filter is specified. | |
*/ | |
public enum AcceptAllFilter implements MavenResolutionFilter | |
{ | |
/* | |
* (non-Javadoc) | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<!-- Parent --> | |
<parent> | |
<groupId>org.jboss.shrinkwrap.resolver</groupId> | |
<artifactId>shrinkwrap-resolver-parent</artifactId> | |
<version>1.1.0-alpha-1-SNAPSHOT</version> | |
<relativePath>../pom.xml</relativePath> | |
</parent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jboss.saf; | |
import java.io.Serializable; | |
import java.util.List; | |
import javax.persistence.EntityManager; | |
import javax.persistence.PersistenceContext; | |
import javax.persistence.criteria.CriteriaQuery; | |
public class EntityInstanceHandler implements Serializable { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14:23:51,044 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-2) Error Rendering View[/compsc/commons/zion-datatable.xhtml]: java.lang.NullPointerException | |
at br.com.softplan.pd.zion.faces.components.datable.ZionDataModel.load(ZionDataModel.java:61) [zion-faces-0.6-SNAPSHOT.jar:] | |
at org.primefaces.component.datatable.DataTable.loadLazyData(DataTable.java:692) [primefaces-3.0.M3.jar:] | |
at org.primefaces.component.datatable.DataTableRenderer.encodeTbody(DataTableRenderer.java:568) [primefaces-3.0.M3.jar:] | |
at org.primefaces.component.datatable.DataTableRenderer.encodeRegularTable(DataTableRenderer.java:227) [primefaces-3.0.M3.jar:] | |
at org.primefaces.component.datatable.DataTableRenderer.encodeMarkup(DataTableRenderer.java:205) [primefaces-3.0.M3.jar:] | |
at org.primefaces.component.datatable.DataTableRenderer.encodeEnd(DataTableRenderer.java:95) [primefaces-3.0.M3.jar:] | |
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:883) [jboss-jsf-api_2.0_spec-1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It seems that it tries to load a datasource even when I'm not working with a persistence Test. Is that a way to workaround that? | |
org.jboss.arquillian.persistence.exception.DataSourceNotDefinedException: Data source not defined! | |
at org.jboss.arquillian.persistence.metadata.MetadataProvider.isPersistenceFeatureEnabled(MetadataProvider.java:52) | |
at org.jboss.arquillian.persistence.PersistenceTestHandler.beforeTest(PersistenceTestHandler.java:84) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm trying to achieve something that might be impossible, but before concluding that, I'd like to ask you, CDI gurus! | |
I have the following class: | |
public class Foo<T> { | |
public TypedQuery<T> getQuery(){ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SqlQueryProducer { | |
@Inject | |
BeanManager beanManager; | |
@Produces | |
public <T> SqlQuery<T> producesSqlQuery(@New SqlQueryExecutor sqlQueryExecutor, InjectionPoint ip) { | |
@SuppressWarnings("unchecked") | |
Class<T> clazz = (Class<T>) ClassUtils.getParameterizedTypeFromAnnotated(ip.getAnnotated()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ConversationScoped | |
public class EntityManagerProducer implements Serializable { | |
private static final long serialVersionUID = -8275317247692627840L; | |
@PersistenceUnit | |
private EntityManagerFactory entityManagerFactory; | |
@Produces | |
@ConversationScoped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: reveal | |
title: "JavaOne 2012 | Testing JSF applications with Arquillian and Selenium" | |
--- | |
%section | |
%img.splash{:src => "assets/jbosscommunity/splash_text.png"} | |
%section | |
%h1 Testing JSF applications | |
%h2.capitalize with Arquillian and Selenium |
OlderNewer