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 80778 - Fail to deploy ReservationServicesApplication
Summary: Fail to deploy ReservationServicesApplication
Status: CLOSED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: SOA (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Michael Frisino
URL:
Keywords:
: 80622 81031 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-21 07:15 UTC by _ hong_lin
Modified: 2006-07-26 20:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ hong_lin 2006-07-21 07:15:13 UTC
Build: NB 5.5 Beta2 (Build 200607190830, Ent.Pack 2006.07.19)

Steps to reproduce it:
1. Create TRS sample app.
2. After resolving all reference issue. Deploy 
ReservationPartnerServicesApplication.

Will get the following error in the Output window:
...
Finished registering server resources
deployment started : 0%
Deploying application in domain failed; Error loading deployment descriptors 
for module [reservationpartnerservicesapplication] Line 16 Column 20 -- 
Deployment descriptor file META-INF/sun-application.xml in archive 
[reservationpartnerservicesapplication].  XML document structures must start 
and end within the same entity.
C:\Documents and 
Settings\Hong\TravelReservationService\ReservationPartnerServicesApplication\nb
project\build-impl.xml:217: Deployment error:
The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 32 seconds)

In server.log, found this Exception:

[#|2006-07-20T23:01:28.372-0700|SEVERE|sun-appserver-
pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=15;_ThreadName=Thread-
56;_RequestID=c941cf9a-a53c-4442-9755-9a1aeb935c47;|Exception occured in J2EEC 
Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading 
deployment descriptors for module [reservationpartnerservicesapplication] Line 
16 Column 20 -- Deployment descriptor file META-INF/sun-application.xml in 
archive [reservationpartnerservicesapplication].  XML document structures must 
start and end within the same entity.
	at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors
(Deployer.java:352)
	at 
com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors
(AppDeployerBase.java:327)
	at com.sun.enterprise.deployment.backend.AppDeployer.explodeArchive
(AppDeployer.java:332)
	at com.sun.enterprise.deployment.backend.AppDeployer.deploy
(AppDeployer.java:182)
	at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish
(AppDeployer.java:129)
	at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase
(J2EECPhase.java:169)
	at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase
(DeploymentPhase.java:95)
	at 
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases
(PEDeploymentService.java:871)
	at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy
(PEDeploymentService.java:266)
	at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy
(PEDeploymentService.java:739)
	at com.sun.enterprise.management.deploy.DeployThread.deploy
(DeployThread.java:174)
	at com.sun.enterprise.management.deploy.DeployThread.run
(DeployThread.java:210)
Caused by: org.xml.sax.SAXParseException: XML document structures must start 
and end within the same entity.
	at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read
(DeploymentDescriptorFile.java:285)
	at 
com.sun.enterprise.deployment.archivist.Archivist.readRuntimeDeploymentDescript
or(Archivist.java:514)
	at 
com.sun.enterprise.deployment.archivist.ApplicationArchivist.readRuntimeDeploym
entDescriptor(ApplicationArchivist.java:392)
	at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors
(Deployer.java:320)
	... 11 more
|#]
Comment 1 _ hong_lin 2006-07-21 07:40:21 UTC
Found this in messages.log file

INFORMATIONAL *********** Exception occurred ************ at 11:01 PM on Jul 
20, 2006
The module has not been deployed.
[catch] at 
org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy
(Deployment.java:115)
	at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:82)
	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
(DefaultExecutor.java:40)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
	at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run
(BridgeImpl.java:240)
	at org.apache.tools.ant.module.run.TargetExecutor.run
(TargetExecutor.java:293)
	at org.netbeans.core.execution.RunClassThread.run
(RunClassThread.java:131)
Comment 2 Michael Frisino 2006-07-24 09:15:17 UTC
*** Issue 80622 has been marked as a duplicate of this issue. ***
Comment 3 Michael Frisino 2006-07-24 14:09:41 UTC
The copywrite notice was improperly inserted and broke the format of
sun-application.xml

I have fixed and checked in.
Comment 4 Michael Frisino 2006-07-24 14:10:15 UTC
x
Comment 5 Michael Frisino 2006-07-24 14:12:15 UTC
fixed.
Comment 6 _ hong_lin 2006-07-24 23:42:07 UTC
Verified the the fix is in NB 5.5 Beta2 soa auto build 060724_25.
Comment 7 Michael Frisino 2006-07-25 07:41:44 UTC
*** Issue 81031 has been marked as a duplicate of this issue. ***
Comment 8 lchang 2006-07-26 20:54:49 UTC
verified that I am now able to deploy ReservationPartnerServiceApplication