You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ralf Schneider <ml...@tapfere-schneiderleins.de> on 2005/07/19 23:55:54 UTC
Security Manager
Hi,
I have some problems when turning the security manager of Tomcat 5.5.9 on.
When I load a JSP that has to be compiled after being changed I get a strange
exception:
ERROR [19.07.2005 23:30:45] (ApplicationDispatcher.java:704) -
Servlet.service() for servlet jsp threw exception
org.xml.sax.SAXException: Internal Error:
File /javax/servlet/resources/web-app_2_3.dtd not found
at
org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java:205)
at org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:95)
at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:76)
at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:197)
at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:249)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:103)
These are only the first few lines of the callstack. The whole exception is
very long.
I also turned debugging on (java.security.debug=access), but there's no
AccessControlException before the SAXException above.
Any ideas what might be the problem?
Best regards,
Ralf.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Security Manager
Posted by Lintang JP <li...@gmail.com>.
maybe you must include web-app_2_3_2.dtd in your WEB-INF directory, and then
reload it ?
On 7/31/05, Ralf Schneider <ml...@tapfere-schneiderleins.de> wrote:
>
> Am Dienstag, 19. Juli 2005 23:55 schrieb Ralf Schneider:
> > Hi,
> >
> > I have some problems when turning the security manager of Tomcat 5.5.9on.
> > When I load a JSP that has to be compiled after being changed I get a
> > strange exception:
> >
> > ERROR [19.07.2005 23:30:45] (ApplicationDispatcher.java:704) -
> > Servlet.service() for servlet jsp threw exception
> > org.xml.sax.SAXException: Internal Error:
> > File /javax/servlet/resources/web-app_2_3.dtd not found
> > at
>
> Hi,
>
> I found the solution by myself. The reason for this problem was the JAR
> file
> xercesImpl.jar in my WEB-INF/lib dir. Don't know why this was there, but
> after removing it everything works fine again.
>
> Ralf.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
-------------------------------------------------------------------
http://www.psychotazkia.or.id
Re: Security Manager
Posted by Ralf Schneider <ml...@tapfere-schneiderleins.de>.
Am Dienstag, 19. Juli 2005 23:55 schrieb Ralf Schneider:
> Hi,
>
> I have some problems when turning the security manager of Tomcat 5.5.9 on.
> When I load a JSP that has to be compiled after being changed I get a
> strange exception:
>
> ERROR [19.07.2005 23:30:45] (ApplicationDispatcher.java:704) -
> Servlet.service() for servlet jsp threw exception
> org.xml.sax.SAXException: Internal Error:
> File /javax/servlet/resources/web-app_2_3.dtd not found
> at
Hi,
I found the solution by myself. The reason for this problem was the JAR file
xercesImpl.jar in my WEB-INF/lib dir. Don't know why this was there, but
after removing it everything works fine again.
Ralf.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org