Quantcast

where has the tomcat work dir gone in 2.1.0

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

where has the tomcat work dir gone in 2.1.0

pmcneil
G'day all,

Just upgraded an application to 2.1.0 from 2.0.4. The added a multipart
form with a file upload and got an error:

.../.grails/2.1.0/projects/lintek-form/tomcat/work/Tomcat/...
/upload_444eb8a_1392fa29c4a__8000_00000103.tmp (No such file or directory)

So I went looking and it seems the
[home]/.grails/2.1.0/projects/[projectname]/tomcat directory doesn't exist.

sooo, where's it gone then?

Cheers,
Peter.

--
web: http://nerderg.com
Twitter: http://twitter.com/pmcneil


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Answer - where has the tomcat work dir gone in 2.1.0

pmcneil
The problem is the directory seems to only be created on startup, so if
you add a multipart form to your application while it's running in
reload mode - no directory.

Solution stop and restart app.


On 17/08/12 00:02, Peter McNeil wrote:

> G'day all,
>
> Just upgraded an application to 2.1.0 from 2.0.4. The added a
> multipart form with a file upload and got an error:
>
> .../.grails/2.1.0/projects/lintek-form/tomcat/work/Tomcat/...
> /upload_444eb8a_1392fa29c4a__8000_00000103.tmp (No such file or
> directory)
>
> So I went looking and it seems the
> [home]/.grails/2.1.0/projects/[projectname]/tomcat directory doesn't
> exist.
>
> sooo, where's it gone then?
>
> Cheers,
> Peter.
>

--
web: http://nerderg.com
Twitter: http://twitter.com/pmcneil


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Answer - where has the tomcat work dir gone in 2.1.0

pledbrook
> The problem is the directory seems to only be created on startup, so if you
> add a multipart form to your application while it's running in reload mode -
> no directory.
>
> Solution stop and restart app.

Hmmm...sounds odd. If the directory is created on startup, why would
there be a problem at all?

Peter

--
Peter Ledbrook
Developer Advocate
VMware

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Answer - where has the tomcat work dir gone in 2.1.0

pmcneil
Yeah I agree. It was rather late at night :-) So this is what happened
(statement of facts):-

1. I was running the app (run-app) in debug mode
2 Added a multipart form to my view
3 Went to upload the file and got the error
4 looked for the directory.
$HOME/.grails/2.1.0/projects/lintek-form/tomcat wasn't there
5 emailed the list :-)
6 stopped and restarted application
7 tried again - it worked and
$HOME/.grails/2.1.0/projects/lintek-form/tomcat was there.

Cheers,
Peter.


On 17/08/12 00:53, Peter Ledbrook wrote:

>> The problem is the directory seems to only be created on startup, so if you
>> add a multipart form to your application while it's running in reload mode -
>> no directory.
>>
>> Solution stop and restart app.
> Hmmm...sounds odd. If the directory is created on startup, why would
> there be a problem at all?
>
> Peter
>

--
web: http://nerderg.com
Twitter: http://twitter.com/pmcneil


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...