tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Trying to get oracle "Handling Forms in Java EE 6 by Using Servlets and CDI " example working on TomEE-Plume
Date Mon, 23 May 2016 17:19:14 GMT
Add an empty file WEB-INF/beans.xml


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-05-23 18:34 GMT+02:00 paulhr <paul@orthogroup.holdings>:

> I changed the DI from...
> @WebServlet(name = "SignupServlet", urlPatterns = {"/welcome"})
>
> to....
>  @WebServlet(name = "SignupServlet", urlPatterns = {"/welcome",
> "/RegisterServlet"})
>
> And get the following errors.  Sorry to be so clueless.
>
> SEVERE: Allocate exception for servlet SignupServlet
> javax.enterprise.inject.UnsatisfiedResolutionException: Api type
> [com.example.cdi.UserSession] is not found with the qualifiers
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Field Injection Point, field name :  session, Bean Owner
> : [SignupServlet, Name:null, WebBeans Type:DEPENDENT, API
>
> Types:[com.example.servlets.SignupServlet,javax.servlet.ServletConfig,java.io.Serializable,javax.servlet.http.HttpServlet,javax.servlet.Servlet,javax.servlet.GenericServlet,java.lang.Object],
> Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]]
>         at
>
> org.apache.webbeans.util.InjectionExceptionUtil.throwUnsatisfiedResolutionException(InjectionExceptionUtil.java:60)
>         at
>
> org.apache.webbeans.container.InjectionResolver.getInjectionPointBean(InjectionResolver.java:250)
>         at
>
> org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:76)
>         at
>
> org.apache.webbeans.inject.InjectableField.doInjection(InjectableField.java:65)
>         at
>
> org.apache.webbeans.portable.InjectionTargetImpl.injectFields(InjectionTargetImpl.java:208)
>         at
>
> org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:194)
>         at
>
> org.apache.webbeans.portable.InjectionTargetImpl.inject(InjectionTargetImpl.java:184)
>         at
>
> org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:125)
>         at
> org.apache.openejb.core.WebContext.newInstance(WebContext.java:138)
>         at
>
> org.apache.tomee.catalina.JavaeeInstanceManager.newInstance(JavaeeInstanceManager.java:46)
>         at
>
> org.apache.tomee.catalina.JavaeeInstanceManager.newInstance(JavaeeInstanceManager.java:66)
>         at
>
> org.apache.tomee.catalina.JavaeeInstanceManager.newInstance(JavaeeInstanceManager.java:61)
>         at
>
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1146)
>         at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:866)
>         at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
>         at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
>         at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
>         at
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
>         at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
>         at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
>         at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
>         at
>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
>         at
>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
>         at
>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at
>
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>         at java.lang.Thread.run(Thread.java:745)
>
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Trying-to-get-oracle-Handling-Forms-in-Java-EE-6-by-Using-Servlets-and-CDI-example-working-on-TomEE-e-tp4678567p4678571.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message