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 131544 - Failed deployment does not throw error
Summary: Failed deployment does not throw error
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jun Qian
URL:
Keywords:
: 134581 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-30 11:00 UTC by deepakhp
Modified: 2008-10-22 20:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
deploying comp app with missing component via jbi manager (16.85 KB, image/png)
2008-03-31 03:29 UTC, Venkat Chellasamy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description deepakhp 2008-03-30 11:00:25 UTC
1. Create a composite app
2. shutdown the JBI component
3. Deploy CA

I get the following error in NB,
[deploy-service-assembly]
    Deploying a service assembly...
        host=localhost
        port=4848
        file=/Users/deepak/NetBeansProjects/BugVerification/CompositeApp1/dist/CompositeApp1.zip
ERROR: Service assembly deployment failed (see error below). Cleaning up...
[undeploy-service-assembly]
    Undeploying a service assembly...
        host=localhost
        port=4848
        name=CompositeApp1
/Users/deepak/NetBeansProjects/BugVerification/CompositeApp1/nbproject/build-impl.xml:235: Failed execution of Undeploy:
CompositeApp1
ERROR: (JBIMA1402) Service assembly CompositeApp1 is not registered in the domain.
BUILD FAILED (total time: 1 second)


I see the following error in AppSever Log,
#|2008-03-30T15:18:17.963+0530|INFO|sun-appserver9.1|com.sun.jbi.management|_ThreadID=19;_ThreadName=httpWorkerThread-4848-1;|Deploying
service assembly CompositeApp1 to target server.|#]

