Jump to content

java application does not run on snow leopard


shyama
 Share

1 post in this topic

Recommended Posts

Hi all

my application is using jetty6.1.x and my snow leopard has java version 1.6.0_17 . my problem same jar that i have created from my machine runs properly on other machine (leopard with java 1.6.0_07, linux with java 1.6.0_0) but fives me following error .. (part of the application does run, but one option throws exception on my machine)

 

java.net.MalformedURLException: invalid url: //file:/Users/shyamasreesaha/Project/Development/Sapient2/sapient2.jar!/uk/ac/cam/ch/wwmm/oscar3/models/resources/chempapers.xml (java.net.MalformedURLException: no protocol: //file:/Users/shyamasreesaha/Project/Development/Sapient2/sapient2.jar)

at java.net.URL.<init>(URL.java:601)

at java.net.URL.<init>(URL.java:464)

at java.net.URL.<init>(URL.java:413)

at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLE

ntityManager.java:650)

at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityMa

nager.java:1315)

at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDocumentEntity(XML

EntityManager.java:1267)

at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.setInputSource(XM

LDocumentScannerImpl.java:281)

at com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.parse(DTDConfigurati

on.java:470)

at com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.parse(DTDConfigurati

on.java:552)

at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXPa

rser.java:1205)

at nu.xom.Builder.build(Unknown Source)

at nu.xom.Builder.build(Unknown Source)

at uk.ac.cam.ch.wwmm.ptclib.io.ResourceGetter.getXMLDocument(ResourceGetter.java:11

0)

at uk.ac.cam.ch.wwmm.oscar3.models.Model.loadModelFromResources(Model.java:61)

at uk.ac.cam.ch.wwmm.oscar3.models.Model.loadModel(Model.java:76)

at uk.ac.cam.ch.wwmm.oscar3.models.Model.loadModel(Model.java:88)

at uk.ac.cam.ch.wwmm.oscar3.models.ExtractTrainingData.getInstance(ExtractTrainingD

ata.java:59)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.HyphenTokeniser.<init>(HyphenTokeniser.java:55)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.HyphenTokeniser.getInstance(HyphenTokeniser.

java:44)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.HyphenTokeniser.indexOfSplittableHyphen(Hyph

enTokeniser.java:89)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.Token.splitInternal(Token.java:211)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.Token.split(Token.java:86)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.Tokeniser.splitTokens(Tokeniser.java:92)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.Tokeniser.tokenise(Tokeniser.java:66)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.NameRecogniser.makeTokenisers(NameRecogniser

.java:147)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.NameRecogniser.processDocumentInternal(NameR

ecogniser.java:74)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.NameRecogniser.processDocument(NameRecognise

r.java:60)

at uk.ac.cam.ch.wwmm.oscar3.OscarFlow.doRecognise(OscarFlow.java:128)

at uk.ac.cam.ch.wwmm.oscar3.OscarFlow.runFlow(OscarFlow.java:89)

at uk.ac.cam.ch.wwmm.oscar3.OscarFlow.processLite(OscarFlow.java:146)

at uk.ac.aber.art_tool.AnnotatedPaper.autoAnnotate2(AnnotatedPaper.java:323)

at uk.ac.aber.art_tool.ARTServlet.doGet(ARTServlet.java:296)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

at org.mortbay.jetty.Server.handle(Server.java:324)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)

at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

2010-01-19 18:56:21.390::WARN: Error for /ART

java.lang.Error: java.lang.Exception: Could not get resource file: chempapers.xml

at uk.ac.cam.ch.wwmm.oscar3.models.Model.loadModelFromResources(Model.java:64)

at uk.ac.cam.ch.wwmm.oscar3.models.Model.loadModel(Model.java:76)

at uk.ac.cam.ch.wwmm.oscar3.models.Model.loadModel(Model.java:88)

at uk.ac.cam.ch.wwmm.oscar3.models.ExtractTrainingData.getInstance(ExtractTrainingD

ata.java:59)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.HyphenTokeniser.<init>(HyphenTokeniser.java:55)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.HyphenTokeniser.getInstance(HyphenTokeniser.

java:44)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.HyphenTokeniser.indexOfSplittableHyphen(Hyph

enTokeniser.java:89)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.Token.splitInternal(Token.java:211)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.Token.split(Token.java:86)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.Tokeniser.splitTokens(Tokeniser.java:92)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.Tokeniser.tokenise(Tokeniser.java:66)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.NameRecogniser.makeTokenisers(NameRecogniser

.java:147)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.NameRecogniser.processDocumentInternal(NameR

ecogniser.java:74)

at uk.ac.cam.ch.wwmm.oscar3.recogniser.NameRecogniser.processDocument(NameRecognise

r.java:60)

at uk.ac.cam.ch.wwmm.oscar3.OscarFlow.doRecognise(OscarFlow.java:128)

at uk.ac.cam.ch.wwmm.oscar3.OscarFlow.runFlow(OscarFlow.java:89)

at uk.ac.cam.ch.wwmm.oscar3.OscarFlow.processLite(OscarFlow.java:146)

at uk.ac.aber.art_tool.AnnotatedPaper.autoAnnotate2(AnnotatedPaper.java:323)

at uk.ac.aber.art_tool.ARTServlet.doGet(ARTServlet.java:296)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)

at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)

at org.mortbay.jetty.Server.handle(Server.java:324)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)

at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)

at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

Caused by: java.lang.Exception: Could not get resource file: chempapers.xml

at uk.ac.cam.ch.wwmm.ptclib.io.ResourceGetter.getXMLDocument(ResourceGetter.java:11

5)

at uk.ac.cam.ch.wwmm.oscar3.models.Model.loadModelFromResources(Model.java:61)

... 33 more

 

I googled for this problem and few ppl mentioned that snow leopard does not have java 1.5 installed and jetty needs it so i installed java 1.5 but still it does not work. any help???? I really need solution for it.. is this happening bcoz of snow leopard or java version ???

 

 

thanks.

Link to comment
Share on other sites

 Share

×
×
  • Create New...