[seam-dev] Solder MessageLogger and IllegalArgumentException
Ove Ranheim
oranheim at gmail.com
Thu Aug 4 04:56:39 EDT 2011
I've been using dynamic generated proxies for AS6 and haven't read the documentation for a while. Added seam-solder-tooling to one of my modules and now it works.
However, for modules that has annotations defined in them:
@Target( { TYPE, METHOD, PARAMETER, FIELD })
@Retention(RUNTIME)
@Documented
@Qualifier
public @interface PartsConfig {
PartsConfigSource target() default PartsConfigSource.FILE;
}
and I get this error
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project parts-commons-api: Compilation failure: Compilation failure:
[ERROR] /Users/oranheim/Documents/workspace/parts/parts-commons/api/src/main/java/com/parts/commons/env/PartsConfig.java:[21,56] incompatible types
[ERROR] found : com.parts.commons.env.PartsConfigSource
[ERROR] required: com.parts.commons.env.PartsConfigSource
My setup is equal to what's in the solder documentation.
What's the reasoning behind incompatible types?
Ove
On Aug 3, 2011, at 5:03 PM, Jason Porter wrote:
> Did you run the annotation processor to built the logger impl for your project?
>
> Sent from my iPhone
>
> On Aug 3, 2011, at 6:36, Ove Ranheim <oranheim at gmail.com> wrote:
>
>> Hi,
>>
>> The logging configuration with AS7 confuses me. Due a dependency of hibernate-search, I have upgraded to latest snapshot of it. And it works fine. I experienced that hibernate-search is unable to build the persistence-unit unless SLF4J is included, so I added an WEB-INF/jboss-deployment-structure.xml:
>>
>> <jboss-deployment-structure>
>> <deployment>
>> <dependencies>
>> <module name="org.dom4j" />
>> <module name="org.apache.log4j"/>
>> <module name="org.slf4j"/>
>> <module name="org.apache.commons.logging"/>
>> </dependencies>
>> </deployment>
>> </jboss-deployment-structure>
>>
>> This solves all my former issues of logging dependencies and JBoss Logging works just fine and hibernate-search gets the logger instance it needs. I have experimented with including and excluding slf4j 1.5.10 and commons-logging 1.1.1, but it fails, unless I do the above.
>>
>> Anyhow, Solder's TypeSafe Message log seems broken with AS7 and I get the following exception:
>>
>> 14:20:49,876 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) java.lang.IllegalArgumentException: Invalid logger interface com.musific.log.MusificLog (implementation not found)
>> 14:20:49,877 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2254)
>> 14:20:49,877 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jboss.logging.Logger.getMessageLogger(Logger.java:2215)
>> 14:20:49,877 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jboss.seam.solder.logging.TypedMessageLoggerProducer.produceTypedLogger(TypedMessageLoggerProducer.java:66)
>>
>> Full log: http://pastebin.com/WQt11T47
>>
>> When I deploy seam-booking example, it works perfect.
>>
>> I suspect that hibernate-search (that is lucene) requires a conflicting version of slf4j, since that is a dependency causing PU not to be built unless it's there.
>>
>> What's is the correct configuration for JBoss and Seam Solder logging in AS7?
>>
>> What would be the right exclude (in jboss-deployment-structure.xml:) and logger jars to include.
>>
>> Ove
>>
>> _______________________________________________
>> seam-dev mailing list
>> seam-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/seam-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20110804/7844e2ba/attachment-0001.html
More information about the seam-dev
mailing list