Dear reader
I have set up geonetwork+tomcat+postgres
everything works fine - I have created a series of metadata
However, I face a problem when trying to upload a file under
Online Resource section. In fact only the Web address (URL)
option works there.
So when attempting to upload the file I get the following message:
"The requested operation could not be performed. "
I found the following lines under
C:\Program Files\Apache Software Foundation\Tomcat 5.5\log\jeeves
---
2008-03-04 23:05:41,050 ERROR [jeeves.service] - Exception when executing service
2008-03-04 23:05:41,051 ERROR [jeeves.service] - (C) Exc : java.lang.Exception: unable to move uploaded file to destination directory
2008-03-04 23:05:41,054 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
<message>unable to move uploaded file to destination directory</message>
<class>Exception</class>
<stack>
<at class="org.fao.geonet.services.resources.Upload" file="Upload.java" line="87" method="exec" />
<at class="jeeves.server.dispatchers.ServiceInfo" file="ServiceInfo.java" line="238" method="execService" />
<at class="jeeves.server.dispatchers.ServiceInfo" file="ServiceInfo.java" line="141" method="execServices" />
<at class="jeeves.server.dispatchers.ServiceManager" file="ServiceManager.java" line="372" method="dispatch" />
<at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="600" method="dispatch" />
<at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="163" method="execute" />
<at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="98" method="doPost" />
<at class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="709" method="service" />
<at class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="802" method="service" />
<at class="org.apache.catalina.core.ApplicationFilterChain" file="ApplicationFilterChain.java" line="252" method="internalDoFilter" />
</stack>
<request>
<language>en</language>
<service>resources.upload</service>
</request>
</error>
---
Any help/suggestion whould be greatly appreciated
Thanking you in advance
Emmanuel.
Hello Emmanuel,
Have a look to the authorisations on the Data directory.
Geonetwork/.../web/geonetwork/WEB-INF/data
Tomcat must be authorized to read (and write ) this directory and
subdirectories to copy the files uploaded.
That is my suggestion
Best Regards,
Fabien Bachraty
E.Stefanakis-2 wrote:
Dear reader
I have set up geonetwork+tomcat+postgres
everything works fine - I have created a series of metadata
However, I face a problem when trying to upload a file under
Online Resource section. In fact only the Web address (URL)
option works there.
So when attempting to upload the file I get the following message:
"The requested operation could not be performed. "
I found the following lines under
C:\Program Files\Apache Software Foundation\Tomcat 5.5\log\jeeves
---
2008-03-04 23:05:41,050 ERROR [jeeves.service] - Exception when executing
service
2008-03-04 23:05:41,051 ERROR [jeeves.service] - (C) Exc :
java.lang.Exception: unable to move uploaded file to destination directory
2008-03-04 23:05:41,054 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>unable to move uploaded file to destination directory</message>
<class>Exception</class>
<stack>
<at class="org.fao.geonet.services.resources.Upload"
file="Upload.java" line="87" method="exec" />
<at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
<at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="141" method="execServices" />
<at class="jeeves.server.dispatchers.ServiceManager"
file="ServiceManager.java" line="372" method="dispatch" />
<at class="jeeves.server.JeevesEngine" file="JeevesEngine.java"
line="600" method="dispatch" />
<at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="163" method="execute" />
<at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="98" method="doPost" />
<at class="javax.servlet.http.HttpServlet" file="HttpServlet.java"
line="709" method="service" />
<at class="javax.servlet.http.HttpServlet" file="HttpServlet.java"
line="802" method="service" />
<at class="org.apache.catalina.core.ApplicationFilterChain"
file="ApplicationFilterChain.java" line="252" method="internalDoFilter" />
</stack>
<request>
<language>en</language>
<service>resources.upload</service>
</request>
</error>
---
Any help/suggestion whould be greatly appreciated
Thanking you in advance
Emmanuel.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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://www.nabble.com/Unable-to-upload-a-file-in-Online-resource-section-tp15837490s18419p15844447.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
Dear Fabien
In this directory I can find the thumbnails - so it seems there is
authorized access...
Thanks!
Emmanuel.
----- Original Message ----- From: "FBachraty" <Fabien.Bachraty@anonymised.com>
To: <geonetwork-users@lists.sourceforge.net>
Sent: Wednesday, March 05, 2008 9:09 AM
Subject: Re: [GeoNetwork-users] Unable to upload a file in Online resource section
Hello Emmanuel,
Have a look to the authorisations on the Data directory.
Geonetwork/.../web/geonetwork/WEB-INF/data
Tomcat must be authorized to read (and write ) this directory and
subdirectories to copy the files uploaded.
That is my suggestion
Best Regards,
Fabien Bachraty
E.Stefanakis-2 wrote:
Dear reader
I have set up geonetwork+tomcat+postgres
everything works fine - I have created a series of metadata
However, I face a problem when trying to upload a file under
Online Resource section. In fact only the Web address (URL)
option works there.
So when attempting to upload the file I get the following message:
"The requested operation could not be performed. "
I found the following lines under
C:\Program Files\Apache Software Foundation\Tomcat 5.5\log\jeeves
---
2008-03-04 23:05:41,050 ERROR [jeeves.service] - Exception when executing
service
2008-03-04 23:05:41,051 ERROR [jeeves.service] - (C) Exc :
java.lang.Exception: unable to move uploaded file to destination directory
2008-03-04 23:05:41,054 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>unable to move uploaded file to destination directory</message>
<class>Exception</class>
<stack>
<at class="org.fao.geonet.services.resources.Upload"
file="Upload.java" line="87" method="exec" />
<at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
<at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="141" method="execServices" />
<at class="jeeves.server.dispatchers.ServiceManager"
file="ServiceManager.java" line="372" method="dispatch" />
<at class="jeeves.server.JeevesEngine" file="JeevesEngine.java"
line="600" method="dispatch" />
<at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="163" method="execute" />
<at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="98" method="doPost" />
<at class="javax.servlet.http.HttpServlet" file="HttpServlet.java"
line="709" method="service" />
<at class="javax.servlet.http.HttpServlet" file="HttpServlet.java"
line="802" method="service" />
<at class="org.apache.catalina.core.ApplicationFilterChain"
file="ApplicationFilterChain.java" line="252" method="internalDoFilter" />
</stack>
<request>
<language>en</language>
<service>resources.upload</service>
</request>
</error>
---
Any help/suggestion whould be greatly appreciated
Thanking you in advance
Emmanuel.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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://www.nabble.com/Unable-to-upload-a-file-in-Online-resource-section-tp15837490s18419p15844447.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
Maybe you are true.
But Tomcat create a user to work and acces your disk.
This user must have the read and write authorisation not your user;)
The user is named Tomcat5 maybe Tomcat55 for the realease 5.5
I am not sure have a look
Have can also look to the tomcat policy file.
Try to add something like this
grant codeBase "file:/usr/local/Geonetwork/-"
{
permission java.security.AllPermission;
};
Either have a look to this interesting post :
http://www.nabble.com/File-upload-error-to13102530s18419.html#a13102530
(
edit the metadata-edit.xsl
and add this attribute to the form:
enctype="multipart/form-data"
)
best regards
Fabien Bachraty
E.Stefanakis-2 wrote:
Dear Fabien
In this directory I can find the thumbnails - so it seems there is
authorized access...
Thanks!
Emmanuel.
--
View this message in context: http://www.nabble.com/Unable-to-upload-a-file-in-Online-resource-section-tp15837490s18419p15845459.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
Could you please guide me where to put this
enctype="multipart/form-data"
Thanks!
Emmanuel.
----- Original Message ----- From: "FBachraty" <Fabien.Bachraty@anonymised.com>
To: <geonetwork-users@lists.sourceforge.net>
Sent: Wednesday, March 05, 2008 10:40 AM
Subject: Re: [GeoNetwork-users] Unable to upload a file in Online resource section
Maybe you are true.
But Tomcat create a user to work and acces your disk.
This user must have the read and write authorisation not your user;)
The user is named Tomcat5 maybe Tomcat55 for the realease 5.5
I am not sure have a look
Have can also look to the tomcat policy file.
Try to add something like this
grant codeBase "file:/usr/local/Geonetwork/-"
{
permission java.security.AllPermission;
};
Either have a look to this interesting post :
http://www.nabble.com/File-upload-error-to13102530s18419.html#a13102530
(
edit the metadata-edit.xsl
and add this attribute to the form:
enctype="multipart/form-data"
)
best regards
Fabien Bachraty
E.Stefanakis-2 wrote:
Dear Fabien
In this directory I can find the thumbnails - so it seems there is
authorized access...
Thanks!
Emmanuel.
--
View this message in context: http://www.nabble.com/Unable-to-upload-a-file-in-Online-resource-section-tp15837490s18419p15845459.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
Hi Emmanuel,
Unless you have an old version, this fix is already part of version 2.2RC0 and RC1 (search the metadata-edit.xsl file for that string to be sure). Otherwise it should be added in the JavaScript function doFileUploadAction as:
document.mainForm.action = action;
document.mainForm.enctype="multipart/form-data";
goSubmit('mainForm');
(Only the middle line obviously).
If it doesn't work with the line added, please try Fabien's solution and let us know if that worked!
Ciao,
Jeroen
On Mar 5, 2008, at 10:23 AM, E.Stefanakis wrote:
Could you please guide me where to put this
enctype="multipart/form-data"
Thanks!
Emmanuel.
----- Original Message -----
From: "FBachraty" <Fabien.Bachraty@anonymised.com>
To: <geonetwork-users@lists.sourceforge.net>
Sent: Wednesday, March 05, 2008 10:40 AM
Subject: Re: [GeoNetwork-users] Unable to upload a file in Online resource
section
Maybe you are true.
But Tomcat create a user to work and acces your disk.
This user must have the read and write authorisation not your user;)
The user is named Tomcat5 maybe Tomcat55 for the realease 5.5
I am not sure have a look
Have can also look to the tomcat policy file.
Try to add something like this
grant codeBase "file:/usr/local/Geonetwork/-"
{
permission java.security.AllPermission;
};
Either have a look to this interesting post :
http://www.nabble.com/File-upload-error-to13102530s18419.html#a13102530
(
edit the metadata-edit.xsl
and add this attribute to the form:
enctype="multipart/form-data"
)
best regards
Fabien Bachraty
E.Stefanakis-2 wrote:
Dear Fabien
In this directory I can find the thumbnails - so it seems there is
authorized access...
Thanks!
Emmanuel.
--
View this message in context:
http://www.nabble.com/Unable-to-upload-a-file-in-Online-resource-section-tp15837490s18419p15845459.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net
Dear Jeroen
I've version 2.1
the metadata-edit.xsl file is slightly different...
here is the doFileUploadAction:
function doFileUploadAction(action, ref, fname, access)
{
// alert("In doFileUploadAction(" + action + ", " + ref + ", " + fname + ")"); // DEBUG
if (fname.indexOf('/') > -1)
fname = fname.substring(fname.lastIndexOf('/') + 1, fname.length);
else
fname = fname.substring(fname.lastIndexOf('\\') + 1, fname.length);
document.mainForm.fname.value = fname;
document.mainForm.access.value = access;
doElementAction(action, ref);
}
I will try version 2.2... and let you know.
Thanks again!
Emmanuel
----- Original Message ----- From: "Jeroen Ticheler" <Jeroen.Ticheler@anonymised.com>
To: "E.Stefanakis" <estef@anonymised.com>
Cc: "FBachraty" <Fabien.Bachraty@anonymised.com>; <geonetwork-users@lists.sourceforge.net>
Sent: Wednesday, March 05, 2008 11:30 AM
Subject: Re: [SPAM] Re: [GeoNetwork-users] Unable to upload a file in Online resource section
Hi Emmanuel,
Unless you have an old version, this fix is already part of version 2.2RC0 and RC1 (search the metadata-edit.xsl file for that string to be sure). Otherwise it should be added in the JavaScript function doFileUploadAction as:
document.mainForm.action = action;
document.mainForm.enctype="multipart/form-data";
goSubmit('mainForm');
(Only the middle line obviously).
If it doesn't work with the line added, please try Fabien's solution and let us know if that worked!
Ciao,
Jeroen
On Mar 5, 2008, at 10:23 AM, E.Stefanakis wrote:
Could you please guide me where to put this
enctype="multipart/form-data"
Thanks!
Emmanuel.
----- Original Message -----
From: "FBachraty" <Fabien.Bachraty@anonymised.com>
To: <geonetwork-users@lists.sourceforge.net>
Sent: Wednesday, March 05, 2008 10:40 AM
Subject: Re: [GeoNetwork-users] Unable to upload a file in Online resource
section
Maybe you are true.
But Tomcat create a user to work and acces your disk.
This user must have the read and write authorisation not your user;)
The user is named Tomcat5 maybe Tomcat55 for the realease 5.5
I am not sure have a look
Have can also look to the tomcat policy file.
Try to add something like this
grant codeBase "file:/usr/local/Geonetwork/-"
{
permission java.security.AllPermission;
};
Either have a look to this interesting post :
http://www.nabble.com/File-upload-error-to13102530s18419.html#a13102530
(
edit the metadata-edit.xsl
and add this attribute to the form:
enctype="multipart/form-data"
)
best regards
Fabien Bachraty
E.Stefanakis-2 wrote:
Dear Fabien
In this directory I can find the thumbnails - so it seems there is
authorized access...
Thanks!
Emmanuel.
--
View this message in context:
http://www.nabble.com/Unable-to-upload-a-file-in-Online-resource-section-tp15837490s18419p15845459.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
Dear all
I have tried all these alternatives without success...
... still get the same message.
Emmanuel.
----- Original Message ----- From: "Jeroen Ticheler" <Jeroen.Ticheler@anonymised.com>
To: "E.Stefanakis" <estef@anonymised.com>
Cc: "FBachraty" <Fabien.Bachraty@anonymised.com>; <geonetwork-users@lists.sourceforge.net>
Sent: Wednesday, March 05, 2008 11:30 AM
Subject: Re: [SPAM] Re: [GeoNetwork-users] Unable to upload a file in Online resource section
Hi Emmanuel,
Unless you have an old version, this fix is already part of version 2.2RC0 and RC1 (search the metadata-edit.xsl file for that string to be sure). Otherwise it should be added in the JavaScript function doFileUploadAction as:
document.mainForm.action = action;
document.mainForm.enctype="multipart/form-data";
goSubmit('mainForm');
(Only the middle line obviously).
If it doesn't work with the line added, please try Fabien's solution and let us know if that worked!
Ciao,
Jeroen
On Mar 5, 2008, at 10:23 AM, E.Stefanakis wrote:
Could you please guide me where to put this
enctype="multipart/form-data"
Thanks!
Emmanuel.
----- Original Message -----
From: "FBachraty" <Fabien.Bachraty@anonymised.com>
To: <geonetwork-users@lists.sourceforge.net>
Sent: Wednesday, March 05, 2008 10:40 AM
Subject: Re: [GeoNetwork-users] Unable to upload a file in Online resource
section
Maybe you are true.
But Tomcat create a user to work and acces your disk.
This user must have the read and write authorisation not your user;)
The user is named Tomcat5 maybe Tomcat55 for the realease 5.5
I am not sure have a look
Have can also look to the tomcat policy file.
Try to add something like this
grant codeBase "file:/usr/local/Geonetwork/-"
{
permission java.security.AllPermission;
};
Either have a look to this interesting post :
http://www.nabble.com/File-upload-error-to13102530s18419.html#a13102530
(
edit the metadata-edit.xsl
and add this attribute to the form:
enctype="multipart/form-data"
)
best regards
Fabien Bachraty
E.Stefanakis-2 wrote:
Dear Fabien
In this directory I can find the thumbnails - so it seems there is
authorized access...
Thanks!
Emmanuel.
--
View this message in context:
http://www.nabble.com/Unable-to-upload-a-file-in-Online-resource-section-tp15837490s18419p15845459.html
Sent from the geonetwork-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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