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.

Bug 102243 - XML cross-project references failed in XSLT project
Summary: XML cross-project references failed in XSLT project
Status: VERIFIED WORKSFORME
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 6.x
Hardware: PC All
: P1 blocker (vote)
Assignee: Vitaly Bychkov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-23 23:08 UTC by Tientien Li
Modified: 2008-04-02 08:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test projects: sync sample bpel projects and xslt project (37.72 KB, application/octet-stream)
2007-04-23 23:23 UTC, Tientien Li
Details
test project (69.22 KB, application/x-compressed)
2007-05-05 13:32 UTC, Vitaly Bychkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tientien Li 2007-04-23 23:08:22 UTC
run into problems using XML cross-project references in latest NB6.0 binary 
from

http://bits.nbextras.org/netbeans/6.0/nightly/200704230000/zip/

The following are steps taken:

- create a new synchronous bpel process sample project
- create a new xslt project
- add SyncchronousSample to xslt's project references
- create a xslt service using defaults from SynchronousSample.wsdl
- build xslt project, it failed with following error messages:

....
PackageRetrievedFiles:
Deleting directory E:\a2k7\bugs\100560\test02
\SynchronousSample\SynchronousSample\build\dependentProjectFiles
Created dir: E:\a2k7\bugs\100560\test02
\SynchronousSample\SynchronousSample\build\dependentProjectFiles
dist_se:
Building jar: E:\a2k7\bugs\100560\test02
\SynchronousSample\SynchronousSample\build\SEDeployment.jar
Expanding: E:\a2k7\bugs\100560\test02
\SynchronousSample\SynchronousSample\build\SEDeployment.jar into E:\a2k7
\bugs\100560\test02\XsltModule1\build\SynchronousSample
Warning: E:\a2k7\bugs\100560\test02\XsltModule1\build\SynchronousSample\WEB-
INF\classes not found.
PackageRetrievedFiles:
getProjectWideCatalogForWizard: null
E:\a2k7\bugs\100560\test02\XsltModule1\nbproject\build-impl.xml:138: 
java.lang.RuntimeException: java.lang.RuntimeException: PartnerLink Type is 
Null!
BUILD FAILED (total time: 16 seconds) 

The error messages indicate the XSLT project failed at the XsltProjectJBIGen 
task.
Comment 1 Tientien Li 2007-04-23 23:23:24 UTC
Created attachment 41505 [details]
test projects: sync sample bpel projects and xslt project
Comment 2 Vitaly Bychkov 2007-04-25 19:28:14 UTC
Fixed.
Comment 3 Tientien Li 2007-04-25 23:31:35 UTC
The build error is fixed, but I am still getting the deployment error. Not 
sure this is the XSLT project problem or the XSLT SE problem. I re-open this 
ticket for now. Please close this one if it is determined to be an XSLT SE 
issue.

Step to reproduce the problem:

- create a XSLT project using XML from Sync Sample BPEL project
- create a CompApp project to include the XSLT project
- build and deploy the CompApp project
- the AppServer (GFv2-v41d) log indicates deployment failed:

Starting service assembly CompositeApp1 on target server.
Initializing SU "CompositeApp1-XsltModule1" at root path: 
E:\glassfish\domains\domain1\jbi\service-assemblies\CompositeApp1
\CompositeApp1-XsltModule1\sun-xslt-engine
XSLT SE descriptor parsing failed: Missing WSDL for specified partnerLinkType: 
{http://localhost/SynchronousSample/SynchronousSample}partnerlinktype1
javax.jbi.management.DeploymentException: Missing WSDL for specified 
partnerLinkType: {http://localhost/SynchronousSample/SynchronousSample}
partnerlinktype1
        at com.sun.jbi.engine.xslt.endpoint.XsltseDescriptorParser.error
(XsltseDescriptorParser.java:323)
        at 
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptorParser.findPartnerLinkType
(XsltseDescriptorParser.java:281)
        at com.sun.jbi.engine.xslt.endpoint.XsltseDescriptorParser.startElement
(XsltseDescriptorParser.java:106)
        at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement
(AbstractSAXParser.java:533)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStar
tElement(XMLDocumentFragmentScannerImpl.java:878)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragment
ContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocu
ment(XMLDocumentFragmentScannerImpl.java:368)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:834)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:764)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
(XMLParser.java:148)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1242)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at com.sun.jbi.engine.xslt.endpoint.XsltseDescriptor.parse
(XsltseDescriptor.java:118)
        at 
