web.xml文件CheckIn时报错
我在IBMRational的网站上搜到了这些东西,但是我英文很烂看不明白,不知道到底该怎么解决,劳烦各位了
Problem
This technote explains why IBM® Rational® ClearCase® checkin of html or xml files fail with failed create_version operation along with how the "_xml2", "_html2", and "_rose2" type managers are implemented as of the 2002.05.00 release.
Cause
The predefined "xml", "html", and "rose" element types (and the corresponding "_xml", "_html", and "_rose" type managers) introduced in ClearCase 4.x do not support files with lines longer than 8000 characters. Also, the "xml" element type does not support XML documents in UTF-16 format.
Attempts to checkin (or add to source) an html or xml file where a single line of code is greater than 8000 bytes long, yields the following error:
"Error adding the file (foo.html) to source control.
text_file_delta: Error: "foo.html" is not a 'text file': it contains a '\000'.
This object's type does not support check-in of binary data.
Use a different type manager (such as compressed file).
Type manager "_html" failed create_version operation.
Unable to check in "foo.html".
Solution
ClearCase 2002.05.00 introduced three new type managers -- "_xml2", "_html2", and "_rose2" -- that do not have these limitations.
Keep in mind that upgrading ClearCase from 4.x does not change the type managers associated with the existing element types in your VOBs, for doing so would result in certain cross-rev compatibility problems.
Also, upgrading ClearCase from 4.x does not introduce any new predefined element types that use these new type managers.
The new type managers can be used by creating element types that use the new type managers. To do so, issue any or all of the following commands:
cleartool mkeltype -supertype xml -manager _xml2 myxml
cleartool mkeltype -supertype html -manager _html2 myhtml
cleartool mkeltype -supertype rose -manager _rose2 myrose
If Administrative VOBs are used, use the "-global" switch on these commands.
cleartool mkeltype -global -supertype xml -manager _xml2 myxml
If the ClearCase GUI is used, the "override type manager" option in the Element Type Properties dialog will emulate the -manager option on the 'mkeltype' cleartool command.
Note: Using element type names such as "xml2", "html2", or "rose2" is not recommended since it is likely that these names will conflict with predefined element type names in a future release of ClearCase.
--------------------------------------------------------------------------------
NEW ELEMENTS:
To create new elements of the new types, the type name will need to be specified explicitly:
cleartool mkelem -eltype myxml <path name>
See the documentation for "default.magic" in the ClearCase Reference Manual for other options.
--------------------------------------------------------------------------------
EXISTING ELEMENTS:
The element type of existing elements can be modified with a command line:
cleartool chtype myxml <path name>