Skip to content

Instantly share code, notes, and snippets.

14:56:22,798 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: javax.faces.view.facelets.FaceletException: Could not instantiate feature[compiler.ExpressionFactory]: com.sun.el.ExpressionFactoryImpl
at com.sun.faces.facelets.compiler.Compiler.featureInstance(Compiler.java:177) [:2.0.2-FCS]
at com.sun.faces.facelets.compiler.Compiler.createExpressionFactory(Compiler.java:166) [:2.0.2-FCS]
at com.sun.faces.facelets.impl.DefaultFaceletFactory.createMetadataFacelet(DefaultFaceletFactory.java:354) [:2.0.2-FCS]
at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:231) [:2.0.2-FCS]
at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:164) [:2.0.2-FCS]
at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:102) [:2.0.2-FCS]
at com.sun.faces.lifecycle.RestoreViewPhase.execute(Rest
2010-09-22 10:54:10,984 INFO [org.apache.coyote.http11.Http11Protocol] (Thread-2) Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
2010-09-22 10:54:10,988 INFO [org.apache.coyote.ajp.AjpProtocol] (Thread-2) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
2010-09-22 10:54:10,989 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-2) JBossAS [6.0.0.SNAPSHOT "Neo"] Started in 31s:865ms
2010-09-22 10:56:49,520 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (http-127.0.0.1-8080-1) deploy, ctxPath=/jmx-console
2010-09-22 10:56:49,740 INFO [org.jboss.deployment.MainDeployer] (http-127.0.0.1-8080-1) deploy, url=file:/home/pmuir/workspace/weld/core/examples/jsf/numberguess/target/weld-numberguess.war
2010-09-22 10:56:51,167 INFO [org.jboss.weld.Version] (http-127.0.0.1-8080-1) WELD-000900 1.1.0 (2010-09-21 12:07)
2010-09-22 10:56:52,011 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (http-127.0.0.1-8080-1) deploy, ctxPath=/weld-numberguess
2010-09-22 10:56:52,352 INFO
public class RequestLifeCycleDestroyer implements EventHandler<Event> {
public void callback(Context context, Event event) throws Exception
{
WeldManager manager = context.get(WeldManager.class);
BoundRequestContext requestContext = manager.instance().select(BoundRequestContext.class).get();
CDIRequestMap map = context.get(CDIRequestMap.class);
if (map != null)
{

If the conversation associated with the current JSF request is in the long-running state at the end of a JSF request, it is not destroyed. Instead, it may be propagated to other requests according to the following rules:

  • The long-running conversation context associated with a request that renders a JSF view is automatically propagated to any faces request (JSF form submission) that originates from that rendered page.
  • The long-running conversation context associated with a request that results in a JSF redirect (a redirect resulting from a navigation rule or JSF NavigationHandler) is automatically propagated to the resulting non-faces request, and to any other subsequent request to the same URL. This is accomplished via use of a GET request parameter named cid con- taining the unique identifier of the conversation.
  • The long-running conversation associated with a request may be propagated to any non-faces request via use of a GET request parameter named cid containing the unique identifier of the convers
SEVERE: Exception sending context initialized event to listener instance of class org.jboss.weld.environment.servlet.Listener
org.jboss.weld.exceptions.IllegalStateException: WELD-000117 Required service org.jboss.weld.resources.spi.ResourceLoader has not been specified
at org.jboss.weld.bootstrap.WeldBootstrap.verifyServices(WeldBootstrap.java:475)
at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:163)
at org.jboss.weld.bootstrap.WeldBootstrap$DeploymentVisitor.visit(WeldBootstrap.java:153)
at org.jboss.weld.bootstrap.WeldBootstrap.startContainer(WeldBootstrap.java:278)
at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:126)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
@Inject @Gmail
private Mail mail;
....
// uncomment line if you want the instance to be retained in application scope
// @ApplicationScoped
public class ApplicationInitializer
{
public void onStartup(@Observes @Initialized Object ctx)
{
System.out.println("Initialized application with context" + ctx);
}
}
-------------------------------------------------------------------------------
Test set: TestSuite
-------------------------------------------------------------------------------
Tests run: 841, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 2,583.714 sec <<< FAILURE!
testInjectionIntoJSFManagedBean(org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest) Time elapsed: 0.376 sec <<< FAILURE!
java.lang.AssertionError
at org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest.testInjectionIntoJSFManagedBean(InjectionIntoNonContextualComponentTest.java:163)
testInjectionIntoTagHandler(org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.InjectionIntoNonContextualComponentTest) Time elapsed: 0.172 sec <<< FAILURE!
java.lang.AssertionError
java.lang.NullPointerException
at org.jboss.arquillian.impl.DeployableTestBuilder.build(DeployableTestBuilder.java:88)
at org.jboss.arquillian.impl.DeployableTestBuilder.build(DeployableTestBuilder.java:77)
at org.jboss.arquillian.junit.Arquillian.<init>(Arquillian.java:85)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:testCompile (default-testCompile) on project weld-core-test-arquillian: Compilation failure: Compilation failure:
/users/pmuir/workspace/weld/core/tests-arquillian/src/test/java/org/jboss/weld/tests/international/Producer.java:[27,23] illegal character: \65533
/users/pmuir/workspace/weld/core/tests-arquillian/src/test/java/org/jboss/weld/tests/international/Producer.java:[27,27] illegal character: \65533
/users/pmuir/workspace/weld/core/tests-arquillian/src/test/java/org/jboss/weld/tests/international/Producer.java:[27,29] illegal character: \65533
/users/pmuir/workspace/weld/core/tests-arquillian/src/test/java/org/jboss/weld/tests/international/Producer.java:[27,30] illegal start of type
/users/pmuir/workspace/weld/core/tests-arquillian/src/test/java/org/jboss/weld/tests/international/Producer.java:[27,31] <identifier> expected