uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vijay vijay" <vijay...@gmail.com>
Subject The XML page cannot be displayed
Date Mon, 08 Oct 2007 11:51:48 GMT
Hi
     i have written code like this

response.setContentType("text/xml");

response.setBufferSize(3062);

 PrintWriter stream=response.getWriter();

*try
*

{

File taeDescriptor = *new* File("C:\\descriptor\\aeDescriptor.xml");

File inputDir = *new* File("C:\\input");

String file1 = "output.txt";

String file2 = "package.html";

String pattern = request.getParameter("pattern");

System.*out*.println("pattern is :"+pattern);

String[]patArray = pattern.split(",");

XMLInputSource in = *new* XMLInputSource(taeDescriptor);

ResourceSpecifier specifier =

UIMAFramework.*getXMLParser*().parseResourceSpecifier(in);

 AnalysisEngine ae = UIMAFramework.*produceAnalysisEngine*(specifier);

 ae.setConfigParameterValue("Patterns", patArray);

ae.setConfigParameterValue("Locations",*new* String[]{"xyz"});

ae.reconfigure();



in this context i am getting an erro like

can any one help me here....

The XML page cannot be displayed

Cannot view XML input using style sheet. Please correct the error and then
click the Refresh <javascript:location.reload()> button, or try again later.

------------------------------

Invalid at the top level of the document. Error processing resource '
http://localhost:8000/Copy%20%20of%20UIMAWeb%20as/serv...

checking the output on the browser
^

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message