You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by kbar <wh...@gmail.com> on 2009/08/20 17:43:03 UTC
Problems with Tomcat when trying to get Jackrabbit installed
I am trying to get Jackrabbit running on Ubuntu.
I have followed these instruction
http://wiki.apache.org/jackrabbit/JackRabbitOnTomcat6 , but I used
jackrabbit 1.6.0 instead of 1.5.0.
So I did the following...
1)
Install a fresh Ubuntu server with Tomcat package.
2 )
cd /usr/share/tomcat6/lib
wget
http://mirrors.ibiblio.org/pub/mirrors/maven2/javax/jcr/jcr/1.0/jcr-1.0.jar
3)
wget http://www.apache.org/dist/jackrabbit/1.6.0/jackrabbit-webapp-1.6.0.war
cp jackrabbit-webapp-1.6.0.war /var/lib/tomcat6/webapps/jackrabbit.war
4)
http://localhost:8080/jackrabbit
But when I try to access it I get any one of the messages (see below) in my
webpage. I am at a complete loss as to what might be happening. If anyone
has any information on this I would be really greatful.
I have tried both the desktop version of ubuntu and the server version.
I was told to post here by someone on the Jackrabbit forum as they think
this is actually a tomcat issue. Hope you all can help.
Thanks,
Kent.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: org.apache.jasper.JasperException: XML
parsing error on file /WEB-INF/web.xml
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:207)
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:220)
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:273)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
root cause
org.apache.jasper.JasperException: XML parsing error on file
/WEB-INF/web.xml
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:108)
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:91)
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:220)
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:273)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
root cause
org.xml.sax.SAXException: Internal Error: File
/javax/servlet/resources/web-app_2_3.dtd not found
org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java:203)
org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown
Source)
org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown
Source)
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown
Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:96)
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:91)
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:220)
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:273)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
===================================================
Or this one
===================================================
org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable
to load class for JSP
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
root cause
org.apache.jasper.JasperException: Unable to load class for JSP
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:620)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
root cause
java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
java.net.URLClassLoader$1.run(URLClassLoader.java:217)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:205)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:618)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
===================================================
Or this one
===================================================
org.apache.jasper.JasperException: java.security.AccessControlException:
access denied (java.lang.RuntimePermission
accessClassInPackage.org.apache.jasper.compiler)
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:207)
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:220)
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:273)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
root cause
java.security.AccessControlException: access denied
(java.lang.RuntimePermission
accessClassInPackage.org.apache.jasper.compiler)
java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
java.security.AccessController.checkPermission(AccessController.java:553)
java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1529)
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:291)
java.lang.ClassLoader.loadClass(ClassLoader.java:316)
java.lang.ClassLoader.loadClass(ClassLoader.java:268)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
org.apache.jasper.xmlparser.MyEntityResolver.resolveEntity(ParserUtils.java:203)
org.apache.xerces.util.EntityResolverWrapper.resolveEntity(Unknown
Source)
org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown
Source)
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown
Source)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:96)
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:91)
org.apache.jasper.compiler.JspConfig.init(JspConfig.java:220)
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:273)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:112)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
--
View this message in context: http://www.nabble.com/Problems-with-Tomcat-when-trying-to-get-Jackrabbit-installed-tp25064576p25064576.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems with Tomcat when trying to get Jackrabbit installed
Posted by André Warnier <aw...@ice-sa.com>.
kbar wrote:
> ... as disabling the security I guess is not such a great idea once
> the site goes into production.
>
Do not take my word for this, as I am far from the Java expert.
As far as I can understand it however, the Java security manager, in the
case of Tomcat, is there mainly to protect you from yourself, unless you
are allowing other people to upload webapps to your server.
When enabled, the JVM establishes kind of a "sandbox" around your
classes, the basic idea being that everything that is not explicitly
allowed, is forbidden.
When it is in force, you have to give your webapp classes explicit
permissions to access the filesystem, the network, the system properties
etc..
It does not have much to do with the protection of your server against
unauthorised Internet access by miscreants.
Unless such miscreants are able to load their own webapps in your
server, in which case I would presume they might also be smart enough to
modify your catalina.policy files anyway, and give their classes all the
permissions they want.
I also presume that running with the security manager enabled, has a
cost in terms of efficiency. So your webapps will probably run faster
without it.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems with Tomcat when trying to get Jackrabbit installed
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
You would have to know all the security options to define in the policy
file that apply to jackrabbit, in order to run it with the security
manager turned on
On 08/20/2009 02:46 PM, kbar wrote:
> Thanks awarnier,
>
> That worked perfectly. Although I will have to hunt down why I have to
> disable this as disabling the security I guess is not such a great idea once
> the site goes into production.
>
> Cheers,
> Kent
>
>
>
> awarnier wrote:
>
>> kbar wrote:
>>
>>> I am trying to get Jackrabbit running on Ubuntu.
>>>
>> ...
>> This far above my head (I don't even know what Jackrabbit is), but just
>> based on one of the error messages you mentioned :
>> check the file /etc/default/tomcat6, and see if it enables the Java
>> security manager. If it does, set it to "NO", restart Tomcat and try
>> again.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems with Tomcat when trying to get Jackrabbit installed
Posted by kbar <wh...@gmail.com>.
Thanks awarnier,
That worked perfectly. Although I will have to hunt down why I have to
disable this as disabling the security I guess is not such a great idea once
the site goes into production.
Cheers,
Kent
awarnier wrote:
>
> kbar wrote:
>> I am trying to get Jackrabbit running on Ubuntu.
> ...
> This far above my head (I don't even know what Jackrabbit is), but just
> based on one of the error messages you mentioned :
> check the file /etc/default/tomcat6, and see if it enables the Java
> security manager. If it does, set it to "NO", restart Tomcat and try
> again.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Problems-with-Tomcat-when-trying-to-get-Jackrabbit-installed-tp25064576p25069581.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Problems with Tomcat when trying to get Jackrabbit installed
Posted by André Warnier <aw...@ice-sa.com>.
kbar wrote:
> I am trying to get Jackrabbit running on Ubuntu.
...
This far above my head (I don't even know what Jackrabbit is), but just
based on one of the error messages you mentioned :
check the file /etc/default/tomcat6, and see if it enables the Java
security manager. If it does, set it to "NO", restart Tomcat and try again.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org