Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
w jaki sposob zmusic tomcata czy tam indianca zeby mi poprawnie wykonywal pliki *.jsp ??
mod_jk mam zainstalowane i skonfigurowane:
[Fri Mar 02 11:18:42 2007] [notice] Apache/2.2.3 (Debian) mod_jk/1.2.18 PHP/5.2.0-8 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -
- resuming normal operations[/quote]
a kozystalem z tego:
http://pomoc.ovh.pl/ModJk
[img]http://intershock.pl/images/icons/freebsd.jpg[/img] [img]http://www.the-eleven.com/site_media/static/img/postgresql_powered.png[/img] [img]http://www.wwgmc.com/images/badge_php.gif[/img]
LRU #480459
Offline
dobrze ze ktos poruszyl ten temat bo juz dawno chcialem sie przyjrzec tomcatowi ale jakos nie mialem okazji :) ale do rzeczy:
jezoo nie do konca wiem o co ci chodzi z tym poprawnym wykonwywaniem serwletow, ale postepujac zgodnie z instalacja ktora podales
(chodz potem znalazlem tez bardzo dobry opis pod [url]http://www.linuxjava.net/howto/webapp/[/url])
po ukonczenu instalacji i uzyskaniu w logach dokladnie takiego komunikatu ja ten twoj, serwlety smigaja az milo.
jedyne czego narazie nie udalo mi sie zmienic to faktu ze [b]serwlety musza byc w katalogu /usr/share/tomcat/webapps/...[/b]
podkatalogami w webapps mozesz manipulowac to znaczy jezeli dodasz sobie
tam katalog i pliczek np webapps/[b]moje_serwlety/jakis_serwlet.jsp[/b] to edytujac konfig apacha
i dodajac
JkMount /moje_serwlety/*.jsp ajp13
mozesz go wykonac przez wprowadzanie w url http://jakas_domena/moje_serwlety/jakis_serwlet.jsp
Offline
ten tomkat pomalutku mnie denerwuje, dostaje cos takiego:
[Mon Mar 05 15:56:20 2007] [notice] SIGHUP received. Attempting to restart
[Mon Mar 05 15:56:20 2007] [notice] mod_python: Creating 8 session mutexes based on 20 max processes and 0 max threads.
[Mon Mar 05 15:56:20 2007] [notice] mod_python: using mutex_directory /tmp
[Mon Mar 05 15:56:20 2007] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Mon Mar 05 15:56:20 2007] [notice] Apache/2.2.3 (Debian) mod_jk/1.2.18 mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8 mod_ssl/2.2.3 OpenSSL/0.9.8c configured — resuming normal operations[/quote]
a pozniej jak chce wejsc do katalogu z jsp dostaje cos takiego:[Mon Mar 05 15:56:54 2007] [error] [client 192.168.50.123] File does not exist: /home/var/www/moje-jsp[/quote]
a moj konfig indjanca wyglada tak:Kod:
<IfModule mod_jk.c> JkWorkersFile /usr/share/tomcat5.5/conf/workers.properties JkLogFile /var/log/mod_jk.log JkLogLevel info JkMount /servlets-examples/* ajp13 JkMount /moje-jsp/* ajp13 </IfModule>a tomcata, tak:
Kod:
workers.tomcat_home=/usr/share/tomcat5.5 workers.java_home=/usr/local/java ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13@Libo masz jakies pomysly??
bo mnie juz sie koncza :)
[img]http://intershock.pl/images/icons/freebsd.jpg[/img] [img]http://www.the-eleven.com/site_media/static/img/postgresql_powered.png[/img] [img]http://www.wwgmc.com/images/badge_php.gif[/img]
LRU #480459Offline
problem jest w tym ze katalog moje-jsp nie powinien znajdowac sie w /home/var/www/ tylko w /usr/share/tomcat/webapps/ ( na pewno idzie to jakos ustawic ale jeszcze nie znalazlem gdzie), zawsze mozesz sobie zrobic link z /home/var/www/moje-jsp do /usr/share/tomcat/webapps/moje-jsp/
Offline
o widzisz nie napisalem gdzie dalem to moje-jsp :) owszem jest w /usr/share/tomcat5.5/webapps/moje-jsp
i dalej nie dziala :( tzn pod takim wzgledem, ze nic nie wyswietla w doslownym tego slowa znaczeniu: http://jerzyk.info/moje-jsp/test.jsp :(
a tomcat niby dorze dziala :( :
Mar 5, 2007 4:04:11 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8180
Mar 5, 2007 4:04:12 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Mar 5, 2007 4:04:12 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8180
Mar 5, 2007 4:04:12 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
2007-03-05 16:04:19 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jre1.5.
0_11/lib/amd64/server:/usr/local/jre1.5.0_11/lib/amd64:/usr/local/jre1.5.0_11/../lib/amd64
2007-03-05 16:04:19 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
2007-03-05 16:04:19 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3242 ms
2007-03-05 16:04:20 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
2007-03-05 16:04:20 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5
2007-03-05 16:04:20 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
2007-03-05 16:04:20 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
2007-03-05 16:04:20 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
2007-03-05 16:04:20 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/74 config=null
2007-03-05 16:04:20 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
2007-03-05 16:04:21 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1418 ms
2007-03-05 23:09:46 org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8180
2007-03-05 23:09:47 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
2007-03-05 23:09:48 org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8180
2007-03-05 23:09:48 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
2007-03-05 23:09:54 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jre1.5.
0_11/lib/amd64/server:/usr/local/jre1.5.0_11/lib/amd64:/usr/local/jre1.5.0_11/../lib/amd64
2007-03-05 23:09:54 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
2007-03-05 23:09:54 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3081 ms
2007-03-05 23:09:55 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
2007-03-05 23:09:55 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5
2007-03-05 23:09:55 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
2007-03-05 23:09:57 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8180
2007-03-05 23:09:58 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
2007-03-05 23:09:58 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/253 config=null
2007-03-05 23:09:58 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
2007-03-05 23:09:58 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3937 ms[/quote]
[img]http://intershock.pl/images/icons/freebsd.jpg[/img] [img]http://www.the-eleven.com/site_media/static/img/postgresql_powered.png[/img] [img]http://www.wwgmc.com/images/badge_php.gif[/img]
LRU #480459
Offline
czy masz moze w /usr/share/tomcat/webapps katalog jsp-examples ??
jezeli tak to dodaj do konfiguracji linijke
JkMount /jsp-examples/* ajp13
zrestartuj apacha i wpisz [url]http://jerzyk.info/jsp-examples/[/url] musi ci sie wyswietlic lista przykladowych serwletow, wtedy bedziesz wiedzial czy tomcat dziala poprawnie.
Offline
co najsmieszniejsze to mam ta linijke:
<IfModule mod_jk.c>
JkWorkersFile /usr/share/tomcat5.5/conf/workers.properties
JkLogFile /var/log/mod_jk.log
JkLogLevel info
JkMount /servlets-examples/* ajp13
[b]JkMount /jsp-examples/* ajp13[/b]
JkMount /moje-jsp/* ajp13
</IfModule>[/quote]
i nadal cisza na morzu, aha katalogu webapps nie bylo i go stworzylem, tak wiec przykladow raczej nie bedzie, ale jeszcze zobacze czy nie ma paczek z przykladami
[img]http://intershock.pl/images/icons/freebsd.jpg[/img] [img]http://www.the-eleven.com/site_media/static/img/postgresql_powered.png[/img] [img]http://www.wwgmc.com/images/badge_php.gif[/img]
LRU #480459
Offline
ok tomcat dziala, ale jak zrobic zeby zmienna JAVA_HOME ladowala sie automatycznie? bo podczas uruchomienia serwera gdy przychodzi czas na tomcata to mi wywala blad ze nie moze znalezc JAVA_HOME :(
ma ktos jakies propozycje??
Offline
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00110 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.149.234.50' WHERE u.id=1 |
0.00318 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.149.234.50', 1732822223) |
0.00065 | SELECT * FROM punbb_online WHERE logged<1732821923 |
0.00065 | SELECT topic_id FROM punbb_posts WHERE id=53876 |
0.00186 | SELECT id FROM punbb_posts WHERE topic_id=7053 ORDER BY posted |
0.00060 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=7053 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00086 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=7053 ORDER BY p.id LIMIT 0,25 |
0.00114 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=7053 |
Total query time: 0.01024 s |