own interceptor
---------------

                 Key: WW-2133
                 URL: https://issues.apache.org/struts/browse/WW-2133
             Project: Struts 2
          Issue Type: Bug
          Components: Interceptors
    Affects Versions: 2.0.9
         Environment: Windows XP, Tomcat 5.5, Eclipse 3.2
            Reporter: László Vadócz
            Priority: Trivial


I am newbie in Struts2 and could not own interceptor use.

I have build an own interceptor and it is correctly registered.



The error message is always the following: 

Unable to load config class ... probably due to a missing jar, ...

To test, the "timer" interceptor has I copied and registered directory in mine. 
I have got the same error message. 


 .
 .
 .
2007-08-23 17:28:57,281  WARN 
(com.opensymphony.xwork2.config.providers.InterceptorBuilder:60) - Unable to 
load config class com.vadocz.iterceptor.MyTimer at interceptor - 
file:/J:/Tomcat%205.5/webapps/file-upload/WEB-INF/classes/upload-struts.xml:15:45
 probably due to a missing jar, which might be fine if you never plan to use 
the mytimer interceptor
2007-08-23 17:28:57,281 ERROR 
(com.opensymphony.xwork2.config.providers.InterceptorBuilder:63) - Actual 
exception
Caught Exception while registering Interceptor class 
com.vadocz.iterceptor.MyTimer - interceptor - 
file:/J:/Tomcat%205.5/webapps/file-upload/WEB-INF/classes/upload-struts.xml:15:45
        at 
org.apache.struts2.impl.StrutsObjectFactory.buildInterceptor(StrutsObjectFactory.java:78)
        at 
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:57)
        .
        .
        .

The class com.vadocz.iterceptor.MyTimer exist, but not found, however. 

The class could not be loaded. ClassLoader ????

Stack:

        
ClassLoaderUtil.loadClass(String, Class) line: 139      
StrutsObjectFactory(ObjectFactory).getClassInstance(String) line: 100   
StrutsObjectFactory(ObjectFactory).buildBean(String, Map, boolean) line: 153    
StrutsObjectFactory(ObjectFactory).buildBean(String, Map) line: 143     
StrutsObjectFactory.buildInterceptor(InterceptorConfig, Map) line: 53   
.
.
.

I have tested both the best "available version" (Struts2 2.0.9 and XWORK 2.0.4) 
and  current development version 
(Strut2 SVN: 568984, XWORK SVN: 1583).
Enviroment: Windows XP, Tomcat 5.5, Eclipse 3.2

Sorry for poor english.

Vadocz.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to