You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/11/26 21:17:11 UTC
DO NOT REPLY [Bug 5098] New: -
anonymous and internal classes not found
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5098>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5098
anonymous and internal classes not found
Summary: anonymous and internal classes not found
Product: Tomcat 4
Version: 4.0.1 Final
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: hretter@conciselogic.com
Internal and anonymous classes cannot be found.
This code compiles but cannot run:
<%!
class MyEntityResolver implements EntityResolver {
public InputSource resolveEntity(String publicId, String systemId) {
if (systemId.indexOf("web-app_2_3.dtd") >= 0) {
return new
InputSource("c:\\j2sdkee1.3\\conf\\web-app_2_3.dtd");
} else {
return new InputSource(systemId);
}
}
}
//private MyEntityResolver _entityResolver = new MyEntityResolver();
private DocumentBuilderFactory _xmlFactory =
DocumentBuilderFactory.newInstance();
public void init() {
}
%>
So does this:
db.setEntityResolver(new EntityResolver() {
public InputSource resolveEntity(String publicId, String systemId) {
if (systemId.indexOf("web-app_2_3.dtd") >= 0) {
return new InputSource("c:\\j2sdkee1.3\\conf\\web-app_2_3.dtd");
} else {
return new InputSource(systemId);
}
}
});
The class cannot be found.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>