|
|
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
был debian7 и tomcat7 были сделаны настройки и вроде работало появился debian8 и tomcat8 и прежние настройки перестали работать вот https://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Context_Parameters родной context.xml<?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- The contents of this file will be loaded for each web application --> <Context> <!-- Default set of monitored resources. If one of these changes, the --> <!-- web application will be reloaded. --> <WatchedResource>WEB-INF/web.xml</WatchedResource> <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource> <!-- Uncomment this to disable session persistence across Tomcat restarts --> <!-- <Manager pathname="" /> --> <!-- Uncomment this to enable Comet connection tacking (provides events on session expiration as well as webapp lifecycle) --> <!-- <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" /> --> </Context> родной server.xml<?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- Note: A "Server" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/server.html --> <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> <!-- Security listener. Documentation at /docs/config/listeners.html <Listener className="org.apache.catalina.security.SecurityListener" /> --> <!--APR library loader. Documentation at /docs/apr.html --> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <!-- Prevent memory leaks due to use of particular java/javax APIs--> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html --> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <!-- A "Service" is a collection of one or more "Connectors" that share a single "Container" Note: A "Service" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/service.html --> <Service name="Catalina"> <!--The connectors can use a shared executor, you can define one or more named thread pools--> <!-- <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="150" minSpareThreads="4"/> --> <!-- A "Connector" represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html (blocking & non-blocking) Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL/TLS HTTP/1.1 Connector on port 8080 --> <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <!-- A "Connector" using the shared thread pool--> <!-- <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> --> <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 This connector uses the NIO implementation that requires the JSSE style configuration. When using the APR/native implementation, the OpenSSL style configuration is required as described in the APR/native documentation --> <!-- <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> <!-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html --> <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> --> <Engine name="Catalina" defaultHost="localhost"> <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) --> <!-- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> --> <!-- Use the LockOutRealm to prevent attempts to guess user passwords via a brute-force attack --> <Realm className="org.apache.catalina.realm.LockOutRealm"> <!-- This Realm uses the UserDatabase configured in the global JNDI resources under the key "UserDatabase". Any edits that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host> </Engine> </Service> </Server> что и куда нужно в них(?) прописать , чтоб при копировании вар файла в папку wedapps происходил деплой/запуск приложения автоматом? я в английском не настолько силён, чтоб верно разобраться в логике написанной в мануале, может кто сделает пример, чтоб разобраться с его помощью? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 10:07 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
вадя, перегрузи томкат и лог томката сюда ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 10:20 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
вадяпоявился debian8 и tomcat8 и прежние настройки перестали работать Какие именно? вадячто и куда нужно в них(?) прописать , чтоб при копировании вар файла в папку wedapps происходил деплой/запуск приложения автоматом? Это и так поведение по-умолчанию: Код: xml 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 10:27 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
Все уже прописано и должно работать. Код: xml 1. 2. Лучше покажи, что в логах. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 10:28 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
Видеокарту бы помощнее... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 10:33 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
логи томкэт остановлен , папка приложения удалена, вар а месте, логи удалены запуск томкэт вар заменяется копированием.... логи в файле. при открытии страницы в браузере Код: plaintext 1. 2. 3. и на команду старт - всё нормально запускается.. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 11:38 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
Base /usr/mo/pic/ Вот это что такое? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 15:57 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
fixxerBase /usr/mo/pic/ Вот это что такое? это место хранения картинок вне webapps. но отображаются картинки на сайте по ссылкам как на webapps ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 16:05 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
вадя, если вопрос про деплой, то он у тебя работает (красным) Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 16:10 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
к сожалению не всегда.... вот так обычно Код: plaintext 1. 2. 3. 4. 5. 6. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 16:20 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
Код: plaintext 1. 2. 3. 4. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 16:24 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
и вот что происходит при рестарте томкэт root@mo:/usr/local/tomcat/logs# /etc/init.d/tomcat restart Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/lib/jvm/java-racle Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar ноя 11, 2015 6:25:32 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Could not contact localhost:8005. Tomcat may not be running. ноя 11, 2015 6:25:32 PM org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop: java.net.ConnectException: В соединении отказано at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:211) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:450) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:400) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:487) Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/lib/jvm/java-racle Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar Tomcat started. root@mo:/usr/local/tomcat/logs# ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 16:27 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
11-Nov-2015 18:15:59.704 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina].StandardHost[localhost]]] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/mo] 11-Nov-2015 18:15:59.715 INFO [Thread-8] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"] 11-Nov-2015 18:15:59.717 INFO [Thread-8] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina Вот в этот момент сними треддамп, такое ощущение, что твое приложение пытается передеплоиться и подвисает. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 17:37 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
fixxer, Т.е. дело было не в бобине... а программе. Насколько я понял. Мож он при переустановке дебиан субд снес). ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 18:03 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
вадябыл debian7 и tomcat7 были сделаны настройки и вроде работало появился debian8 и tomcat8 и прежние настройки перестали работатьНе нужно копировать context.xml/server.xml с одной версии котяры на другую - они различаются. Иногда - фатально. Нужно брать дистрибутив и править то, что есть на то, что нужно. Если нужно, конечно. В вашей ситуации, похоже, не нужно. P.S. У тега src есть язык xml: Код: xml 1. 2. 3. 4. 5. 6. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 18:44 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
Basil A. Sidorov, это я знаю, только вот когда, не понятно что и почему не работает пытаешься что—то сделать... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 20:47 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
Petro123fixxer, Т.е. дело было не в бобине... а программе. Насколько я понял. Мож он при переустановке дебиан субд снес). дебиан я с нуля ставил и базу с нуля, потом уже всё остальное… ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.11.2015, 20:52 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
fixxer11-Nov-2015 18:15:59.704 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina].StandardHost[localhost]]] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/mo] 11-Nov-2015 18:15:59.715 INFO [Thread-8] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"] 11-Nov-2015 18:15:59.717 INFO [Thread-8] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina Вот в этот момент сними треддамп, такое ощущение, что твое приложение пытается передеплоиться и подвисает. в приложении ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.11.2015, 10:06 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
вадя, я бы за 10 мин сделал Hello World и проверил томкат с ним одним. Потом уже разбирался с тем кто там передеплоивается и по какой причине. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.11.2015, 10:11 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
вадя, ты зачем треддамп у нетбинза, а не у томката снял? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.11.2015, 10:17 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
Petro123вадя, я бы за 10 мин сделал Hello World и проверил томкат с ним одним. Потом уже разбирался с тем кто там передеплоивается и по какой причине. +1 деление отрезка по полам - лучший способ при поиске ошибки! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.11.2015, 10:33 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
fixxerвадя, ты зачем треддамп у нетбинза, а не у томката снял? я снял дамп на сервере debian - там netbians и не стоял. в момент когда скопировал вак на сервер. а томкэт судя по логам остановлен, при попытке деплоя. только почему он останавливается , если говорят , что все настройки для деплоя без перезапуска кошки? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.11.2015, 12:08 |
|
||
|
Нужна помощь с tomcat8
|
|||
|---|---|---|---|
|
#18+
вадя, тогда ты снял треддамп jvisualvm :) "Default RequestProcessor" #44 daemon prio=1 os_prio=0 tid=0x00007fb238005000 nid=0x1d03 runnable [0x00007fb234bbb000] java.lang.Thread.State: RUNNABLE at sun.tools.attach.LinuxVirtualMachine.read(Native Method) at sun.tools.attach.LinuxVirtualMachine$SocketInputStream.read(LinuxVirtualMachine.java:265) - locked <0x00000000f03cfe38> (a sun.tools.attach.LinuxVirtualMachine$SocketInputStream) at sun.tools.attach.HotSpotVirtualMachine.readInt(HotSpotVirtualMachine.java:280) at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:199) at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:261) at sun.tools.attach.HotSpotVirtualMachine.remoteDataDump(HotSpotVirtualMachine.java:218) at com.sun.tools.visualvm.attach.AttachModelImpl.takeThreadDump(AttachModelImpl.java:59) - locked <0x00000000f5ed7108> (a com.sun.tools.visualvm.attach.AttachModelImpl) at com.sun.tools.visualvm.jvm.JVMImpl.takeThreadDump(JVMImpl.java:394) at com.sun.tools.visualvm.threaddump.impl.ThreadDumpProvider$1.run(ThreadDumpProvider.java:62) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1384) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1994) "AWT-EventQueue-0" #18 prio=6 os_prio=0 tid=0x00007fb260126000 nid=0x1c6e runnable [0x00007fb280651000] java.lang.Thread.State: RUNNABLE at com.sun.java.swing.plaf.gtk.GTKEngine.nativeFinishPainting(Native Method) at com.sun.java.swing.plaf.gtk.GTKEngine.finishPainting(GTKEngine.java:593) at com.sun.java.swing.plaf.gtk.GTKEngine.finishPainting(GTKEngine.java:580) at com.sun.java.swing.plaf.gtk.GTKPainter.paintButtonBackgroundImpl(GTKPainter.java:375) ... at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:126) ... вынь уже голову из задницы ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.11.2015, 12:18 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=39101164&tid=2124667]: |
0ms |
get settings: |
6ms |
get forum list: |
10ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
139ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
46ms |
get tp. blocked users: |
2ms |
| others: | 219ms |
| total: | 435ms |

| 0 / 0 |
