taylor 2004/05/29 12:01:49
Modified: portal/src/java/org/apache/jetspeed/engine
JetspeedEngine.java
Log:
patch to OJB to allow it to use jetspeed context class loader to find classes
requires a patched version of OJB, found at
http://www.bluesunrise.com/maven/ojb/db-ojb-1.0.rc6.jar
This is a temporary fix and open to discussion.
Please do not take as the fix to end all fixes.
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.24 +6 -1
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/JetspeedEngine.java
Index: JetspeedEngine.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/JetspeedEngine.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- JetspeedEngine.java 25 May 2004 22:36:03 -0000 1.23
+++ JetspeedEngine.java 29 May 2004 19:01:48 -0000 1.24
@@ -47,6 +47,7 @@
import org.apache.jetspeed.services.information.InformationProviderManager;
import org.apache.jetspeed.services.information.InformationProviderServiceService;
import org.apache.log4j.PropertyConfigurator;
+import org.apache.ojb.broker.util.ClassHelper;
import org.apache.pluto.PortletContainer;
import org.apache.pluto.PortletContainerException;
import org.apache.pluto.services.information.InformationProviderService;
@@ -141,6 +142,10 @@
initServices();
log.info("Service initialization complete");
+ // patch up OJB
+ ClassLoader ploader2 = this.getClass().getClassLoader();
+ ClassHelper.setClassLoader(ploader2);
+
//
// create the pipelines
//
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]