[GeoNetwork-users] Issues with geonetwork under tomcat

Hi

I'm trying to get Geonetwork 2.4 running under tomcat. I get a NullPointerException when I login as admin/admin.

It works fine when I start geonetwork using the builtin jetty server. But when I map the geonetwork context path and directory to the existing tomcat server we have running, I get the following error (attached txt file).

I know it's not much to go by but just wondering if anyone has encountered this issue or I am setting it up incorrectly.

Any ideas?

Thanks
-Linden

________________________________
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

(attachments)

login_error.txt (5.25 KB)

Which OS are you running ?

2009/7/23 Linden Varley <Linden.Varley@anonymised.com>

Hi

I'm trying to get Geonetwork 2.4 running under tomcat. I get a
NullPointerException when I login as admin/admin.

It works fine when I start geonetwork using the builtin jetty server. But
when I map the geonetwork context path and directory to the existing tomcat
server we have running, I get the following error (attached txt file).

I know it's not much to go by but just wondering if anyone has encountered
this issue or I am setting it up incorrectly.

Any ideas?

Thanks
-Linden

________________________________
The contents of this email are confidential and may be subject to legal or
professional privilege and copyright. No representation is made that this
email is free of viruses or other defects. If you have received this
communication in error, you may not copy or distribute any part of it or
otherwise disclose its contents to anyone. Please advise the sender of your
incorrect receipt of this correspondence.

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

_______________________________________________
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

I had exactly the same pb, running tomcat6 on ubuntu 9.04. Until now, i
didn't solve it (i switchedto windows, and delayed the pb for later
inspection)
I get a NullPointerException when trying to connect or launch a search.
I first thought of a pb related to the database (connection or rights
issues), but requiring the advanced search, i noticed the categories are
correctly listed (and categories are stored in the database). So, the pb
seems not to be a database connection issue...

Jean

2009/7/23 Jean Pommier (IGE) <jean.pommier@anonymised.com>

Which OS are you running ?

2009/7/23 Linden Varley <Linden.Varley@anonymised.com>

Hi

I'm trying to get Geonetwork 2.4 running under tomcat. I get a
NullPointerException when I login as admin/admin.

It works fine when I start geonetwork using the builtin jetty server. But
when I map the geonetwork context path and directory to the existing tomcat
server we have running, I get the following error (attached txt file).

I know it's not much to go by but just wondering if anyone has encountered
this issue or I am setting it up incorrectly.

Any ideas?

Thanks
-Linden

________________________________
The contents of this email are confidential and may be subject to legal or
professional privilege and copyright. No representation is made that this
email is free of viruses or other defects. If you have received this
communication in error, you may not copy or distribute any part of it or
otherwise disclose its contents to anyone. Please advise the sender of your
incorrect receipt of this correspondence.

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

_______________________________________________
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

Hello,
I am using GeoNetwork 2.4 on Ubuntu 8.04 Server Edition with tomcat6 and PostgreSQL as database.
No issues with the access or when I create a new metadata.

Bye
Luca

Jean Pommier (IGE) ha scritto:

I had exactly the same pb, running tomcat6 on ubuntu 9.04. Until now, i
didn't solve it (i switchedto windows, and delayed the pb for later
inspection)
I get a NullPointerException when trying to connect or launch a search.
I first thought of a pb related to the database (connection or rights
issues), but requiring the advanced search, i noticed the categories are
correctly listed (and categories are stored in the database). So, the pb
seems not to be a database connection issue...

Jean

2009/7/23 Jean Pommier (IGE) <jean.pommier@anonymised.com>

Which OS are you running ?

--
ME Luca Casagrande
Open Source GIS analyst and developer

Gfosservices SA

http://www.gfosservices.com
skype: lucacasagrande
email: luca.casagrande[at]gmail.com

Trying it again, i believe i found the issue : it is a pb of access rights
to the data and/or web folders
using tomcat, you need to give the write access to tomcat to the data and
web folders (referring to the initial structure when installing geonetwork,
ie geonetwork/data, and geonetwork/web)
In my case, it was installed in my personnal space, /home/jean/geonetwork.
So, what i did is change the owner group for the 2 folders :
chown -R jean:tomcat6 data
chown -R jean:tomcat6 web
And add the write rights for the group :
chmod -R g+w data
chmod -R g+w web

And finally, if it's not done yet, add myself to the tomcat6 group.
Restarted the app, and it works

I suppose your pb is something similar...

2009/7/23 Jean Pommier (IGE) <jean.pommier@anonymised.com>

I had exactly the same pb, running tomcat6 on ubuntu 9.04. Until now, i
didn't solve it (i switchedto windows, and delayed the pb for later
inspection)
I get a NullPointerException when trying to connect or launch a search.
I first thought of a pb related to the database (connection or rights
issues), but requiring the advanced search, i noticed the categories are
correctly listed (and categories are stored in the database). So, the pb
seems not to be a database connection issue...

Jean

2009/7/23 Jean Pommier (IGE) <jean.pommier@anonymised.com>

Which OS are you running ?

2009/7/23 Linden Varley <Linden.Varley@anonymised.com>

Hi

I'm trying to get Geonetwork 2.4 running under tomcat. I get a
NullPointerException when I login as admin/admin.

It works fine when I start geonetwork using the builtin jetty server. But
when I map the geonetwork context path and directory to the existing tomcat
server we have running, I get the following error (attached txt file).

I know it's not much to go by but just wondering if anyone has
encountered this issue or I am setting it up incorrectly.

Any ideas?

Thanks
-Linden

________________________________
The contents of this email are confidential and may be subject to legal
or professional privilege and copyright. No representation is made that this
email is free of viruses or other defects. If you have received this
communication in error, you may not copy or distribute any part of it or
otherwise disclose its contents to anyone. Please advise the sender of your
incorrect receipt of this correspondence.

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

_______________________________________________
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

Tomcat 5.5. on Debian 5.0. Tried with both JDK1.5 and 1.6 with the same error. Permissions on the directory are correct and owned by tomcat.

Added the geonetwork and intermap context to tomcat as follows without much luck.

        <Context
            path="/geonetwork"
            docBase="/usr/local/geonetwork/web/geonetwork"
            crossContext="false"
            debug="0"
            reloadable="false" />
        <Context path="/intermap"
            docBase="/usr/local/geonetwork/web/intermap"
            crossContext="false"
            debug="0"
            reloadable="false" />

From: ige31.jp@anonymised.com [mailto:ige31.jp@anonymised.com] On Behalf Of Jean Pommier (IGE)
Sent: Thursday, 23 July 2009 6:26 PM
To: Linden Varley
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Issues with geonetwork under tomcat

Which OS are you running ?
2009/7/23 Linden Varley <Linden.Varley@anonymised.com<mailto:Linden.Varley@anonymised.com1…>>
Hi

I'm trying to get Geonetwork 2.4 running under tomcat. I get a NullPointerException when I login as admin/admin.

It works fine when I start geonetwork using the builtin jetty server. But when I map the geonetwork context path and directory to the existing tomcat server we have running, I get the following error (attached txt file).

I know it's not much to go by but just wondering if anyone has encountered this issue or I am setting it up incorrectly.

Any ideas?

Thanks
-Linden

________________________________
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

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

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

________________________________
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.