Thanks! I just added it here: http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine
- Jason On Tue, Aug 25, 2009 at 5:14 AM, Icarus <[email protected]> wrote: > > Hi Jason, > > Sorry about the delay... I didn't get a mail regarding response to > this thread. > > The fix I made was : > > 1. Within the Jena distribution, cd to src/com/hp/hpl/jena/rdf/model, > modify the constructor so that it does not use the offending rmi UID > generator > > public AnonId() { > if (JenaParameters.disableBNodeUIDGeneration) { > synchronized (AnonId.class) { > id = "A" + idCount++; // + rand.nextLong(); > } > } else { > id = java.util.UUID.randomUUID().toString(); > } > } > > You would need to import java.util.UUID for this. > > There is another change as well ( attributed to Taylor Cowan)... both > of these can be found on the link here : > http://tech.groups.yahoo.com/group/jena-dev/message/39575 > > -Ic > > On Aug 12, 5:19 am, "Jason (Google)" <[email protected]> wrote: > > Can you detail the fix? I'd love to add your pointer(s) to the "Will it > play > > in App Engine" wiki page: > http://groups.google.com/group/google-appengine-java/web/will-it-play... > > > > - Jason > > > > On Mon, Aug 10, 2009 at 3:16 PM, Icarus <[email protected]> wrote: > > > > > The issue was with the Jena Framework source code and fixing that made > > > it possible to run the app. > > > > > On Aug 11, 2:21 am, Icarus <[email protected]> wrote: > > > > Hi, > > > > > > While using the Jena Semantic Framework for extracting RDF based > > > > data, I come across the following error on GAE : > > > > > > Uncaught exception from servlet > > > > java.lang.NoClassDefFoundError: java.rmi.server.UID is a restricted > > > > class. Please see the Google App Engine developer's guide for more > > > > details. > > > > at > > > > > > com.google.apphosting.runtime.security.shared.stub.java.rmi.server.UID.<clinit> > > > > (UID.java) > > > > at com.hp.hpl.jena.rdf.model.AnonId.<init>(AnonId.java:78) > > > > at com.hp.hpl.jena.rdf.model.AnonId.create(AnonId.java:60) > > > > at com.hp.hpl.jena.graph.Node.createAnon(Node.java:45) > > > > at com.hp.hpl.jena.rdf.arp.JenaReader.convert(JenaReader.java: > > > > 116) > > > > at com.hp.hpl.jena.rdf.arp.JenaReader.convert(JenaReader.java: > > > > 128) > > > > at com.hp.hpl.jena.rdf.arp.JenaHandler.statement > > > > (JenaHandler.java:73) > > > > at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.triple > > > > (XMLHandler.java: > > > > 100) > > > > at com.hp.hpl.jena.rdf.arp.impl.ParserSupport.triple > > > > (ParserSupport.java:240) > > > > at > > > > com.hp.hpl.jena.rdf.arp.states.WantPropertyElement.aPredAndObj > > > > (WantPropertyElement.java:187) > > > > at > > > > com.hp.hpl.jena.rdf.arp.states.Frame.processPropertyAttributes > > > > (Frame.java:112) > > > > at > > > > com.hp.hpl.jena.rdf.arp.states.WantPropertyElement.startElement > > > > (WantPropertyElement.java:116) > > > > at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.startElement > > > > (XMLHandler.java:137) > > > > at org.apache.xerces.parsers.AbstractSAXParser.startElement > > > > (Unknown > > > > Source) > > > > at > > > > org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement > > > > (Unknown Source) > > > > at > org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement > > > > (Unknown Source) > > > > at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement > > > > (Unknown > > > > Source) > > > > at > > > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement > > > > (Unknown Source) > > > > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl > > > > $FragmentContentDispatcher.dispatch(Unknown Source) > > > > at > > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument > > > > (Unknown Source) > > > > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown > > > > Source) > > > > at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown > > > > Source) > > > > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > > > > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown > > > > Source) > > > > at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse > > > > (RDFXMLParser.java: > > > > 107) > > > > at > com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:158) > > > > at > com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:145) > > > > at > com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:215) > > > > at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java: > > > > 188) > > > > > > This runs in dev mode on my local machine but gives problem from the > > > > deployment on GAE server. > > > > > > Any suggestions would be highly appreciated. > > > > > > -Ic > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
