Re: WAR file deployment question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 9/19/14 4:50 PM, James H. H. Lampert wrote: > Thanks, Messrs Janner and Schultz. I feared that was the case, but > it never hurts to ask. > > The thing is, if I have it sitting someplace off-site, and Manager > could snag it from there directly, then we'd only have to pass it > through the "insulin needle" upload pipe of our cable internet when > we were actually updating it. Instead of every time we deploy it. How do you deploy? Using the manager app? What about pushing it to a location without the bandwidth limitation, and then deploying it from there instead of within your office? (Off-topic: consider getting business-class Cable Internet. Speeds tend to be a lot better. In my area, FiOS is symmetric and I'm getting 50mbps bi-directional pretty reliably.) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUHJjDAAoJEBzwKT+lPKRYUjcP+wYknhBHnYfXzvVquKxvBlws HDUaK7f3kBEGYNZMg3yF8B4zk5deofQuZQkUe7duygOKgo1ky9+mrX2l8ez3JX4k D7B3NZUYGC+ruV5/R4OlKNR4OXTN2r1uE6MacxpYQi7zgxRTrKGcm8ba41KBuhan IfQYnjqK+q9U0pPSh72X5NvUAB/1QeVVSH2W+8CW2XX8469jHFjrYBv6Xq2eKPG0 dBgyrq+dV34E4YzGn3HhVOUKg4vqeKjQiLVWxkOwWQgVY68i7TzVym5XcFEJ/HI0 L45vR4SEM1iu9NemlSdJs6zz2yfc7dDQR+jDtpSjuNvAeXByWuwuik+OyPMj9+2Y /ytjHea7iUP5czkWVjID41AMBaY8HNeEKmftGMOzcn0FhKar57fa+Bk9seUFfgD0 M5uhrrCNSCxNqAaFlPz3mixheUeocGzHVO8V7bzRih+l1RHT0BRsgTp3xTgkMIfy 4u9QKr9ItNZhBy78nlhphu7EV1+MbbseZXVK4vQyGdhRSGP/vcVf6kCZDzOlRu4m oJkeFCRUbaWw6vZ1tgtSIInjqDeZWooWrxtGyYs+tPOEON3mGOgIrCGdKl91cpAE o9WzmYZb5MReL+IzgTzyL4QcnnTroQMJKR16sYqolVCpMniXp/dJrQFZpnH51yWo id3P6n8YHRaFoR8CbumH =js9H -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: WAR file deployment question
Thanks, Messrs Janner and Schultz. I feared that was the case, but it never hurts to ask. The thing is, if I have it sitting someplace off-site, and Manager could snag it from there directly, then we'd only have to pass it through the "insulin needle" upload pipe of our cable internet when we were actually updating it. Instead of every time we deploy it. -- JHHL (And Mr. Warnier, I do hope your suggestion was a joke!) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: WAR file deployment question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 9/15/14 8:11 PM, James H. H. Lampert wrote: > We have a rather large WAR file. 89,925,956 bytes. And we have > cable internet. With its usual extremely asymmetrical bandwidth: a > download pipe the size of an air conditioning duct, and an upload > pipe the size of an insulin needle. > > Squirting this huge WAR file through such a narrow pipe takes over > half an hour. But our web and FTP servers are on a hosting > service's server, so they're not passing through the narrow pipe. > > Can I, from Manager, deploy a WAR file that's sitting on a web or > FTP site, instead of on my local system? You can't do that, but you can push the file via FTP, scp, etc. and then copy it to its final location. I wouldn't put your WAR onto your web server for a few reasons. Can you push the file to your application server into a temporary directory and then just do a "cp" to put it in the right place? It will take almost no time to "cp" the file and Tomcat should auto-reload. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUHI5hAAoJEBzwKT+lPKRY85oQALjYcbrcUKuoGaz9EJzrrers Uez2tRCNe/4UwDtV8O/Dtmiu4yeb0Q/2JtsdjzorRXnddDxrHgRmMXfP07kbawd8 3G0KxIu9NnPgVabusSDzTfq2Ss+7Kx8a6I+YPiLuwYnSGb/eK28J1mFpxzIl0x6i HbrUUBQZ9wUKG4KC6zqlpQgdHup8d6biWUhVxQBnBZBDfxdnIA7orthZgc8oqIUw npxt1uNU7PAG1WnUzZjRPb2qlgE2s5nLhmVd4dWfE0zFMj4DC+kLTj/0RRIurHXW QSGK7/bzCrNpEKVWpHneMPA6ls37FFG/BRO7XbF2E2p/MgzEfnPaIBvcqQWLbLfd LoSMJ9n8oWGBt6oZCMGLE9o9C2JD8Y6rRfoDwnCEw53Dowi1AkKTVHJ8uFV94Sz2 a2N6NA5u54QAHeyy0d2prle3uZIkJdQ14ibvI0eeKG9YeYfhnIjeGYf0a3tIb6wC 7Tr2O/C2EPNEqYlqOnqW3AcBms2qA49Remr6b5qZochCc8vYbIxcAPZwUEundXvk MP+jpy8thT0pu13CY7mWri7the8RE7iXBBR+q8dAngWFxPbR7mYcdG9slvOfMJun UcMAVu4mn54I1rNQMJGT0Y1ruvgBsIZbHj3QQaH+lT6TCRGmLD7cNa8HHeLOT+9g t+HAYQ6Cq13DqtJHBVxh =IirE -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: WAR file deployment question
Hi Chain Hou, How are you? Greetings from Perth, Australia. I am writing to you because I noticed your surname of hou. I have a similar surname and would like to know more about the 'hou's. Could you tell me more please? For example, where are they from originally, is there a hou association or society? William On 17 September 2014 11:18, 侯树成 wrote: > try "manager", located in the webapps/manager. You need to edit your > tomcat-users.xml, After that you can deploy your app via manager. > > 2014-09-16 8:11 GMT+08:00 James H. H. Lampert : > > > We have a rather large WAR file. 89,925,956 bytes. And we have cable > > internet. With its usual extremely asymmetrical bandwidth: a download > pipe > > the size of an air conditioning duct, and an upload pipe the size of an > > insulin needle. > > > > Squirting this huge WAR file through such a narrow pipe takes over half > an > > hour. But our web and FTP servers are on a hosting service's server, so > > they're not passing through the narrow pipe. > > > > Can I, from Manager, deploy a WAR file that's sitting on a web or FTP > > site, instead of on my local system? > > > > -- > > James H. H. Lampert > > Touchtone Corporation > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > >
Re: WAR file deployment question
Jeffrey Janner wrote: -Original Message- From: James H. H. Lampert [mailto:jam...@touchtonecorp.com] Sent: Monday, September 15, 2014 7:11 PM To: Tomcat Users List Subject: WAR file deployment question We have a rather large WAR file. 89,925,956 bytes. And we have cable internet. With its usual extremely asymmetrical bandwidth: a download pipe the size of an air conditioning duct, and an upload pipe the size of an insulin needle. Squirting this huge WAR file through such a narrow pipe takes over half an hour. But our web and FTP servers are on a hosting service's server, so they're not passing through the narrow pipe. Can I, from Manager, deploy a WAR file that's sitting on a web or FTP site, instead of on my local system? -- James H. H. Lampert James, The question becomes "How does the war file get to the Web/FTP site?" My supposition is from your local system through the same narrow pipe, so there is no real solution, you've just moved the delay to another step. If that's not the case, then there are myriad ways. The manager app only deploys war files in one of two ways: already on the server, or from the system running the browser. So it sounds like some form of RDP is going to be necessary. Jeff Alternatively : - create a little program which will automatically transfer the WAR-file to the intended destination via SFTP - wrap this program, together with the original WAR file, in a "secret.war.exe" file, and leave it somewhere on your PC (preferably in a directory named "confidential") - then just wait Chances are that you PC already has a couple of virii or trojans running, and that file will be uploaded somewhere in no time at all. You won't even notice. And as soon as someone at the other end opens it, it will send the WAR file to the intended destination, using their bandwidth, which is guaranteed to be much wider than yours. Problem solved. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: WAR file deployment question
> -Original Message- > From: James H. H. Lampert [mailto:jam...@touchtonecorp.com] > Sent: Monday, September 15, 2014 7:11 PM > To: Tomcat Users List > Subject: WAR file deployment question > > We have a rather large WAR file. 89,925,956 bytes. And we have cable > internet. With its usual extremely asymmetrical bandwidth: a download > pipe the size of an air conditioning duct, and an upload pipe the size > of an insulin needle. > > Squirting this huge WAR file through such a narrow pipe takes over half > an hour. But our web and FTP servers are on a hosting service's server, > so they're not passing through the narrow pipe. > > Can I, from Manager, deploy a WAR file that's sitting on a web or FTP > site, instead of on my local system? > > -- > James H. H. Lampert James, The question becomes "How does the war file get to the Web/FTP site?" My supposition is from your local system through the same narrow pipe, so there is no real solution, you've just moved the delay to another step. If that's not the case, then there are myriad ways. The manager app only deploys war files in one of two ways: already on the server, or from the system running the browser. So it sounds like some form of RDP is going to be necessary. Jeff - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: WAR file deployment question
try "manager", located in the webapps/manager. You need to edit your tomcat-users.xml, After that you can deploy your app via manager. 2014-09-16 8:11 GMT+08:00 James H. H. Lampert : > We have a rather large WAR file. 89,925,956 bytes. And we have cable > internet. With its usual extremely asymmetrical bandwidth: a download pipe > the size of an air conditioning duct, and an upload pipe the size of an > insulin needle. > > Squirting this huge WAR file through such a narrow pipe takes over half an > hour. But our web and FTP servers are on a hosting service's server, so > they're not passing through the narrow pipe. > > Can I, from Manager, deploy a WAR file that's sitting on a web or FTP > site, instead of on my local system? > > -- > James H. H. Lampert > Touchtone Corporation > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: war file deployment question
I had similar problems in the initial development of my webapp. Ultimately, the solution we got to work was to make sure all the relative paths were relative to the jsp file's location, as opposed to being relative to the context root. For example, I have webapps\application\pages and webapps\application\includes. For a jsp in the pages folder, a reference to the jsp that encapsulates the page footer (found in the includes folder) would look like: <[EMAIL PROTECTED] file="../includes/page_footer.jsp"%> Hope that helps, Roger Alix-Gaudreau -Original Message- From: Jignesh Shah [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 9:48 AM To: Tomcat Users List Subject: Re: war file deployment question Yes David, I do use relative path in my jsp's. What wonders me is I have lots of images in the images directory and I use them through relative path also and they work fine. Its only when it comes to css/xsl files that it cannot access. This stuff again works fine with other webserver, so I am missing some necessary jar file in the classpath. I have the servlet-api.jar file in the classpath. Thanks, Jignesh --- David Smith <[EMAIL PROTECTED]> wrote: > How are you accessing the css/xsl files? Sounds like > you are attempting > to open then with standard Java IO calls and > relative paths. If that's > the case, you might want to consider looking at > javax.servlet.ServletContext#getResource() or > javax.servlet.ServletContext#getResourceAsStream(). > These methods allow > you to use context relative paths to resources. > > --David > > Jignesh Shah wrote: > > >Hi, > > > >I have a war file that works fine under JRun and > >Jetty. Now when I deploy it under > >$CATALINA_HOME/webapps directory, the war file > creates > >its usual tree under webapps. Now this is what it > >looks like after deployment: > >/webapps > > /myapplication > >lots of jsps > >css (where I have css and xsl files) > >images > >WEB-INF > > > >Now my problem is when I access some jsp's after > >deployment, in turn they need to access some xsl > files > >in css directory, which it cannot find under tomcat > >after deployment. The error says that its looking > for > >my css/xsl files under $CATALINA_HOME/bin directory > >from where I start my tomcat. So again, the > question, > >does everything under myapplication is not under > >classpath ? What do I do to set it so that it can > find > >my css/xsl files. > > > >thanks, > >Jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: war file deployment question
Be careful. There's a difference between a relative link the browser gets and using relative paths in JSP code. In relative URL link for HTML, the browser computes the full url from the relative path and the page's base url. JSP is server side and will compute relative path's to Tomcat's working directory like any java program. The two methods I suggested below are the recommended ways of accessing files in your webapps from servlets. After all is said and done, JSPs are compiled down to servlets for execution. You can also use javax.servlet.ServletContext#getRealPath() to get the file system absolute path to a resource in your webapp, but that only works if the webapp is not being executed from a .war file. --David Jignesh Shah wrote: Yes David, I do use relative path in my jsp's. What wonders me is I have lots of images in the images directory and I use them through relative path also and they work fine. Its only when it comes to css/xsl files that it cannot access. This stuff again works fine with other webserver, so I am missing some necessary jar file in the classpath. I have the servlet-api.jar file in the classpath. Thanks, Jignesh --- David Smith <[EMAIL PROTECTED]> wrote: How are you accessing the css/xsl files? Sounds like you are attempting to open then with standard Java IO calls and relative paths. If that's the case, you might want to consider looking at javax.servlet.ServletContext#getResource() or javax.servlet.ServletContext#getResourceAsStream(). These methods allow you to use context relative paths to resources. --David Jignesh Shah wrote: Hi, I have a war file that works fine under JRun and Jetty. Now when I deploy it under $CATALINA_HOME/webapps directory, the war file creates its usual tree under webapps. Now this is what it looks like after deployment: /webapps /myapplication lots of jsps css (where I have css and xsl files) images WEB-INF Now my problem is when I access some jsp's after deployment, in turn they need to access some xsl files in css directory, which it cannot find under tomcat after deployment. The error says that its looking for my css/xsl files under $CATALINA_HOME/bin directory from where I start my tomcat. So again, the question, does everything under myapplication is not under classpath ? What do I do to set it so that it can find my css/xsl files. thanks, Jignesh __ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: war file deployment question
Yes David, I do use relative path in my jsp's. What wonders me is I have lots of images in the images directory and I use them through relative path also and they work fine. Its only when it comes to css/xsl files that it cannot access. This stuff again works fine with other webserver, so I am missing some necessary jar file in the classpath. I have the servlet-api.jar file in the classpath. Thanks, Jignesh --- David Smith <[EMAIL PROTECTED]> wrote: > How are you accessing the css/xsl files? Sounds like > you are attempting > to open then with standard Java IO calls and > relative paths. If that's > the case, you might want to consider looking at > javax.servlet.ServletContext#getResource() or > javax.servlet.ServletContext#getResourceAsStream(). > These methods allow > you to use context relative paths to resources. > > --David > > Jignesh Shah wrote: > > >Hi, > > > >I have a war file that works fine under JRun and > >Jetty. Now when I deploy it under > >$CATALINA_HOME/webapps directory, the war file > creates > >its usual tree under webapps. Now this is what it > >looks like after deployment: > >/webapps > > /myapplication > >lots of jsps > >css (where I have css and xsl files) > >images > >WEB-INF > > > >Now my problem is when I access some jsp's after > >deployment, in turn they need to access some xsl > files > >in css directory, which it cannot find under tomcat > >after deployment. The error says that its looking > for > >my css/xsl files under $CATALINA_HOME/bin directory > >from where I start my tomcat. So again, the > question, > >does everything under myapplication is not under > >classpath ? What do I do to set it so that it can > find > >my css/xsl files. > > > >thanks, > >Jignesh > > > > > > > > > >__ > >Yahoo! DSL Something to write home about. > >Just $16.99/mo. or less. > >dsl.yahoo.com > > > > > >- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: war file deployment question
How are you accessing the css/xsl files? Sounds like you are attempting to open then with standard Java IO calls and relative paths. If that's the case, you might want to consider looking at javax.servlet.ServletContext#getResource() or javax.servlet.ServletContext#getResourceAsStream(). These methods allow you to use context relative paths to resources. --David Jignesh Shah wrote: Hi, I have a war file that works fine under JRun and Jetty. Now when I deploy it under $CATALINA_HOME/webapps directory, the war file creates its usual tree under webapps. Now this is what it looks like after deployment: /webapps /myapplication lots of jsps css (where I have css and xsl files) images WEB-INF Now my problem is when I access some jsp's after deployment, in turn they need to access some xsl files in css directory, which it cannot find under tomcat after deployment. The error says that its looking for my css/xsl files under $CATALINA_HOME/bin directory from where I start my tomcat. So again, the question, does everything under myapplication is not under classpath ? What do I do to set it so that it can find my css/xsl files. thanks, Jignesh __ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: war file deployment question
Question being? --- Jignesh Shah <[EMAIL PROTECTED]> wrote: > Hi, > > I have a war file that works fine under JRun and > Jetty. Now when I deploy it under > $CATALINA_HOME/webapps directory, the war file > creates > its usual tree under webapps. Now this is what it > looks like after deployment: > /webapps > /myapplication > lots of jsps > css (where I have css and xsl files) > > > > > __ > Yahoo! DSL Something to write home about. > Just $16.99/mo. or less. > dsl.yahoo.com > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]