eXist on tomcat "configuration error"

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

eXist on tomcat "configuration error"

by Marcus Bransbury :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm currently trying to get eXist working on tomcat. The .war installed fine and the index.xml page appears fine (without the news which says "Failed to load news"). However, the admin.xql page doesn't display it gives the following error:

Error found
Message:configuration error

Java Stack Trace:Class Name Method Name File Name Line
org.exist.util.Configuration Configuration.java 249
org.exist.xmldb.DatabaseImpl configure DatabaseImpl.java 103
org.exist.xmldb.DatabaseImpl getLocalCollection DatabaseImpl.java 179
org.exist.xmldb.DatabaseImpl getCollection DatabaseImpl.java 159
org.exist.xmldb.DatabaseImpl getCollection DatabaseImpl.java 154
org.xmldb.api.DatabaseManager getCollection Unknown Unavailable
org.exist.http.servlets.XQueryServlet process XQueryServlet.java 347
org.exist.http.servlets.XQueryServlet doGet XQueryServlet.java 164
javax.servlet.http.HttpServlet service HttpServlet.java 689
javax.servlet.http.HttpServlet service HttpServlet.java 802
org.apache.catalina.core.ApplicationFilterChain internalDoFilter ApplicationFilterChain.java 237
org.apache.catalina.core.ApplicationFilterChain doFilter ApplicationFilterChain.java 157
org.apache.catalina.core.StandardWrapperValve invoke StandardWrapperValve.java 214
org.apache.catalina.core.StandardContextValve invoke StandardContextValve.java 178
org.apache.catalina.core.StandardHostValve invoke StandardHostValve.java 126
org.apache.catalina.valves.ErrorReportValve invoke ErrorReportValve.java 105
org.apache.catalina.core.StandardEngineValve invoke StandardEngineValve.java 107
org.apache.catalina.connector.CoyoteAdapter service CoyoteAdapter.java 148
org.apache.coyote.http11.Http11Processor process Http11Processor.java 825
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler processConnection Http11Protocol.java 731

