Hi, I get the same exception as in patch Hibernate-EM (InputStreamZippedJarVisitor) class cast error - ID: 1805547

I'm trying to connect to a web service.

I don't know what more information to provide right now, but ask and i will add it.
The aforementioned patch didn't work.

/Andreiij

It'is this cast that fails:

result = ((JarClassLoader)getParent()).getByteStream(resource);

and the stacktrace

Caused by: java.lang.ClassCastException: sun.misc.Launcher$AppClassLoader
        at com.simontuffs.onejar.JarClassLoader.getByteStream(JarClassLoader.java:753)
        at com.simontuffs.onejar.Handler$1.getInputStream(Handler.java:50)
        at java.net.URL.openStream(Unknown Source)
        at com.sun.xml.ws.policy.jaxws.PolicyConfigResolver.resolveEntity(PolicyConfigResolver.java:84)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseImport(RuntimeWSDLParser.java:276)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseImport(RuntimeWSDLParser.java:656)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:315)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:227)
        at com.sun.xml.ws.api.model.wsdl.WSDLModel$WSDLParser.parse(WSDLModel.java:133)
        at com.sun.xml.ws.policy.jaxws.PolicyConfigParser.parseModel(PolicyConfigParser.java:281)
        at com.sun.xml.ws.policy.jaxws.PolicyConfigParser.parseModel(PolicyConfigParser.java:243)
        at com.sun.xml.ws.policy.jaxws.PolicyConfigParser.parse(PolicyConfigParser.java:109)
        at com.sun.xml.ws.policy.jaxws.PolicyWSDLParserExtension.postFinished(PolicyWSDLParserExtension.java:1251)
        at com.sun.xml.ws.wsdl.parser.DelegatingParserExtension.postFinished(DelegatingParserExtension.java:187)
        at com.sun.xml.ws.wsdl.parser.WSDLParserExtensionFacade.postFinished(WSDLParserExtensionFacade.java:334)
        at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:149)
        at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:264)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:227)
        at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:175)
        at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
        at javax.xml.ws.Service.<init>(Service.java:56)