I've just published Weld 1.1.0, the reference implementation of JSR-299: Contexts and Dependency Injection for Java EE. It's based on the CDI 1.0 API. You can find direct download links at the bottom of this post or you can pull the artifacts from the JBoss Maven Repository.

This release contains all the new developments from the last six months, the highlights of which are:

  • Big improvements in memory usage, boot time and runtime performance. Our measurements showed a two fold improvement in boot time with just a few beans in the deployment, but with many beans, we were showing more than a 10 fold improvement. Memory usage showed a consistent 4 fold improvement, regardless of the number of beans deployed. We showed a 40% improvement in runtime performance, and also measured that Weld performs as well as, or better than other CDI implementations available, as well as other projects in the DI space.
  • Ability to exclude classes from scanning and deployment as beans by Weld. You can configure this in beans.xml for the bean archive you are deploying:
<beans xmlns="" 
        <!-- Don't include GWT support if GWT is not installed -->
        <weld:exclude name="com.acme.gwt.**">
            <weld:if-class-available name="!"/>

  • The new Pastecode example, which shows off many of the new EJB 3.1 features in use with Weld
  • around 140 bug fixes
  • A new approach to managing contexts, making it easier to write view-layer integrations

We also just released 1.0.4 of the CDI TCK - you can find the links for it below :-)

Thanks go to Marius Bogoevici, Stuart Douglas, Martin Gencur, Nicklas Karlsson, Stale Pedersen, Ales Justin, David Allen, Sivakumar Thyagarajan and Jason Porter for their hard work on this release!

This also marks the last Weld release that I will be running the project for. I just want to take this opportunity to thank the Weld community for all their help over the last 2 years. Weld has an amazing community, full of very talented people, who want to get things right regardless personality and politics.

JBoss AS

