Thank you for your interest.

when I went over my app., something looked suspicious.

I had added an extra context file for pooled postgresql connection
like this:

<?xml version="1.0" encoding="UTF-8"?>
<Context path="/usr/local/workspace1/pro1" docBase="pro1"
        crossContext="true" reloadable="true" debug="1">
        <Resource name="jdbc/bzk2" auth="Container" type="javax.sql.DataSource"
                driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://127.0.0.1:5432/bzk2"
                username="orkun" password="222222" maxActive="20" maxIdle="10"
poolPreparedStatements="true"
                maxWait="-1" accessToUnderlyingConnectionAllowed="true" />
</Context>

Is it likely to be the reason of problem ? especially this expression
url="jdbc:postgresql://127.0.0.1:5432/bzk2" in production stage.

kind regards



2011/2/25 Christopher Schultz <ch...@christopherschultz.net>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ahmet,
>
> On 2/25/2011 1:37 PM, ahmet temiz wrote:
>> Are there anythings I have to do in configuration files to
>> change from development stages to production stage ?
>
> Unless you've done foolish things in development, production
> configuration should not really need any changes. Some things you might
> consider changing for a production configuration:
>
> 1. Set larger number of request processors in <Connector>
> 2. Set <Host> autoDeploy="false"
> 3. Set JspServlet parameters:
>   - development
>   - modificationTestInterval
>   - checkInterval
> 4. Change the number of db connections in a JNDI DataSource
>   (I always use max=1 in dev, so production should clearly have more)
>
>> Especially, what are things to deploy jsf_webapp
>>  in its real host after developing it in the localhost  ?
>
> You will also have to make sure that your URLs are built properly. If
> the string "localhost" appears anywhere in your webapp, you're probbaly
> doing something wrong. Also, if you're not building URLs in pages like this:
>
>   <a href="<%= response.encodeURL(request.getContextPath()
>                          + "/path/to/resource") %>">your link</a>
>
> ...then you are probably going to have problems re-locating it. Note
> that the use of tag libraries for building URLs is generally a good idea
> because this complexity is hidden from you.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk1oCOwACgkQ9CaO5/Lv0PCyGgCgts7HKVsGPoprtSm7ceNQSBdU
> 0r8AnRwk1uMwyNU0r+6HyUh3iwQf3rUd
> =Zx0H
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>



-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı
Bilgi ve CBS grubu
Eskişehir Yolu 10. km.
Lodumlu / Ankara
Tel : 0 312 2872680 / 1535

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

Reply via email to