Have tried installing a new Configuration.java as found here (http://exist.svn.sourceforge.net/viewvc/exist/trunk/eXist/src/org/exist/util/Configuration.java?revision=5430&view=markup&pathrev=5430 ) but no joy. Have tried resolving classpaths but nothing seems to work. Have seen previous related posts but these are over 1 year old now. Is there still issues with eXist and tomcat?

Any help greatly appreciated.

Re: eXist on tomcat "configuration error"

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>  I'm currently trying to get eXist working on tomcat. The .war installed fine
>  and the index.xml page appears fine (without the news which says "Failed to
>  load news"). However, the admin.xql page doesn't display it gives the
>  following error:
>
>  Error found
>  Message:configuration error

Looks like eXist can't find its configuration file (conf.xml), which
should reside in WEB-INF. Not sure what's wrong here. I installed the
.war in tomcat many times and never had those issues.

It is definitely not a classpath problem and just updating
Configuration.java won't help either. If at all, you could grab a
fresh checkout from the eXist SVN and compile your own .war (build.sh
dist-war).

Wolfgang

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: eXist on tomcat "configuration error"

by Dannes Wessels :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Wed, May 7, 2008 at 11:51 PM, Wolfgang Meier <wolfgang@...> wrote:
Looks like eXist can't find its configuration file (conf.xml), which
should reside in WEB-INF. Not sure what's wrong here. I installed the
.war in tomcat many times and never had those issues.

I have seen these issues on-and-off (on MacOsX); I remember I switched tomcat versions and the issues disappeared......

I remember that my analysis was that  the 'ConfigurationHelper.java" was sometimes not too Help full.... Debugging in tomcat was quite difficult.

regards

Dannes

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Parent Message unknown Re: eXist on tomcat "configuration error"

by Ariel Lira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Marcus,
I already had a similar issue with tomcat (5.5.x <= 5.5.25) over ubuntu.
Try moving resolver-1.2.jar from exist/WEB-INF/lib to
tomcat/common/endorsed/ directory (xml-apis, xalan, xerces and
serializer also sould be in endored).

===================================================

these are my exist-installation steps:

#checkout svn trunk
svn checkout
https://exist.svn.sourceforge.net/svnroot/exist/trunk/eXist exist-src

#compile exist
cd exist-src
./build.sh dist-war

#copy generated war to webapps
sudo mv dist/exist???.war /var/lib/tomcat5.5/webapps/exist.war (war
name must be exist.war)

#move required jars to endorsed
cd /var/lib/tomcat5.5/webapps/exist/WEB-INF/lib/
sudo mv resolver-1.2.jar /usr/share/tomcat5.5/common/endorsed/
sudo mv serializer-2.9.1.jar /usr/share/tomcat5.5/common/endorsed/
sudo mv xalan-2.7.0.jar /usr/share/tomcat5.5/common/endorsed/
sudo mv xercesImpl-*.jar
/usr/share/tomcat5.5/common/endorsed/xercesImpl.jar
sudo mv xml-apis.jar /usr/share/tomcat5.5/common/endorsed/

#update policies file
#edit /etc/tomcat5.5/policy.d/04webapps.policy and add at EOF (I
don't think this should be done in this way, but I really do not
know nothing about java/tomcat permissions)
// exist grants
grant codeBase "file:/var/lib/tomcat5.5/webapps/exist/-" {
permission java.security.AllPermission;
};

#restart tomcat
sudo /etc/init.d/tomcat5.5 restart

maybe there should be a note in
http://exist.sourceforge.net/deployment.html#N101D8 to clarify this
issue wit tomcat. In http://demo.exist-db.org/validation.xml#sect6 and
http://thread.gmane.org/gmane.text.xml.exist/15503 there are indications
to this problem.

===================================================
logs from exist.log when removing resolver-1.2.jar from common/endored/
directory

2008-05-08 18:51:30,378 [http-8180-Processor25] DEBUG
(ConfigurationHelper.java [getExistHome]:40) - Could not retieve
instance of brokerpool: database instance 'exist' is not available
2008-05-08 18:51:30,380 [http-8180-Processor25] WARN (Descriptor.java
[]:96) - Giving up unable to read descriptor file from
/var/lib/tomcat5.5/webapps/exist/WEB-INF/logs/descriptor.xml
2008-05-08 18:51:30,382 [http-8180-Processor25] WARN (Descriptor.java
[]:115) - Giving up unable to read descriptor.xml file from
classloader in package org.exist.http
2008-05-08 18:51:30,385 [http-8180-Processor25] DEBUG
(ConfigurationHelper.java [getExistHome]:40) - Could not retieve
instance of brokerpool: database instance 'exist' is not available
2008-05-08 18:51:30,387 [http-8180-Processor25] DEBUG
(XQueryServlet.java [process]:371) - org.xmldb.api.base.XMLDBException:
configuration error
2008-05-08 18:51:35,493 [http-8180-Processor24] DEBUG
(ConfigurationHelper.java [getExistHome]:40) - Could not retieve
instance of brokerpool: database instance 'exist' is not available
2008-05-08 18:51:35,500 [http-8180-Processor24] DEBUG
(XQueryServlet.java [process]:371) - org.xmldb.api.base.XMLDBException:
configuration error

===================================================

greetings
Ariel


Marcus Bransbury escribió:
> Hi,
>
> I'm currently trying to get eXist working on tomcat. The .war installed fine
> and the index.xml page appears fine (without the news which says "Failed to
> load news"). However, the admin.xql page doesn't display it gives the
> following error:
>
> Error found
> Message:configuration error
>
> Java Stack Trace:Class Name Method Name File Name Line
> org.exist.util.Configuration Configuration.java 249
> org.exist.xmldb.DatabaseImpl configure DatabaseImpl.java 103
> org.exist.xmldb.DatabaseImpl getLocalCollection DatabaseImpl.java 179
> org.exist.xmldb.DatabaseImpl getCollection DatabaseImpl.java 159
> org.exist.xmldb.DatabaseImpl getCollection DatabaseImpl.java 154
> org.xmldb.api.DatabaseManager getCollection Unknown Unavailable
> org.exist.http.servlets.XQueryServlet process XQueryServlet.java 347
> org.exist.http.servlets.XQueryServlet doGet XQueryServlet.java 164
> javax.servlet.http.HttpServlet service HttpServlet.java 689
> javax.servlet.http.HttpServlet service HttpServlet.java 802
> org.apache.catalina.core.ApplicationFilterChain internalDoFilter
> ApplicationFilterChain.java 237
> org.apache.catalina.core.ApplicationFilterChain doFilter
> ApplicationFilterChain.java 157
> org.apache.catalina.core.StandardWrapperValve invoke
> StandardWrapperValve.java 214
> org.apache.catalina.core.StandardContextValve invoke
> StandardContextValve.java 178
> org.apache.catalina.core.StandardHostValve invoke StandardHostValve.java 126
> org.apache.catalina.valves.ErrorReportValve invoke ErrorReportValve.java 105
> org.apache.catalina.core.StandardEngineValve invoke StandardEngineValve.java
> 107
> org.apache.catalina.connector.CoyoteAdapter service CoyoteAdapter.java 148
> org.apache.coyote.http11.Http11Processor process Http11Processor.java 825
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler
> processConnection Http11Protocol.java 731
>
> Have tried installing a new Configuration.java as found here
> (http://exist.svn.sourceforge.net/viewvc/exist/trunk/eXist/src/org/exist/util/Configuration.java?revision=5430&view=markup&pathrev=5430
> ) but no joy. Have tried resolving classpaths but nothing seems to work.
> Have seen previous related posts but these are over 1 year old now. Is there
> still issues with eXist and tomcat?
>
> Any help greatly appreciated.
>




Descargá GRATIS el poder del nuevo Internet Explorer 7. Internet Explorer 7
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open
LightInTheBox - Buy quality products at wholesale price