This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | wlm problem using external xsd | ||
---|---|---|---|
Product: | soa | Reporter: | gcluis |
Component: | WorkList Manager | Assignee: | Mei Wu <mwu> |
Status: | REOPENED --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | Test Projects |
Description
gcluis
2009-12-03 01:58:01 UTC
Created attachment 92027 [details]
Test Projects
Alexey, please take a look. Actually, this is caused by an invalid schemalocation in TestWLM.xsd, change to : <xsd:import schemaLocation="../../Test_WLM_BPEL/src/BasicTypes.xsd" namespace="http://xml.netbeans.org/schema/BasicTypes"/> solved the problem. If I use the import schema: <xsd:import schemaLocation="../../Test_WLM_BPEL/src/BasicTypes.xsd" namespace="http://xml.netbeans.org/schema/BasicTypes"/> the project is build ok, but when I try to deploy the composite application to the GlassFish ESB I obtain an error: ---------------------------------- [deploy-service-assembly] Deploying a service assembly... host=localhost port=4848 file=E:\Proyectos\Snacks\WLM\TaskManager\TaskManagerServer/dist/TaskManagerServer.zip ERROR: Successful execution of Deploy: E:\Proyectos\Snacks\WLM\TaskManager\TaskManagerServer/dist/TaskManagerServer.zip WARNING: (JBIMA0404) La implementación del conjunto de servicios TaskManagerServer se ha realizado parcialmente; no se han podido implementar algunas unidades de servicio. * Component: sun-http-binding ERROR: (SOAPBC_DEPLOY_2) HTTPBC-E00201: Error en la implementación. javax.wsdl.WSDLException: WSDLException (at /definitions/types/xsd:schema/xsd:schema): faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at ''../../TaskManagerTypes/src/BasicTypes.xsd'', relative to ''file:/C:/GlassFishESBv21/glassfish/domains/domain1/jbi/service-assemblies/TaskManagerServer/TaskManagerServer-sun-http-binding/sun-http-binding/dummyTask/dummy.xsd''.: java.io.FileNotFoundException: This file was not found: file:/C:/GlassFishESBv21/glassfish/domains/domain1/jbi/service-assemblies/TaskManagerServer/TaskManagerServer-sun-http-binding/TaskManagerTypes/src/BasicTypes.xsd ------------------------------------- If I import the schema in a schema of a bpel project: <xsd:import schemaLocation="Test_WLM_BPEL/BasicTypes.xsd" namespace="http://xml.netbeans.org/schema/BasicTypes"/> and I use the bpel in a Composite Application the build and deploy is ok. True, because the XSD is in another project and the deployment (inside GF) structure is different from the source code structure of the projects, The solution to this problem is to make each project self-contained. You can use absolute path to point to the xsd but it isn't a good idea because you may want to deploy to a remote machine. Make it an enhancement for this to use Catalog mechanism solving the reference issue |