On Wed, Sep 17, 2008 at 10:09 AM, Matthew Buckett <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 16, 2008 at 7:00 PM, Olivier Lamy <[EMAIL PROTECTED]> wrote:
>> Hi,
>> I have tested the upload file mode and didn't find issues.
>
> I have installed continuum 1.2 on a Linux vmware image and seem to get
> the same error.
>
>> Is the parent pom available in a repository declared in your settings.xml ?
>
> No, I don't think so. But why would the same pom.xml work when
> downloaded from a URL but not work when uploaded through a web
> browser?
Running the latest 1.2 WAR in tomcat gives me slight more information:
org.apache.maven.continuum.ContinuumException: Error reading POM
at
org.apache.maven.continuum.web.action.AddMavenTwoProjectAction.doExecute(AddMavenTwoProjectAction.java:94)
at
org.apache.maven.continuum.web.action.AddMavenProjectAction.execute(AddMavenProjectAction.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
at
com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)
at
com.opensymphony.webwork.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:35)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.io.FileNotFoundException:
/private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000009.tmp
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at java.io.FileReader.<init>(FileReader.java:41)
at
org.apache.maven.continuum.web.action.AddMavenTwoProjectAction.doExecute(AddMavenTwoProjectAction.java:82)
... 9 more
2008-09-19 12:50:02,405 [http-8080-Processor20] INFO
com.opensymphony.webwork.dispatcher.DispatcherUtils - Unable to find
'webwork.multipart.saveDir' property setting. Defaulting to
javax.servlet.context.tempdir
2008-09-19 12:50:02,418 [http-8080-Processor20] INFO
com.opensymphony.webwork.interceptor.FileUploadInterceptor - File
m2PomFile text/xml pom.xml
/private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
2008-09-19 12:50:02,435 [http-8080-Processor20] INFO
com.opensymphony.webwork.interceptor.FileUploadInterceptor - Removing
file m2PomFile
/private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
2008-09-19 12:50:02,443 [addMavenTwoProjectBackgroundThread] INFO
continuumProjectBuilder#maven-two-builder - Downloading
file:/private/tmp/apache-tomcat-5.5.26/work/Catalina/localhost/continuum/upload__fb4026e_11c7a6e9eeb__7ff5_00000015.tmp
2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
continuum - Created 0 projects.
2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
continuum - Created 0 project groups.
2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
continuum - 1 errors.
2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO
continuum - 1 errors during project add:
2008-09-19 12:50:02,444 [addMavenTwoProjectBackgroundThread] INFO continuum -
It seems like the
com.opensymphony.webwork.interceptor.FileUploadInterceptor is deleting
the uploaded file before it can be added by the project builder.
--
Matthew Buckett