Skip to content

Instantly share code, notes, and snippets.

Commands for frequent use:
./container/openejb-core/src/test/java/org/apache/openejb/core/stateful/StatefulSecurityPermissionsTest.java: @RolesAllowed({"Jazz"})
./container/openejb-core/src/test/java/org/apache/openejb/core/stateful/StatefulSecurityPermissionsTest.java- public String color() {
--
./container/openejb-core/src/test/java/org/apache/openejb/core/stateful/StatefulSecurityPermissionsTest.java: @RolesAllowed({"Rock"})
./container/openejb-core/src/test/java/org/apache/openejb/core/stateful/StatefulSecurityPermissionsTest.java- public String color(String s) {
--
./container/openejb-core/src/test/java/org/apache/openejb/core/stateful/StatefulSecurityPermissionsTest.java: @RolesAllowed({"Reggae"})
./container/openejb-core/src/test/java/org/apache/openejb/core/stateful/StatefulSecurityPermissionsTest.java- public String color(Integer i) {
./container/openejb-core/src/test/java/org/apache/openejb/core/security/SecurityTest.java: @RolesAllowed({"committer"})
./container/openejb-core/s
@stratwine
stratwine / gist:3405195
Created August 20, 2012 15:35
descriptors
FILE WEB-INF META-INF
beans.xml valid invalid
ejb-jar valid invalid
persistence.xml
openejb-jar.xml
env-entries.properties
ra.xml
application.xml
application-client.xml
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
Aug 8, 2012 9:54:47 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.IllegalStateException: No Factories configured for this Application. This happens if the faces-initialization does not work at all - make sure that you properly include all configuration settings necessary for a basic faces application and that all the necessary libs are included. Also check the logging output of your web application and your container for any exceptions!
If you did that and find nothing, the mistake might be due to the fact that you use some special web-containers which do not support registering context-listeners via TLD files and a context listener is not setup in your web.xml.
A typical config looks like this;
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
at javax.faces.FactoryFinder._getFactory(FactoryFinder.java:286)
Aug 8, 2012 9:54:48 PM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application "I:\tomeeopenejb\tomee\apache-tomee-webprofile-1.1.
0-SNAPSHOT\webapps\host-manager" loaded.
Aug 8, 2012 9:54:48 PM org.apache.openejb.assembler.classic.Assembler createAppl
ication
INFO: Assembling app: I:\tomeeopenejb\tomee\apache-tomee-webprofile-1.1.0-SNAPSH
OT\webapps\host-manager
Aug 8, 2012 9:54:48 PM org.apache.openejb.cdi.CdiBuilder initSingleton
INFO: Existing thread singleton service in SystemInstance() org.apache.openejb.c
di.ThreadSingletonServiceImpl@56a75737
I:\tomeeopenejb\tomee\apache-tomee-webprofile-1.1.0-SNAPSHOT\bin\catalina.bat run
Using CATALINA_BASE: "C:\Users\Dwarak\.IntelliJIdea11\system\tomcat\Unnamed_Default_(Template)_Project"
Using CATALINA_HOME: "I:\tomeeopenejb\tomee\apache-tomee-webprofile-1.1.0-SNAPSHOT"
Using CATALINA_TMPDIR: "I:\tomeeopenejb\tomee\apache-tomee-webprofile-1.1.0-SNAPSHOT\temp"
Using JRE_HOME: "C:\glassfish3\jdk"
Using CLASSPATH: "I:\tomeeopenejb\tomee\apache-tomee-webprofile-1.1.0-SNAPSHOT\bin\bootstrap.jar;I:\tomeeopenejb\tomee\apache-tomee-webprofile-1.1.0-SNAPSHOT\bin\tomcat-juli.jar"
Aug 8, 2012 9:22:15 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\glassfish3\jdk\bin;.;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1.2\bin\..\.\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:
I:\tomeeopenejb\tomee\apache-tomcat-7.0.29\bin\catalina.bat run
Aug 8, 2012 9:12:41 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\glassfish3\jdk\bin;.;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 11.1.2\bin\..\.\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%FREEMIND2WIKI_HOME%\bin;C:\oracle\product\10.2.0\db_1\bin;%JBOSS_HOME%\bin;C:\glassfish3\jdk\bin;C:\Sun\SDK\bin;.;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseHg\;C:\Program Files\Perforce;C:\Program Files\SlikSvn\bin\;C:\Program Files (x86)\Windows Live\Shared;G:\curl;C:\glassfish3\jdk;.;C:\Pro
class foo
{
}
class hoo
{
}
Aug 8, 2012 4:31:48 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\glassfish3\jdk\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%FREEMIND2WIKI_HOME%\bin;C:\oracle\product\10.2.0\db_1\bin;%JBOSS_HOME%\bin;C:\glassfish3\jdk\bin;C:\Sun\SDK\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseHg\;C:\Program Files\Perforce;C:\Program Files\SlikSvn\bin\;C:\Program Files (x86)\Windows Live\Shared;G:\curl;C:\glassfish3\jdk;.;C:\Programming Essentials\Distribution\gradle-1.0-milestone-1-all\gradle-1.0-milestone-1\bin;C:\ProgrammingEssentials\Distribution\apache