users@glassfish.java.net

xml-related errors when running glassfish updatecenter

From: <glassfish_at_javadesktop.org>
Date: Wed, 02 Jan 2008 08:09:42 PST

I had some xml-related errors when running updatecenter in glassfish v2 u1, with everything being the default.

When starting updatecenter.bat, I see this in the dos window (not in updatecenter.log):

C:\glassfish\updatecenter\bin>updatetool.bat
[Fatal Error] :13:1320: XML document structures must start and end within the same entity.

I got this every time I run updatecenter.bat, but the line:col numbers are different each time. So it's not just 1 xml file.

In updatecenter.log, I also see this WARN:

[#|2008-01-02T10:31:39.640-0500|WARNING|1.0|com.sun.enterprise.update.logging|_ThreadID=10;_ThreadName=AWT-Eve
ntQueue-0;C:\glassfish\updatecenter\registry\glassfish\server.xml;|Could not create run time representation (schema2beans object) for catalog [C:\glassfish\updatecenter\registry\glassfish\server.xml].|#]

Despite the above 2 errors, I was able to install glassfish samples using updatecenter. But I noticed the generated info.xml is not well-formed. There is one extra <module> tag.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//NetBeans//DTD Autoupdate Module Info 2.3//EN" "http://www.netbeans.org/dtds/autoupdate-info-2_3.dtd">
<module codenamebase="com.sun.javaee.tutorial.firstcup" distribution="http://javaee-updates.java.sun.com/beta/modules/firstcup-1_0.nbm" downloadsize="1328285" homepage="http://java.sun.com/javaee/" license="1BAE3EA4" moduleauthor="" needsrestart="false" releasedate="2007/01/18">
    <manifest OpenIDE-Module="com.sun.javaee.tutorial.firstcup/1" OpenIDE-Module-Display-Category="Tutorial" OpenIDE-Module-Implementation-Version="20070118" OpenIDE-Module-Long-Description="Your First Cup: An Introduction to the Java EE Platform." OpenIDE-Module-Module-Dependencies="" OpenIDE-Module-Name="Java EE 5 Tutorial" OpenIDE-Module-Requires="" OpenIDE-Module-Short-Description="Introduction to the Java EE Platform." OpenIDE-Module-Specification-Version="1.0" Module-Type="ARCHIVE" Target-Container="sjsas91beta"/>
</module>
<license name="1BAE3EA4">For the XML Entity Catalog module itself:
</license>
  <license name="CE27666D"><![CDATA[ xxxxx
]]></license>
</module>

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=251918