com.sun.jbi.engine.xslt.endpoint.XsltseEndpointManager.initServiceUnit
(XsltseEndpointManager.java:110)
        at com.sun.jbi.component.lifecycle.impl.AbstractServiceUnitManager.init
(AbstractServiceUnitManager.java:114)
        at com.sun.jbi.framework.ServiceUnitOperation.process
(ServiceUnitOperation.java:167)
        at com.sun.jbi.framework.Operation.run(Operation.java:104)
        at java.lang.Thread.run(Thread.java:595)
Failed to parse service unit descriptor: XSLT SE descriptor parsing failed: 
Missing WSDL for specified partnerLinkType: 
{http://localhost/SynchronousSample/SynchronousSample}partnerlinktype1
javax.jbi.management.DeploymentException: Missing WSDL for specified 
partnerLinkType: {http://localhost/SynchronousSample/SynchronousSample}
partnerlinktype1
        at com.sun.jbi.engine.xslt.endpoint.XsltseDescriptorParser.startElement
(XsltseDescriptorParser.java:141)
        at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement
(AbstractSAXParser.java:533)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStar
tElement(XMLDocumentFragmentScannerImpl.java:878)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragment
ContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocu
ment(XMLDocumentFragmentScannerImpl.java:368)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:834)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:764)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
(XMLParser.java:148)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1242)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at com.sun.jbi.engine.xslt.endpoint.XsltseDescriptor.parse
(XsltseDescriptor.java:118)
        at 
com.sun.jbi.engine.xslt.endpoint.XsltseEndpointManager.initServiceUnit
(XsltseEndpointManager.java:110)
        at com.sun.jbi.component.lifecycle.impl.AbstractServiceUnitManager.init
(AbstractServiceUnitManager.java:114)
        at com.sun.jbi.framework.ServiceUnitOperation.process
(ServiceUnitOperation.java:167)
        at com.sun.jbi.framework.Operation.run(Operation.java:104)
        at java.lang.Thread.run(Thread.java:595)
Comment 4 Alexey Yarmolenko 2007-04-26 07:00:06 UTC
As soon as we have no separate branch for j1 version at this point, i the fix on
Vitaly's local copy yesterday.
Fix looks ok for me.
Comment 5 Vitaly Bychkov 2007-04-26 15:05:25 UTC
It looks like xslt-se doesn't search in subdirs for wsdls
I've filed a bug against xslt-se (6550662).
Comment 6 Sergey Lunegov 2007-04-26 15:23:56 UTC
Let's keep it open until XSLT SE bug will be fixed.
Comment 7 kevan1138 2007-04-26 20:08:56 UTC
A fix for the XSLT SE issue, 6550662, has been checked into java.net repository.
Comment 8 nrsunil 2007-05-04 12:16:03 UTC
I have created the projects based on the given steps and later when I deploy the
project am getting the fatal error mentined below :

[start-service-assembly]
    Starting a service assembly...
        host=localhost
        port=17888
        name=CompositeApp6
Successful execution of Start
WARNING: (JBIMA0405) Start of service assembly CompositeApp6 succeeded
partially; some service units failed to start.
    * Component: sun-xslt-engine
      ERROR: () Content is not allowed in prolog.
    * Component: sun-http-binding
      INFO: (JBIMA0500) Lifecycle operation start succeeded for Service Unit
CompositeApp6-sun-http-binding.
run:
BUILD SUCCESSFUL (total time: 7 seconds)

Below are the build details as follows :
App Server details:

  App Server version           = Sun Java System Application Server 9.1 (build
b44-beta3)
  App Server build date        = Wed Apr 25 11:56:10 GMT+05:30 2007

JBI details:
_______________________________________________________________________________________

Running at 04 May 2007 02:58:54 PM on Windows XP 5.1 [x86] using Java
1.6.0_01-b06 from c:\Progra~1\Java\jdk1.
6.0_01\jre

  app server type              = GLASSFISH (sub-type = CLUSTER version = 91)
  app server domains           = 1 (instances = 0 cluster = )
  java.io.tmpdir               = C:\DOCUME~1\rn162588\LOCALS~1\Temp\
  jbi port                     = 17888 (secure = true)
  installed runtime build      = 070503_6
  installed component build    = 070503_6
  installed product variant    = Kenai
  installed product kit type   = image


