I modified a little your example ( for spring 3.0 but it shouldn't any
meaning)
package jp.test;
*@Component*
public class index extends Page {
@Resource(name="tService")
private TestService tService;
public String stest= "test";
public *void onInit*(){
stest = tService.getTestMessage();
}
}
and it works
T.
2011/2/9 iida <[email protected]>
> Hi tomasz bandura,
>
> org.springframework changed the TRACE.
> 'registered' but no, I do not know what to do.
>
> iida
> --
> [DEBUG] [o.s.b.f.s.DefaultListableBeanFactory] Creating shared instance of
> singleton bean 'testService'
> [DEBUG] [o.s.b.f.s.DefaultListableBeanFactory] Creating instance of bean
> 'testService'
> [DEBUG] [o.s.b.f.s.DefaultListableBeanFactory] Eagerly caching bean
> 'testService' to allow for resolving potential circular references
> [TRACE] [o.s.b.CachedIntrospectionResults] Getting BeanInfo for class
> [jp.service.TestService]
> [TRACE] [o.s.b.CachedIntrospectionResults] Caching PropertyDescriptors for
> class [jp.service.TestService]
> [TRACE] [o.s.b.CachedIntrospectionResults] Found bean property 'class' of
> type [java.lang.Class]
> [TRACE] [o.s.b.CachedIntrospectionResults] Found bean property
> 'testMessage' of type [java.lang.String]
> [DEBUG] [o.s.b.f.s.DefaultListableBeanFactory] Finished creating instance
> of bean 'testService'
> [DEBUG] [o.s.b.f.s.DefaultListableBeanFactory] Returning cached instance
> of singleton bean
> 'org.springframework.context.annotation.internalCommonAnnotationProcessor'
> [DEBUG] [o.s.b.f.s.DefaultListableBeanFactory] Returning cached instance
> of singleton bean
> 'org.springframework.context.annotation.internalAutowiredAnnotationProcessor'
> [DEBUG] [o.s.b.f.s.DefaultListableBeanFactory] Returning cached instance
> of singleton bean
> 'org.springframework.context.annotation.internalRequiredAnnotationProcessor'
> [TRACE] [o.s.w.c.s.XmlWebApplicationContext] Publishing event in context
> [org.springframework.web.context.support.XmlWebApplicationContext@b60b93]:
> org.springframework.context.event.ContextRefreshedEvent[source=org.springframework.web.context.support.XmlWebApplicationContext@b60b93:
> display name [Root WebApplicationContext]; startup date [Wed Feb 09 17:33:32
> JST 2011]; root of context hierarchy]
> [DEBUG] [o.s.w.c.ContextLoader] Published root WebApplicationContext as
> ServletContext attribute with name
> [org.springframework.web.context.WebApplicationContext.ROOT]
> [INFO ] [o.s.w.c.ContextLoader] Root WebApplicationContext: initialization
> completed in 1953 ms
> [Click] [info ] *** Initializing Click 2.3.0-RC1 in trace mode ***
> [Click] [info ] initialized LogService:
> org.apache.click.service.ConsoleLogService
>
>
>
>
> 2011/2/9 tomasz bandura <[email protected]>
>
> Hi,
>>
>> At the beginning, please try to change in logging.properties level to INFO
>> to be sure that your beans are already 'registered' in Spring context
>>
>> t.
>>
>>
>>