[GeoNetwork-users] changing permissions problem

Hi everybody,

I have the following problem (GeoNetwork 2.4.1).

Situation:
1. changing the permissions of one or more metadata set(s) to "ALL"
2. logout
3. Result: NoClassDefFoundError : org/jaxen/BaseXPath

A restart of GeoNetwork doesn't solve the problem...

Has anybody else the same problem?

Best regards,
Juergen

Hi Jürgen,

Did you inspect geonetwork.log and output.log?

What are the content of web/geonetwork/WEB-INF/lib, maybe a library (e.g.
jaxen-1.1.1.jar) is missing?

Cheers
Hans

Jürgen Weichand wrote:

Hi everybody,

I have the following problem (GeoNetwork 2.4.1).

Situation:
1. changing the permissions of one or more metadata set(s) to "ALL"
2. logout
3. Result: NoClassDefFoundError : org/jaxen/BaseXPath

A restart of GeoNetwork doesn't solve the problem...

Has anybody else the same problem?

Best regards,
Juergen

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
View this message in context: http://n2.nabble.com/changing-permissions-problem-tp3596690p3596844.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

This is the whole Error-MSG using CSW:

<?xml version="1.0" encoding="UTF-8"?>
<error id="error">
  <message>org/jaxen/BaseXPath</message>
  <class>NoClassDefFoundError</class>
  <stack>
    <at class="java.lang.Class" file="Class.java" line="-2"
method="forName0" />
    <at class="java.lang.Class" file="Class.java" line="169"
method="forName" />
    <at class="org.jdom.xpath.XPath" file="XPath.java" line="126"
method="newInstance" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="342"
method="prepareXPath" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="383"
method="selectNodes" />
    <at class="jeeves.utils.Xml" file="Xml.java" line="390"
method="selectNodes" />
    <at class="org.fao.geonet.kernel.AccessManager"
file="AccessManager.java" line="127" method="getOperations" />
    <at class="org.fao.geonet.kernel.DataManager"
file="DataManager.java" line="2086" method="buildInfoElem" />
    <at class="org.fao.geonet.kernel.DataManager"
file="DataManager.java" line="1037" method="getMetadata" />
    <at class="org.fao.geonet.kernel.DataManager"
file="DataManager.java" line="994" method="getMetadata" />
  </stack>
  <request>
    <language>en</language>
    <service>csw</service>
  </request>
</error>

------------------------------------------------------------------

This is the last entry of the output.log:

Recoverable error
  XTRE0540: Ambiguous rule match for /
Matches both "document-node()" on line 9 of

file:/export/home/user/geonetwork2410/geonetwork/web/geonetwork/xsl/res.xsl
and "document-node()" on line 11 of

file:/export/home/user/geonetwork2410/geonetwork/web/geonetwork/xsl/main.xsl

------------------------------------------------------------------
The libs...

a2jruntime.jar ecore-2.2.2.jar
jdom.jar mkjdbc.jar
activation.jar fop.jar
jeeves.jar mysql-connector-java-5.0.7-bin.jar
avalon-framework-4.2.0.jar geoapi-2.2-M1.jar
jsch-20070907.jar oaipmh-lib.jar
batik-all-1.6.jar geonetwork.jar
jsr108-0.01.jar openrdf-model.jar
cachingxslt.jar gnu-regexp-1.1.4.jar
jsr-275-1.0-beta-2.jar openrdf-util.jar
cog-jglobus-1.2-060802.jar gt-api-2.5.1.jar
jts-1.9.jar picocontainer-1.2.jar
common-2.2.1.jar gt-coverage-2.5.1.jar
junit-4.6.jar postgresql-8.2-504.jdbc3.jar
commons-codec-1.3.jar gt-cql-2.5.1.jar
junit-dep-4.6.jar rio.jar
commons-collections-3.1.jar gt-graph-2.5.1.jar
ki-jzkit-hss-1_2_3.jar saxon9-dom.jar
commons-email.jar gt-main-2.5.1.jar
ki-jzkit-iface-1_2_3-fixed.jar saxon9.jar
commons-fileupload-1.2.1.jar gt-metadata-2.5.1.jar
ki-jzkit-z3950-1_2_3.jar serializer.jar
commons-httpclient-3.0.1.jar gt-referencing-2.5.1.jar
ki-util.jar sesame.jar
commons-io-1.3.1.jar gt-shapefile-2.5.1.jar
lizard-tiff.jar tyrex-1.0.jar
commons-jxpath-1.2.jar gt-xsd-core-2.5.1.jar
log4j-1.2.13.jar xalan.jar
commons-lang-2.1.jar gt-xsd-filter-2.5.1.jar
lucene-analyzers-2.3.2.jar xercesImpl-2.7.1.jar
commons-logging-api.jar gt-xsd-gml2-2.5.1.jar
lucene-core-2.3.2.jar xml-apis-1.3.02.jar
commons-logging.jar gt-xsd-gml3-2.5.1.jar
lucene-misc-2.3.2.jar xmlgraphics-commons-1.2.jar
cql-java.jar jakarta-slide-webdavlib-2.1.jar
mail.jar xmlunit-1.2.jar
dlib.jar jaxen-1.1.1.jar
marc4j.jar xsd-2.2.2.jar
dummy-api.jar jdbm-0.12.jar mckoidb.jar

Thanks,
Juergen

Hallo,

I think here is the error:

Jürgen Weichand wrote:

This is the whole Error-MSG using CSW:

<?xml version="1.0" encoding="UTF-8"?>
<error id="error">
...
    <at class="org.fao.geonet.kernel.AccessManager"
file="AccessManager.java" line="127" method="getOperations" />
...
  <request>
    <language>en</language>
    <service>csw</service>
  </request>
...

Is the service allowed for the user and/or did you try the same as 'admin'
with the same error?

in user-profiles.xml should exist a line with something like:

<!-- Catalogue Services for the Web -->
<allow service="csw"/>

Cheers
Hans

--
View this message in context: http://n2.nabble.com/changing-permissions-problem-tp3596690p3597210.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Finally I solved the problem:

I had an old version of jdom.jar (1.0) in my /jre/lib/ext/ directory.

GeoNetwork used the jdom.jar in the /jre/lib/ext/ directory instead of
his own jdom.jar.

Thanks for your Help!

Juergen