[GeoNetwork-devel] Database error when running the latest GN 2.7?

Hi all,

I am having problem with suspecious database issues.

I checked out the latest GN code from SVN and used Maven to compile and
build it. All worked OK.

And I deployed it on Tomcat 6.0. It was successfully deployed.

Then I go to "http://localhost:8080/geonetwork"\. It threw out the following
error on the screen.

http://osgeo-org.1803224.n2.nabble.com/file/n6926940/GN_Error_screenshot1.jpg

I am new to GN. Could anyone give me an idea please? Thanks!!!

Alex

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Database-error-when-running-the-latest-GN-2-7-tp6926940p6926940.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

The problem seems to be

/var/lib/tomcat6/geonetwork.lock.db, Permission denied

Enter:
ps -ef | grep java

to see which user is used for tomcat (first column).

I assume the user is "tomcat".

Enter:
groups tomcat

to see the groups of tomcat. I assume there is also a group named "tomcat".

Enter:
chown -R tomcat:tomcat /var/lib/tomcat6

Restart tomcat

Cheers
Christian

Zitat von alextc <alex.tao.chen@anonymised.com>:

Hi all,

I am having problem with suspecious database issues.

I checked out the latest GN code from SVN and used Maven to compile and
build it. All worked OK.

And I deployed it on Tomcat 6.0. It was successfully deployed.

Then I go to "http://localhost:8080/geonetwork&quot;\. It threw out the following
error on the screen.

http://osgeo-org.1803224.n2.nabble.com/file/n6926940/GN_Error_screenshot1.jpg

I am new to GN. Could anyone give me an idea please? Thanks!!!

Alex

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Database-error-when-running-the-latest-GN-2-7-tp6926940p6926940.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@anonymised.com Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
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

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Great! Your tips work as a charm!
Thanks so much for the help, Christian.

Now I have GN up and running but it seems Trunk hasn't got 2.7 merged in.
The Search Map is still with Interactive Map instead of OpenLayers on 2.7
Snapshot version.

Where can I check out GN 2.7 source code by the way?

Thanks!

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Database-error-when-running-the-latest-GN-2-7-tp6926940p6927497.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Zitat von alextc <alex.tao.chen@anonymised.com>:

Great! Your tips work as a charm!
Thanks so much for the help, Christian.

Fine

Now I have GN up and running but it seems Trunk hasn't got 2.7 merged in.
The Search Map is still with Interactive Map instead of OpenLayers on 2.7
Snapshot version.

I am not a main developer, no idea, sorry.

Where can I check out GN 2.7 source code by the way?

svn co https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk <localdir>

Cheers

Thanks!

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Database-error-when-running-the-latest-GN-2-7-tp6926940p6927497.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@anonymised.com Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
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

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Thanks Christian again for your prompt response!

Yes, I did check out the source code from this URL. The geonetwork.war was
built with Maven. All worked fine!

It's so weird that GN comes up with the old search map. But I found all the
ExtJS and OpenLayer library codes in the script folder. There may be
something in configuration that I missed out.

Thanks!

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Database-error-when-running-the-latest-GN-2-7-tp6926940p6927566.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Zitat von alextc <alex.tao.chen@anonymised.com>:

Thanks Christian again for your prompt response!

Yes, I did check out the source code from this URL. The geonetwork.war was
built with Maven. All worked fine!

It's so weird that GN comes up with the old search map. But I found all the
ExtJS and OpenLayer library codes in the script folder. There may be
something in configuration that I missed out.

Open a new thread on this topic, "Database error ..." is outdated.
I think you will get some information of a core developer soon.

Thanks!

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Database-error-when-running-the-latest-GN-2-7-tp6926940p6927566.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@anonymised.com Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
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

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.