You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ermal Aliraj <er...@gmail.com> on 2012/05/18 22:53:42 UTC

WebApp on Tomcat recognize automaticely uploaded file

Hello,

can anyone help me, if  there is a configuration parameter in tomcat, which
permit to the web application to auto-recognize when I put an image from
filesystem into the webapp?

I put images in the path of my application: appBase/webAppA/uploads through
another webAppB, but seems that webAppA recognizes the images only after
Tomcat restart.
Working until now with tomcat integrated into eclipse, I didn't noticed
this event because eclipse was publishing automatically after each upload.

Thank you to anyone for any kind of help.

Ermal

Re: WebApp on Tomcat recognize automaticely uploaded file

Posted by Vance - <va...@gmail.com>.
I've found this article helpful in the past:

http://whatwouldnickdo.com/wordpress/157/tomcat-images-directory/


On Fri, May 18, 2012 at 4:53 PM, Ermal Aliraj <er...@gmail.com>wrote:

> Hello,
>
> can anyone help me, if  there is a configuration parameter in tomcat, which
> permit to the web application to auto-recognize when I put an image from
> filesystem into the webapp?
>
> I put images in the path of my application: appBase/webAppA/uploads through
> another webAppB, but seems that webAppA recognizes the images only after
> Tomcat restart.
> Working until now with tomcat integrated into eclipse, I didn't noticed
> this event because eclipse was publishing automatically after each upload.
>
> Thank you to anyone for any kind of help.
>
> Ermal
>

Re: WebApp on Tomcat recognize automaticely uploaded file

Posted by Ermal Aliraj <er...@gmail.com>.
I know is strange but webAppA, started to work suddenly.
The only thing I have done this days is a lot of restarts when deploying
stuff for webAppB. Now seems that each image uploaded through webAppB,
inside c:/pathtoDocbase/webAppA/uploads/ (or pasted directly in file
system) is been replied(showed in the browser) correctly when doing a http
request like http://servername/webAppA/uploads/1.jpg

Maybe is a configuration parameter that I have changed without noticing it,
but I am not sure.

Thank you for your reply.



2012/5/19 André Warnier <aw...@ice-sa.com>

> Ermal Aliraj wrote:
>
>> Yes, I say webAppA do not recognize the images because do not serve them
>> through the browser via URL
>
>
>> I did the following scneario and writing down in case can make the
>> situation more clear
>> uploaded manualy the following files on:
>>
>> webAppA/uploads/1.jpg
>> webAppB/uploads/1.jpg
>>
>> requesting the files through URL i have the following:
>>
>> www.localhost/webAppA/uploads/**1.jpg     --- no reply
>>
>
> "no reply" cannot be.  What /exactly/ happens when you enter that URL ?
>
> Have you verified that the user under which tomcat runs has permissions to
> read what is in "webAppA" ?
>
>
>  www.localhost/webAppB/uploads/**1.jpg     -- photo visualized
>>
>>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<us...@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: WebApp on Tomcat recognize automaticely uploaded file

Posted by André Warnier <aw...@ice-sa.com>.
Ermal Aliraj wrote:
> Yes, I say webAppA do not recognize the images because do not serve them
> through the browser via URL.
> 
> I did the following scneario and writing down in case can make the
> situation more clear
> uploaded manualy the following files on:
> 
> webAppA/uploads/1.jpg
> webAppB/uploads/1.jpg
> 
> requesting the files through URL i have the following:
> 
> www.localhost/webAppA/uploads/1.jpg     --- no reply

"no reply" cannot be.  What /exactly/ happens when you enter that URL ?

Have you verified that the user under which tomcat runs has permissions to read what is in 
"webAppA" ?


> www.localhost/webAppB/uploads/1.jpg     -- photo visualized
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: WebApp on Tomcat recognize automaticely uploaded file

Posted by Ermal Aliraj <er...@gmail.com>.
Yes, I say webAppA do not recognize the images because do not serve them
through the browser via URL.

I did the following scneario and writing down in case can make the
situation more clear
uploaded manualy the following files on:

webAppA/uploads/1.jpg
webAppB/uploads/1.jpg

requesting the files through URL i have the following:

www.localhost/webAppA/uploads/1.jpg     --- no reply
www.localhost/webAppB/uploads/1.jpg     -- photo visualized

Do you have any idea what might cause appA not to "recognize" the images?

Thank you very much for your help

Ermal


2012/5/18 André Warnier <aw...@ice-sa.com>

> Ermal Aliraj wrote:
>
>> Hello,
>>
>> can anyone help me, if  there is a configuration parameter in tomcat,
>> which
>> permit to the web application to auto-recognize when I put an image from
>> filesystem into the webapp?
>>
>> I put images in the path of my application: appBase/webAppA/uploads
>> through
>> another webAppB, but seems that webAppA recognizes the images only after
>> Tomcat restart.
>>
> Hi.
>
> Can you explain exactly what you mean by
> "webAppA recognizes the images" ?
>
What are you doing that makes you think that these images are "not being
> recognised" ?
> Are you trying to access them from a browser via a URL ?
> Explain in detail please, step by step.
>

>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.**apache.org<us...@tomcat.apache.org>
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: WebApp on Tomcat recognize automaticely uploaded file

Posted by André Warnier <aw...@ice-sa.com>.
Ermal Aliraj wrote:
> Hello,
> 
> can anyone help me, if  there is a configuration parameter in tomcat, which
> permit to the web application to auto-recognize when I put an image from
> filesystem into the webapp?
> 
> I put images in the path of my application: appBase/webAppA/uploads through
> another webAppB, but seems that webAppA recognizes the images only after
> Tomcat restart.
Hi.

Can you explain exactly what you mean by
"webAppA recognizes the images" ?

What are you doing that makes you think that these images are "not being recognised" ?
Are you trying to access them from a browser via a URL ?
Explain in detail please, step by step.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org