]
Dan Allen updated SOLDER-65:
----------------------------
Assignee: Dan Allen
Fix Version/s: 3.0.0.Final
Component/s: Logging
LoggerProducers is not initialized
----------------------------------
Key: SOLDER-65
URL:
https://issues.jboss.org/browse/SOLDER-65
Project: Seam Solder
Issue Type: Bug
Components: Logging
Affects Versions: 3.0.0.Beta1
Environment: JBossAS 6.0.0.final
Reporter: Alexey Elkin
Assignee: Dan Allen
Priority: Critical
Fix For: 3.0.0.Final
I want to use logger in my java web application.
I'm using JBossAS 6.0.0.final, cdi (weld), jsf ... etc. Seam solder proposes to use
an abstract logger is not tying to a concrete implementation (slf4j, log4j, etc) using
jboss-logging api.
In order to get this logger in your code will need to write
@ Inject
org.jboss.logging.Logger log
seam-solder.jar has the producer for this logger.
package org.jboss.seam.solder.log;
...
class LoggerProducers
{
@ Produces
org.jboss.logging.Logger produceLog (InjectionPoint injectionPoint) {}
}
When I deploying my application, I get an error
15:51:18,300 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error
installing to Start:
name=vfs:///C:/Java/jboss-6.0.0.Final/server/default/deploy/kamis-web-client.5.0.0-SNAPSHOT.ear_WeldBootstrapBean
state=Create: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied
dependencies for type [Logger] with qualifiers [@Default] at injection point [[field]
@Inject private ru.kamis.suite.webclient.web.breadcrumbs.BreadcrumbsManager.log]
This is due to the seam-solder.jar has not META-INF/beans.xml file, and it is necessary
for cdi container.
If to add beans.xml file in seam-solder.jar manually, then the application works WELL.
How to do without hacks?
To build my application I use maven, so my solution is not comfortable and NOT fine.
PS: Former weld-extensions project contained META-INF/beans.xml file in jar.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: