IIS + Tomcat

2012-02-12 Thread Ermal Aliraj
Hello,

I have installed Tomcat7 in a macchine where is running IIS (WinServer 2008
R2 Enterprise).
I need to deploy an e-commerce web application from which I expect an hight
number of user interactions.
The application is written in JSF+Spring, so static context seems I have
only the images and css.

Will be a good choice to make the application available outside my macchine
directly through Tomcat?
Will IIS give me a benefit or a penalty?

Thanks in advance for any good answer.

Ermal


Re: make Tomcat reachable on internet

2012-03-02 Thread Ermal Aliraj
I guess you need to add an static IP to your router and do a mapping with
your local ip (macchine where tomact is running)

In my case I can do that accessing to the router 169.168.1.1 then
Firewall->DMZ
Here I have a table with two fields:
- Public IP Address
- Client PC IP Address

Public Ip is an ip assigned randomly from my ISP but it changes every 2-3
days, because I don't have a STATIC ip.
Client ip is the internal ip of the macchine in my LAN, usually 192.168.1.x

In this way you can access your application typing outside your LAN:
publicip:port/ApplicationName

Ermal

2012/3/2 David Kerber 

> On 3/1/2012 5:55 PM, giovo87 wrote:
>
>> is this the only one solution?
>>
>>
>> changing some router's configurations or ubuntu's firewall configurations
>> can i have the same result?
>>
> Actually, you'll have to change BOTH of those to allow the port you want
> through.  And then your ISP also has to allow incoming connections on the
> desired port.  I have done this, but I had to sign up for a business
> account with my ISP, because their TOS didn't allow me to run a server on a
> home acct.
>
>
> D
>
>
>>
>> there must be another way...
>>
>> --
>> View this message in context: http://tomcat.10.n6.nabble.**
>> com/make-Tomcat-reachable-on-**internet-tp4537795p4537878.**html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> users-unsubscribe@tomcat.**apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>>
>>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tomcat.**apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: make Tomcat reachable on internet

2012-03-02 Thread Ermal Aliraj
If you use DMZ your problem to make visible Tomcat outside your LAN will
disappear.
BUT, (in case you don't have a static IP) you have to deal with the problem
that the given IP is provisory and will be changed after some days, so you
have to find a way to communicate the new IP to whom who wants to ping
tomcat (application deployed on tomcat).

Ermal


2012/3/2 giovo87 

> Thanks for your response. I did not know about DMZ.
>
> It seems the easiest way,
>
> But what about forewarding configurations in my router? port forewarding?
> if
> i use DMZ i don't have to touch nothing about these?
>
>
> Thanks again
>
> --
> View this message in context:
> http://tomcat.10.n6.nabble.com/make-Tomcat-reachable-on-internet-tp4537795p4539508.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


WebApp on Tomcat recognize automaticely uploaded file

2012-05-18 Thread Ermal Aliraj
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

2012-05-18 Thread Ermal Aliraj
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 

> 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-h...@tomcat.apache.org
>
>


Re: WebApp on Tomcat recognize automaticely uploaded file

2012-06-01 Thread Ermal Aliraj
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 

> 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-h...@tomcat.apache.org
>
>