CodeGenException. Invalid element: "group"

Hi all!

I trying to do simple thing, namely import an existing WSDL into a project and call it from a business process. While trying to build the project I get a com.stc.codegen.framework.model.CodeGenException. In ide.log there appears the following

SEVERE: error: modeler error: model error: invalid element:"group"

com.stc.wsclient.design.codegen.impl.JaxRpcException: Compilation failed, please check ide.logfor JAX-RPC output.

at com.stc.wsclient.design.codegen.impl.JaxRpcCodelet.jaxrpc(JaxRpcCodelet.java:338)

at com.stc.wsclient.design.codegen.impl.JaxRpcCodelet.generateBeans(JaxRpcCodelet.java:997)

at com.stc.wsclient.design.codegen.impl.JaxRpcCodelet.generateFiles(JaxRpcCodelet.java:467)

at com.stc.wsclient.design.codegen.impl.WSClientCodelet.generateFiles(WSClientCodelet.java:451)

<...skipped...>

Caused by: com.stc.wsclient.design.codegen.impl.JaxRpcException: Compilation failed, please check ide.logfor JAX-RPC output.

at com.stc.wsclient.design.codegen.impl.JaxRpcCodelet.jaxrpc(JaxRpcCodelet.java:335)

<...blah...blah...blah...>

Nothing informative at all but the first string, which still means nothing to me. The WSDL and referenced XSDs are pretty complex, but they pass validation from the EDesigner. The Java CAPS version is 5.1.

Did anybody see such behavior? I can send the project if that can help.

Thanks in advance,

Victor

[1556 byte] By [sand123a] at [2007-11-26 18:17:45]
# 1
Hi,I seem to have a similar problem, have you solved it?Thanks,Luca
lunobiliaca at 2007-7-9 5:51:22 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 2

Hi Luca,

Java CAPS uses JAX-RPC for web-services communication. JAX-RPC does not support <xsd:group> tag. In future versions of Java CAPS they will use JAX-WS instead, which does not (hopefully) have this problem. The only workaround I can think of is not to use groups, encapsulate the repeating elements in type or just copy-paste the group content everywhere instead of references to groups.

Hope that helps.

Victor

sand123a at 2007-7-9 5:51:22 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...