Hello Experts,
I am following this WDK6.5 tutorials for limiting the import types.
I have created a component definition and component class according to the tutorials.
After refreshing i get the following error :
12:34:21,389 ERROR [main] com.documentum.web.common.Trace - SAXException parsing: C:\Users\MBPVX\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\webtop/custom/config/myimport_component.xml : The content of elements must consist of well-formed character data or markup.
org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
at com.documentum.xerces_2_8_0.xerces.parsers.DOMParser.parse(Unknown Source)
at com.documentum.xml.jaxp.DfDocumentBuilderImpl.parse(DfDocumentBuilderImpl.java:189)
at com.documentum.web.formext.config.ConfigFile.loadXML(ConfigFile.java:127)
at com.documentum.web.formext.config.ConfigFile.<init>(ConfigFile.java:58)
at com.documentum.web.formext.config.HttpConfigReader.loadConfigFiles(HttpConfigReader.java:166)
at com.documentum.web.formext.config.HttpConfigReader.loadConfigFiles(HttpConfigReader.java:128)
at com.documentum.web.formext.config.ConfigService.initialiseApp(ConfigService.java:1001)
at com.documentum.web.formext.config.ConfigService.<init>(ConfigService.java:845)
at com.documentum.web.formext.config.ConfigService.getInstance(ConfigService.java:78)
at com.documentum.web.formext.config.ConfigService.getConfigLookup(ConfigService.java:95)
at com.documentum.web.env.NotificationManager.getListenersFromConfigFile(NotificationManager.java:317)
at com.documentum.web.env.NotificationManager.getListerners(NotificationManager.java:305)
at com.documentum.web.env.NotificationManager.initializeListenerMap(NotificationManager.java:364)
at com.documentum.web.env.NotificationManager.doApplicationStart(NotificationManager.java:206)
at com.documentum.web.env.NotificationManager.contextInitialized(NotificationManager.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
The error stack is very large , but i thought this might be the source of all the further errors.
following is my component xml file.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<config version='1.0'>
<scope>
<component id="import"
extends="import:webcomponent/config/library/contenttransfer/importcontent/import_component.xml">
<class>com.mycompany.test.MyImportContent</class>
<!specify the commaseparated list of types and subtypes that will be available for import >
<includetypes>
<docbase_type>
<value>dm_document</value>
<label>Document</label>
</docbase_type>
<docbase_type>
<value>import_test</value>
<label>my_import_type</label>
</docbase_type>
</includetypes>
</component>
</scope>
</config>
Please suggest what is wrong with this xml file.