Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1378

Quickstart wicket-ear throws exception for injecting ContactDao in ListContacts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.Alpha3
    • 8.0.0.Alpha1
    • CDI / Weld
    • None
    • Hide

      1) Download the quickstart zip from http://download.jboss.org/wildfly/8.0.0.Alpha1/quickstart-8.0.0.Alpha1.zip
      2) Modify ListContacts.java in the war of wicket-ear as follows:
      Remove @Resource(name = "welcomeMessage")
      Change private String welcome; to private String welcome = "Test";
      3) Start the WildFly 8.0.0.Alpha1 Server
      4) Deploy the wicket-ear to the server
      5) Launch the application on the browser
      6) The application returned 500 - Internal Server Error
      7) Observe in server log the exceptions thrown
      Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-000070 Simple bean [EnhancedAnnotatedTypeImpl] class org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts$1 cannot be a non-static inner class
      at org.jboss.weld.injection.producer.BasicInjectionTarget.checkType(BasicInjectionTarget.java:81) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.injection.producer.BasicInjectionTarget.<init>(BasicInjectionTarget.java:69) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.injection.producer.BeanInjectionTarget.<init>(BeanInjectionTarget.java:52) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:95) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:78) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      ... 69 more

      Expected:
      No exceptions thrown

      Show
      1) Download the quickstart zip from http://download.jboss.org/wildfly/8.0.0.Alpha1/quickstart-8.0.0.Alpha1.zip 2) Modify ListContacts.java in the war of wicket-ear as follows: Remove @Resource(name = "welcomeMessage") Change private String welcome; to private String welcome = "Test"; 3) Start the WildFly 8.0.0.Alpha1 Server 4) Deploy the wicket-ear to the server 5) Launch the application on the browser 6) The application returned 500 - Internal Server Error 7) Observe in server log the exceptions thrown Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-000070 Simple bean [EnhancedAnnotatedTypeImpl] class org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts$1 cannot be a non-static inner class at org.jboss.weld.injection.producer.BasicInjectionTarget.checkType(BasicInjectionTarget.java:81) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57] at org.jboss.weld.injection.producer.BasicInjectionTarget.<init>(BasicInjectionTarget.java:69) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57] at org.jboss.weld.injection.producer.BeanInjectionTarget.<init>(BeanInjectionTarget.java:52) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57] at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:95) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57] at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:78) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57] ... 69 more Expected: No exceptions thrown

    Description

      The quickstart wicket-ear throws exception

      org.jboss.weld.exceptions.DefinitionException: WELD-000070 Simple bean [EnhancedAnnotatedTypeImpl] class org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts$1 cannot be a non-static inner class

      on trying to inject ContactDao in ListContacts.

      Expected: no exceptions thrown

      Works on: JBossAS 7.1.1.Final

      Log:
      23:21:20,223 INFO [org.jboss.modules] (main) JBoss Modules version 1.2.0.Final
      23:21:20,378 INFO [org.jboss.msc] (main) JBoss MSC version 1.1.2.Final
      23:21:20,422 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.0.0.Alpha1 "WildFly" starting
      23:21:21,024 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found jboss-as-wicket-ear-ear.ear in deployment directory. To trigger deployment create a file called jboss-as-wicket-ear-ear.ear.dodeploy
      23:21:21,038 INFO [org.xnio] (MSC service thread 1-6) XNIO Version 3.1.0.CR3
      23:21:21,040 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
      23:21:21,042 INFO [org.xnio.nio] (MSC service thread 1-6) XNIO NIO Implementation Version 3.1.0.CR3
      23:21:21,048 INFO [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version 4.0.0.Beta1
      23:21:21,070 INFO [org.jboss.as.security] (ServerService Thread Pool – 44) JBAS013171: Activating Security Subsystem
      23:21:21,071 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool – 31) JBAS010280: Activating Infinispan subsystem.
      23:21:21,077 INFO [org.jboss.as.webservices] (ServerService Thread Pool – 48) JBAS015537: Activating WebServices Extension
      23:21:21,079 INFO [org.jboss.as.jsf] (ServerService Thread Pool – 37) JBAS012605: Activated the following JSF Implementations: [main]
      23:21:21,080 INFO [org.jboss.as.naming] (ServerService Thread Pool – 39) JBAS011800: Activating Naming Subsystem
      23:21:21,099 INFO [org.jboss.as.security] (MSC service thread 1-16) JBAS013170: Current PicketBox version=4.0.17.Final
      23:21:21,109 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool – 47) JBAS017502: Undertow 1.0.0.Alpha15 starting
      23:21:21,111 INFO [org.wildfly.extension.undertow] (MSC service thread 1-13) JBAS017502: Undertow 1.0.0.Alpha15 starting
      23:21:21,114 INFO [org.jboss.as.connector.logging] (MSC service thread 1-3) JBAS010408: Starting JCA Subsystem (IronJacamar 1.0.17.Final)
      23:21:21,131 INFO [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
      23:21:21,133 INFO [org.jboss.as.mail.extension] (MSC service thread 1-7) JBAS015400: Bound mail session [java:jboss/mail/Default]
      23:21:21,156 INFO [org.jboss.ws.common.management] (MSC service thread 1-9) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.0.Beta1
      23:21:21,161 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool – 26) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
      23:21:21,166 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-10) JBAS010417: Started Driver service with driver-name = h2
      23:21:21,224 INFO [org.wildfly.extension.undertow] (MSC service thread 1-9) Starting server server service: service jboss.undertow.server.default-server
      23:21:21,226 INFO [org.wildfly.extension.undertow] (MSC service thread 1-9) Starting host default-host
      23:21:21,230 INFO [io.undertow] (ServerService Thread Pool – 47) Creating file handler for path C:\Users\Benny\wildfly-8.0.0.Alpha1/welcome-content
      23:21:21,234 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) JBAS017525: Started http handler io.undertow.server.handlers.resource.ResourceHandler@52ef1280.
      23:21:21,235 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) registering handler org.jboss.msc.value.InjectedValue@5153cdf8 under path '/'
      23:21:21,321 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-13) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\Benny\wildfly-8.0.0.Alpha1\standalone\deployments
      23:21:21,324 INFO [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015876: Starting deployment of "jboss-as-wicket-ear-ear.ear" (runtime-name: "jboss-as-wicket-ear-ear.ear")
      23:21:21,359 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on 127.0.0.1:4447
      23:21:21,362 INFO [org.wildfly.extension.undertow] (MSC service thread 1-14) JBAS017519: Undertow HTTP listener default listening on localhost/127.0.0.1:8080
      23:21:21,362 INFO [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015876: Starting deployment of "null" (runtime-name: "jboss-as-wicket-ear-ejb.jar")
      23:21:21,362 INFO [org.jboss.as.server.deployment] (MSC service thread 1-12) JBAS015876: Starting deployment of "null" (runtime-name: "jboss-as-wicket-ear-war.war")
      23:21:21,447 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-14) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
      23:21:21,692 INFO [org.jboss.as.jpa] (MSC service thread 1-5) JBAS011401: Read persistence.xml for primary
      23:21:21,726 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/WicketEarQuickstartDS]
      23:21:21,774 INFO [org.jboss.weld.deployer] (MSC service thread 1-9) JBAS016002: Processing weld deployment jboss-as-wicket-ear-ear.ear
      23:21:21,807 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016002: Processing weld deployment jboss-as-wicket-ear-ejb.jar
      23:21:21,807 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016002: Processing weld deployment jboss-as-wicket-ear-war.war
      23:21:21,809 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-4) JNDI bindings for session bean named ContactDaoBean in deployment unit subdeployment "jboss-as-wicket-ear-ejb.jar" of deployment "jboss-as-wicket-ear-ear.ear" are as follows:

      java:global/jboss-as-wicket-ear-ear/jboss-as-wicket-ear-ejb/ContactDaoBean!org.jboss.as.quickstarts.wicketEar.ejbjar.dao.ContactDao
      java:app/jboss-as-wicket-ear-ejb/ContactDaoBean!org.jboss.as.quickstarts.wicketEar.ejbjar.dao.ContactDao
      java:module/ContactDaoBean!org.jboss.as.quickstarts.wicketEar.ejbjar.dao.ContactDao
      java:global/jboss-as-wicket-ear-ear/jboss-as-wicket-ear-ejb/ContactDaoBean
      java:app/jboss-as-wicket-ear-ejb/ContactDaoBean
      java:module/ContactDaoBean

      23:21:21,821 INFO [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016005: Starting Services for CDI deployment: jboss-as-wicket-ear-ear.ear
      23:21:21,861 INFO [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900 2.0.0 (CR4)
      23:21:21,870 INFO [org.jboss.weld.deployer] (MSC service thread 1-15) JBAS016008: Starting weld service for deployment jboss-as-wicket-ear-ear.ear
      23:21:21,921 INFO [org.jboss.as.jpa] (ServerService Thread Pool – 50) JBAS011402: Starting Persistence Unit Service 'jboss-as-wicket-ear-ear.ear/jboss-as-wicket-ear-ejb.jar#primary'
      23:21:21,967 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-15) Legacy deployment metadata provided by the integrator. Certain functionality will not be available.
      23:21:21,992 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool – 50) HCANN000001: Hibernate Commons Annotations

      {4.0.1.Final}

      23:21:21,995 INFO [org.hibernate.Version] (ServerService Thread Pool – 50) HHH000412: Hibernate Core

      {4.2.0.Final}

      23:21:21,997 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool – 50) HHH000206: hibernate.properties not found
      23:21:21,998 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool – 50) HHH000021: Bytecode provider name : javassist
      23:21:22,008 INFO [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool – 50) HHH000204: Processing PersistenceUnitInfo [
      name: primary
      ...]
      23:21:22,103 INFO [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (ServerService Thread Pool – 50) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      23:21:22,240 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool – 50) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
      23:21:22,243 WARN [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool – 50) HHH000431: Unable to determine H2 database version, certain features may not work
      23:21:22,245 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (ServerService Thread Pool – 50) HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
      23:21:22,252 INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (ServerService Thread Pool – 50) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory
      23:21:22,255 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool – 50) HHH000397: Using ASTQueryTranslatorFactory
      23:21:22,282 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool – 50) HV000001: Hibernate Validator 4.3.1.Final
      23:21:22,462 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 50) HHH000227: Running hbm2ddl schema export
      23:21:22,469 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 50) HHH000230: Schema export complete
      23:21:22,888 INFO [org.wildfly.extension.undertow] (MSC service thread 1-13) JBAS018210: Register web context: /jboss-as-wicket-ear-war
      23:21:36,701 INFO [org.apache.wicket.util.file.WebXmlFile] (default task-1) web.xml: url mapping found for filter with name Wicket: [/*]
      23:21:36,740 WARNING [org.jboss.seam.conversation.spi.SeamConversationContextFactory] (default task-1) No matching SeamConversationContext for store type interface javax.servlet.http.HttpServletRequest, using NOOP instance!
      23:21:36,748 WARN [org.jboss.weld.Bean] (default task-1) WELD-001529 An InjectionTarget implementation is created for a class net.ftlines.wicket.cdi.DetachEventEmitter which does not have any appropriate constructor.
      23:21:36,773 INFO [org.apache.wicket.Application] (default task-1) [Wicket] init: Wicket core library initializer
      23:21:36,774 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
      23:21:36,774 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
      23:21:36,774 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
      23:21:36,774 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
      23:21:36,775 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
      23:21:36,775 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
      23:21:36,775 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()]
      23:21:36,775 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()]
      23:21:36,776 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()]
      23:21:36,776 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()]
      23:21:36,776 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()]
      23:21:36,777 INFO [org.apache.wicket.RequestListenerInterface] (default task-1) registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()]
      23:21:36,778 INFO [org.apache.wicket.protocol.http.WebApplication] (default task-1) [Wicket] Started Wicket version 1.5.5 in DEVELOPMENT mode
      23:21:36,779 ERROR [stderr] (default task-1) ********************************************************************
      23:21:36,779 ERROR [stderr] (default task-1) *** WARNING: Wicket is running in DEVELOPMENT mode. ***
      23:21:36,779 ERROR [stderr] (default task-1) *** ^^^^^^^^^^^ ***
      23:21:36,779 ERROR [stderr] (default task-1) *** Do NOT deploy to your live server(s) without changing this. ***
      23:21:36,779 ERROR [stderr] (default task-1) *** See Application#getConfigurationType() for more information. ***
      23:21:36,779 ERROR [stderr] (default task-1) ********************************************************************
      23:21:36,809 WARN [org.jboss.weld.Bean] (default task-1) WELD-001529 An InjectionTarget implementation is created for a class org.apache.wicket.protocol.http.WebSession which does not have any appropriate constructor.
      23:21:36,873 WARN [org.jboss.weld.Bean] (default task-1) WELD-001529 An InjectionTarget implementation is created for a class org.apache.wicket.markup.html.basic.Label which does not have any appropriate constructor.
      23:21:37,014 ERROR [org.apache.wicket.DefaultExceptionMapper] (default task-1) Unexpected error occurred: org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts()'. Might be it doesn't exist, may be it is not visible (public).
      at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:196) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:68) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:47) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:103) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.PageProvider.resolvePageInstance(PageProvider.java:264) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:165) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:781) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) [wicket-request-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:185) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:241) [wicket-core-1.5.5.jar:1.5.5]
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:56) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:116) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:79)
      at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:66) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:71) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:26) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at org.wildfly.extension.undertow.security.SecurityContextCreationHandler.handleRequest(SecurityContextCreationHandler.java:56)
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:26) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:118) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:106) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:83) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:52) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:544) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
      at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_21]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_21]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_21]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_21]
      at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:177) [wicket-core-1.5.5.jar:1.5.5]
      ... 44 more
      Caused by: org.jboss.weld.exceptions.IllegalArgumentException: WELD-000070 Simple bean [EnhancedAnnotatedTypeImpl] class org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts$1 cannot be a non-static inner class
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:82) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:68) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.manager.BeanManagerImpl.createInjectionTarget(BeanManagerImpl.java:1039) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.util.ForwardingBeanManager.createInjectionTarget(ForwardingBeanManager.java:201) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at net.ftlines.wicket.cdi.NonContextual.<init>(NonContextual.java:118) [wicket-cdi-1.2.jar:]
      at net.ftlines.wicket.cdi.NonContextual.of(NonContextual.java:84) [wicket-cdi-1.2.jar:]
      at net.ftlines.wicket.cdi.NonContextualManager.inject(NonContextualManager.java:49) [wicket-cdi-1.2.jar:]
      at net.ftlines.wicket.cdi.AbstractInjector.inject(AbstractInjector.java:38) [wicket-cdi-1.2.jar:]
      at net.ftlines.wicket.cdi.ComponentInjector.onInstantiation(ComponentInjector.java:43) [wicket-cdi-1.2.jar:]
      at org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:36) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:34) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80) [wicket-util-1.5.5.jar:1.5.5]
      at org.apache.wicket.application.ComponentInstantiationListenerCollection.onInstantiation(ComponentInstantiationListenerCollection.java:32) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.Component.<init>(Component.java:678) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.MarkupContainer.<init>(MarkupContainer.java:118) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.markup.html.WebMarkupContainer.<init>(WebMarkupContainer.java:49) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.markup.repeater.AbstractRepeater.<init>(AbstractRepeater.java:67) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.markup.html.list.ListView.<init>(ListView.java:140) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.markup.html.list.ListView.<init>(ListView.java:162) [wicket-core-1.5.5.jar:1.5.5]
      at org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts$1.<init>(ListContacts.java:51) [classes:]
      at org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts.<init>(ListContacts.java:51) [classes:]
      ... 49 more
      Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-000070 Simple bean [EnhancedAnnotatedTypeImpl] class org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts$1 cannot be a non-static inner class
      at org.jboss.weld.injection.producer.BasicInjectionTarget.checkType(BasicInjectionTarget.java:81) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.injection.producer.BasicInjectionTarget.<init>(BasicInjectionTarget.java:69) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.injection.producer.BeanInjectionTarget.<init>(BeanInjectionTarget.java:52) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:95) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:78) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      ... 69 more

      23:21:37,027 WARN [org.jboss.weld.Bean] (default task-1) WELD-001529 An InjectionTarget implementation is created for a class org.apache.wicket.markup.html.pages.ExceptionErrorPage which does not have any appropriate constructor.
      23:21:37,033 WARN [org.jboss.weld.Bean] (default task-1) WELD-001529 An InjectionTarget implementation is created for a class org.apache.wicket.markup.html.basic.MultiLineLabel which does not have any appropriate constructor.
      23:21:37,035 WARN [org.jboss.weld.Bean] (default task-1) WELD-001529 An InjectionTarget implementation is created for a class org.apache.wicket.markup.html.WebMarkupContainer which does not have any appropriate constructor.
      23:21:37,046 ERROR [org.apache.wicket.DefaultExceptionMapper] (default task-1) unexpected exception when handling another exception: Can't instantiate page using constructor 'public org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts()'. Might be it doesn't exist, may be it is not visible (public).: org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor 'public org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts()'. Might be it doesn't exist, may be it is not visible (public).
      at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:196) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:68) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:47) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.DefaultMapperContext.newPageInstance(DefaultMapperContext.java:103) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.PageProvider.resolvePageInstance(PageProvider.java:264) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.PageProvider.getPageInstance(PageProvider.java:165) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.render.PageRenderer.getPage(PageRenderer.java:78) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:167) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:781) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) [wicket-request-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:255) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:283) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:185) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:241) [wicket-core-1.5.5.jar:1.5.5]
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:56) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:116) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:79)
      at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:66) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:71) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:26) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at org.wildfly.extension.undertow.security.SecurityContextCreationHandler.handleRequest(SecurityContextCreationHandler.java:56)
      at io.undertow.server.HttpHandlers.executeHandler(HttpHandlers.java:46) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:26) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:118) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:106) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:83) [undertow-servlet-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpHandlers.executeRootHandler(HttpHandlers.java:52) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:544) [undertow-core-1.0.0.Alpha15.jar:1.0.0.Alpha15]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
      at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_21]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_21]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_21]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_21]
      at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:177) [wicket-core-1.5.5.jar:1.5.5]
      ... 44 more
      Caused by: org.jboss.weld.exceptions.IllegalArgumentException: WELD-000070 Simple bean [EnhancedAnnotatedTypeImpl] class org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts$1 cannot be a non-static inner class
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:82) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:68) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.manager.BeanManagerImpl.createInjectionTarget(BeanManagerImpl.java:1039) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.util.ForwardingBeanManager.createInjectionTarget(ForwardingBeanManager.java:201) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at net.ftlines.wicket.cdi.NonContextual.<init>(NonContextual.java:118) [wicket-cdi-1.2.jar:]
      at net.ftlines.wicket.cdi.NonContextual.of(NonContextual.java:84) [wicket-cdi-1.2.jar:]
      at net.ftlines.wicket.cdi.NonContextualManager.inject(NonContextualManager.java:49) [wicket-cdi-1.2.jar:]
      at net.ftlines.wicket.cdi.AbstractInjector.inject(AbstractInjector.java:38) [wicket-cdi-1.2.jar:]
      at net.ftlines.wicket.cdi.ComponentInjector.onInstantiation(ComponentInjector.java:43) [wicket-cdi-1.2.jar:]
      at org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:36) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:34) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80) [wicket-util-1.5.5.jar:1.5.5]
      at org.apache.wicket.application.ComponentInstantiationListenerCollection.onInstantiation(ComponentInstantiationListenerCollection.java:32) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.Component.<init>(Component.java:678) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.MarkupContainer.<init>(MarkupContainer.java:118) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.markup.html.WebMarkupContainer.<init>(WebMarkupContainer.java:49) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.markup.repeater.AbstractRepeater.<init>(AbstractRepeater.java:67) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.markup.html.list.ListView.<init>(ListView.java:140) [wicket-core-1.5.5.jar:1.5.5]
      at org.apache.wicket.markup.html.list.ListView.<init>(ListView.java:162) [wicket-core-1.5.5.jar:1.5.5]
      at org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts$1.<init>(ListContacts.java:51) [classes:]
      at org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts.<init>(ListContacts.java:51) [classes:]
      ... 49 more
      Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-000070 Simple bean [EnhancedAnnotatedTypeImpl] class org.jboss.as.quickstarts.wicketEar.war.pages.ListContacts$1 cannot be a non-static inner class
      at org.jboss.weld.injection.producer.BasicInjectionTarget.checkType(BasicInjectionTarget.java:81) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.injection.producer.BasicInjectionTarget.<init>(BasicInjectionTarget.java:69) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.injection.producer.BeanInjectionTarget.<init>(BeanInjectionTarget.java:52) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:95) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      at org.jboss.weld.manager.InjectionTargetFactoryImpl.createInjectionTarget(InjectionTargetFactoryImpl.java:78) [weld-core-2.0.0.CR4.jar:2013-04-21 15:57]
      ... 69 more

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-jharting Jozef Hartinger
              tpng_jira Benny Ng (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: