Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

Manuel Sugawara-2
Hi,

I'm trying to play a little bit with 5.4-beta-6 but our application that
runs on tapestry 5.3.7 isn't starting, the error is:

org.apache.tapestry5.ioc.internal.OperationException: No service implements
the interface org.slf4j.Logger.

Any clues on what I am missing?

Regards,
Manuel.
Reply | Threaded
Open this post in threaded view
|

Re: Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

Thiago H de Paula Figueiredo
On Wed, 02 Jul 2014 21:29:03 -0300, Manuel Sugawara  
<[hidden email]> wrote:

> Hi,

Hello, Manuel!

> I'm trying to play a little bit with 5.4-beta-6 but our application that
> runs on tapestry 5.3.7 isn't starting, the error is:
>
> org.apache.tapestry5.ioc.internal.OperationException: No service  
> implements the interface org.slf4j.Logger.

Full stack trace please. :)

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

trsvax
do you have this in your pom file

<dependency>

    <groupId>org.slf4j</groupId>

    <artifactId>slf4j-log4j12</artifactId>

    <version>1.7.2</version>

</dependency>


On Wed, Jul 2, 2014 at 8:36 PM, Thiago H de Paula Figueiredo <
[hidden email]> wrote:

> On Wed, 02 Jul 2014 21:29:03 -0300, Manuel Sugawara <
> [hidden email]> wrote:
>
>  Hi,
>>
>
> Hello, Manuel!
>
>
>  I'm trying to play a little bit with 5.4-beta-6 but our application that
>> runs on tapestry 5.3.7 isn't starting, the error is:
>>
>> org.apache.tapestry5.ioc.internal.OperationException: No service
>> implements the interface org.slf4j.Logger.
>>
>
> Full stack trace please. :)
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

Lance Java
In reply to this post by Manuel Sugawara-2
I'm guessing you're trying to @Inject a logger into a service.
From memory, I *think* that loggers can only be @Inject'ed into pages and
components.
Components have additional behaviour availble to @Inject that services do
not. See InjectWorker/InjectProvider


On 3 July 2014 01:29, Manuel Sugawara <[hidden email]> wrote:

> Hi,
>
> I'm trying to play a little bit with 5.4-beta-6 but our application that
> runs on tapestry 5.3.7 isn't starting, the error is:
>
> org.apache.tapestry5.ioc.internal.OperationException: No service implements
> the interface org.slf4j.Logger.
>
> Any clues on what I am missing?
>
> Regards,
> Manuel.
>
Reply | Threaded
Open this post in threaded view
|

Re: Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

Manuel Sugawara-2
In reply to this post by Thiago H de Paula Figueiredo
On Wed, Jul 2, 2014 at 8:36 PM, Thiago H de Paula Figueiredo <
[hidden email]> wrote:

> On Wed, 02 Jul 2014 21:29:03 -0300, Manuel Sugawara <
> [hidden email]> wrote:
>
>  Hi,
>>
>
> Hello, Manuel!
>
>
>  I'm trying to play a little bit with 5.4-beta-6 but our application that
>> runs on tapestry 5.3.7 isn't starting, the error is:
>>
>> org.apache.tapestry5.ioc.internal.OperationException: No service
>> implements the interface org.slf4j.Logger.
>>
>
> Full stack trace please. :)


I found out the problem, or kind of. I have a contribution to the periodic
executor with an @Startup annotation, this contribution uses another
service which is build using @Autobuild. This last service has a
constructor which expects a Logger as parameter and this is what is
failing, something like:

    @Startup
    public static void scheduleTrigger(PeriodicExecutor executor,
                                       @Autobuild
                                       final CalendarioEventsTriggerer
triggerer) {
    ....
    public CalendarioEventsTriggerer(..., Logger log) {

This is working perfectly in 5.3.

Regards,
Manuel.
Reply | Threaded
Open this post in threaded view
|

Re: Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

Ilya Obshadko-2
Just bumped into the same problem in TynamoJpaModule:

@Startup

public static void addJpaEventListener(@Autobuild
ElasticSearchIndexMaintainer indexMaintainer) {

indexMaintainer.start();

}

Fails in exactly the same way, with "No service implements the interface
org.slf4j.Logger" error message.


On Thu, Jul 3, 2014 at 6:21 PM, Manuel Sugawara <[hidden email]>
wrote:

> On Wed, Jul 2, 2014 at 8:36 PM, Thiago H de Paula Figueiredo <
> [hidden email]> wrote:
>
> > On Wed, 02 Jul 2014 21:29:03 -0300, Manuel Sugawara <
> > [hidden email]> wrote:
> >
> >  Hi,
> >>
> >
> > Hello, Manuel!
> >
> >
> >  I'm trying to play a little bit with 5.4-beta-6 but our application that
> >> runs on tapestry 5.3.7 isn't starting, the error is:
> >>
> >> org.apache.tapestry5.ioc.internal.OperationException: No service
> >> implements the interface org.slf4j.Logger.
> >>
> >
> > Full stack trace please. :)
>
>
> I found out the problem, or kind of. I have a contribution to the periodic
> executor with an @Startup annotation, this contribution uses another
> service which is build using @Autobuild. This last service has a
> constructor which expects a Logger as parameter and this is what is
> failing, something like:
>
>     @Startup
>     public static void scheduleTrigger(PeriodicExecutor executor,
>                                        @Autobuild
>                                        final CalendarioEventsTriggerer
> triggerer) {
>     ....
>     public CalendarioEventsTriggerer(..., Logger log) {
>
> This is working perfectly in 5.3.
>
> Regards,
> Manuel.
>



--
Ilya Obshadko