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 85839 - CA deployment fails
Summary: CA deployment fails
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexander Zgursky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-26 21:54 UTC by Sherry Barkodar
Modified: 2007-08-15 20:01 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
loanRequestor.zip (17.85 KB, application/octet-stream)
2006-09-26 21:54 UTC, Sherry Barkodar
Details
enb.zip (11.31 KB, application/octet-stream)
2006-09-26 21:55 UTC, Sherry Barkodar
Details
project did fail to build (160.50 KB, application/octet-stream)
2006-09-28 03:55 UTC, Ritesh Adval
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sherry Barkodar 2006-09-26 21:54:01 UTC
Attached is the LoanProcessing Tutorial
The BPEL project builds successfuly, but the deployment fails giving the
following msg:

pre-dist:
PackageRetrievedFiles:
Deleting directory D:\Demo\LoanRequestor\build\dependentProjectFiles
Created dir: D:\Demo\LoanRequestor\build\dependentProjectFiles
dist_se:
Building jar: D:\Demo\LoanRequestor\build\SEDeployment.jar
Expanding: D:\Demo\LoanRequestor\build\SEDeployment.jar into
D:\Demo\LoanRequestorCompositApp\src\bindingComponentASA
Expanding: D:\Demo\LoanRequestor\build\SEDeployment.jar into
D:\Demo\LoanRequestorCompositApp\src\bindingComponentASA\META-INF\catalogData\LoanRequestor
jbi-build:
Building jar: D:\Demo\LoanRequestorCompositApp\build\BCDeployment.jar
 copying Sub-Assembly: D:\Demo\LoanRequestorCompositApp\build\LoanRequestor.jar
Create BindingComponent jar:
D:\Demo\LoanRequestorCompositApp\build/com.sun.httpsoapbc-1.0-2.jar
Deleting: D:\Demo\LoanRequestorCompositApp\build\BCDeployment.jar
Building jar: D:\Demo\LoanRequestorCompositApp\dist\LoanRequestorCompositApp.zip
run-jbi-deploy:
[deploy-service-assembly]
    Deploying a service assembly...
        host=localhost
        port=4848
        file=D:\Demo\LoanRequestorCompositApp/dist/LoanRequestorCompositApp.zip
Successful execution of Deploy
WARNING: (JBIMA1004) The Service Assembly LoanRequestorCompositApp was deployed
 successfully.
    * Component: com.sun.httpsoapbc-1.0-2
      ERROR: (SOAPBC_DEPLOY_2) Failed to deploy: WSDLException (at
/definitions/types/xsd:schema): faultCode=OTHER_ERROR: An error occurred trying
to resolve schema referenced at
''../../../../Demo/LoanRequestor/src/LoanRequestor.xsd'', relative to
''file:/C:/Sun/AppServer/domains/domain1/jbi/system/deployment/LoanRequestorCompositApp/com.sun.httpsoapbc-1.0-2_LoanRequestorCompositApp-com.sun.httpsoapbc-1.0-2/LoanRequestor.wsdl''.:
This file was not found:
file:/C:/Sun/AppServer/domains/domain1/jbi/Demo/LoanRequestor/src/LoanRequestor.xsd:
java.io.FileNotFoundException: This file was not found:
file:/C:/Sun/AppServer/domains/domain1/jbi/Demo/LoanRequestor/src/LoanRequestor.xsd
        at
com.ibm.wsdl.util.StringUtils.getContentAsInputStream(StringUtils.java:192)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:747)
        at
com.sun.jbi.wsdlvalidator.impl.ValidatingWSDLReaderImpl.parseSchema(ValidatingWSDLReaderImpl.java:117)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:599)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:562)
        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:291)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2080)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2072)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2097)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2041)
        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2004)
        at
com.sun.jbi.wsdlvalidator.impl.ValidatingWSDLReaderImpl.readWSDL(ValidatingWSDLReaderImpl.java:82)
        at
