Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [bpel-dev] Problems importing remote WSDLs

Jonathan,

I have seen this before ... and there is reason for this though have not yet tried fixing it everywhere in the code.

Basically, when you open a URI for reading from a resource set the type of the model used to read the resource is determined by the extension of the URI - it's basically the extensions registration.

Currently, only *.wsdl extension result in the correct load of a wsdl model. I know that sucks. That's a problem on URLs which do not end in .wsdl.. Same goes for BPEL, XSD, etc.

I asked this about on the EMF list and got this reply. There is a "fix" if you will, but it needs to go into our code.

http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg21435.html

Best,

-m


Jonathan Coogan wrote:
Has anyone else had problems when importing WSDLs by URL?  I have a dummy
Web Service running in Tomcat on a 2nd machine.  When I try to import it
with the BPEL Editor I get the following error.

If I save the WSDL to disk first and then import a file instead of a URL it
works.

Any ideas?  Thanks.
-Jon

org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$DiagnosticWrappedExcep
tion: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri
'http://schemas.xmlsoap.org/wsdl/' not found.
(http://server:8080/WSforTest/services/InvertCases?wsdl, 2, 358)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadExceptio
n(ResourceSetImpl.java:307)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(Resourc
eSetImpl.java:268)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetI
mpl.java:390)
at org.eclipse.bpel.ui.dialogs.SchemaImportDialog.attemptLoad(Unknown
Source)
at org.eclipse.bpel.ui.dialogs.SchemaImportDialog$5.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext
.java:113)
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with
uri 'http://schemas.xmlsoap.org/wsdl/' not found.
(http://server:8080/WSforTest/services/InvertCases?wsdl, 2, 358)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2
322)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.jav
a:2160)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java
:1137)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:12
39)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:877
)
at org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:78) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:860) at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:627) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Un
known Source)
at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(Unk
nown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS
tartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispat
cher.scanRootElementHook(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
entContentDispatcher.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
ocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:179)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:1
79)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1094
)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:900) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetIm
pl.java:249)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(Resourc
eSetImpl.java:264)
... 4 more

_______________________________________________
bpel-dev mailing list
bpel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/bpel-dev


--
Michal Chmielewski, CMTS, Oracle Corp, W:650-506-5952 / M:408-209-9321 "Manuals ?! What manuals ? Son, it's Unix, you just gotta know."


Back to the top