Failed to load configuration

View: New views
5 Messages — Rating Filter:   Alert me  

Failed to load configuration

by Aaron Dalton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I searched the archives and only found 3 messages, none of which were
pertinent.  I've googled and still can't find any clear direction.

Colophon:
   - Debian Linux (etch)
   - Tomcat5.5
   - java version "1.5.0_15"
     Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
     Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_15-b04, mixed mode)
   - Xindice 1.1

Process:
   1) Install (and verify) Tomcat
   2) Download/Extract Xindice 1.1
   3) ./build.sh
     - Saw numerous errors related to deprecated calls, but the .war
built fine
   4) Copied the .war to webapps dir (in my case,
/var/lib/tomcat5.5/webapps)
   5) Restarted Tomcat
   6) Went to http://localhost:8180/xindice
   7) Got the error listed below

ROOT CAUSE
----------
org.apache.xindice.util.ConfigurationException: Failed to load
configuration.
        org.apache.xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:267)
        org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:105)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:585)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
        org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
        org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Thread.java:595)

All I've found so far searching is information regarding XML Parser
conflicts, but the error message listed in the FAQ is not here.  AFAIK
Xerces is indeed what is being used.  If indeed this is a Xerces error,
can anybody help me figure out which of the gazillion .jar directories
is being examined first so I can copy the right .jar to the right place?

I sincerely appreciate your time and assistance.
--
Aaron Dalton       |   Super Duper Games
aaron@...   |   http://superdupergames.org

Re: Failed to load configuration

by Vadim Gritsenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On May 6, 2008, at 11:29 AM, Aaron Dalton wrote:

> I searched the archives and only found 3 messages, none of which  
> were pertinent.  I've googled and still can't find any clear  
> direction.
>
> Colophon:
>  - Debian Linux (etch)
>  - Tomcat5.5
>  - java version "1.5.0_15"
>    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-
> b04)
>    Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_15-b04, mixed mode)
>  - Xindice 1.1
>
> Process:
>  1) Install (and verify) Tomcat
>  2) Download/Extract Xindice 1.1
>  3) ./build.sh
>    - Saw numerous errors related to deprecated calls, but the .war  
> built fine
>  4) Copied the .war to webapps dir (in my case, /var/lib/tomcat5.5/
> webapps)
>  5) Restarted Tomcat
>  6) Went to http://localhost:8180/xindice
>  7) Got the error listed below
>
> ROOT CAUSE
> ----------

Unfortunately this is not the root cause exception. This configuration  
exception was caused by something else (as can be seen on line 267  
[1]). Can you check tomcat output, or tomcat logs, for more details?

If there are no more details in any of log files, I can suggest adding  
a line to XindiceServlet.java which would print cause exception:

266 : } catch (Exception e) {
add :    e.printStackTrace();
267 :    throw new ConfigurationException("Failed to load  
configuration.", e);
268 : }


> org.apache.xindice.util.ConfigurationException: Failed to load  
> configuration.
>
> org
> .apache
> .xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:
> 267)
> org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:
> 105)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:585)
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:
> 243)
> java.security.AccessController.doPrivileged(Native Method)
> javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:
> 275)
>
> org
> .apache
> .catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
>
> org
> .apache
> .catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
>
> org
> .apache
> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>
> org
> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 148)
>
> org
> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 869)
> org.apache.coyote.http11.Http11BaseProtocol
> $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:
> 664)
>
> org
> .apache
> .tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:
> 527)
>
> org
> .apache
> .tomcat
> .util
> .net
> .LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool
> $ControlRunnable.run(ThreadPool.java:684)
> java.lang.Thread.run(Thread.java:595)
>
> All I've found so far searching is information regarding XML Parser  
> conflicts, but the error message listed in the FAQ is not here.  
> AFAIK Xerces is indeed what is being used.  If indeed this is a  
> Xerces error, can anybody help me figure out which of the  
> gazillion .jar directories is being examined first so I can copy the  
> right .jar to the right place?

