Hi Bob,
Heikki has mentioned that the GeonetContext is null. This problem is actually
the second exception and is due to a previous exception aborting the
initialisation sequence.
The first failure occurs in SearchManager.initZ3950. Looking at the code, an
attempt is being made to bind a CollectionDirectory into JNDI. This is
probably failing due to CollectionDirectory not implementing either
Serializable or Remoteable.
I feel there are two issues here. The first is the structure of the
initialisation code. A fatal exception (the bind failure) has failed to stop
deployment. JeevesEngine.initAppHandler is catching the exception, writing it
to the log and then allows the process to continue. I would consider throwing
either an UnavailableException or ServletException from the catch block
(consistent with SRV 2.3.2.1). This will cause a hard failure during servlet
deployment. Clearly the servlet is in no fit state to service requests.
The second issue relates to J2EE. Non-enterprise quality web containers such
as Jetty and Tomcat typically implement a Naming Service function using an
in-memory Map. Bound values are intended to only be shared within a single
JVM. Enterprise servers such as WebSphere support fully distributed operation
over IIOP. Values bound to this kind of server are expected to be shared over
multiple JVM's and are therefore restricted by type. There do not appear to
be any hard and fast rules for this, the Javadoc for JNDI indicates
bind(Object) is sufficient. The JNDI tutorial is more explicit
http://java.sun.com/products/jndi/tutorial/objects/storing/index.html.
The bottom line is that binding a CollectionDirectory to JNDI is not going to
work on some platforms. A comment in the code suggests that binding the
CollectionDirectory to the ServletContext is a better idea. Any chance you
can investigate this yourself Bob?
Cheers,
Steve
-----Original Message-----
From: geonetwork-devel-bounces@lists.sourceforge.net
[mailto:geonetwork-devel-bounces@lists.sourceforge.net] On Behalf Of Bob
Nutsch
Sent: Wednesday, 2 July 2008 12:05
To: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] Cannot log in, NullPointerException
Hi Jeroen,
We have the log now, thanks, and have attached it to this post. If you
could have a look to get an idea of what might be happening, I'd sure
appreciate it.
Thanks, Bob
http://www.nabble.com/file/p18214986/geonetwork.log geonetwork.log
Jeroen Ticheler-3 wrote:
Hi Bob,
Logging is done by log4j. the log4j.cfg file defines where logging is
written. Using Jetty this would be in the jetty/log folder. Using
another servlet engine, this location may be different due to the
relative path configured in the log4g.cfg configuration (located in
web/geonetwork/WEB-INF). You could hardcode the location used to log.
It defaults to:log4j.appender.jeeves.file = log/geonetwork.log
Ciao,
JeroenOn Jun 26, 2008, at 8:24 PM, Bob Nutsch wrote:
Hi Jeroen,
We set up the Oracle database with GAST. We can see the demo data
in those
tables, and we can see the admin/admin info.We are wondering what logs we should be looking for and where they
exist.
We don't have anything showing up on the console. Where is logging
switched
on?Regards, Bob
Jeroen Ticheler-3 wrote:
Hi Bruce,
Hard to say what's happening... The user details are stored in the
database. How did you set up the Oracle database? Do you have more
detailed log output for me?
Ciao,
JeroenOn Jun 24, 2008, at 4:38 PM, Bob Nutsch wrote:
Hi Jeroen,
When running on a default install of GeoNetwork (using Jetty,McKoi)
I can
log in as admin/admin, change the password, and noted that the
config.xml
was untouched, but one of the files in the McKoi directory was
touched.
When I try to log in with a bad password, I get a message stating,
"The
username or password is wrong..." which I would expect. But on our
WebSphere installation, we simply get the nullpointexception which
suggests
to us there is a basic problem with the system finding what it
needs. Is the
admin/admin userid and password stored in the application, the DB or
somewhere else? Since we get the null pointer exception regardless
of what
we enter for a userid and password it would seem that there is a
piece
missing in our application. Is there some security setup that we
are
missing?Thanks, Bob
Jeroen Ticheler-3 wrote:
Hi Bob,
Normally this should be admin/admin and not your db username and
password since that one is not related to the user account for the
application. If you can't resolve this, you may need to manually
edit
the password in Oracle...
Ciao,
JeroenOn Jun 23, 2008, at 10:32 PM, Bob Nutsch wrote:
Hello Heikki,
Thanks for the input. We do have regions appearing in the
dropdown
list.
We changed the name of a region in oracle and that change came
through in
the dropdown list.We are wondering if we should be logging in as admin/admin or
using
the
Oracle userid/password? We've tried both approaches and get the
same
results.Thanks, Bob
heikki doeleman wrote:
hi,
this really sounds like you don't have a properly working
connection to
your
database. To check that, do you see a list of regions in the
regions
dropdownlist, near the minimap ? (you'll only have them if your
database
connection is working properly).regards
heikkiOn Mon, Jun 23, 2008 at 9:41 PM, Bob Nutsch <bnutsch@anonymised.com>
wrote:Hi,
We have deployed GeoNetwork to WebSphere 6.1 on a development
PC.
We can
fire up GeoNetwork but it's not completely working.The main page comes up and everything displays correctly however
when I
try
to login as the admin using admin/admin or any other userid and
password,
an
error is displayed reading "The requested operation could not be
performed".
Right below the error message "NullPointerException:" is
displayed.I am using Oracle for my database and updated the config.xml to
the
following:<resource enabled="true">
<name>main-db</name><provider>jeeves.resources.dbms.DbmsPool</provider>
<config>
<user>myDBUserid</user>
<password>myDBPassword</
password><driver>oracle.jdbc.driver.OracleDriver</driver>
<url>jdbc:oracle:thin:@myDBServer
:2901:cdd4</url>
<poolSize>10</poolSize>
</config>
</resource>Any help greatly appreciated.
Thanks, Bob
--
View this message in context:
http://www.nabble.com/Cannot-log-in%2C-NullPointerException-tp18076751p180767
51.html
Sent from the geonetwork-devel mailing list archive at
Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork--
Inventions cannot, in nature, be a subject of property. -- Thomas
Jefferson
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork--
View this message in context:
http://www.nabble.com/Cannot-log-in%2C-NullPointerException-tp18076751p180778
16.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork--
View this message in context:
http://www.nabble.com/Cannot-log-in%2C-NullPointerException-tp18076751p180925
07.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork--
View this message in context:
http://www.nabble.com/Cannot-log-in%2C-NullPointerException-tp18076751p181402
59.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
--
View this message in context:
http://www.nabble.com/Cannot-log-in%2C-NullPointerException-tp18076751p182149
86.html
Sent from the geonetwork-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork