Premature end of file. while runing app in netbeans.

Posted on 2006-05-11
Last Modified: 2012-06-27
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
Question by:muthiahmerchant
    LVL 23

    Accepted Solution

    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.
    LVL 30

    Assisted Solution

    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.
    LVL 1

    Author Comment

    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
    LVL 23

    Expert Comment

    >> just some content???

    was it displaying the XML Completely??? or half the way and then a error????
    LVL 30

    Expert Comment

    >> try installing the 5.5 version

    You mean Netbeans 5.0 (with Tomcat 5.5 bundle)?
    LVL 1

    Author Comment

    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

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Java 1603 Error 2 27
    EvenOdd challenge 10 69
    Increment alphanumeric sequence 6 57
    wordcount challenge 11 48
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now