Questions tagged [weld]

Weld is the reference implementation (RI) for JSR-299: Java Contexts and Dependency Injection for the Java EE platform (CDI)

Weld is the reference implementation (RI) for JSR-299: Java Contexts and Dependency Injection for the Java EE platform (CDI)

See http://seamframework.org/Weld

592 questions
0
votes
1 answer

beans.xml Interceptor Invalid with Discovery Mode 'annotated'

I'm having a bit of an issue with Weld CDI Interceptors that I just can't seem to resolve. When I include an tag in the beans.xml of an ejb project, the tags are flagged as invalid. The message in eclipse…
pbuchheit
  • 1,371
  • 1
  • 20
  • 47
0
votes
1 answer

WELD - exclude application scoped bean from scanning / beans.xml

I have the following @ApplicationScoped bean: @ApplicationScoped public class ServiceProducer { private static final Logger logger = LoggerFactory.getLogger(ServiceProducer.class); @Default @Produces @PersistenceContext(unitName =…
Fabrizio Stellato
  • 1,727
  • 21
  • 52
0
votes
1 answer

Roblox, how to make something only tween in one direction?

I tried doing local fakeRightArm = Instance.new("Part") fakeRightArm.BottomSurface = Enum.SurfaceType.Smooth fakeRightArm.CanCollide = false fakeRightArm.Massless = true fakeRightArm.Material = Enum.Material.Plastic fakeRightArm.BrickColor =…
Geiler
  • 3
  • 2
0
votes
1 answer

BeanManager is not boud in this Context

We took ownership of a java web application that current runs in WebLogic. We're now trying to deploy this in Tomcat using OCP. When we drop the .war file into the Tomcat/webapps directory, the application did not start and the error we received…
escee999
  • 109
  • 2
  • 10
0
votes
1 answer

Wildfly BOM doesn't include Weld

I'm using the Wildfly BOM (https://github.com/wildfly/boms/tree/20.x) to version my Wildfly dependencies in my Java EE project. Although the Wildlfy itself uses Weld for DI, but the BOM does not refer to any version of the same. In my view the whole…
fej
  • 48
  • 4
0
votes
0 answers

Migrating from Spring 4 to Weld CDI. Unable to resolve MongoOperations

We have an existing application working with Spring 4 and we are trying to migrate to Weld CDI. The application is a multi war application with an ear deployment. When I try to start the WildFly server, I run into the following error: 17:18:10,299…
mickeymoon
  • 4,820
  • 5
  • 31
  • 56
0
votes
1 answer

DeltaSpike interface configuration not injectable

I'm following the DeltaSpike documentation to create an injectable interface that binds configuration properties. @Configuration(prefix = "application.") public interface AppConfig { @ConfigProperty(name = "name", evaluateVariables = false) …
Seth Falco
  • 313
  • 6
  • 22
0
votes
0 answers

Spring Boot with javax Event

I try to get spring boot working with cdi events. I have the following class which fires the event. @Component @UIScope public class Login extends LoginOverlay { @Autowired private UserInfo userInfo; @Inject private…
0
votes
1 answer

Weld, Tomcat: missing "beans.xml" in META-INF

I know many similar questions have already been asked (ex. this, this, etc.), but none of them could help me, so I decided to bring it up again - been struggling for hours and I've really run out of ideas. I have a Java EE project, whith simple…
tyrrr
  • 528
  • 2
  • 11
0
votes
1 answer

Bootstrap a simple Java SE "Hello World" desktop application using JBoss Weld environment causes a runtime error

I'd like to use JBoss Weld as a CDI facility in a classic Hello World application in a maven structured project. To keep the things as clean & simple as possible, I only created a Weld environment object and nothing more. I also created the…
alix
  • 31
  • 2
0
votes
1 answer

How can I configure a JAX-RS application in Kotlin with resources having other dependencies injected

I use JAX-RS to build a REST API. To bootstrap all resources I have a overridden an "Application": import javax.enterprise.context.ApplicationScoped; import javax.ws.rs.ApplicationPath; import…
Mrvonwyl
  • 347
  • 2
  • 15
0
votes
2 answers

CDI Collect All Annotated Methods

I know that with cdi, you can collect all types (classes/interfaces) annotated with a certain annotation (By observing ProcessAnnotatedType). However, I would like to collect all methods annotated with a certain annotation. Is this possible with…
Connor Butch
  • 648
  • 1
  • 10
  • 28
0
votes
1 answer

CDI Interceptor

I have been working on a project where I would like to dynamically intercept calls to external dependencies and mock their returns at runtime. I have started by implementing a small proof of concept, which you can find…
Connor Butch
  • 648
  • 1
  • 10
  • 28
0
votes
1 answer

How do I validate a normal method as if it were a CDI InjectionPoint?

I'm building a simple API framework on top of Weld CDI and Undertow, to get familiar with the CDI Portable Extension programming model. It's a strict subset of JAX-RS: @Default @Path("/dogs") public class Dogs { @Inject private MyService…
0
votes
1 answer

Order of bean creation in Weld

I tried to debug of beans creation and understood that it is random order. What is the order of bean creation in Weld? Is there a graph of beans?
Yurii Kachmar
  • 76
  • 1
  • 6