[#|2008-03-30T15:18:18.039+0530|WARNING|sun-appserver9.1|com.sun.jbi.management|_ThreadID=17;_ThreadName=httpWorkerThread-4848-0;_RequestID=d11a1777-04aa-4185-b27a-46667eb97c19;|<?xml
version="1.0" encoding="UTF-8" standalone="yes"?><jbi-task version="1.0"
xmlns="http://java.sun.com/xml/ns/jbi/management-message"><jbi-task-result><frmwk-task-result><frmwk-task-result-details><task-result-details><task-id>undeploy</task-id><task-result>FAILED</task-result><message-type>ERROR</message-type><task-status-msg><msg-loc-info><loc-token>JBIMA1402</loc-token><loc-message>Service
assembly CompositeApp1 is not registered in the
domain.</loc-message><loc-param>CompositeApp1</loc-param></msg-loc-info></task-status-msg></task-result-details><locale>en_US</locale></frmwk-task-result-details></frmwk-task-result></jbi-task-result></jbi-task>|#]

There is no way user can know the error is due to JBI Component Not installed.
Comment 1 deepakhp 2008-03-30 11:02:50 UTC
Step 2 should be,
2. Uninstall the JBI component
Comment 2 Venkat Chellasamy 2008-03-31 03:29:23 UTC
Created attachment 59376 [details]
deploying comp app with missing component via jbi manager
Comment 3 Venkat Chellasamy 2008-03-31 03:33:41 UTC
Jun,
Can you add the same error indication for comp app deployment from project tree as from jbi manager.
when the underlying component is not present, deployment from jbi manager gives users indication if any associated
component is not present (see attached png file).
Since this is better error handling ticket and functionality is available from jbi manager, reducing priority.
Comment 4 Jun Qian 2008-04-04 08:43:59 UTC
Fixed (in trunk) hidden deployment error message. Also no longer try to undeploy the SA if the deployment fails completely.

The output tab now shows:

......
run-jbi-deploy:
[deploy-service-assembly]
    Deploying a service assembly...
        host=localhost
        port=4848
        file=C:\Documents and Settings\jqian\My
Documents\NetBeansProjects\SynchronousSample6\SynchronousSample6Application/dist/SynchronousSample6Application.zip
ERROR: Failed execution of Deploy: C:\Documents and Settings\jqian\My
Documents\NetBeansProjects\SynchronousSample6\SynchronousSample6Application/dist/SynchronousSample6Application.zip
ERROR: (JBIMA1407) Required component sun-bpel-engine is not installed on target server.
C:\Documents and Settings\jqian\My
Documents\NetBeansProjects\SynchronousSample6\SynchronousSample6Application\nbproject\build-impl.xml:213: Deployment
failure.
BUILD FAILED (total time: 1 second)

Changeset in trunk: 96511d041bfc
Comment 5 Murali Pottlapelli 2008-04-07 18:10:22 UTC
Here is the email discussion
Deepak H P wrote:
> Me too.
>
> Venkat Chellasamy wrote:
>>
>> I would vote for merging into 6.1.
>>
>> Prashant Bhagat wrote:
>>> Thanks Jun. The user will certainly get confused if the message is not there in the NB console. Not sure whether it
warrants a P1 since the user can see the message when he tries to deploy using the Services tab. Nevertheless, I think
this should go in.
>>>
>>> Venkat/Deepak,
>>> What do you think?
>>>
>>> Thanks
>>>
>>>
>>>
>>> Jun Qian wrote:
>>>> http://www.netbeans.org/issues/show_bug.cgi?id=131544
>>>>
>>>>
>>>> This has already been fixed in NetBeans trunk, but unfortunately it is not in the release61 branch because of
NetBeans 6.1's code freeze. If you think this is a stopper, you can change the ticket's priority to P1. That way, I can
merge the fix into release61 branch.
>>>>
>>>> Thanks,
>>>> Jun
Comment 6 jlautz 2008-04-08 23:37:30 UTC
When I follow the scenario:

1. Create a valid composite application. (I used SynchronousSampleApplication in the SynchronousSample sample app.)O
2. Delete the component the implements one of the JBI modules (BPEL, in this case).
3. Deploy the composite application.

==> I see the following messages:

pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
init-deploy:
deps-jar:
init:
Building jar: /Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2/build/SEDeployment.jar
dist_se:
Expanding: /Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2/build/SEDeployment.jar into
/Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/src/jbiServiceUnits/SynchronousSample2
Moving 1 file to
/Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/src/jbiServiceUnits/SynchronousSample2
Moving 1 file to
/Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/src/jbiServiceUnits/META-INF/SynchronousSample2
deps-javaee-jar:
jbi-build:
Copying 1 file to /Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/src/jbiServiceUnits
Building jar: /Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/build/BCDeployment.jar
Validating CompApp project...
Resolving connections...
Writing connections out to connections.xml...
Generating Service Assembly jbi.xml...
Merging component projects' catalogs...
Generating Binding Component Service Units...
  creating sun-http-binding.jar
Creating/Updating CASA...
Filtering Java EE Endpoints...
Deleting: /Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/build/BCDeployment.jar
Building jar:
/Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/dist/SynchronousSample2Application.zip
Building jar:
/Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/dist/SynchronousSample2Application.zip
run-jbi-deploy:
[deploy-service-assembly]
    Deploying a service assembly...
        host=localhost
        port=4848
       
file=/Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/dist/SynchronousSample2Application.zip
ERROR: Failed execution of Deploy:
/Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/dist/SynchronousSample2Application.zip
ERROR: (JBIMA1407) Required component sun-bpel-engine is not installed on target server.
/Users/lautz/NetBeansProjects/SynchronousSample2/SynchronousSample2Application/nbproject/build-impl.xml:213: Deployment
failure.
BUILD FAILED (total time: 5 seconds)


Verifying that this is the expected result. Tested with NB trunk build 1530 on Solaris x86.
Comment 7 Jun Qian 2008-04-11 23:28:36 UTC
Fixed in release61 branch.

http://hg.netbeans.org/release61-php?cmd=changeset;node=beb06e9ec46a
Comment 8 vinathi 2008-04-29 21:06:23 UTC
Verified using 20080429-0500 .
got the following exception while deploying the project
ERROR: Failed execution of Deploy: C:\Documents and Settings\vmapakshi\My 
Documents\NetBeansProjects\SynchronousSample\SynchronousSampleApplication/dist/SynchronousSampleApplication.zip
ERROR: (JBIMA1407) Required component sun-bpel-engine is not installed on target server.
C:\Documents and Settings\vmapakshi\My 
Documents\NetBeansProjects\SynchronousSample\SynchronousSampleApplication\nbproject\build-impl.xml:213: Deployment 
failure.
BUILD FAILED (total time: 1 second)
Comment 9 deepakhp 2008-10-17 12:33:24 UTC
Closing the bug, since it is already verified
Comment 10 Jun Qian 2008-10-22 20:35:23 UTC
*** Issue 134581 has been marked as a duplicate of this issue. ***