Hi Amit,
This might be better directed to a BEA support case.
From the error message, it appear as though compilation is happening on 2 of
the same WSDLs. Its finding one in:
WEB-INF\DataManagementService.wsdl
and another in
URI_SHA_1_ED5C104504C6A18DB81C95E9A7190FA6211C83E1/DataManagementService.wsdl
The latter appears to be from a the schema type system and the former
appears to be part of the application.

You can repro this error from the command line if you do something like:
scomp DataManagementService.wsdl someDirectory/DataManagementService.wsdl
and is a valid xmlbeans error. There is an scomp setting to allow multiple
definitions via the -allowmdef option

I do not think this is related to XSDs without namespaces but rather the
duplicate WSDLs in your application.
Can you resolve the duplicate WSDL issue and let us know what you find?
Thanks,
-Jacob Danner

On 4/24/07, Phadke, Amit <[EMAIL PROTECTED]> wrote:

 I am facing the following problem when i generate a webservice which uses
classes generated using XML Beans. I have an xsd which defines common types
like string20,string40 etc. This XSD does not have any target namespace. It
is giving me duplicate global type exception when i use the binding classes
generated using XML Beans



Here is the stacktrace for the exception that i receive



Publishing failed

Module named 'DataManagementXMLBeans' failed to redeploy.

Module named 'DataManagementXMLBeans' failed to deploy.

weblogic.application.ModuleException:

Module named 'XMLBeanWebServiceEAR' failed to deploy.

Module named 'XMLBeanWebServiceEAR' failed to start.

weblogic.application.ModuleException: [HTTP:101216]Servlet:
"DataManagementServiceServlethttp" failed to preload on startup in Web
application: "DataManagementXMLBeans".

weblogic.wsee.ws.WsException: Failed to create binding provider
com.bea.xml.XmlException:
C:\bea\user_projects\domains\IRR2_ALSB_Domain\servers\IRR2_ALSB_AdminServer\tmp\_WL_user\XMLBeanWebServiceEAR\2vjkjy\war\WEB-INF\DataManagementService.wsdl:0:
error: sch-props-correct.2: Duplicate global type: String20Type (Original
global type found in file:
URI_SHA_1_ED5C104504C6A18DB81C95E9A7190FA6211C83E1/DataManagementService.wsdl)

at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.java
:384)

at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:135)

at weblogic.wsee.ws.WsFactory.createServerService(WsFactory.java:55)

at weblogic.wsee.server.servlet.WebappWSServlet.initRuntime(
WebappWSServlet.java:67)

at weblogic.wsee.server.servlet.WebappWSServlet.initImpl(
WebappWSServlet.java:32)

at weblogic.wsee.server.servlet.BaseWSServlet.init(BaseWSServlet.java:61)

at javax.servlet.GenericServlet.init(GenericServlet.java:256)

at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(
StubSecurityHelper.java:274)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java
:121)

at weblogic.servlet.internal.StubSecurityHelper.createServlet(
StubSecurityHelper.java:64)

at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(
StubLifecycleHelper.java:58)

at weblogic.servlet.internal.StubLifecycleHelper.<init>(
StubLifecycleHelper.java:48)

at weblogic.servlet.internal.ServletStubImpl.prepareServlet(
ServletStubImpl.java:504)

at weblogic.servlet.internal.WebAppServletContext.preloadServlet(
WebAppServletContext.java:1716)

at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(
WebAppServletContext.java:1693)

at weblogic.servlet.internal.WebAppServletContext.preloadResources(
WebAppServletContext.java:1613)

at weblogic.servlet.internal.WebAppServletContext.start
(WebAppServletContext..java:2764)

at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java
:889)

at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)

at weblogic.application.internal.flow.ModuleStateDriver$3.next(
ModuleStateDriver.java:204)

at weblogic.application.utils.StateMachineDriver.nextState(
StateMachineDriver.java:26)

at weblogic.application.internal.flow.ModuleStateDriver.start(
ModuleStateDriver.java:60)

at weblogic.application.internal.flow.ScopedModuleDriver.start(
ScopedModuleDriver.java:200)

at weblogic.application.internal.flow.ModuleListenerInvoker.start(
ModuleListenerInvoker.java:117)

at weblogic.application.internal.flow.ModuleStateDriver$3.next(
ModuleStateDriver.java:204)

at weblogic.application.utils.StateMachineDriver.nextState(
StateMachineDriver.java:26)

at weblogic.application.internal.flow.ModuleStateDriver.start(
ModuleStateDriver.java:60)

at weblogic.application.internal.flow.StartModulesFlow.activate(
StartModulesFlow.java:26)

at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java
:635)

at weblogic.application.utils.StateMachineDriver.nextState(
StateMachineDriver.java:26)

at weblogic.application.internal.BaseDeployment.activate(
BaseDeployment.java:212)

at weblogic.application.internal.DeploymentStateChecker.activate(
DeploymentStateChecker.java:154)

at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(
AppContainerInvoker.java:80)

at
weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate
(AbstractOperation.java:566)

at
weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment
(ActivateOperation.java:136)

at
weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit
(ActivateOperation.java:104)

at
weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(
StartOperation.java:131)

at
weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(
AbstractOperation.java:320)

at
weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit
(DeploymentManager.java:815)

at
weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList
(DeploymentManager.java:1222)

at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(
DeploymentManager.java:433)

at
weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(
DeploymentServiceDispatcher.java:161)

at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback
(DeploymentReceiverCallbackDeliverer.java:181)

at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100
(DeploymentReceiverCallbackDeliverer.java:12)

at
weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run
(DeploymentReceiverCallbackDeliverer.java:67)

at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(
ServerWorkManagerImpl.java:518)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

Caused by: com.bea.xml.XmlException:
C:\bea\user_projects\domains\IRR2_ALSB_Domain\servers\IRR2_ALSB_AdminServer\tmp\_WL_user\XMLBeanWebServiceEAR\2vjkjy\war\WEB-INF\DataManagementService.wsdl:0:
error: sch-props-correct.2: Duplicate global type: String20Type (Original
global type found in file:
URI_SHA_1_ED5C104504C6A18DB81C95E9A7190FA6211C83E1/DataManagementService.wsdl)

at com.bea.xbean.schema.SchemaTypeSystemCompiler.compile(
SchemaTypeSystemCompiler.java:225)

at sun.reflect.GeneratedMethodAccessor318.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.bea.xml.XmlBeans.compileXmlBeans(XmlBeans.java:667)

at com.bea.xml.XmlBeans.compileXsd(XmlBeans.java:553)

at
weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.initSchemaTypeSystem
(Deploytime109MappingHelper.java:216)

at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.<init>(
Deploytime109MappingHelper.java:157)

at
weblogic.wsee.bind.runtime.internal.RuntimeBindingsBuilderImpl.createRuntimeBindings
(RuntimeBindingsBuilderImpl.java:86)

at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.java
:379)

... 48 more

  Thanks & Regards ,

Amit Phadke
 *Cap**gemini* | Woking | UK
00447876762782
This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient, you
are not authorized to read, print, retain, copy, disseminate, distribute, or
use this message or any part thereof. If you receive this message in error,
please notify the sender immediately and delete all copies of this message.


Reply via email to