If I remember correctly, tomcat can load XML jars from $TOMCAT_HOME/
common/endorsed directory. Try copying xindice's endorsed libraries  
[2] there.

Vadim

[1] http://svn.apache.org/viewvc/xml/xindice/tags/XINDICE_1_1/java/src/org/apache/xindice/server/XindiceServlet.java?annotate=534572
[2] http://svn.apache.org/viewvc/xml/xindice/tags/XINDICE_1_1/lib/endorsed/


> I sincerely appreciate your time and assistance.
> --
> Aaron Dalton       |   Super Duper Games
> aaron@...   |   http://superdupergames.org


Re: Failed to load configuration

by Aaron Dalton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you very much for your reply, Vadim.  I went through the logs and
there is a section that does not appear on the 500 error page (appended
below).  It appears to be a permissions issue?  Is there a way to do an
auto-check on permission settings?  Or someplace that can tell me what
they should be?  Excuse my ignorance, but I am new to Tomcat as well as
Xindice.  Again, thanks for your time and assistance.

Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission xindice.configuration read)
         at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at
java.security.AccessController.checkPermission(AccessController.java:427)
         at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
         at java.lang.System.getProperty(System.java:628)
         at
org.apache.xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:232)
         ... 25 more
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission xindice.configuration read)
         at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at
java.security.AccessController.checkPermission(AccessController.java:427)
         at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at
java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
         at java.lang.System.getProperty(System.java:628)
         at
org.apache.xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:232)
         at
org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:105)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
         at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:114)
         at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
         at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)

===================
CURRENT PERMISSIONS
===================

galan:/var/lib/tomcat5.5# ls -alR .
.:
total 24
drwxr-xr-x  6 root     root 4096 May  6 05:12 .
drwxr-xr-x 18 root     root 4096 May  6 14:16 ..
drwxr-x---  3 tomcat55 adm  4096 May  6 17:54 conf
lrwxrwxrwx  1 root     root   19 May  6 05:12 logs -> ../../log/tomcat5.5
drwxr-xr-x  4 root     root 4096 May  6 05:12 shared
drwxr-xr-x  2 tomcat55 root 4096 May  6 17:54 temp
drwxr-xr-x  3 tomcat55 root 4096 May  6 14:36 webapps
lrwxrwxrwx  1 root     root   21 May  6 05:12 work -> ../../cache/tomcat5.5

./conf:
total 44
drwxr-x--- 3 tomcat55 adm     4096 May  6 17:54 .
drwxr-xr-x 6 root     root    4096 May  6 05:12 ..
drwxr-xr-x 3 root     root    4096 May  6 05:12 Catalina
-rw-r--r-- 1 root     root    9194 May  6 17:54 catalina.policy
-rw-r--r-- 1 root     root    3114 Jan 20 11:33 catalina.properties
-rw-r--r-- 1 root     root     330 Jan 20 11:33 context.xml
-rw-r--r-- 1 root     root    2824 Jan 20 11:33 logging.properties
-rw-r--r-- 1 root     root     851 Jan 20 11:33 server-minimal.xml
lrwxrwxrwx 1 root     root      25 May  6 05:12 server.xml ->
/etc/tomcat5.5/server.xml
-rw-r--r-- 1 tomcat55 nogroup  310 May  6 17:54 tomcat-users.xml
lrwxrwxrwx 1 root     root      22 May  6 05:12 web.xml ->
/etc/tomcat5.5/web.xml

./conf/Catalina:
total 12
drwxr-xr-x 3 root     root 4096 May  6 05:12 .
drwxr-x--- 3 tomcat55 adm  4096 May  6 17:54 ..
drwxr-xr-x 2 root     root 4096 May  6 05:12 localhost

./conf/Catalina/localhost:
total 20
drwxr-xr-x 2 root root 4096 May  6 05:12 .
drwxr-xr-x 3 root root 4096 May  6 05:12 ..
-rw-r--r-- 1 root root  795 Jan 20 11:31 admin.xml
-rw-r--r-- 1 root root  266 Jan 20 11:31 host-manager.xml
-rw-r--r-- 1 root root  370 Jan 20 11:31 manager.xml