JBI build details:

  JBI Framework     build date = Fri May 04 00:07:00 GMT+05:30 2007 [source:
d:/gf91/jbi/lib/jbi_framework.jar
]
  HTTP SOAP Binding build date = Wed May 02 12:24:02 GMT+05:30 2007 [source:
d:/gf91/jbi/components/sun-http-b
inding/httpsoapbc.jar]
  BPEL Engine       build date = Wed May 02 12:26:02 GMT+05:30 2007 [source:
d:/gf91/addons/jbi-components/bpe
lserviceengine.jar]


NetBeans build details:

  Netbeans IDE      build      = 200704300000
  Netbeans IDE      build date = Mon Apr 30 05:01:42 GMT+05:30 2007 [source:
d:/netbeans/6.0/platform7/core/co
re.jar]
  CAPS Modules      build date = Mon Apr 30 05:41:04 GMT+05:30 2007 [source:
d:/netbeans/6.0/soa1/modules/org-
netbeans-modules-compapp-projects-jbi.jar]
Comment 9 Vitaly Bychkov 2007-05-05 13:26:45 UTC
It looks like the previous problem is still there.


The test project is in the attachment.
After deployment step one can saw next server log:

Initializing SU "CompositeApp11-XsltModule11" at root path:
C:\Sun\AppServer-b41d\domains\domain1\jbi\service-assemblies\CompositeApp11\CompositeApp11-XsltModule11\sun-xslt-engine
XSLT SE descriptor parsing failed: Missing WSDL for specified partnerLinkType:
{http://localhost/SynchronousSample/SynchronousSample}partnerlinktype1
javax.jbi.management.DeploymentException: Missing WSDL for specified
partnerLinkType:
{http://localhost/SynchronousSample/SynchronousSample}partnerlinktype1
        at
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptorParser.error(XsltseDescriptorParser.java:323)
        at
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptorParser.findPartnerLinkType(XsltseDescriptorParser.java:281)
        at
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptorParser.startElement(XsltseDescriptorParser.java:106)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1357)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
        at
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptor.parse(XsltseDescriptor.java:118)
        at
com.sun.jbi.engine.xslt.endpoint.XsltseEndpointManager.initServiceUnit(XsltseEndpointManager.java:110)
        at
com.sun.jbi.component.lifecycle.impl.AbstractServiceUnitManager.init(AbstractServiceUnitManager.java:114)
        at
com.sun.jbi.framework.ServiceUnitOperation.process(ServiceUnitOperation.java:167)
        at com.sun.jbi.framework.Operation.run(Operation.java:104)
        at java.lang.Thread.run(Thread.java:619)
Failed to parse service unit descriptor: XSLT SE descriptor parsing failed:
Missing WSDL for specified partnerLinkType:
{http://localhost/SynchronousSample/SynchronousSample}partnerlinktype1
javax.jbi.management.DeploymentException: Missing WSDL for specified
partnerLinkType:
{http://localhost/SynchronousSample/SynchronousSample}partnerlinktype1
        at
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptorParser.startElement(XsltseDescriptorParser.java:141)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1357)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
        at
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptor.parse(XsltseDescriptor.java:118)
        at
com.sun.jbi.engine.xslt.endpoint.XsltseEndpointManager.initServiceUnit(XsltseEndpointManager.java:110)
        at
com.sun.jbi.component.lifecycle.impl.AbstractServiceUnitManager.init(AbstractServiceUnitManager.java:114)
        at
com.sun.jbi.framework.ServiceUnitOperation.process(ServiceUnitOperation.java:167)
        at com.sun.jbi.framework.Operation.run(Operation.java:104)
        at java.lang.Thread.run(Thread.java:619)
Service unit "CompositeApp11-XsltModule11" init failed: Failed to parse service
unit descriptor: XSLT SE descriptor parsing failed: Missing WSDL for specified
partnerLinkType:
{http://localhost/SynchronousSample/SynchronousSample}partnerlinktype1
javax.jbi.management.DeploymentException: Failed to parse service unit
descriptor: XSLT SE descriptor parsing failed: Missing WSDL for specified
partnerLinkType:
{http://localhost/SynchronousSample/SynchronousSample}partnerlinktype1
        at
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptor.error(XsltseDescriptor.java:200)
        at
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptor.parse(XsltseDescriptor.java:130)
        at
com.sun.jbi.engine.xslt.endpoint.XsltseEndpointManager.initServiceUnit(XsltseEndpointManager.java:110)
        at
com.sun.jbi.component.lifecycle.impl.AbstractServiceUnitManager.init(AbstractServiceUnitManager.java:114)
        at
com.sun.jbi.framework.ServiceUnitOperation.process(ServiceUnitOperation.java:167)
        at com.sun.jbi.framework.Operation.run(Operation.java:104)
        at java.lang.Thread.run(Thread.java:619)
Caused by: javax.jbi.management.DeploymentException: Missing WSDL for specified
partnerLinkType:
{http://localhost/SynchronousSample/SynchronousSample}partnerlinktype1
        at
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptorParser.startElement(XsltseDescriptorParser.java:141)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1357)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
        at
com.sun.jbi.engine.xslt.endpoint.XsltseDescriptor.parse(XsltseDescriptor.java:118)
        ... 5 more
[Fatal Error] :1:1: Content is not allowed in prolog.
Initializing service unit : CompositeApp11-sun-http-binding from
C:\Sun\AppServer-b41d\domains\domain1\jbi\service-assemblies\CompositeApp11\CompositeApp11-sun-http-binding\sun-http-binding
Retrieving document at
'C:\Sun\AppServer-b41d\domains\domain1\jbi\service-assemblies\CompositeApp11\CompositeApp11-sun-http-binding\sun-http-binding\XsltModule11\SynchronousSample11\SynchronousSample.wsdl'.
Service unit CompositeApp11-sun-http-binding was initialized successfully
Starting suId : CompositeApp11-sun-http-binding
Prepared inbound endpoint
{http://localhost/SynchronousSample/SynchronousSample}service1,port1,inbound
mapped to context /SynchronousSample
Started : CompositeApp11-sun-http-binding
Service unit operation for service unit CompositeApp11-XsltModule11 targeted to
component sun-xslt-engine failed.


I used xslt-se build number (200704182238).
Comment 10 Vitaly Bychkov 2007-05-05 13:32:57 UTC
Created attachment 42160 [details]
test project
Comment 11 Vitaly Bychkov 2007-05-08 12:16:26 UTC
The issue doesn't reproduced with the latest jbi_components build (Build070504_1).
Comment 12 Vitaly Bychkov 2007-05-08 12:26:00 UTC
Let's keep it open until this fix appears in the installer.
Comment 13 nrsunil 2007-05-10 11:20:51 UTC
Verified in the runtime build 070508_1 and netbeans build 200705080000, Observed
that it works fine. Below is the build details as follows :

App Server details:

  App Server version           = Sun Java System Application Server 9.1 (build
b45-beta3)
  App Server build date        = Thu May 03 00:39:04 GMT+05:30 2007

JBI details:
_______________________________________________________________________________________

Running at 10 May 2007 03:36:13 PM on Windows XP 5.1 [x86] using Java
1.6.0_01-b06 from c:\Progra~1\Java\jdk1.
6.0_01\jre

  app server type              = GLASSFISH (sub-type = CLUSTER version = 91)
  app server domains           = 1 (instances = 0 cluster = )
  java.io.tmpdir               = C:\DOCUME~1\rn162588\LOCALS~1\Temp\
  jbi port                     = 17888 (secure = true)
  installed runtime build      = 070508_1
  installed component build    = 070508_1
  installed product variant    = Kenai
  installed product kit type   = image


JBI build details:

  JBI Framework     build date = Tue May 08 17:05:14 GMT+05:30 2007 [source:
d:/gf91/jbi/lib/jbi_framework.jar
]
  HTTP SOAP Binding build date = Wed May 02 12:24:02 GMT+05:30 2007 [source:
d:/gf91/jbi/components/sun-http-b
inding/httpsoapbc.jar]
  BPEL Engine       build date = Wed May 02 12:26:02 GMT+05:30 2007 [source:
d:/gf91/addons/jbi-components/bpe
lserviceengine.jar]


NetBeans build details:

  Netbeans IDE      build      = 200705080000
  Netbeans IDE      build date = Tue May 08 04:22:18 GMT+05:30 2007 [source:
d:/netbeans/6.0/platform7/core/co
re.jar]
  CAPS Modules      build date = Tue May 08 04:46:00 GMT+05:30 2007 [source:
d:/netbeans/6.0/soa1/modules/org-
netbeans-modules-compapp-projects-jbi.jar]
Comment 14 nrsunil 2007-05-11 10:10:16 UTC
Verified in the runtime build 070508_1 and netbeans build 200705080000, Observed
that it works fine and hence marked as verified state.