Synth.dtd not valid XML
Hi. I'm trying to make my own Look&Feel with Synth. I'm reading stuff here, and nothing will work because [synth.dtd|http://java.sun.com/javase/6/docs/api/javax/swing/plaf/synth/doc-files/synth.dtd] is all messed up and won't validate in NetBeans.
If anyone could help me with this problem it would be really nice.
Thanks, BoB.
This is not unusual to see if you are missing a tag, the tag ordering is
wrong or you have some extra characters in the descriptor.
I reproduced the same error by adding the invalid characters <> before
<weblogic-web-app> tag that should begin the document after the dtd
declaration.
Patrick
"Richard Dedeyan" <[email protected]> wrote in message
news:3ebfbb76$[email protected]..
>
Hi All,
In Weblogic 7, the dtd for the weblogic.xml file(http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd)
seems to be invalid.
When deploying a web app, I get the error message:
"org.xml.sax.SAXParseException: The markup in the document preceding theroot
element must be well-formed"
Has anyone else experienced this problem?
Thanks,
Richard
Similar Messages
-
UIX outputs HTML that is not valid XML
Greetings,
I am "experimenting" with UIX in Devloper 9i and I have noticed that the HTML that is output is very far from being valid XML, as a matter of fact it is so far off that Tidy can't even clean it up.
Are theere any plans in place to try to make the output be XHTML instead of "sloppy" html? This would have a number of benefits, one wich would be; One could percivably call an uix page into a xsql page.
Kind Regards
Ola KvalvaagThe architecture of UIX is actually very well optimized to switch
between XHTML and HTML, as all output is pipelined through an
OutputMethod interface that abstracts away the difference between
the two. I believe our HTML is output is extremely well-formed
HTML, which isn't the same thing as well-formed XHTML. We quote
all our attributes, we close all elements that must be closed,
we escape characters that need escaping, etc.
Until this message, I guess we haven't had any complaints!
I've yet to see a browser that prefers XHTML to HTML.
What are you trying to do with the output that requires it to be
XHTML? -
XML Parser Message: Element series is not valid for the content model
Hello,
I work with FrameMaker 8 and DITA.
I change the element prodinfo in the topic.edd from:
General rule: (prodname), (vrmlist), (brand | series | platform | prognum | featnum | component)*
to:
General rule: (brand | series | platform | component)*
When I import the element definition to the template everything is okay.
When I insert the elements metadata, prodinfo, brand, series, platform and component into a topic I get the XML Parser Message that the element brand is not valid for the content model (prodname,vrmlist, ((brand|series|platform|prognum|featnum|component))*).
When I delete the element brand in the topic I get the XML Parser Message that the element series is not valid for the content model (prodname,vrmlist, ((brand|series|platform|prognum|featnum|component))*).
I change the element prodinfo in the topic.edd to:
General rule: (brand)?, (series)?, (platform)?, (component)?
...and get the same Parser Message.
I do not understand that. Is not it allowed to change the EDD this way without changing the DTD?
With kind regards
NinaHi Nina...<br /><br />In general, the EDD and DTD need to sync up. You can remove elements from an EDD element definition's general rule, as long as the resulting elements are still valid to the DTD. But if changing a general rule creates an invalid structure, you'll need to also change the DTD to allow the revised structure.<br /><br />With DITA, it is common to remove inline elements from block-level elements. For example, you might want to remove the <msgblock>, <msgnum>, and <msgph> elements from the general rule of the <p> element .. this can be done easily in the EDD and the resulting structure remains valid with the DTD.<br /><br />However, what you're doing leaves the <brand> element as a child of <prodinfo> .. which is invalid. You'll get these errors when saving a file, since this is when the file is validated against the DTD.<br /><br />I do not recommend modifying the structure in such a way that requires you to modify the DTD. If you really need to do this, then you should consider making a specialization to support your revised model.<br /><br />I hope this helps.<br /><br />Cheers and Happy New Year!<br /><br />...scott
-
Hi Techies,
I m making a xml document and that is validated on xml schema. But it is giving error that document is not valid because it is not deg\fining DOCTYPE element. Is it necessary to define itIt is not nesessary, but you have probably made your parser validating. In Java validating parsers use DTD to validate, and while schema validation is possibly those parsers are non-validating.
-
I have an xml file that has to be parsed in my application, without changing the XML. I don't have the dtd that is mentioned in the XML file.
The code i am using to parse the xml into a Document is
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(false);
System.out.println("Factory=" + factory.isValidating());
DocumentBuilder builder = factory.newDocumentBuilder();
builder.setEntityResolver(new XMLResolver());
System.out.println("DocBuilder=" + builder.isValidating());
Document doc = builder.parse(xml.getInputStream());
System.out.println("doc=" + doc);
if (doc == null) {
return;
The XML file is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE contentspace SYSTEM "..\contents.dtd" [
]>
<contentspace validdtd="0.0.2">
<emscombicategory emscombisubtype="EMSCOLLECTION">
<default name="lugares" description="lugares"/>
<emscombi>
<default name="alemania" description="Alemania"/>
<commondetails copyrightowner="TME" copyright="COPYRIGHTED" price="" validfrom="" validto="" provider="terramobile" globalcontentid="ECOLL"/>
<previewedbinarycontent preview="alemania.GIF">
<binarycontent binarydata="alemania.OTA"/>
</previewedbinarycontent>
<emsringtone>
<default name="alema" description="Himno de Alemania"/>
<commondetails copyrightowner="TME" copyright="FREE" price="" validfrom="" validto="" provider="terramobile" globalcontentid="TMEEMEL"/>
<previewedbinarycontent preview="alema.WAV">
<binarycontent binarydata="alema.OTA"/>
</previewedbinarycontent>
<ringtonedetails composer="Tradicional" performer="Tradicional"/>
</emsringtone>
<emspicture>
<default name="birra" description="Cerveza alemana"/>
<commondetails copyrightowner="TME" copyright="COPYRIGHTED" price="" validfrom="" validto="" provider="terramobile" globalcontentid="TMEEPM"/>
<emspicturedetails width="32" height="32">
<previewedbinarycontent preview="birra.GIF">
<binarycontent binarydata="birra.OTA"/>
</previewedbinarycontent>
</emspicturedetails>
</emspicture>
</emscombi>
</emscombicategory>
</contentspace>
When i run this through it throws an exception with the message
org.xml.sax.SAXParseException: File "..\contents.dtd" not found.
I thought by setting factory.setValidating(false) it would not read the DTD, but it does.
Is there any way to make the document model NOT attempt to read the DTD ???setValidating(false) has no effect on checking against the DTD.
create your own EntityResolver rather than using new XMLResolver(): in this resolver divert the call to the DTD on an empty XML document.
i have shown how to do so in another thread, just run a search on this forum (this hint is valid for any question btw) -
URGENT---Validating XML file against DTD
I have a XML & DTD file.I want to validate that xml file against the specified DTD without using any editor.Through program how can i validate?Pl. help me.It's URGENT.
>
and i recieved ORA-31001: Invalid resource handle or path name "/testdtd.dtd"
when the DBMS_XMLPARSER.parseClob( PARSER , v_xml ); is executed
i removed the <!DOCTYPE family SYSTEM "testdtd.dtd"> from the XML file
the procedures worked , but not sure if really validated against the DTD file>
you have to load your DTD into XDB repository.
<a href ="http://forums.oracle.com/forums/thread.jspa?threadID=416366">How do I use DTD's with XML DB ?
Ants -
Validating XML, but specify where DTD doc is, at runtime?
Hi all.
I've looked through a lot of posts in this forum and still cannot find the solution to this problem, so maybe someone here can help me?
The problem is this:
I am using a servlet to read in an ordinary XML document, with a normal <!DOCTYPE declaration and validate it. This works great if the DTD file is either located at a specific location on the web server (ie, somewhere that the webserver already looks at as part of it's enviroment) or if I hard code the location of the DTD in the <!DOCTYPE line in the XML doc.
I want to be able to tell the validating parser (javax.xml.parser.DocumentBuilder) what the actual path to the DTD is. So that if the <!DOCTYPE tag specifies "mydtd.dtd" as the file, then I can then give the parser the path to that file. Does that make any sense?
I tried using an EntityResolver class etc, but it doesn't do anything. Here is my code:
javax.xml.parsers.DocumentBuilderFactory docFact = javax.xml.parsers.DocumentBuilderFactory.newInstance();
docFact.setValidating(true);
javax.xml.parsers.DocumentBuilder docBuilder = docFact.newDocumentBuilder();
MyResolver r = new MyResolver();
r.resolveEntity(null,"mydtd.dtd");
docBuilder.setErrorHandler(new ErrorHandler() {
public void error(SAXParseException e) throws SAXException {
throw new SAXException(e);
public void fatalError(SAXParseException e) throws SAXException {
throw new SAXException(e);
public void warning(SAXParseException e) {
docBuilder.setEntityResolver(r);
docBuilder.parse(new InputSource(ClassLoader.getSystemResourceAsStream("xmltestservlet/myxml.xml")));
class MyResolver implements EntityResolver {
public InputSource resolveEntity (String publicId, String systemId)
java.io.InputStream in = ClassLoader.getSystemResourceAsStream("xmltestservlet/"+systemId);
return new InputSource(in);
This is the error message that I get :
org.xml.sax.SAXParseException: File "file:///d:/iPlanet/Servers/https-mucci/config/mydtd.dtd" not found.
This is because I dont want to keep my dtd file in this directory! I specified in the entityResolver method that I want the actual DTD file to come from the same location as the class files are held. (They are accessed through the ClassLoader.getSystemResourceAsStream() call).
Does anyone have any ideas, or has anyone been down this road before?
Thanks
P.S The contents of my XML and DTD files are below (both are held in the same package as the class files):
<?xml version='1.0' encoding='utf-8'?>
<!-- A SAMPLE set of slides -->
<!DOCTYPE MYXML SYSTEM "mydtd.dtd">
<MYXML>
<ITEM>dfdsf</ITEM>
<ITEM>dsfsfsdfsd</ITEM>
</MYXML>
<?xml version='1.0' encoding='utf-8'?>
<!ELEMENT MYXML (ITEM+)>
<!ELEMENT ITEM (#PCDATA)>
AndyThe problem lies in your EntityResolver.resolveEntity implementation. The parameter systemId contains the full path of the DTD file. So, the code "xmltestservlet/"+systemId will result in something like this:
xmltestservlet/file:///d:/iPalnet/etc.
Thus, the resulting InputSource will be returned as null telling the parser to proceed as normal.
Try this:
class MyResolver implements EntityResolver {
public InputSource resolveEntity (String publicId, String systemId)
if(systemId != null && systemId.endsWith("mydtd.dtd"))
java.io.InputStream in = ClassLoader.getSystemResourceAsStream("xmltestservlet/"+"mydtd.dtd");
return new InputSource(in);
else return null;
}BTW, the line "r.resolveEntity(null,"mydtd.dtd");" in your code doesn't do anything. For a working code snippet take a look at this thread:
http://forums.java.sun.com/thread.jsp?forum=34&thread=153776
Hope that helps,
Good luck. -
Not able to run validation using validation.xml & validator-rules.xml
Hello Friends,
I am not able to run validation using validation.xml & validator-rules.xml.
Entire code in running prefectly but no error messages are prompted.
Following is my code:
File Name : struts-config.xml
<struts-config>
<!-- Form Beans Configuration -->
<form-beans>
<form-bean name="searchForm"
type="com.solversa.SearchForm"/>
</form-beans>
<!-- Global Forwards Configuration -->
<global-forwards>
<forward name="search" path="/search.jsp"/>
</global-forwards>
<!-- Action Mappings Configuration -->
<action-mappings>
<action path="/search"
type="com.solversa.SearchAction"
name="searchForm"
scope="request"
validate="true"
input="/search.jsp">
</action>
</action-mappings>
<!-- Message Resources Configuration -->
<message-resources
parameter="ApplicationResources"/>
<!-- Validator Configuration -->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
<br> File Name : <b> validation.xml </b>
<form-validation>
<formset>
<form name="searchForm">
<field property="name" depends="minlength">
<arg key="label.search.name" position = "0"/>
<arg1 name="minlength" key="${var:minlength}" resource="false"/>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
</field>
<field property="ssNum" depends="mask">
<arg0 key="label.search.ssNum"/>
<var>
<var-name>mask</var-name>
<var-value>^\d{3}-\d{2}-\d{4}$</var-value>
</var>
</field>
</form>
</formset>
</form-validation>
<br> File Name : <b> SearchForm.java </b>
package com.jamesholmes.minihr;
import java.util.List;
import org.apache.struts.validator.ValidatorForm;
public class SearchForm extends ValidatorForm
private String name = null;
private String ssNum = null;
private List results = null;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
public void setResults(List results) {
this.results = results;
public List getResults() {
return results;
<br> File Name : <b> SearchAction.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public final class SearchAction extends Action
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
EmployeeSearchService service = new EmployeeSearchService();
ArrayList results;
SearchForm searchForm = (SearchForm) form;
// Perform employee search based on what criteria was entered.
String name = searchForm.getName();
if (name != null && name.trim().length() > 0) {
results = service.searchByName(name);
} else {
results = service.searchBySsNum(searchForm.getSsNum().trim());
// Place search results in SearchForm for access by JSP.
searchForm.setResults(results);
// Forward control to this Action's input page.
return mapping.getInputForward();
<br> File Name : <b> EmployeeSearchService.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
public class EmployeeSearchService
/* Hard-coded sample data. Normally this would come from a real data
source such as a database. */
private static Employee[] employees =
new Employee("Bob Davidson", "123-45-6789"),
new Employee("Mary Williams", "987-65-4321"),
new Employee("Jim Smith", "111-11-1111"),
new Employee("Beverly Harris", "222-22-2222"),
new Employee("Thomas Frank", "333-33-3333"),
new Employee("Jim Davidson", "444-44-4444")
// Search for employees by name.
public ArrayList searchByName(String name) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if (employees.getName().toUpperCase().indexOf(name.toUpperCase()) != -1) {
resultList.add(employees[i]);
return resultList;
// Search for employee by social security number.
public ArrayList searchBySsNum(String ssNum) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if (employees[i].getSsNum().equals(ssNum)) {
resultList.add(employees[i]);
return resultList;
<br> File Name : <b> Employee.java </b>
package com.solversa;
public class Employee
private String name;
private String ssNum;
public Employee(String name, String ssNum) {
this.name = name;
this.ssNum = ssNum;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
Pls help me out.
Not able to prompt errors.Hello Friends,
I am not able to run validation using
validation.xml & validator-rules.xml.
Entire code in running prefectly but no error
messages are prompted.
Following is my code:
File Name : struts-config.xml
<struts-config>
<!-- Form Beans Configuration -->
<form-beans>
<form-bean name="searchForm"
type="com.solversa.SearchForm"/>
ans>
<!-- Global Forwards Configuration -->
<global-forwards>
<forward name="search" path="/search.jsp"/>
global-forwards>
<!-- Action Mappings Configuration -->
<action-mappings>
<action path="/search"
type="com.solversa.SearchAction"
name="searchForm"
scope="request"
validate="true"
input="/search.jsp">
tion>
</action-mappings>
<!-- Message Resources Configuration -->
<message-resources
parameter="ApplicationResources"/>
<!-- Validator Configuration -->
<plug-in
className="org.apache.struts.validator.ValidatorPlugI
">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
>
</struts-config>
<br> File Name : <b> validation.xml </b>
<form-validation>
<formset>
<form name="searchForm">
<field property="name" depends="minlength">
<arg key="label.search.name" position = "0"/>
<arg1 name="minlength" key="${var:minlength}"
resource="false"/>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
</field>
<field property="ssNum" depends="mask">
<arg0 key="label.search.ssNum"/>
<var>
<var-name>mask</var-name>
<var-value>^\d{3}-\d{2}-\d{4}$</var-value>
</var>
</field>
/form>
</formset>
form-validation>
<br> File Name : <b> SearchForm.java </b>
package com.jamesholmes.minihr;
import java.util.List;
import org.apache.struts.validator.ValidatorForm;
public class SearchForm extends ValidatorForm
private String name = null;
private String ssNum = null;
private List results = null;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
public void setResults(List results) {
this.results = results;
public List getResults() {
return results;
<br> File Name : <b> SearchAction.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public final class SearchAction extends Action
public ActionForward execute(ActionMapping
mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
EmployeeSearchService service = new
EmployeeSearchService();
ArrayList results;
SearchForm searchForm = (SearchForm) form;
// Perform employee search based on what criteria
was entered.
String name = searchForm.getName();
if (name != null && name.trim().length() > 0) {
results = service.searchByName(name);
else {
results =
service.searchBySsNum(searchForm.getSsNum().trim());
// Place search results in SearchForm for access
by JSP.
searchForm.setResults(results);
// Forward control to this Action's input page.
return mapping.getInputForward();
<br> File Name : <b> EmployeeSearchService.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
public class EmployeeSearchService
/* Hard-coded sample data. Normally this would come
from a real data
source such as a database. */
ivate static Employee[] employees =
new Employee("Bob Davidson", "123-45-6789"),
new Employee("Mary Williams", "987-65-4321"),
new Employee("Jim Smith", "111-11-1111"),
new Employee("Beverly Harris", "222-22-2222"),
new Employee("Thomas Frank", "333-33-3333"),
new Employee("Jim Davidson", "444-44-4444")
// Search for employees by name.
public ArrayList searchByName(String name) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if
(employees.getName().toUpperCase().indexOf(name.toU
pperCase()) != -1) {
resultList.add(employees[i]);
return resultList;
// Search for employee by social security number.
public ArrayList searchBySsNum(String ssNum) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if (employees[i].getSsNum().equals(ssNum)) {
resultList.add(employees[i]);
return resultList;
<br> File Name : <b> Employee.java </b>
package com.solversa;
public class Employee
private String name;
private String ssNum;
public Employee(String name, String ssNum) {
this.name = name;
this.ssNum = ssNum;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
Pls help me out.
Not able to prompt errors.
Hi,
Your error message are not displaying because u does not made Message-Resoucrce property file (Resource Bundle) when you make it .
give it entry in
struts-config.xml
<message-resources parameter="ApplicationResources" />
and
define key and corresponding error message to key in this ApplicationResources i.e
#Error Resources
label.search.ssNum=Plz Enter correct ssNum -
XML Publisher question - Not generating a valid XML file
I am working through an Oracle document that walks you through creating an XML Pub report. I am using HCM 8.9, Tools 8.49.15 and it has XML Pub installed and I have the Microsoft plug-in installed
I have created a query and have downloaded an rtf template and now am on a page where you enter your data source and then click ‘Generate’ for the sample data file. I did it and it created ‘PERSONAL_DATA_PAY.XML’ which is created from a PS Query. However if I click on ‘PERSONAL_DATA_PAY.XML’ it generates a blocky text file that is not an XML file and I can’t go any further.
Do you know why it’s not generating a valid XML file when I click on 'generate'?
Thanks
Allen H. Cunningham
Data Base Administrator - Oracle/PeopleSoft
Sonoma State UniversityYou mean to say that you create a new data source by specifying Data Source Type as 'PS Query' and Data Source ID as your query name, you are not able to generate a valid XML file (by clicking on Generate link).
did you cross check your query by running it?
On field change of Generate link, PeopleSoft uses PSXP_RPTDEFNMANAGER and PSXP_XMLGEN app packagaes and query objects to create the file
It should work if you query is valid.. -
XML Publisher does not create a valid XML file when I try to 'generate '
I am working through an Oracle document that walks you through creating an XML Pub report. I am using HCM 8.9, Tools 8.49.15 and it has XML Pub installed and I have the Microsoft plug-in installed
I have created a query and have downloaded an rtf template and now am on a page where you enter your data source and then click ‘Generate’ for the sample data file. I did it and it created ‘PERSONAL_DATA_PAY.XML’ which is created from a PS Query. However if I click on ‘PERSONAL_DATA_PAY.XML’ it generates a blocky text file that is not an XML file and I can’t go any further.
Do you know why it’s not generating a valid XML file when I click on 'generate'?
Thanks
Allen H. Cunningham
Data Base Administrator - Oracle/PeopleSoft
Sonoma State UniversityOn the right click on HD under video quality to filter it.
-
Infopath 2013 SOAP Web Service Data Connection - Error: The file is not a valid XML file
Here are the steps to replicate the issue I’m having when adding lists.asmx or any other SharePoint web service in InfoPath 2013. This web service opens fine in the browser from my desktop. My account is a farm administrator and is added to the
web application’s User Policy. I can use these services just fine using Nintex 2013 Workflow.
Open InfoPath Designer 2013.
Select Blank Form and click Design Form button.
Click “Data” tab.
Click “From Web Service” and select “From SOAP Web Service”
Enter https://mysiteurl.com/_vti_bin/lists.asmx?WSDL for the web service definition.
Click Next.
Windows Security window pops up.
Enter a credential. I tried both my account and the farm account. My account is a farm admin and is added to the web application’s User Policy with Full Control.
Click OK. It prompts for credential multiple times.
I get below this error messages:
Sorry, we couldn't open https://mysiteurl.com/_vti_bin/lists.asmx?WSDL
InfoPath cannot find or cannot access the specified Web Service description.
The file is not a valid XML file.
Not enough storage is available to process this command.
We have a project that is in need of these services using InfoPath so any help is greatly appreciated.Hi Brian_TX,
For your issue, try to the following methods:
Change your service binding in web.config to:binding="basicHttpBinding". It seems in VS it defaults to wsHttpBinding.
Replace all instances of "parameters" from the web service wsdl with the name "parameter"
There are some similar articles about the issue, you can have a look at them:
http://www.infopathdev.com/forums/t/23239.aspx
https://social.msdn.microsoft.com/Forums/office/en-US/621929c3-0335-40af-8332-5a0b430901ab/problems-with-infopath-web-service-connection?forum=sharepointcustomizationprevious
https://social.msdn.microsoft.com/Forums/en-US/5fa5eca8-f8d7-4a2e-81ba-a3b4bdcfe5af/infopath-cannot-find-or-cannot-access-the-specified-web-service-description?forum=sharepointcustomizationlegacy
Best Regards
Lisa Chen
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] -
XML parsing error: web-jsptaglibrary_1_1.dtd not found
I'm getting the following Exception while Tomcat is parsing my welcome jsp page:
exception
org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/struts-template.tld: Internal Error: File /javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd not found
at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:227)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)
at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1170)
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:765)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:125)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:534)
This is the reference to the dtd its not finding from the tld
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
Do you think this is a bug with the parser itself or an incompatablilty between it and the tag library?
Or am I missing something?
Thanks for any help..... AndyStore the web-jsptaglibrary_1_1.dtd to a directory and specify the file url.
<!DOCTYPE taglib SYSTEM "file://C:/dtds/web-jsptaglibrary_1_1.dtd"> -
Hi All,
While refreshing a Webi report, I am getting following error:
"A database error occured. The database error text is: The supplied XML is not valid. [Measures].[0701FBYSYG9KJQ47GRMMAVZ89]. (WIS 10901) ".
Could you please let me know how to resolve it?
Regards,definition of one of your measure objects selected in the webi query is not correct in the universe. Parse the objects in the universe and find the objects with incorrect definition. This may be due to deletion of a key figure from BEx query. You can refresh the universe structure for updating it.
-
' is not a valid XML character.
Hi All,
May be an XML Expert can help me in understanding this XML Exception.
I am trying to expose a EJB as webservice using AXIS 1.2 Final. When
deployed my ear/ejb on WAS 4.0 on HP-UX operation system and trying
to consume the web service using AXIS 1.2 generated stubs I am getting below error on the server side.
[9/12/05 8:17:55:260 MST] ed128 WebGroup X Servlet Error: The
char '0x0' in 'java.rmi.RemoteException: CORBA
BAD_OPERATION 0 No; nested exception is:
org.omg.CORBA.BAD_OPERATION: minor code: 0 completed: No
at com.amla.as.cameron.ejb._EJSRemoteStatelessCS_146c46e9_Tie._invoke(_EJSRemoteStatelessCS_146c46e9_Tie.java:340)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:532)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2450)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)
minor code: 0 completed: No' is not a valid XML character.:
java.lang.IllegalArgumentException: The char '0x0' in
'java.rmi.RemoteException: CORBA BAD_OPERATION 0 No; nested exception
is:
org.omg.CORBA.BAD_OPERATION: minor code: 0 completed: No
at com.amla.as.cameron.ejb._EJSRemoteStatelessCS_146c46e9_Tie._invoke(_EJSRemoteStatelessCS_146c46e9_Tie.java:340)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:532)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2450)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:186)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:104)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)
minor code: 0 completed: No' is not a valid XML character.
at org.apache.axis.components.encoding.AbstractXMLEncoder.encode(AbstractXMLEncoder.java:110)
at org.apache.axis.utils.XMLUtils.xmlEncodeString(XMLUtils.java:117)
at org.apache.axis.AxisFault.dumpToString(AxisFault.java:366)
at org.apache.axis.AxisFault.printStackTrace(AxisFault.java:796)
at org.apache.commons.logging.impl.SimpleLog.log(SimpleLog.java:338)
at org.apache.commons.logging.impl.SimpleLog.warn(SimpleLog.java:446)
at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:523)
at org.apache.axis.Message.getContentType(Message.java:475)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:301)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:721)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:374)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:118)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:239)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:151)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:317)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:477)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:341)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:144)
Can anyone please suggest under what cases we get this error.
When I monitor the request soap message using AXIS handlers, the soap
message seems to be valid and well-formed. The EJB deployment on WAS
4.0 is successfully and it can be successfully accessed by a ejb
client :
Thanks & Regards,
bab.I am having similar problem. Did you find the solution for this
thanks -
HTTP response does not contain a valid XML root tag
I am running into an error in my trace portion of my XML when executing my application. The error is "HTTP response does not contain a valid XML root tag". The HTTP request is successful with message 200 so it seems to be accepted by the Integration Engine. I looked for other posts on this error and only found one and it didn't show the resolution. Any help would be appreciated.
Hello
Check these notes (do you use a split mapping?):
1) 1515230 XI mapping: "Root tag missing" in split mapping
2) 1640553 XI mapping: Split mapping: error Missing_Interface
Regards
Mark
Maybe you are looking for
-
ZBOL entry is not coming in BOL Entity
Hi All, I have created 1 Z Component in SPRO-> Customer Relationship Management-> CRM Cross-Application Components-> Generic Interaction Layer/Object Layer-> Basic Settings. In the Object table and Model table i have created the entries for the Z BOL
-
Help required for Computer idiot
I am unable to download any attachments from my email. It checks for viruses, says ok then nothing happens. Can anyone help ? Thank you
-
Regarding XI Installation Content
Hi Experts, Please Let Me Know What Are The Requirements To Install The XI On My PC.... 1.....About What Software CD's I Need to have????? 2.....About System Requirements....... Here I heard that Windows 2003 Server in Required OS But in my PC i have
-
Hi, at the moment I´m testing the Creative Cloud on my laptop. With every start of an app there appears a price of 36 € for purchase - my question is now: do I have to pay only 36€ during the testing phase for the whole Creative Cloud (regular price
-
Macbook pro 13in back case clicking noise when flexed? (late 2013)
Yesterday I noticed that when I put a moderate (but by no means excessive) amount of pressure on the back of the case in certain areas with my thumb, there is a very audible clicking noise produced when the pressure is released. You can also feel res