Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [bpel-dev] EMF resource loading puzzle.

Okay, one more go, hopefully more helpful...

Does this exception indicate that, somehow, the WSDL namespace encountered
in the WSDL file does not match the one registered in the EPackage
implementation (guessing: WsdlPackage)? 

I'll shut up now...

-- Bruno

-----Original Message-----
From: bpel-dev-bounces@xxxxxxxxxxx [mailto:bpel-dev-bounces@xxxxxxxxxxx] On
Behalf Of Bruno Wassermann
Sent: 23 August 2006 21:29
To: 'BPEL Designer project developer discussions.'
Subject: RE: [bpel-dev] EMF resource loading puzzle.

I have never come across this issue, but have you tried to register the file
extension '?wsdl' in your XMLProcessor implementation (usually in an EMF
generated *.util package)? 

-- Bruno

-----Original Message-----
From: bpel-dev-bounces@xxxxxxxxxxx [mailto:bpel-dev-bounces@xxxxxxxxxxx] On
Behalf Of Michal Chmielewski
Sent: 23 August 2006 21:02
To: BPEL Designer project developer discussions.
Subject: [bpel-dev] EMF resource loading puzzle.

Can someone point out to me what the reason for this exception might be ?

If I attempt to load this WSDL from this location: 
http://ws.strikeiron.com/InnerGears/ForecastByZip2?WSDL

I get this exception in the Eclipse console (the parent eclips co

org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1$DiagnosticWrappedExcep
tion: 
Status ERROR: org.eclipse.bpel.ui code=0 
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 
'http://schemas.xmlsoap.org/wsdl/' not found. 
(http://ws.strikeiron.com/InnerGears/ForecastByZip2?WSDL, 2, -1) 
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://ws.strikeiron.com/InnerGears/ForecastByZip2?WSDL, 2, -1)

Partial stack trace is:

!ENTRY org.eclipse.bpel.ui 4 0 2006-08-23 13:52:54.609
!MESSAGE org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package 
with uri 'http://schemas.xmlsoap.org/wsdl/' not found. 
(http://ws.strikeiron.com/InnerGears/ForecastByZip2?WSDL, 2, -1)
!STACK 0
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://ws.strikeiron.com/InnerGears/ForecastByZip2?WSDL, 2, -1)
    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(SchemaImportDialo
g.java:416)
    at 
org.eclipse.bpel.ui.dialogs.SchemaImportDialog$5.run(SchemaImportDialog.java
:447)
    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://ws.strikeiron.com/InnerGears/ForecastByZip2?WSDL, 2, -1)
    at 
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(XMLHandler.java:2
311)
    at 
org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefix(XMLHandler.jav
a:2149)
    at 
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java
:1132)
    at 
org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:12
34)
    at 
org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:872
)
    at 
org.eclipse.emf.ecore.xmi.impl.XMIHandler.processElement(XMIHandler.java:78)
    at 
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:854)
    at 
org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:626)
    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1674)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    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:1089
)
    at 
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:895)
    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


However, when I save the source of the WSDL to a file and load that 
file, it loads OK, no exceptions at all.

To add insult to injury, this URL loads fine: 
http://localhost/wsdl/cache/CATrafficService.wsdl

So it seems like a difference between http:// and file:// loading, but 
not so since one WSDL works as a file but not as a http. The only 
difference between the
working and non-working http accessible WSDL is the query string, ?WSDL 
on the one that does not work.

If you have the most recent source from the tip, try attaching these 
WSDLs to the imports, either in the import properties or by trying to 
add a partner link.

It's probably something obvious about EMF that I don't know about.  Ideas ?

-michal

-- 
Michal Chmielewski, CMST, Oracle Corp, 
W:650-506-5952 / M:408-209-9321 

"Manuals ?! What manuals ? Son, it's Unix, you just gotta know." 

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

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



Back to the top