./shared:
total 16
drwxr-xr-x 4 root root 4096 May  6 05:12 .
drwxr-xr-x 6 root root 4096 May  6 05:12 ..
drwxr-xr-x 2 root root 4096 Jan 20 11:33 classes
drwxr-xr-x 2 root root 4096 Jan 20 11:33 lib

./shared/classes:
total 8
drwxr-xr-x 2 root root 4096 Jan 20 11:33 .
drwxr-xr-x 4 root root 4096 May  6 05:12 ..

./shared/lib:
total 8
drwxr-xr-x 2 root root 4096 Jan 20 11:33 .
drwxr-xr-x 4 root root 4096 May  6 05:12 ..

./temp:
total 12
drwxr-xr-x 2 tomcat55 root    4096 May  6 17:54 .
drwxr-xr-x 6 root     root    4096 May  6 05:12 ..
-rw-r--r-- 1 tomcat55 nogroup    5 May  6 17:54 tomcat5.5.pid

./webapps:
total 4220
drwxr-xr-x 3 tomcat55 root       4096 May  6 14:36 .
drwxr-xr-x 6 root     root       4096 May  6 05:12 ..
drwxr-xr-x 4 tomcat55 nogroup    4096 May  6 14:36 xindice
-rw-r--r-- 1 root     root    4295092 May  6 14:36 xindice.war

./webapps/xindice:
total 16
drwxr-xr-x 4 tomcat55 nogroup 4096 May  6 14:36 .
drwxr-xr-x 3 tomcat55 root    4096 May  6 14:36 ..
drwxr-xr-x 2 tomcat55 nogroup 4096 May  6 14:36 META-INF
drwxr-xr-x 4 tomcat55 nogroup 4096 May  6 14:36 WEB-INF

./webapps/xindice/META-INF:
total 28
drwxr-xr-x 2 tomcat55 nogroup  4096 May  6 14:36 .
drwxr-xr-x 4 tomcat55 nogroup  4096 May  6 14:36 ..
-rw-r--r-- 1 tomcat55 nogroup 11357 May  2  2007 LICENSE
-rw-r--r-- 1 tomcat55 nogroup   144 May  6 14:32 MANIFEST.MF
-rw-r--r-- 1 tomcat55 nogroup   397 May  2  2007 NOTICE

./webapps/xindice/WEB-INF:
total 20
drwxr-xr-x 4 tomcat55 nogroup 4096 May  6 14:36 .
drwxr-xr-x 4 tomcat55 nogroup 4096 May  6 14:36 ..
drwxr-xr-x 2 tomcat55 nogroup 4096 May  6 14:36 config
drwxr-xr-x 2 tomcat55 nogroup 4096 May  6 14:36 lib
-rw-r--r-- 1 tomcat55 nogroup 3073 May  2  2007 web.xml

./webapps/xindice/WEB-INF/config:
total 20
drwxr-xr-x 2 tomcat55 nogroup 4096 May  6 14:36 .
drwxr-xr-x 4 tomcat55 nogroup 4096 May  6 14:36 ..
-rw-r--r-- 1 tomcat55 nogroup 5803 May  2  2007 commands.xml
-rw-r--r-- 1 tomcat55 nogroup 3625 May  2  2007 system.xml