com.sun.jbi.wsdlvalidator.impl.ValidatingWSDLReaderImpl.readWSDL(ValidatingWSDLReaderImpl.java:89)
        at
com.sun.jbi.httpsoapbc.ServiceUnitImpl.createEndpoints(ServiceUnitImpl.java:359)
        at com.sun.jbi.httpsoapbc.ServiceUnitImpl.deploy(ServiceUnitImpl.java:161)
        at
com.sun.jbi.httpsoapbc.HttpSoapBindingDeployer.deploy(HttpSoapBindingDeployer.java:144)
        at
com.sun.jbi.framework.ServiceUnitOperation.process(ServiceUnitOperation.java:145)
        at com.sun.jbi.framework.Operation.run(Operation.java:86)
        at java.lang.Thread.run(Thread.java:595)
[start-service-assembly]
    Starting a service assembly...
        host=localhost
        port=4848
        name=LoanRequestorCompositApp
Failed execution of Start
ERROR: (JBIMA1202) Lifecycle command startServiceAssembly failed for
LoanRequestorCompositApp : 
    * Component: com.sun.bpelse-1.0-2
      ERROR: ( ) JBIFW2460: Unexpected exception java.lang.NullPointerException
occurred on init for Service Unit init. The exception has no message text.
D:\Demo\LoanRequestorCompositApp\nbproject\build-impl.xml:204: Service assembly
deployment failed.
BUILD FAILED (total time: 4 seconds)
Comment 1 Sherry Barkodar 2006-09-26 21:54:29 UTC
Created attachment 34549 [details]
loanRequestor.zip
Comment 2 Sherry Barkodar 2006-09-26 21:55:22 UTC
Created attachment 34550 [details]
enb.zip
Comment 3 Sherry Barkodar 2006-09-26 21:57:28 UTC
link to the loan tutorial
http://bookshelf.sfbay.sun.com/jets/JavaStudio/Coke/postbeta/loanprocessing4.htm
Comment 4 Sherry Barkodar 2006-09-26 22:06:06 UTC
This problem is because of bug 85837.  However, the qustion is why the BPEL
module builds successfully?
I change it to P2. But, I still think if there is any problem with the BPEL
module it should come up when the BPEL Module is build.
Comment 5 Tientien Li 2006-09-27 22:44:08 UTC
Ritesh pointed out that this bug has been fixed in 9/25 build. However, the 
bpel project build validation did not pick this error up. 

Ritesh,

Can you evaluate this and assign it to the appropriate module responsible for 
the validation of this error?

Thanks,
Comment 6 Ritesh Adval 2006-09-28 03:54:07 UTC
When I try to build LoanRequestor project it does fail with errors,
and those are due to importing xsd which are non existent.

<xsd:import namespace="http://xml.netbeans.org/schema/LoanRequestor" 
schemaLocation="../../../../Demo/LoanRequestor/src/LoanRequestor.xsd"/>

See attached.

Though error does not say anything about importing a non existent xsd.

We should fix this in wsdl validation to have a more meaningful error reporting
for this error, it should say 
that "../../../../Demo/LoanRequestor/src/LoanRequestor.xsd" is not found or 
something like that.

Kini,

see if this can be fixed now, this is not a showstopper and can be dealt later 
as well. 



Comment 7 Ritesh Adval 2006-09-28 03:55:07 UTC
Created attachment 34648 [details]
project did fail to build
Comment 8 Shivanand Kini 2006-09-30 00:10:07 UTC
My observation is that the validation done from wsdl ui doesnt show the errors,
because it is able to resolve the part element or type. (I mean the wsdlmodel is
able to resolve the part from the correct schema)

When this is run from the ant task, the model is not able to resolve the part
element or type, so it shows the errors.

This needs more evaluation as to what is different between the two ways.

Also the JAXP validator doesnt throw a exception if the schemaLocation cannot be
resolved, so there are no errors relating to invalid schema location. This
occurs in the schema editor too.
I think its better to fix this post FCS.


