users@jax-rpc.java.net

Re: invalid entity name exception with wscompile

From: Farrukh Najmi <Farrukh.Najmi_at_Sun.COM>
Date: Thu, 01 Jul 2004 00:22:14 -0400

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.

-- 
Regards,
Farrukh
--------------------------------------------------------
Going to Java One 2004 June 28 - July 1?
http://java.sun.com/javaone/
Come see the newly released freebXML Registry 3.0 
at pod 1220 in the Java One Pavilion:
http://ebxmlrr.sourceforge.net
http://ebxmlrr.sourceforge.net/presentations/freebXMLRegistryBrochure.pdf
http://ebxmlrr.sourceforge.net/presentations/xmlEurope2004/04-02-02.pdf
	
--------------------------------------------------------
Vivek Pandey wrote:
> Farrukh,
>
> this is because wscompile doesn't find ObjectNotification element. 
> Your xsd:import declaration seems incorrect. There is no 
> schemaLocation attribute. NotificationListenerPortType.wsdl  specifies
>
> <xsd:import
>                 loocation="../schema/query.xsd"
>                 
> namespace="urn:oasis:names:tc:ebxml-regrep:query:xsd:2.5"/>
>
> which should be:
>
> <xsd:import
>                 schemaLocation="query.xsd"
>                 
> namespace="urn:oasis:names:tc:ebxml-regrep:query:xsd:2.5"/>
>
> -vivek.
> Farrukh Najmi wrote:
>
>>
>> I am certain this is a problem in my (very simple) WSDL file but I 
>> cant seem to figure it out.
>>
>> The file NotificationListenerPortType.wsdl (attached) imports 
>> query.xsd schema using the WS-I BP 1.0 way of
>> using a xsd:schema within an xsd:types element.
>>
>> When I run ws-compile I get the error:
>>
>>     [exec] error: modeler error: invalid entity name: 
>> "ObjectsNotification" (in namespace: 
>> "urn:oasis:names:tc:ebxml-regrep:query:xsd:2.5")
>>
>> If I remove the -features:wsi and replace the WS-I style import with 
>> a WSDL import statement everything work fine except it is not WS-I 
>> compliant.
>>
>> Any idea what is wrong with my xsd:import?
>
Steve Pruitt wrote:
>I tried changing getComposedRequestElement to getComposedRequestElementX.  Same problem.
>
>
>-S
>
>
>Somthing other than "getComposedRequestElement"?  How could that be a problem?
>
>-S
>
>-----Original Message-----
>From: michael ramati [mailto:ramatim_at_cs.bgu.ac.il]
>Sent: Monday, March 22, 2004 12:42 PM
>To: users_at_jax-rpc.dev.java.net
>Subject: RE: RE: invalid entity name exception with wscompile
>
>
>Try a different name maybe?
>
>
>-----Original Message-----
>From: Steve Pruitt [mailto:SPruitt_at_exstream.com] 
>Sent: Monday, March 22, 2004 7:29 PM
>To: users_at_jax-rpc.dev.java.net
>Subject: RE: RE: invalid entity name exception with wscompile
>
>Here is the full wsdl.
>
>-S
>
>
>
>
>Are you not missing the types/schema elements under the definitions
>element?
>
>  
>
	




---------------------------------------------------------------------
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