You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Jon Coogan (JIRA)" <ji...@apache.org> on 2009/05/02 00:13:30 UTC
[jira] Created: (ODE-598) CompilationException for certain WSDLs
CompilationException for certain WSDLs
--------------------------------------
Key: ODE-598
URL: https://issues.apache.org/jira/browse/ODE-598
Project: ODE
Issue Type: Bug
Components: BPEL Compilation/Parsing
Environment: 32-bit Windows XP. Java 6. Ode 1.3.2.
Reporter: Jon Coogan
I've noticed that Ode 1.X will throw a CompilationException for BPEL processes that import certain types of WSDLs. These same processes/WSDLs work fine in Ode 1.2.
I think it has something to do with local schema imports (e.g. an import statement that does not have a schemaLocation attribute). See the attached .bpel process. The process will deploy in Ode 1.2, but in Ode 1.3.2 the imports/Test.wsdl file causes a CompilationException:
org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 2 error(s):
file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'mytestnamespace,request'.
file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'myothertestnamespace,SomeType'.
at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:752)
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:176)
at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:173)
at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:137)
at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:176)
... 3 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (ODE-598) CompilationException for certain WSDLs
Posted by "Tammo van Lessen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tammo van Lessen updated ODE-598:
---------------------------------
Fix Version/s: 1.3.5
> CompilationException for certain WSDLs
> --------------------------------------
>
> Key: ODE-598
> URL: https://issues.apache.org/jira/browse/ODE-598
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Environment: 32-bit Windows XP. Java 6. Ode 1.3.2.
> Reporter: Jon Coogan
> Fix For: 1.3.5
>
> Attachments: test.zip
>
>
> I've noticed that Ode 1.X will throw a CompilationException for BPEL processes that import certain types of WSDLs. These same processes/WSDLs work fine in Ode 1.2.
>
> I think it has something to do with local schema imports (e.g. an import statement that does not have a schemaLocation attribute). See the attached .bpel process. The process will deploy in Ode 1.2, but in Ode 1.3.2 the imports/Test.wsdl file causes a CompilationException:
> org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 2 error(s):
> file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'mytestnamespace,request'.
> file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'myothertestnamespace,SomeType'.
> at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:752)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
> at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:176)
> at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:173)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:137)
> at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:176)
> ... 3 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (ODE-598) CompilationException for certain WSDLs
Posted by "Jon Coogan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jon Coogan updated ODE-598:
---------------------------
Attachment: test.zip
BPEL Process for reproducing the problem. It imports a WSDL that causes Ode 1.3.2 to throw a CompilationException.
> CompilationException for certain WSDLs
> --------------------------------------
>
> Key: ODE-598
> URL: https://issues.apache.org/jira/browse/ODE-598
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Environment: 32-bit Windows XP. Java 6. Ode 1.3.2.
> Reporter: Jon Coogan
> Attachments: test.zip
>
>
> I've noticed that Ode 1.X will throw a CompilationException for BPEL processes that import certain types of WSDLs. These same processes/WSDLs work fine in Ode 1.2.
>
> I think it has something to do with local schema imports (e.g. an import statement that does not have a schemaLocation attribute). See the attached .bpel process. The process will deploy in Ode 1.2, but in Ode 1.3.2 the imports/Test.wsdl file causes a CompilationException:
> org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 2 error(s):
> file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'mytestnamespace,request'.
> file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'myothertestnamespace,SomeType'.
> at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:752)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
> at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:176)
> at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:173)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:137)
> at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:176)
> ... 3 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (ODE-598) CompilationException for certain WSDLs
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafal Rusin resolved ODE-598.
-----------------------------
Fix Version/s: 1.3.4
(was: 1.3.5)
Resolution: Fixed
I tried it on 1.3.4 and it worked. Please reopen if you spot some problems on 1.3.4.
> CompilationException for certain WSDLs
> --------------------------------------
>
> Key: ODE-598
> URL: https://issues.apache.org/jira/browse/ODE-598
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Environment: 32-bit Windows XP. Java 6. Ode 1.3.2.
> Reporter: Jon Coogan
> Assignee: Rafal Rusin
> Fix For: 1.3.4
>
> Attachments: test.zip
>
>
> I've noticed that Ode 1.X will throw a CompilationException for BPEL processes that import certain types of WSDLs. These same processes/WSDLs work fine in Ode 1.2.
>
> I think it has something to do with local schema imports (e.g. an import statement that does not have a schemaLocation attribute). See the attached .bpel process. The process will deploy in Ode 1.2, but in Ode 1.3.2 the imports/Test.wsdl file causes a CompilationException:
> org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 2 error(s):
> file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'mytestnamespace,request'.
> file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'myothertestnamespace,SomeType'.
> at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:752)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
> at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:176)
> at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:173)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:137)
> at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:176)
> ... 3 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (ODE-598) CompilationException for certain WSDLs
Posted by "Rafal Rusin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rafal Rusin reassigned ODE-598:
-------------------------------
Assignee: Rafal Rusin
> CompilationException for certain WSDLs
> --------------------------------------
>
> Key: ODE-598
> URL: https://issues.apache.org/jira/browse/ODE-598
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Environment: 32-bit Windows XP. Java 6. Ode 1.3.2.
> Reporter: Jon Coogan
> Assignee: Rafal Rusin
> Fix For: 1.3.5
>
> Attachments: test.zip
>
>
> I've noticed that Ode 1.X will throw a CompilationException for BPEL processes that import certain types of WSDLs. These same processes/WSDLs work fine in Ode 1.2.
>
> I think it has something to do with local schema imports (e.g. an import statement that does not have a schemaLocation attribute). See the attached .bpel process. The process will deploy in Ode 1.2, but in Ode 1.3.2 the imports/Test.wsdl file causes a CompilationException:
> org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 2 error(s):
> file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'mytestnamespace,request'.
> file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'myothertestnamespace,SomeType'.
> at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:752)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
> at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:176)
> at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:173)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:137)
> at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:176)
> ... 3 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (ODE-598) CompilationException for certain WSDLs
Posted by "Karthick Sankarachary (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ODE-598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726631#action_12726631 ]
Karthick Sankarachary commented on ODE-598:
-------------------------------------------
It looks like you have two schemas in your WSDL that import each other. Unfortunately, the XML parser that we rely on, viz. Xerces, interprets this scenario as a violation of the "sch-props-correct" condition, which is described here: http://www.w3.org/TR/xmlschema-1/#sch-props-correct. For more details on this Xerces limitation, please refer to http://xerces.apache.org/xerces-j/schema.html.
Needless to say, you can workaround this problem by avoiding circular imports/includes in your schemas.
> CompilationException for certain WSDLs
> --------------------------------------
>
> Key: ODE-598
> URL: https://issues.apache.org/jira/browse/ODE-598
> Project: ODE
> Issue Type: Bug
> Components: BPEL Compilation/Parsing
> Environment: 32-bit Windows XP. Java 6. Ode 1.3.2.
> Reporter: Jon Coogan
> Attachments: test.zip
>
>
> I've noticed that Ode 1.X will throw a CompilationException for BPEL processes that import certain types of WSDLs. These same processes/WSDLs work fine in Ode 1.2.
>
> I think it has something to do with local schema imports (e.g. an import statement that does not have a schemaLocation attribute). See the attached .bpel process. The process will deploy in Ode 1.2, but in Ode 1.3.2 the imports/Test.wsdl file causes a CompilationException:
> org.apache.ode.bpel.compiler.api.CompilationException: error: [CompilationErrors] Compilation completed with 2 error(s):
> file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'mytestnamespace,request'.
> file:/C:/Documents%20and%20Settings/Administrator/Desktop/apache-tomcat-6.0.18/webapps/ode/WEB-INF/processes/test/imports/Test.wsdl:0: error: [SchemaError] Error in schema processing: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'myothertestnamespace,SomeType'.
> at org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:752)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:263)
> at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:333)
> at org.apache.ode.store.DeploymentUnitDir$5.run(DeploymentUnitDir.java:176)
> at org.apache.ode.utils.InternPool.runBlock(InternPool.java:57)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:173)
> at org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java:137)
> at org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:176)
> ... 3 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.