You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by "sumedha rubasinghe (JIRA)" <ji...@apache.org> on 2007/08/07 09:21:59 UTC
[jira] Created: (SANDESHA2-114) Sandesha2-policy-.jar
should be included (as a library) inside mar file
Sandesha2-policy-<VERSION>.jar should be included (as a library) inside mar file
---------------------------------------------------------------------------------
Key: SANDESHA2-114
URL: https://issues.apache.org/jira/browse/SANDESHA2-114
Project: Sandesha2
Issue Type: Bug
Reporter: sumedha rubasinghe
According to the current documentation,
6. Get the Sandesha2-policy-<VERSION>.jar file from the SANDESHA2_HOME directory and put it to the AXIS2_HOME/lib directory.
But with latest Axis2, this generates an error.
Root cause
==============
Inside SandeshaPolicyBean, we have a constructor doing the following.
public SandeshaPolicyBean () {
//we always set a PolicyBean from Constants as the default parent.
PropertyManager.loadPropertiesFromDefaultValues(this);
}
Here SandeshaPolicyBean (inside Sandesha2-policy-<VERSION>.jar) tries to load PropertyManager class, which is inside the Sandesha2 mar file. But these classes are in two classloaders, thus results in a ClassNotFound Exception.
Solution
==========
This can be solved by moving Sandesha2-policy-<VERSION>.jar inside sandesha2-<VERSION>.mar. (as a library)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org