Weld 1.1.0.CR2 is included in JBoss AS 6.0.0.Final, and Weld 1.1.0.Final will be included in JBoss AS 6.0.1 (it's being integrated as we speak). Weld 1.1.0.Final is also included in GlassFish V3.1

About Weld

Weld is used in GlassFish V3 and the JBoss AS 6 series. Weld also has support for Servlet containers such as Tomcat and Jetty. Alternatively, you can use Weld with Java SE.

There is great testing support via Arquillian, which allows you to test in Weld SE, a mocked out Java EE container, Tomcat or Jetty, as well as JBoss AS and GlassFish.

If you are just getting started, there are a few examples in the distribution to guide you (look for instructions in the reference guide, and each example has a readme.txt). If you are looking for help, try our user forums, or perhaps join us on IRC.

[ Distribution (Weld, CDI TCK) ] | [ Release Notes (Weld, CDI TCK) ] | [ Reference Guide (Weld, CDI TCK ] | [ Issue Tracker (Weld, CDI TCK) ] | [ CDI Javadoc ]

17. Jan 2011, 19:55 CET | Link

I work on GAE project, so I had to refuse weld because of long scanning time at cold start. Would you be able to describe how to point weld to one package only where beans are contained. Could it be faster than managed beans? How to configure mojarra not to scan beans? What is a best configuration to reduce application start time with weld and mojarra together?

Anyway, I think weld is great, thank you very much for your work.

17. Jan 2011, 20:48 CET | Link
Ara wrote on Jan 17, 2011 13:55:
I work on GAE project, so I had to refuse weld because of long scanning time at cold start. Would you be able to describe how to point weld to one package only where beans are contained.

That's the simplest example :-)

<beans xmlns="" 
        <weld:include name="*" />

Could it be faster than managed beans?

I haven't measured this, but I suspect it should be around the same.

How to configure mojarra not to scan beans? What is a best configuration to reduce application start time with weld and mojarra together?

Maybe a Mojarra expert can help, but I agree with you, disable Mojarra scanning, and use the above snippet.

17. Jan 2011, 22:24 CET | Link

I would also like to suggest that you look at the possibility of using Always On instances in GAE. It costs a little money, but you are reserved 3 JVM instances for your application which are always running (i.e, no more waiting for container startup).

17. Jan 2011, 23:01 CET | Link

I know, but sometimes I use task queue API very extensive. In this case gae run more instances anyway, so it is better to have shorter start time to run tasks in more predictable order.

18. Jan 2011, 08:17 CET | Link

Awesome news, congratulations!

20. Jan 2011, 08:18 CET | Link
Maybe a Mojarra expert can help, but I agree with you, disable Mojarra scanning, and use the above snippet.

I investigated GAE start time problem little bit. Anybody can use this to save some start time that can be used for weld start.

1. Register all managed beans statically in faces-config.xml
2. Use metadata-complete=”true” attribute, so faces-config.xml boilerplate is:

<?xml version='1.0' encoding='UTF-8'?>
<faces-config xmlns=""
<!--Your stuff here-->

Using this technique you force JSF not to scan classes for beans.
3. Force JSF not to check xml syntax. I hope your IDE do it instead. In web.xml check context parameter as here:

         Set this flag to true if you want the JavaServer Faces
         Reference Implementation to validate the XML in your
         faces-config.xml resources against the DTD. Default
         value is false.

Using these tricks I reduce GAE start time by two seconds. Not bad.

23. Jan 2011, 19:19 CET | Link

Is @ViewScoped included or I should use this instruction to port it by myself?

24. Jan 2011, 12:12 CET | Link

I continue investigation of GAE start time . Instead of usage of metadata-complete="true" you would be consider com.sun.faces.annotationScanPackages context param, that should be included to web.xml. Description could be found here . Start time is rather same.

24. Jan 2011, 12:29 CET | Link
Ara wrote on Jan 23, 2011 13:19:
Is @ViewScoped included or I should use this instruction to port it by myself?

You should port it yourself, or consider using Seam Faces.

24. Jan 2011, 14:21 CET | Link

Now, it is time to test weld 1.1.0 final on GAE.

1. Aded to pom.xml:


2. Created empty bean.xml
3. Aded to web.xml


Result is error:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/G:/ideaworkspace/richgost/target/agost/WEB-INF/lib/slf4j-jdk14-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/G:/ideaworkspace/richgost/target/agost/WEB-INF/lib/weld-servlet-1.1.0.Final.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
24.01.2011 13:16:47 warn
WARNING: failed{/,G:\ideaworkspace\richgost\target\agost}: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
24.01.2011 13:16:47 warn
WARNING: failed JettyContainerService$ApiProxyHandler@16f144c: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
24.01.2011 13:16:47 warn
WARNING: Error starting handlers
java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
        at org.jboss.weld.bootstrap.WeldBootstrap.<clinit>(
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.jboss.weld.environment.servlet.util.Reflections.newInstance(
        at org.jboss.weld.environment.servlet.Listener.<init>(

First question is what to do with slf4j-jdk14. It works perfect on gae with all log levels? Are that all errors?

24. Jan 2011, 14:34 CET | Link

I just removed slf4j-jdk from pom.xml. I’ve got new error.

24.01.2011 13:30:57 org.jboss.weld.environment.servlet.Listener contextInitialized
WARNING: @Resource injection not available in simple beans
24.01.2011 13:30:57 org.jboss.weld.bootstrap.WeldBootstrap startContainer
INFO: WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
24.01.2011 13:30:58 warn
WARNING: failed{/,G:\ideaworkspace\richgost\target\agost}: java.lang.NoClassDefFoundError: org/apache/catalina/core/ApplicationContextFacade
24.01.2011 13:30:58 warn
WARNING: failed JettyContainerService$ApiProxyHandler@ecb67f: java.lang.NoClassDefFoundError: org/apache/catalina/core/ApplicationContextFacade
24.01.2011 13:30:58 warn
WARNING: Error starting handlers
java.lang.NoClassDefFoundError: org/apache/catalina/core/ApplicationContextFacade
        at org.jboss.weld.environment.tomcat.WeldForwardingAnnotationProcessor.getStandardContext(
        at org.jboss.weld.environment.tomcat.WeldForwardingAnnotationProcessor.replaceAnnotationProcessor(
        at org.jboss.weld.environment.servlet.Listener.contextInitialized(
        at org.mortbay.jetty.handler.ContextHandler.startContext(
        at org.mortbay.jetty.servlet.Context.startContext(
        at org.mortbay.jetty.webapp.WebAppContext.startContext(
        at org.mortbay.jetty.handler.ContextHandler.doStart(
        at org.mortbay.jetty.webapp.WebAppContext.doStart(
        at org.mortbay.component.AbstractLifeCycle.start(
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(
        at org.mortbay.component.AbstractLifeCycle.start(
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(
        at org.mortbay.jetty.Server.doStart(
        at org.mortbay.component.AbstractLifeCycle.start(
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.core.ApplicationContextFacade
        at$ Source)
        at Method)
        at Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 21 more
24. Jan 2011, 19:06 CET | Link

The strange thing that with weld 1.0.1-Final weld works perfect! So, would you be able to provide some extra configuration? Or this is downgrade for GAE?

25. Jan 2011, 21:09 CET | Link

So, continue with weld 1.1.0 final on GAE. Logging problem could be solved by removing any slf4j dependencies. Weld brings slf4j api and correct apply it to GAE logger. You will have all logging levels. After, you should add


To you pom.xml. Now, you can just inject logger. Consider this to do it correctly. But the problem with second error still exists. I am very upset that is not able to try new abilities of weld on GAE.

13. Sep 2011, 16:57 CET | Link
Jonathan Benoit
Can you please make Weld 1.1.0.Final artifacts available in maven central repository? For example, I'd like to see|gav|1|g%3A%22org.jboss.weld%22%20AND%20a%3A%22weld-osgi-bundle%22 include 1.1.0.Final, 1.1.1.Final, and 1.1.2.Final. This way i don't have to include <repository> element in my pom pointing to for dependencies like:
04. Jun 2014, 07:06 CET | Link

The main thing that can skyrocket your business is Traffic. You may have the world’s best design and products but it would be useless till anybody knows about it. And that’s the main reason why most of the people are now making SEO an integral part of their business, and they are also getting good return on investment too. click

07. Jun 2014, 14:12 CET | Link

The program isn't perfect and not everyone will be a fan of the seminar style teaching which could probably benefit from being broken down into smaller chunks, but with a unique offering I haven't seen anywhere else, very reasonable pricing, a full 365-day money back guarantee, an amazing support forum, and 7 incredible bonuses to enhance all areas of your dating repertoire (that are actually worthwhile and not just a bunch of filler junk to make the program look better than it really is), I can think of few reasons not to try it.desire system

07. Jun 2014, 15:18 CET | Link

Actual product packaging and materials may contain more and different information than what is shown on our website. We recommend that you do not rely solely on the information presented and that you always read labels, warnings, and directions before using or consuming a product. Please see our full disclaimer below.

10. Jun 2014, 09:28 CET | Link

Berikut di bawah ini adalah daftar situs iklan baris gratis yang dapat di submit iklan otomatis menggunakan software autosubmit, Saat ini jumlah situs iklan gratis yang dapat di submit dengan software autosubmit berjumlah 1293 situs, dan akan terus bertambah. Pasang iklan baris gratis tanpa daftar menjadi jauh lebih mudah dengan menggunakan software autosubmit.pasang iklan gratis tanpa daftar

24. Jun 2014, 22:42 CET | Link

You then start to implement the trading plan on your forex trading demo account Trade the plan exactly as documented, and keep accurate records of every trade. The next step is to get your trading plan fully in place. This trading plan should include your position size, when and how you are going to practice accounts forex

20. Jul 2014, 07:44 CET | Link

There are many popular designers of mens leather bags located on every corner of the globe. All you in order to be do is stop any kind of time local retailer to find an array of longchamp outlet bags ranging from prices which have been considered dirt cheap and prices that are thought holy moly. So maybe you wonder why there is such an improvement. Isn't a bags easy to access . bags? I am here to tell you which the bags has never just a bags. A few get a bags, you regularly get what you pay in order for.

In addition, some women are degree of name awareness. Couch them feel proud turn out to be their favorite handbags, chanel replica Online Sale, by world-renowned ralph lauren australia designers. In addition, also helped establish the women's level of confidence. They describe a fantastic designer handbag, they are updated utilizing the latest trends in as well as the hottest part of the fashion industry fashion.

The collection features even more than 300 bags including traditional sour cream party quilted flip bags and chanel outlet from places with regard to example Moscow. The pieces marc jacobs outlet were strategically set up on glass cases and on tables to resemble an art and craft exhibition. The range of colors added towards artistry in the totes.

Now you will find there's mixture of different materials and colors, some with popular accents of fur and Indian themed decorations. Large bags recommended to their versatility and travel dior outlet and the functionality for the shoulder baggage. To add a bit of luxury, the designers add fox fur for the sides of handbag. Simple as well as complicated clothing can certainly be a nice match as it's well with any regarding clothing.

23. Aug 2014, 15:01 CET | Link

Anyway, add your idea to the extensions suggestions list, and have a go at implementing it. You can post on the Weld forum for help, and we'll try to show you how to do stuff! review for the venus factor

31. Aug 2014, 22:07 CET | Link

Hey! Would you mind if I share your blog with my twitter group? There’s a Impact Windows and Doors Stuart lot of folks that I think would really enjoy your content. Please let me know. Thank you!

13. Sep 2014, 09:44 CET | Link

Click HELP for text forma Individuals are known by the company they keep and those that wear Rolex Replica watches are known and identified by everyone. If you would like be recognized wherever you are going, it's imperative that you just too go for Rolex Replica Watches.Just wear one of these beauties to your party to see the attention you'll be receiving. You don't need to approach any women.These Rolex Replica Watches will that you'll be the center of attraction in the party.There have been two main reasons why the bag was so popular after its release. One reason, naturally, was the point that the bag was completely unique, and was available in limited stocks continuously. Recreation lots of prevalence, wherein innocent buyers are awash with suffering artist purses. In adjustment that may help you find out, in the event the banker is affairs afflicted Hermes totes, this asset can help keep.

With prices at a record low you will get different Rolex Replica Watches for any day of the week. Make your presence felt with your Rolex Replica Watches.Most effective who wear these Rolex Replica Watches have confessed they may have found a fresh picture of themselves after they have started wearing these Rolex Replica Watches! So what are you currently anticipating?They already know these time pieces are known Breitling Replica watches across the world for beauty and much like the true fans that they are of Rolex Replica Watches, they do not mind replacing each of the watches in their home with your Rolex Replica Watches. They've known the worth for money these watches are providing them with. Get one with the countless types of the Replica Rolex Sea Dweller Watches and see yourself change immediately. Not only can the girls at the party shower their affection you, you may be rest assured that even your employer will pay special attention at you. Rolex Quality replica watches perform these wonders and lots more.There are numerous of which who have been seen to even replace their table clock with your Rolex Replica Watches. Why is this so? The price tag on Rolex Replica watches are thousands dollars. Nevertheless the handbags sell well. The favorite style even will face the long-term stock. For women, the honey on the arm is more important than men. No less than, it will not help you sad, you can be never abandoned! Hermes Birkin Handbag is one of them. Do you know which handbag the super stars want to carry? Now let we've a glance. tting instructions. Then edit this text and check the preview.

Post Comment