Author: mes
Date: 2010-11-24 12:32:07 -0800 (Wed, 24 Nov 2010)
New Revision: 23006

Modified:
   core3/io-impl/trunk/pom.xml
   
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/cysession/CysessionReader.java
Log:
fixed a jaxb classloading issue

Modified: core3/io-impl/trunk/pom.xml
===================================================================
--- core3/io-impl/trunk/pom.xml 2010-11-24 20:05:48 UTC (rev 23005)
+++ core3/io-impl/trunk/pom.xml 2010-11-24 20:32:07 UTC (rev 23006)
@@ -83,8 +83,12 @@
                        <artifactId>io-api</artifactId>
                        <version>3.0.0-alpha2-SNAPSHOT</version>
                </dependency>
-               
                <dependency>
+                       <groupId>org.cytoscape</groupId>
+                       <artifactId>property-api</artifactId>
+                       <version>3.0.0-alpha2-SNAPSHOT</version>
+               </dependency>
+               <dependency>
                        <groupId>com.lowagie.text</groupId>
                        
<artifactId>com.springsource.com.lowagie.text</artifactId>
                        <version>2.0.8</version>

Modified: 
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/cysession/CysessionReader.java
===================================================================
--- 
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/cysession/CysessionReader.java
     2010-11-24 20:05:48 UTC (rev 23005)
+++ 
core3/io-impl/trunk/src/main/java/org/cytoscape/io/internal/read/cysession/CysessionReader.java
     2010-11-24 20:32:07 UTC (rev 23006)
@@ -21,7 +21,12 @@
 
        public void run(TaskMonitor tm) throws Exception {
 
-               final JAXBContext jaxbContext = 
JAXBContext.newInstance(CYSESSION_PACKAGE);
+               // No idea why, but ObjectFactory doesn't get picked up in the 
default
+               // Thread.currentThread().getContextClassLoader() classloader, 
whereas 
+               // that approach works fine for bookmarks.  Anyway, just force 
the issue
+               // by getting this classloader.
+               final JAXBContext jaxbContext = 
JAXBContext.newInstance(CYSESSION_PACKAGE,
+                                                                       
getClass().getClassLoader());
 
                final Unmarshaller unmarshaller = 
jaxbContext.createUnmarshaller();
 

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to