where to deploy my .war and how ? help needed please!
good morning list, (sorry for the long mail) im running Tomcat behind an apache Server using mod_jk2 everything seems to be working fine but im really confused about one thing where to deploy my .war files to??? OS Suse Linux 9.1 java version 1.4.2_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) tomcat is at - /usr/share/tomcat webapps is at /srv/www/tomcat/base/webapps my server.xml : == Server port=8005 shutdown=SHUTDOWN debug=9 Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=9 connectionTimeout=2 useURIValidationHack=true protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- While starting off, leave debugging high for help in diagn. -- !-- When done, turn it back to 0 -- Engine name=DoApache defaultHost=do-web.de debug=9 Logger className=org.apache.catalina.logger.FileLogger prefix=doweb_fileloger. suffix=.log timestamp=true/ !-- Access log processes all requests for this virtual host. -- !-- Leave pattern=combined for the most comprehensive logging -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=doweb_accesslogV. suffix=.log pattern=combined resolveHosts=false/ Host name=DoDemo debug=0 appBase=/srv/www/demo unpackWARs=true autoDeploy=true Context path= docBase=/srv/www/demo debug=0/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=demo_accesslogV. suffix=.log pattern=combined resolveHosts=false/ /Host Host name=doweb.de debug=9 appBase=/srv/www/htdocs unpackWARs=true autoDeploy=true Context path= docBase=/srv/www/htdocs debug=9/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=dom_access. suffix=.log pattern=combined resolveHosts=false/ /Host /Engine /Service /Server startup log from catalina.out : === Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1288 ms Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardService start INFO: Starting service Tomcat-Apache Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.ContextConfig applicationConfig INFO: Missing application web.xml, using defaults only StandardEngine[DOMApache].StandardHost[domdemo].StandardContext[] Sep 7, 2005 8:05:30 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Sep 7, 2005 8:05:30 AM org.apache.catalina.startup.HostConfig deployWARs WARNING: Exception while expanding web application archive BMIWizardDe.war Sep 7, 2005 8:05:30 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Sep 7, 2005 8:05:30 AM org.apache.catalina.startup.ContextConfig applicationConfig
RE: where to deploy my .war and how ? help needed please!
put it under your webapps and put a context elements with all its sub elements to configure the app in the server.xml file in the tomcat conf directory. -Original Message- From: Yassine ELassad [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 07, 2005 10:01 AM To: tomcat-user@jakarta.apache.org Subject: where to deploy my .war and how ? help needed please! good morning list, (sorry for the long mail) im running Tomcat behind an apache Server using mod_jk2 everything seems to be working fine but im really confused about one thing where to deploy my .war files to??? OS Suse Linux 9.1 java version 1.4.2_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) tomcat is at - /usr/share/tomcat webapps is at /srv/www/tomcat/base/webapps my server.xml : == Server port=8005 shutdown=SHUTDOWN debug=9 Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=9 connectionTimeout=2 useURIValidationHack=true protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- While starting off, leave debugging high for help in diagn. -- !-- When done, turn it back to 0 -- Engine name=DoApache defaultHost=do-web.de debug=9 Logger className=org.apache.catalina.logger.FileLogger prefix=doweb_fileloger. suffix=.log timestamp=true/ !-- Access log processes all requests for this virtual host. -- !-- Leave pattern=combined for the most comprehensive logging -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=doweb_accesslogV. suffix=.log pattern=combined resolveHosts=false/ Host name=DoDemo debug=0 appBase=/srv/www/demo unpackWARs=true autoDeploy=true Context path= docBase=/srv/www/demo debug=0/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=demo_accesslogV. suffix=.log pattern=combined resolveHosts=false/ /Host Host name=doweb.de debug=9 appBase=/srv/www/htdocs unpackWARs=true autoDeploy=true Context path= docBase=/srv/www/htdocs debug=9/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=dom_access. suffix=.log pattern=combined resolveHosts=false/ /Host /Engine /Service /Server startup log from catalina.out : === Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1288 ms Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardService start INFO: Starting service Tomcat-Apache Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.ContextConfig applicationConfig INFO: Missing application web.xml, using defaults only StandardEngine[DOMApache].StandardHost[domdemo].StandardContext[] Sep 7, 2005 8:05:30 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create
RE: where to deploy my .war and how ? help needed please!
I'm no expert, but isnt' the docbase of a context evaluated relative to the HOST's appbase? so I guess your docBase path should not contain /srv/www/htdocs. Am Mittwoch, den 07.09.2005, 10:04 +0300 schrieb Guy Katz: Context path= docBase=/srv/www/htdocs debug=9/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where to deploy my .war and how ? help needed please!
Hey Yassine, You should deploy your codes under webapps. I am using tomcats manager to deploy my war files i recommend it to you. http://localhost:8080/manager/html u can give your war file to it and deploy with out any problems.. Yassine ELassad wrote: good morning list, (sorry for the long mail) im running Tomcat behind an apache Server using mod_jk2 everything seems to be working fine but im really confused about one thing where to deploy my .war files to??? OS Suse Linux 9.1 java version 1.4.2_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) tomcat is at - /usr/share/tomcat webapps is at /srv/www/tomcat/base/webapps my server.xml : == Server port=8005 shutdown=SHUTDOWN debug=9 Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=9 connectionTimeout=2 useURIValidationHack=true protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- While starting off, leave debugging high for help in diagn. -- !-- When done, turn it back to 0 -- Engine name=DoApache defaultHost=do-web.de debug=9 Logger className=org.apache.catalina.logger.FileLogger prefix=doweb_fileloger. suffix=.log timestamp=true/ !-- Access log processes all requests for this virtual host. -- !-- Leave pattern=combined for the most comprehensive logging -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=doweb_accesslogV. suffix=.log pattern=combined resolveHosts=false/ Host name=DoDemo debug=0 appBase=/srv/www/demo unpackWARs=true autoDeploy=true Context path= docBase=/srv/www/demo debug=0/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=demo_accesslogV. suffix=.log pattern=combined resolveHosts=false/ /Host Host name=doweb.de debug=9 appBase=/srv/www/htdocs unpackWARs=true autoDeploy=true Context path= docBase=/srv/www/htdocs debug=9/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=dom_access. suffix=.log pattern=combined resolveHosts=false/ /Host /Engine /Service /Server startup log from catalina.out : === Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1288 ms Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardService start INFO: Starting service Tomcat-Apache Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.ContextConfig applicationConfig INFO: Missing application web.xml, using defaults only StandardEngine[DOMApache].StandardHost[domdemo].StandardContext[] Sep 7, 2005 8:05:30 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Sep 7, 2005 8:05:30 AM org.apache.catalina.startup.HostConfig deployWARs WARNING: Exception while expanding
Re: RE: where to deploy my .war and how ? help needed please!
Dear Guy, well i have added a context element into my host and its now looking like this : = Host name=do-web.de debug=9 appBase=/srv/www/tomcat/base unpackWARs=true autoDeploy=true Context path= docBase=webapps debug=9/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=dom_access. suffix=.log pattern=combined resolveHosts=false/ Context path=/MartialArts docBase=/MartialArts debug=8 privileged=true/ /Host == i also considered sonja's suggestion that the docbase of a context is evaluated relative to the HOST's appbase and have changed it now i have quite strange problem after specifying webapps as appbase for my Vhost as you can see in the cofig above and rying to deploy my test servlet into it i have a strange log message : == 2005-09-07 11:47:07 StandardContext[]default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 2005-09-07 11:47:07 NamingContextListener[/DOMApache/do-web.de]: Resource parameters for UserTransaction = null 2005-09-07 11:47:07 StandardContext[]default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 2005-09-07 11:47:07 EngineConfig: EngineConfig: Processing START === in addition to this i observed that my .war file is not decompressed and since i did specify Context path=/MartialArts docBase=/MartialArts debug=8 privileged=true/ i observed that under /var/cach/tomcat/DOMApache/do-web.de/MartialArts has been Created but its contains nothing at all i m really confused about this :s i hope you guys can give me a clue what's going wrong here thanks in advance Greetings Yassine ELassad Cologne directBOX Reply --- From: Guy Katz ([EMAIL PROTECTED]) To: Tomcat Users List (tomcat-user@jakarta.apache.org) Date: 07.09.2005 09:03:07 put it under your webapps and put a context elements with all its sub elements to configure the app in the server.xml file in the tomcat conf directory. -Original Message- From: Yassine ELassad [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 07, 2005 10:01 AM To: tomcat-user@jakarta.apache.org Subject: where to deploy my .war and how ? help needed please! good morning list, (sorry for the long mail) im running Tomcat behind an apache Server using mod_jk2 everything seems to be working fine but im really confused about one thing where to deploy my .war files to??? OS Suse Linux 9.1 java version 1.4.2_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) tomcat is at - /usr/share/tomcat webapps is at /srv/www/tomcat/base/webapps my server.xml : == Server port=8005 shutdown=SHUTDOWN debug=9 Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=9 connectionTimeout=2 useURIValidationHack=true protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- While starting off, leave debugging high for help in diagn. -- !-- When done, turn it back to 0 -- Engine name=DoApache defaultHost=do-web.de debug=9 Logger className=org.apache.catalina.logger.FileLogger prefix=doweb_fileloger. suffix=.log timestamp=true/ !-- Access log processes all requests for this virtual host. -- !-- Leave pattern=combined for the most comprehensive logging -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs
Re: Re: where to deploy my .war and how ? help needed please!
Dear Eren, unfortunatly iam not using tomcat's manager admin modules since iam using tomcat only kind of plugin for apache so i can#t use there resources provided by tomcat Thanks directBOX Reply --- From: Mert Eren ÜSTÜNKAYA ([EMAIL PROTECTED]) To: TomcatUsersList (tomcat-user@jakarta.apache.org) Date: 07.09.2005 11:56:35 Hey Yassine, You should deploy your codes under webapps. I am using tomcats manager to deploy my war files i recommend it to you. http://localhost:8080/manager/html u can give your war file to it and deploy with out any problems.. Yassine ELassad wrote: good morning list, (sorry for the long mail) im running Tomcat behind an apache Server using mod_jk2 everything seems to be working fine but im really confused about one thing where to deploy my .war files to??? OS Suse Linux 9.1 java version 1.4.2_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) tomcat is at - /usr/share/tomcat webapps is at /srv/www/tomcat/base/webapps my server.xml : == Server port=8005 shutdown=SHUTDOWN debug=9 Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=9 connectionTimeout=2 useURIValidationHack=true protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ !-- While starting off, leave debugging high for help in diagn. -- !-- When done, turn it back to 0 -- Engine name=DoApache defaultHost=do-web.de debug=9 Logger className=org.apache.catalina.logger.FileLogger prefix=doweb_fileloger. suffix=.log timestamp=true/ !-- Access log processes all requests for this virtual host. -- !-- Leave pattern=combined for the most comprehensive logging -- Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=doweb_accesslogV. suffix=.log pattern=combined resolveHosts=false/ Host name=DoDemo debug=0 appBase=/srv/www/demo unpackWARs=true autoDeploy=true Context path= docBase=/srv/www/demo debug=0/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=demo_accesslogV. suffix=.log pattern=combined resolveHosts=false/ /Host Host name=doweb.de debug=9 appBase=/srv/www/htdocs unpackWARs=true autoDeploy=true Context path= docBase=/srv/www/htdocs debug=9/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=dom_access. suffix=.log pattern=combined resolveHosts=false/ /Host /Engine /Service /Server startup log from catalina.out : === Sep 7, 2005 8:05:29 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1288 ms Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardService start INFO: Starting service Tomcat-Apache Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.19 Sep 7, 2005 8:05:29 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Sep 7, 2005 8:05:29 AM
Re: RE: where to deploy my .war and how ? help needed please!
No, docBase=webapps is not good ;-) I have everything under the localhost default Host with appBase=webapps, so that the Context element can indeed be Context path= debug=5 reloadable=true docBase=/var/www/japplicoon/myApp So, if you already specify that /srv/www/tomcat/base as appBase, the docBase should be ... the empty String? Don't know wheter this is valid. Perhaps you just cut off the last directory form the appBase Host name=do-web.de debug=9 appBase=/srv/www/tomcat unpackWARs=true autoDeploy=true Context path= docBase=base debug=9/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=dom_access. suffix=.log pattern=combined resolveHosts=false/ Context path=/MartialArts docBase=MartialArts debug=8 privileged=true/ /Host docBase is: - A path totally different from appBase if it is an absolute path - A path under the appBase if it is a relative one. I hope that helps a bit. Good luck! sonja Am Mittwoch, den 07.09.2005, 12:06 +0200 schrieb Yassine ELassad: Dear Guy, well i have added a context element into my host and its now looking like this : = Host name=do-web.de debug=9 appBase=/srv/www/tomcat/base unpackWARs=true autoDeploy=true Context path= docBase=webapps debug=9/ Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=dom_access. suffix=.log pattern=combined resolveHosts=false/ Context path=/MartialArts docBase=/MartialArts debug=8 privileged=true/ /Host == i also considered sonja's suggestion that the docbase of a context is evaluated relative to the HOST's appbase and have changed it now i have quite strange problem after specifying webapps as appbase for my Vhost as you can see in the cofig above and rying to deploy my test servlet into it i have a strange log message : == 2005-09-07 11:47:07 StandardContext[]default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 2005-09-07 11:47:07 NamingContextListener[/DOMApache/do-web.de]: Resource parameters for UserTransaction = null 2005-09-07 11:47:07 StandardContext[]default: DefaultServlet.init: input buffer size=2048, output buffer size=2048 2005-09-07 11:47:07 EngineConfig: EngineConfig: Processing START === in addition to this i observed that my .war file is not decompressed and since i did specify Context path=/MartialArts docBase=/MartialArts debug=8 privileged=true/ i observed that under /var/cach/tomcat/DOMApache/do-web.de/MartialArts has been Created but its contains nothing at all i m really confused about this :s i hope you guys can give me a clue what's going wrong here thanks in advance Greetings Yassine ELassad Cologne directBOX Reply --- From: Guy Katz ([EMAIL PROTECTED]) To: Tomcat Users List (tomcat-user@jakarta.apache.org) Date: 07.09.2005 09:03:07 put it under your webapps and put a context elements with all its sub elements to configure the app in the server.xml file in the tomcat conf directory. -Original Message- From: Yassine ELassad [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 07, 2005 10:01 AM To: tomcat-user@jakarta.apache.org Subject: where to deploy my .war and how ? help needed please! good morning list, (sorry for the long mail) im running Tomcat behind an apache Server using mod_jk2 everything seems to be working fine but im really confused about one thing where to deploy my .war files to??? OS Suse Linux 9.1 java version 1.4.2_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) tomcat is at - /usr/share/tomcat webapps is at /srv/www/tomcat/base/webapps my server.xml : == Server port=8005 shutdown=SHUTDOWN debug=9 Service name=Tomcat-Apache !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat5.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443