Comment 9 Shivanand Kini 2006-10-02 20:13:54 UTC
assigning to model for evaluation, why does model resolve the schema when run
from wsdl editor and why not from the ant task.
Comment 10 Tientien Li 2006-10-02 20:43:16 UTC
Chris,

Any reason for this reassign? Thanks,

User cwebster changed the following:

                What    |Old value                 |New value
===============================================================================
=
             Assigned to|nnguyen                   |issues@enterprise
-------------------------------------------------------------------------------
-
               Component|xml                       |enterprise
-------------------------------------------------------------------------------
-
              QA contact|issues@xml                |issues@enterprise
-------------------------------------------------------------------------------
-
            Subcomponent|wsdl tools                |compapp project
-------------------------------------------------------------------------------
-
Comment 11 Chris Webster 2006-10-02 20:47:38 UTC
The issue is regarding catalog resolution from the build. The issue mentions
that things resolve as expected in the IDE but not from build. 
Comment 12 Tientien Li 2006-10-02 20:50:52 UTC
So, you consider the wsdl with the bad schemaLocation is valid? 
Comment 13 Chris Webster 2006-10-02 21:13:07 UTC
I opened LoanRequestor did a clean build -- no errors, did a ui validation on
LoanRequestor -- no errors

Then I changed the imports for the embedded schema to reference a non existent
LoanRequestor.xsd document. An error was raised when using the validate action,
but no error during build. 
Comment 14 Tientien Li 2006-10-02 21:22:54 UTC
Looks like we are in a loop... Chris, plese see my comments made on 9/27. 

I think this is a bpel project validation issue and assigned it to the bpel 
project. Ritesh think it was a wsdl issue assigned to Kini. Kini assigned to 
xml... and you assigned it back to compapp project. If you think this is a 
bepl build validation error, then assign it to the bpel project, not the 
compapp project.
Comment 15 Sreenivasan Genipudi 2006-10-05 08:40:23 UTC
The reason is same as http://www.netbeans.org/issues/show_bug.cgi?id=84652
The fixes to http://www.netbeans.org/issues/show_bug.cgi?id=84652
 http://www.netbeans.org/issues/show_bug.cgi?id=85179 will fix this issue.

Checked into release55_dev branch
Comment 16 _ hong_lin 2006-10-06 00:50:19 UTC
sreenigv, Please update the "Status" and "Target milestone" field, so QE can 
verify the fix. Thanks.
Comment 17 Ritesh Adval 2006-10-06 04:50:12 UTC
fix for 85179 fixes this.
The change for 85179 looks fine to me.
Comment 18 Sreenivasan Genipudi 2006-10-07 06:51:21 UTC
validation during bpel build is in synch with editor validation. Fixed. Please use
next release build to test. ( Ent pack )
Comment 19 Andrei Chistiakov 2007-05-31 11:35:25 UTC
With build 070530 the build of LoanRequestor fails with the following output:

pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init-taskdefs:
init:
pre-dist:
D:\sss\LoanRequestor\nbproject\build-impl.xml:155: java.lang.NullPointerException
BUILD FAILED (total time: 0 seconds)
Comment 20 Alexander Zgursky 2007-07-13 19:01:02 UTC
Reproduced. The attached project uses the obsolete namespaces for BPEL, and the validator reports correctly saying it
can not find the element "process". Although, when it tries to build, it gets NPE from the ant task which is defined by
class org.netbeans.modules.bpel.project.anttasks.ValidateBPELProjectTask.
Needs further investigation.
Comment 21 Alexander Zgursky 2007-07-15 20:12:08 UTC
In my last comment I've confused the class name, it's really IDEValidateBPELProject.
Fixed in trunk:
Checking in IDEValidateBPELProject.java;
/cvs/enterprise/bpel/project/antsrc/org/netbeans/modules/bpel/project/anttasks/IDEValidateBPELProject.java,v  <-- 
IDEValidateBPELProject.java
new revision: 1.14; previous revision: 1.13
Comment 22 _ hong_lin 2007-08-15 20:01:24 UTC
Close "FIXED" issue against previous releases