History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-1138
Type: Bug Bug
Status: Closed Closed
Resolution: Not A Problem
Priority: Minor Minor
Assignee: Rainer Hermanns
Reporter: Murali Gopalakrishnan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WebWork

Included XWork librarys ....xwork.ObjectFactory.getClassInstance calls ....util.ClassLoaderUtil which actually exists with an s at the end

Created: 01/Feb/06 11:34 PM   Updated: 02/Feb/06 09:48 AM
Component/s: None
Affects Version/s: 2.2
Fix Version/s: 2.2.1

Environment: Windows XP


 Description  « Hide
Included XWork library's com.opensymphony.xwork.ObjectFactory.getClassInstance calls com.opensymphony.util.ClassLoaderUtil which actually exists in the webwork-2.2.jar as com.opensymphony.util.ClassLoaderUtils.

Fails on this error when running a simple example.

 All   Comments   Change History      Sort Order:
Rainer Hermanns - [02/Feb/06 04:46 AM ]
Thats the code within the ObjectFactory (from webwork2.2 release):

public Class getClassInstance(String className) throws ClassNotFoundException {
        if (ccl != null) {
            return ccl.loadClass(className);
        }
                                                                                                                                                                                                                                                 
return ClassLoaderUtil.loadClass(className, this.getClass());
    }

Can not find any issue with this...
And the com.opensymphony.webwork.util.ClassLoaderUtils was not used here, instead the ClassLoaderUtil from oscore was used...

Can you please check this again?
                                                                                                                                                                                                                                          

Rainer Hermanns - [02/Feb/06 05:06 AM ]
To be more precise, com.opensymphony.xwork.ObjectFactory uses the ClassLoaderUtil from OSCore, whereas there is another ClassLoaderUtils impl within webwork.

Can you check, if you have oscore.jar within your app's classpath?

Murali Gopalakrishnan - [02/Feb/06 09:36 AM ]
Thanks. It was a problem with running the web server from Eclipse. It needed the JAR in multiple locations for it to be picked up correctly. Please close this issue.