./webapps/xindice/WEB-INF/lib:
total 4640
drwxr-xr-x 2 tomcat55 nogroup    4096 May  6 14:36 .
drwxr-xr-x 4 tomcat55 nogroup    4096 May  6 14:36 ..
-rw-r--r-- 1 tomcat55 nogroup   31605 May  2  2007 commons-logging-1.0.3.jar
-rw-r--r-- 1 tomcat55 nogroup 2952605 May  2  2007 xalan-2.5.2.jar
-rw-r--r-- 1 tomcat55 nogroup  949628 May  2  2007 xerces-2.6.0.jar
-rw-r--r-- 1 tomcat55 nogroup  494519 May  6 14:32 xindice-1.1.jar
-rw-r--r-- 1 tomcat55 nogroup    6508 May  6 14:32 xindice-dom-1.1.jar
-rw-r--r-- 1 tomcat55 nogroup  124724 May  2  2007 xml-apis.jar
-rw-r--r-- 1 tomcat55 nogroup    9024 May  2  2007 xmldb-api-20030701.jar
-rw-r--r-- 1 tomcat55 nogroup   29039 May  2  2007
xmldb-api-sdk-20030701.jar
-rw-r--r-- 1 tomcat55 nogroup   11302 May  2  2007 xmldb-common-20030701.jar
-rw-r--r-- 1 tomcat55 nogroup   33999 May  2  2007
xmldb-xupdate-20040205.jar
-rw-r--r-- 1 tomcat55 nogroup   57460 May  2  2007 xmlrpc-1.1.jar

--
Aaron Dalton       |   Super Duper Games
aaron@...   |   http://superdupergames.org

Re: Failed to load configuration

by Vadim Gritsenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On May 6, 2008, at 2:04 PM, Aaron Dalton wrote:

> Thank you very much for your reply, Vadim.  I went through the logs  
> and there is a section that does not appear on the 500 error page  
> (appended below).  It appears to be a permissions issue?

Yes it is java permission issue (it is not related to unix file  
permissions).


> Is there a way to do an auto-check on permission settings?  Or  
> someplace that can tell me what they should be?  Excuse my  
> ignorance, but I am new to Tomcat as well as Xindice.  Again, thanks  
> for your time and assistance.

Somehow your tomcat is starting with java security manager enabled.  
Which means all applications are running in the sandbox and you have  
to explicitly specify which application is allowed to do what - which  
is done in conf/catalina.policy file. You could edit this file to put  
in there all the permissions necessary to run xindice, or - much  
easier - you can turn off security manager.

Check your tomcat start script and look for "-Djava.security.manager"  
parameter or "-security" parameter or something like that. If you  
remove this parameter, tomcat (and xindice) should start and work  
correctly.

Vadim

> Caused by: java.security.AccessControlException: access denied  
> (java.util.PropertyPermission xindice.configuration read)
>        at  
> java
> .security
> .AccessControlContext.checkPermission(AccessControlContext.java:264)
>        at  
> java.security.AccessController.checkPermission(AccessController.java:
> 427)
>        at  
> java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
>        at  
> java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:
> 1285)
>        at java.lang.System.getProperty(System.java:628)
>        at  
> org
> .apache
> .xindice.server.XindiceServlet.loadConfiguration(XindiceServlet.java:
> 232)

<snip/>


Re: Failed to load configuration

by Aaron Dalton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Vadim Gritsenko wrote:
> On May 6, 2008, at 2:04 PM, Aaron Dalton wrote:
>
>> Thank you very much for your reply, Vadim.  I went through the logs
>> and there is a section that does not appear on the 500 error page
>> (appended below).  It appears to be a permissions issue?
>
> Yes it is java permission issue (it is not related to unix file
> permissions).
>

<snip>

>
>> Is there a way to do an auto-check on permission settings?  Or
>> someplace that can tell me what they should be?  Excuse my ignorance,
>> but I am new to Tomcat as well as Xindice.  Again, thanks for your
>> time and assistance.
>
> Somehow your tomcat is starting with java security manager enabled.
> Which means all applications are running in the sandbox and you have to
> explicitly specify which application is allowed to do what - which is
> done in conf/catalina.policy file. You could edit this file to put in
> there all the permissions necessary to run xindice, or - much easier -
> you can turn off security manager.
>

Thank you!  That fixed it.  I appreciate your help and patience.  Now to
play with Xindice itself!

--
Aaron Dalton       |   Super Duper Games
aaron@...   |   http://superdupergames.org
LightInTheBox - Buy quality products at wholesale price!