• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2203
  • Last Modified:

Premature end of file. while runing app in netbeans.

When I run my app in netbeans I get this error. any one know why this is happening.

Also i edited the server.xml to add datasource info. but when the server starts it deletes all the datasource info from the server.xml.

[Fatal Error] :-1:-1: Premature end of file.
C:\Documents and Settings\mradha\Grayline\nbproject\build-impl.xml:458: Deployment error:
DOM graph creation failed: org.netbeans.modules.schema2beans.Schema2BeansRuntimeException: Failed to create the XML-DOM Document.  Check your XML to make sure it is correct.
Premature end of file.

Thanks in advance
0
muthiahmerchant
Asked:
muthiahmerchant
  • 2
  • 2
  • 2
2 Solutions
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
I think the XML was not complete in he sense there were missing end tags or so.

Try copying the content of that XML to a HTML page and try opening in the browser and check if it gives aan error.

Thank You.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
It looks like the schema of the build XML file was incorrect which is strange because that will be generated by Netbeans itself. Try cleaning and re-building the project.
0
 
muthiahmerchantAuthor Commented:
I copied the text to a html page but I didn't get an error but just some content.

also clean and build did not work.

I spent quite some time debugging. So i am going to uninstall netbeans and try installing the 5.5 version. hope that helps
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
>> just some content???

was it displaying the XML Completely??? or half the way and then a error????
0
 
Mayank SAssociate Director - Product EngineeringCommented:
>> try installing the 5.5 version

You mean Netbeans 5.0 (with Tomcat 5.5 bundle)?
0
 
muthiahmerchantAuthor Commented:
I didn't get any error as such. I installed netbeans 5.5 and didn't face that problem any more. I guess I must have deleted some thing in the xml file.

Thanks for your help folks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now