users@jax-rpc.java.net

Re: invalid entity name exception with wscompile

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Fri, 02 Jul 2004 10:49:34 +0530

I should also mention why this exeption occurs. The
InternalSchemaBuilder in jaxrpc tries to resolve the schema component
(its subcompoennets) and it browses thru all the schema document
imported or inlined. In a situation when it fails to resolve you see
such error.

In this particular case, rs:RegistryRequestType has child elelement
referencing rim:SignatureList which intern has child element referecing
dsig:Signature, dsig schema is not local is on net. So without correct
httpproxy settings its not imported and when parsing schema
rs:RegistryRequestType is not resolved and this exception occurs.

-vivek.

Vivek Pandey wrote:

> check your httpproxy settings. With correct -httpproxy settings I see
> that wscompile runs fine. Without httpproxy setting or with incorrect
> httpproxy setting I see the same exception regardles of jwsdp 1.4 or 1.3.
>
> -vivek.
>
> Farrukh Najmi wrote:
>
>> As I am migrating from JWSDP 1.3 to JWSDP 1.4 I am regenerating
>> stubs/skeleton for my WSDL that used to work.
>> I am now getting the same exception:
>>
>> generate.client.notificationListener:
>> [exec] modeler error: model error: invalid entity name:
>> "RegistryResponseType" (in namespace:
>> "urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0")
>> [exec] at
>> com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.buildModel(WSDLModelerBase.java:274)
>>
>> [exec] at
>> com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:88)
>> [exec] at
>> com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:63)
>> [exec] at
>> com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.ja
>>
>> How did your issue get resolved?
>>
>> Note that I had posted in the past on a similar issue and Vivek had
>> provided a very helpful answer (see below). However, I dont see me
>> making the same mistake this time.
>>
>> My 3 WSDL files and the schema files that are referenced by them are
>> included in the attached zip file.
>> My wscompile command looks like:
>>
>> <target name="generate.server.notificationListener" >
>> <mkdir
>> dir="${build.home}/org/freebxml/omar/common/jaxrpc/notificationListener/server"
>> />
>> <exec executable="${wscompile}">
>> <arg line="-httpproxy:${proxyHost}:${proxyPort}"/>
>> <arg line="-gen:server"/>
>> <arg line="-keep"/>
>> <arg line="-Xprintstacktrace"/>
>> <arg line="-s src/java"/>
>> <arg line="-features:wsi,nodatabinding"/>
>> <arg line="-d ${build.home}/lib/classes"/>
>> <arg line="-classpath ${build.home}/lib/classes"/>
>> <arg line="-model
>> ${build.home}/org/freebxml/omar/common/jaxrpc/notificationListener/server/model-wsdl-rpcenc.xml.gz"/>
>>
>> <arg
>> line="src/java/org/freebxml/omar/common/jaxrpc/notificationListener/server/wscompile-config.xml"/>
>>
>> </exec>
>> </target>
>>
>> My wscompile-config.xml is attached.
>>
>>------------------------------------------------------------------------
>>
>><?xml version="1.0" encoding="UTF-8"?>
>>
>><!--$Header: /cvsroot/ebxmlrr/omar/src/java/org/freebxml/omar/common/jaxrpc/notificationListener/server/wscompile-config.xml,v 1.1 2004/03/06 14:33:15 farrukh_najmi Exp $-->
>><configuration
>> xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
>> <wsdl
>> location="../ebxmlrr-spec/misc/3.0/services/NotificationListenerServices.wsdl"
>> packageName="org.freebxml.omar.common.jaxrpc.notificationListener.server" />
>></configuration>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>
>
>--
>Vivek Pandey
>Web Technologies and Standards
>Sun Microsystems Inc.
>
>

-- 
Vivek Pandey
Web Technologies and Standards
Sun Microsystems Inc.