Re: [Resin-interest] Resin no longer deploys my war
I'm so glad you posted this Jeff, since the same thing happened to us yesterday. I still don't know how, but finally we realized that somehow the same JSP page was compiled both as case sensitive and all lower case (_myJsp__jsp.java and _myjsp__jsp.java). What really threw us off though, was the fact that when we tried to deploy this broken WAR, Resin in some mysterious way managed to deploy an old version of that WAR. We deleted the WAR, we deleted the exploded WAR archive, we restarted Resin. Versioning was and has always been off. But magically an old no-longer-existing WAR was deployed in place of the (broken) one we tried to deploy. I don't remember for sure, but possibly the magic stopped when we deleted [server.root]/resin-data/default/.git (though I couldn't find any file in there enough to match the WAR. By far.) Possibly the fact that I managed to remote deploy that same WAR for the first time earlier yesterday has something to do with this? I might wait a while until I dare to try remote deploy again... I saw that the broken WAR problem should be fixed - or handled better - in 4.0.19. Haven't tried it. However I would still like to understand how Resin could deploy a WAR that no longer existed? Is there anyway to turn it off? I sure hope that this never ever happens in production (knock on wood!), but what should we do if it does happens again? /Mattias Jeff Schnitzer wrote (2011-06-08 09:43): Dunno, I create it with ant just like every other warfile I've ever made... but now that you mention it, when I examine the jar it appears to have two copies of every classfile. Didn't notice that before! And thus the mystery is solved. Wow, this one drove me nuts. At one point I was running this war on an Appengine backend, and the eclipse config for a GAE project puts the classes in WEB-INF/classes (but conveniently hides this in the package explorer). My ant buildfile compiles the classes to a 3rd directory, then includes both those classes and the contents of WEB-INF... you get the picture. Resin could use a better error message for this :-) I'm happy to be back on Resin though. Jeff On Wed, Jun 8, 2011 at 12:26 AM, Mattias Jiderhamn mj-li...@expertsystems.se wrote: Jeff, is it possible that there is something strange about the WAR file itself, like the compression...? May I ask how the WAR is created? Have you compared checksums between where it is created and where it is deployed so it isn't messed up in some transfer? /Mattias Jeff Schnitzer wrote (2011-06-07 02:49): ... FWIW, a simple stripped-down war file does deploy. So presumably it's something about my WARfile. But there's nothing about my WAR that is special - it deploys just fine on other containers. If I unjar it by hand, it deploys just fine on Resin. Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- /Mattias ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
On Jun 21, 2011, at 2:23 AM, Mattias Jiderhamn wrote: I'm so glad you posted this Jeff, since the same thing happened to us yesterday. I still don't know how, but finally we realized that somehow the same JSP page was compiled both as case sensitive and all lower case (_myJsp__jsp.java and _myjsp__jsp.java). What really threw us off though, was the fact that when we tried to deploy this broken WAR, Resin in some mysterious way managed to deploy an old version of that WAR. We deleted the WAR, we deleted the exploded WAR archive, we restarted Resin. Versioning was and has always been off. But magically an old no-longer-existing WAR was deployed in place of the (broken) one we tried to deploy. I don't remember for sure, but possibly the magic stopped when we deleted [server.root]/resin-data/default/.git (though I couldn't find any file in there enough to match the WAR. By far.) Possibly the fact that I managed to remote deploy that same WAR for the first time earlier yesterday has something to do with this? I might wait a while until I dare to try remote deploy again... I saw that the broken WAR problem should be fixed - or handled better - in 4.0.19. Haven't tried it. However I would still like to understand how Resin could deploy a WAR that no longer existed? Is there anyway to turn it off? I sure hope that this never ever happens in production (knock on wood!), but what should we do if it does happens again? Hi Mattias, What you're describing is exactly the effects of a remote deployment. http://caucho.com/resin-4.0/admin/clustering-overview.xtp#DeployingApplicationstoaCluster Doing a remote deploy essentially puts your war into a git distributed version control system. (In resin-data/*/.git) So even if there is no .war in the webapps directory, Resin will deploy it there upon startup. Once you deploy an application, deleting the .war does nothing. You must undeploy it remove it, or redeploy a new version to update. Unfortunately until version 4.0.19, there was no undeploy button in /resin-admin, only a deploy. So to undeploy cleanly you had to use the command-line interface, which is somewhat less convenient since it requires RemoteAdminService and some authentication setup. http://caucho.com/resin-4.0/admin/resin-admin-command-line.xtp We realize this behavior is unexpected/surprising when not understood, and are discussing ways to improve usability. Thanks, Paul /Mattias === Paul Cowan, Software Engineer Caucho Technology co...@caucho.com http://blog.caucho.com http://twitter.com/cauchoresin ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
Jeff, is it possible that there is something strange about the WAR file itself, like the compression...? May I ask how the WAR is created? Have you compared checksums between where it is created and where it is deployed so it isn't messed up in some transfer? /Mattias Jeff Schnitzer wrote (2011-06-07 02:49): ... FWIW, a simple stripped-down war file does deploy. So presumably it's something about my WARfile. But there's nothing about my WAR that is special - it deploys just fine on other containers. If I unjar it by hand, it deploys just fine on Resin. Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
Dunno, I create it with ant just like every other warfile I've ever made... but now that you mention it, when I examine the jar it appears to have two copies of every classfile. Didn't notice that before! And thus the mystery is solved. Wow, this one drove me nuts. At one point I was running this war on an Appengine backend, and the eclipse config for a GAE project puts the classes in WEB-INF/classes (but conveniently hides this in the package explorer). My ant buildfile compiles the classes to a 3rd directory, then includes both those classes and the contents of WEB-INF... you get the picture. Resin could use a better error message for this :-) I'm happy to be back on Resin though. Jeff On Wed, Jun 8, 2011 at 12:26 AM, Mattias Jiderhamn mj-li...@expertsystems.se wrote: Jeff, is it possible that there is something strange about the WAR file itself, like the compression...? May I ask how the WAR is created? Have you compared checksums between where it is created and where it is deployed so it isn't messed up in some transfer? /Mattias Jeff Schnitzer wrote (2011-06-07 02:49): ... FWIW, a simple stripped-down war file does deploy. So presumably it's something about my WARfile. But there's nothing about my WAR that is special - it deploys just fine on other containers. If I unjar it by hand, it deploys just fine on Resin. Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
On 06/08/2011 12:43 AM, Jeff Schnitzer wrote: Dunno, I create it with ant just like every other warfile I've ever made... but now that you mention it, when I examine the jar it appears to have two copies of every classfile. Didn't notice that before! And thus the mystery is solved. Wow, this one drove me nuts. At one point I was running this war on an Appengine backend, and the eclipse config for a GAE project puts the classes in WEB-INF/classes (but conveniently hides this in the package explorer). My ant buildfile compiles the classes to a 3rd directory, then includes both those classes and the contents of WEB-INF... you get the picture. Ah, thanks. I was having trouble figuring out how to make a broken .war to duplicate the problem. -- Scott Resin could use a better error message for this :-) I'm happy to be back on Resin though. Jeff On Wed, Jun 8, 2011 at 12:26 AM, Mattias Jiderhamn mj-li...@expertsystems.se wrote: Jeff, is it possible that there is something strange about the WAR file itself, like the compression...? May I ask how the WAR is created? Have you compared checksums between where it is created and where it is deployed so it isn't messed up in some transfer? /Mattias Jeff Schnitzer wrote (2011-06-07 02:49): ... FWIW, a simple stripped-down war file does deploy. So presumably it's something about my WARfile. But there's nothing about my WAR that is special - it deploys just fine on other containers. If I unjar it by hand, it deploys just fine on Resin. Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
Hi Jeff, I just had another thought that might be effecting your war file deployment. Have you declaree any dependency injection / CanDI into your resin.xml or resin-web.xml files? For example: http://www.caucho.com/resin-4.0/examples/ioc-binding/index.xtp When I upgraded our Web sites from resin 3.0.x to resin 4.x, I had a lot of problems with this until I made changes to my Java classes. Resin would fail silently, i.e., it never produced any errors even when logging was set to the finest level. Resin would appear to start, but nothing was loaded or deployed. The culprit was declaring / using static method calls as my services and beans. Keith On 06/06/2011 05:49 PM, Jeff Schnitzer wrote: Seriously, I've done *nothing* special. I downloaded resin, unzipped it, copied in my ROOT.war... and nothing. I've tried deleting the ROOT/ directory. I've tried deleting the resin-data/ directory. I've tried removing theweb-app id=/ root-directory=webapps/ROOT/ (what does that do, anyways?). resin-admin shows a root webapp. not mine - just the default one it creates. It just doesn't work. FWIW, a simple stripped-down war file does deploy. So presumably it's something about my WARfile. But there's nothing about my WAR that is special - it deploys just fine on other containers. If I unjar it by hand, it deploys just fine on Resin. Jeff On Sun, Jun 5, 2011 at 11:18 PM, f...@caucho.comf...@cauchomail.com wrote: What does the /resin-admin for that webapp show? If you've deployed the war using the deploy command, for example, it will take precedence over a new deployed .war. -- Scott --- On Sun, 6/5/11, Jeff Schnitzerj...@infohazard.org wrote: From: Jeff Schnitzerj...@infohazard.org Subject: Re: [Resin-interest] Resin no longer deploys my war To: General Discussion for the Resin application serverresin-interest@caucho.com Date: Sunday, June 5, 2011, 8:12 PM I finally got around to trying this out, and no luck. I can't for the life of me figure out why Resin refuses to unpack my WAR. Every other appserver will, including an old copy of resin 4.0.9 I found lying around (unfortunately 4.0.9 has other issues). Jeff On Fri, Jun 3, 2011 at 9:57 AM, Jeff Schnitzerj...@infohazard.org wrote: Thanks - I will try this out. I gave up and switched to Tomcat. But I like it less than Resin, so maybe I will switch back. Jeff On Fri, Jun 3, 2011 at 9:43 AM, Keith Fetterman kfetter...@go2marine.com wrote: Hi Jeff, Are you still experiencing this problem? I experienced the same problem in resin 4.0.16 pro. I pulled my hair out including performing the steps you talked about in your email. I finally discovered that I had to turn versioning off. Here is a snippet from my resin.xml file: !-- creates the webapps directory for .war expansion -- !-- web-app-deploy path=webapps versioning=true/ -- web-app-deploy path=webapps/ The default resin.xml file has this set to true. I hope this helps Keith On 05/24/2011 02:23 PM, Jeff Schnitzer wrote: On Tue, May 24, 2011 at 2:04 PM, Scott Fergusonf...@caucho.com wrote: Also, what does the /resin-admin webapps tab say? It reports a webapp at /, but just the stock one. For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. I haven't done anything... seriously, I just went through these steps: 1) Download resin-4.0.18.zip 2) Unzip it into a directory 3) Copy my ROOT.war into resin/webapps 4) Run resin No love. No error messages. I've also tried commenting outweb-app id=/ root-directory=webapps/ROOT/but it makes no difference. I'm not quite sure what this line is supposed to do, though - shouldn't it be irrelevant if there is a ROOT.war file in webapps? Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith Fetterman Direct: 206-319-9434 Mariner Supply, Inc. 206-780-5670 http://www.go2marine.com kfetter...@go2marine.com http://www.boatersline.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith Fetterman
Re: [Resin-interest] Resin no longer deploys my war
fine on other containers. If I unjar it by hand, it deploys just fine on Resin. Jeff On Sun, Jun 5, 2011 at 11:18 PM, f...@caucho.comf...@cauchomail.com wrote: What does the /resin-admin for that webapp show? If you've deployed the war using the deploy command, for example, it will take precedence over a new deployed .war. -- Scott --- On Sun, 6/5/11, Jeff Schnitzerj...@infohazard.org wrote: From: Jeff Schnitzerj...@infohazard.org Subject: Re: [Resin-interest] Resin no longer deploys my war To: General Discussion for the Resin application serverresin-interest@caucho.com Date: Sunday, June 5, 2011, 8:12 PM I finally got around to trying this out, and no luck. I can't for the life of me figure out why Resin refuses to unpack my WAR. Every other appserver will, including an old copy of resin 4.0.9 I found lying around (unfortunately 4.0.9 has other issues). Jeff On Fri, Jun 3, 2011 at 9:57 AM, Jeff Schnitzerj...@infohazard.org wrote: Thanks - I will try this out. I gave up and switched to Tomcat. But I like it less than Resin, so maybe I will switch back. Jeff On Fri, Jun 3, 2011 at 9:43 AM, Keith Fetterman kfetter...@go2marine.com wrote: Hi Jeff, Are you still experiencing this problem? I experienced the same problem in resin 4.0.16 pro. I pulled my hair out including performing the steps you talked about in your email. I finally discovered that I had to turn versioning off. Here is a snippet from my resin.xml file: !-- creates the webapps directory for .war expansion -- !-- web-app-deploy path=webapps versioning=true/ -- web-app-deploy path=webapps/ The default resin.xml file has this set to true. I hope this helps Keith On 05/24/2011 02:23 PM, Jeff Schnitzer wrote: On Tue, May 24, 2011 at 2:04 PM, Scott Fergusonf...@caucho.com wrote: Also, what does the /resin-admin webapps tab say? It reports a webapp at /, but just the stock one. For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. I haven't done anything... seriously, I just went through these steps: 1) Download resin-4.0.18.zip 2) Unzip it into a directory 3) Copy my ROOT.war into resin/webapps 4) Run resin No love. No error messages. I've also tried commenting outweb-app id=/ root-directory=webapps/ROOT/ but it makes no difference. I'm not quite sure what this line is supposed to do, though - shouldn't it be irrelevant if there is a ROOT.war file in webapps? Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith Fetterman Direct: 206-319-9434 Mariner Supply, Inc. 206-780-5670 http://www.go2marine.com kfetter...@go2marine.com http://www.boatersline.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith Fetterman Direct: 206-319-9434 Mariner Supply, Inc. 206-780-5670 http://www.go2marine.com kfetter...@go2marine.com http://www.boatersline.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
. It just doesn't work. FWIW, a simple stripped-down war file does deploy. So presumably it's something about my WARfile. But there's nothing about my WAR that is special - it deploys just fine on other containers. If I unjar it by hand, it deploys just fine on Resin. Jeff On Sun, Jun 5, 2011 at 11:18 PM, f...@caucho.comf...@cauchomail.com wrote: What does the /resin-admin for that webapp show? If you've deployed the war using the deploy command, for example, it will take precedence over a new deployed .war. -- Scott --- On Sun, 6/5/11, Jeff Schnitzerj...@infohazard.orgwrote: From: Jeff Schnitzerj...@infohazard.org Subject: Re: [Resin-interest] Resin no longer deploys my war To: General Discussion for the Resin application serverresin-interest@caucho.com Date: Sunday, June 5, 2011, 8:12 PM I finally got around to trying this out, and no luck. I can't for the life of me figure out why Resin refuses to unpack my WAR. Every other appserver will, including an old copy of resin 4.0.9 I found lying around (unfortunately 4.0.9 has other issues). Jeff On Fri, Jun 3, 2011 at 9:57 AM, Jeff Schnitzerj...@infohazard.org wrote: Thanks - I will try this out. I gave up and switched to Tomcat. But I like it less than Resin, so maybe I will switch back. Jeff On Fri, Jun 3, 2011 at 9:43 AM, Keith Fetterman kfetter...@go2marine.com wrote: Hi Jeff, Are you still experiencing this problem? I experienced the same problem in resin 4.0.16 pro. I pulled my hair out including performing the steps you talked about in your email. I finally discovered that I had to turn versioning off. Here is a snippet from my resin.xml file: !-- creates the webapps directory for .war expansion -- !-- web-app-deploy path=webapps versioning=true/ -- web-app-deploy path=webapps/ The default resin.xml file has this set to true. I hope this helps Keith On 05/24/2011 02:23 PM, Jeff Schnitzer wrote: On Tue, May 24, 2011 at 2:04 PM, Scott Fergusonf...@caucho.com wrote: Also, what does the /resin-admin webapps tab say? It reports a webapp at /, but just the stock one. For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. I haven't done anything... seriously, I just went through these steps: 1) Download resin-4.0.18.zip 2) Unzip it into a directory 3) Copy my ROOT.war into resin/webapps 4) Run resin No love. No error messages. I've also tried commenting outweb-app id=/ root-directory=webapps/ROOT/ but it makes no difference. I'm not quite sure what this line is supposed to do, though - shouldn't it be irrelevant if there is a ROOT.war file in webapps? Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith Fetterman Direct: 206-319-9434 Mariner Supply, Inc. 206-780-5670 http://www.go2marine.com kfetter...@go2marine.com http://www.boatersline.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith FettermanDirect: 206-319-9434 Mariner Supply, Inc. 206-780-5670 http://www.go2marine.com kfetter...@go2marine.com http://www.boatersline.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
What does the /resin-admin for that webapp show? If you've deployed the war using the deploy command, for example, it will take precedence over a new deployed .war. -- Scott --- On Sun, 6/5/11, Jeff Schnitzer j...@infohazard.org wrote: From: Jeff Schnitzer j...@infohazard.org Subject: Re: [Resin-interest] Resin no longer deploys my war To: General Discussion for the Resin application server resin-interest@caucho.com Date: Sunday, June 5, 2011, 8:12 PM I finally got around to trying this out, and no luck. I can't for the life of me figure out why Resin refuses to unpack my WAR. Every other appserver will, including an old copy of resin 4.0.9 I found lying around (unfortunately 4.0.9 has other issues). Jeff On Fri, Jun 3, 2011 at 9:57 AM, Jeff Schnitzer j...@infohazard.org wrote: Thanks - I will try this out. I gave up and switched to Tomcat. But I like it less than Resin, so maybe I will switch back. Jeff On Fri, Jun 3, 2011 at 9:43 AM, Keith Fetterman kfetter...@go2marine.com wrote: Hi Jeff, Are you still experiencing this problem? I experienced the same problem in resin 4.0.16 pro. I pulled my hair out including performing the steps you talked about in your email. I finally discovered that I had to turn versioning off. Here is a snippet from my resin.xml file: !-- creates the webapps directory for .war expansion -- !-- web-app-deploy path=webapps versioning=true/ -- web-app-deploy path=webapps/ The default resin.xml file has this set to true. I hope this helps Keith On 05/24/2011 02:23 PM, Jeff Schnitzer wrote: On Tue, May 24, 2011 at 2:04 PM, Scott Fergusonf...@caucho.com wrote: Also, what does the /resin-admin webapps tab say? It reports a webapp at /, but just the stock one. For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. I haven't done anything... seriously, I just went through these steps: 1) Download resin-4.0.18.zip 2) Unzip it into a directory 3) Copy my ROOT.war into resin/webapps 4) Run resin No love. No error messages. I've also tried commenting outweb-app id=/ root-directory=webapps/ROOT/ but it makes no difference. I'm not quite sure what this line is supposed to do, though - shouldn't it be irrelevant if there is a ROOT.war file in webapps? Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith Fetterman Direct: 206-319-9434 Mariner Supply, Inc. 206-780-5670 http://www.go2marine.com kfetter...@go2marine.com http://www.boatersline.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
On 06/06/2011 05:49 PM, Jeff Schnitzer wrote: Seriously, I've done *nothing* special. I downloaded resin, unzipped it, copied in my ROOT.war... and nothing. I've tried deleting the ROOT/ directory. I've tried deleting the resin-data/ directory. Hmm. I've tried removing theweb-app id=/ root-directory=webapps/ROOT/ (what does that do, anyways?). It lets you override configuration in the resin.xml, like the WEB-INF/resin-web.xml. It's useful for some peoples' configuration. resin-admin shows a root webapp. not mine - just the default one it creates. It just doesn't work. FWIW, a simple stripped-down war file does deploy. So presumably it's something about my WARfile. That's interesting. Other than the WEB-INF/web.xml and WEB-INF/resin-web.xml there really shouldn't be anything specific about one .war file vs another. (Although I guess there could be something about the validation when unzipping the file.) If you get a chance, can you download a snapshot from http://caucho.com/download/resin-pro-4_0-snap.tar.gz, turn on logging to finer or finest, duplicate the deployment problem and send me the log file? It might show information about what's different about your .war. (Or if the snapshot isn't ready, the same finest information from the current version might show something.) thanks, -- Scott But there's nothing about my WAR that is special - it deploys just fine on other containers. If I unjar it by hand, it deploys just fine on Resin. Jeff On Sun, Jun 5, 2011 at 11:18 PM, f...@caucho.comf...@cauchomail.com wrote: What does the /resin-admin for that webapp show? If you've deployed the war using the deploy command, for example, it will take precedence over a new deployed .war. -- Scott --- On Sun, 6/5/11, Jeff Schnitzerj...@infohazard.org wrote: From: Jeff Schnitzerj...@infohazard.org Subject: Re: [Resin-interest] Resin no longer deploys my war To: General Discussion for the Resin application serverresin-interest@caucho.com Date: Sunday, June 5, 2011, 8:12 PM I finally got around to trying this out, and no luck. I can't for the life of me figure out why Resin refuses to unpack my WAR. Every other appserver will, including an old copy of resin 4.0.9 I found lying around (unfortunately 4.0.9 has other issues). Jeff On Fri, Jun 3, 2011 at 9:57 AM, Jeff Schnitzerj...@infohazard.org wrote: Thanks - I will try this out. I gave up and switched to Tomcat. But I like it less than Resin, so maybe I will switch back. Jeff On Fri, Jun 3, 2011 at 9:43 AM, Keith Fetterman kfetter...@go2marine.com wrote: Hi Jeff, Are you still experiencing this problem? I experienced the same problem in resin 4.0.16 pro. I pulled my hair out including performing the steps you talked about in your email. I finally discovered that I had to turn versioning off. Here is a snippet from my resin.xml file: !-- creates the webapps directory for .war expansion -- !-- web-app-deploy path=webapps versioning=true/ -- web-app-deploy path=webapps/ The default resin.xml file has this set to true. I hope this helps Keith On 05/24/2011 02:23 PM, Jeff Schnitzer wrote: On Tue, May 24, 2011 at 2:04 PM, Scott Fergusonf...@caucho.com wrote: Also, what does the /resin-admin webapps tab say? It reports a webapp at /, but just the stock one. For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. I haven't done anything... seriously, I just went through these steps: 1) Download resin-4.0.18.zip 2) Unzip it into a directory 3) Copy my ROOT.war into resin/webapps 4) Run resin No love. No error messages. I've also tried commenting outweb-app id=/ root-directory=webapps/ROOT/but it makes no difference. I'm not quite sure what this line is supposed to do, though - shouldn't it be irrelevant if there is a ROOT.war file in webapps? Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith Fetterman Direct: 206-319-9434 Mariner Supply, Inc. 206-780-5670 http://www.go2marine.com kfetter...@go2marine.com http://www.boatersline.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com
Re: [Resin-interest] Resin no longer deploys my war
I finally got around to trying this out, and no luck. I can't for the life of me figure out why Resin refuses to unpack my WAR. Every other appserver will, including an old copy of resin 4.0.9 I found lying around (unfortunately 4.0.9 has other issues). Jeff On Fri, Jun 3, 2011 at 9:57 AM, Jeff Schnitzer j...@infohazard.org wrote: Thanks - I will try this out. I gave up and switched to Tomcat. But I like it less than Resin, so maybe I will switch back. Jeff On Fri, Jun 3, 2011 at 9:43 AM, Keith Fetterman kfetter...@go2marine.com wrote: Hi Jeff, Are you still experiencing this problem? I experienced the same problem in resin 4.0.16 pro. I pulled my hair out including performing the steps you talked about in your email. I finally discovered that I had to turn versioning off. Here is a snippet from my resin.xml file: !-- creates the webapps directory for .war expansion -- !-- web-app-deploy path=webapps versioning=true/ -- web-app-deploy path=webapps/ The default resin.xml file has this set to true. I hope this helps Keith On 05/24/2011 02:23 PM, Jeff Schnitzer wrote: On Tue, May 24, 2011 at 2:04 PM, Scott Fergusonf...@caucho.com wrote: Also, what does the /resin-admin webapps tab say? It reports a webapp at /, but just the stock one. For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. I haven't done anything... seriously, I just went through these steps: 1) Download resin-4.0.18.zip 2) Unzip it into a directory 3) Copy my ROOT.war into resin/webapps 4) Run resin No love. No error messages. I've also tried commenting outweb-app id=/ root-directory=webapps/ROOT/ but it makes no difference. I'm not quite sure what this line is supposed to do, though - shouldn't it be irrelevant if there is a ROOT.war file in webapps? Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith Fetterman Direct: 206-319-9434 Mariner Supply, Inc. 206-780-5670 http://www.go2marine.com kfetter...@go2marine.com http://www.boatersline.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
Hi Jeff, Are you still experiencing this problem? I experienced the same problem in resin 4.0.16 pro. I pulled my hair out including performing the steps you talked about in your email. I finally discovered that I had to turn versioning off. Here is a snippet from my resin.xml file: !-- creates the webapps directory for .war expansion -- !-- web-app-deploy path=webapps versioning=true/ -- web-app-deploy path=webapps/ The default resin.xml file has this set to true. I hope this helps Keith On 05/24/2011 02:23 PM, Jeff Schnitzer wrote: On Tue, May 24, 2011 at 2:04 PM, Scott Fergusonf...@caucho.com wrote: Also, what does the /resin-admin webapps tab say? It reports a webapp at /, but just the stock one. For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. I haven't done anything... seriously, I just went through these steps: 1) Download resin-4.0.18.zip 2) Unzip it into a directory 3) Copy my ROOT.war into resin/webapps 4) Run resin No love. No error messages. I've also tried commenting outweb-app id=/ root-directory=webapps/ROOT/ but it makes no difference. I'm not quite sure what this line is supposed to do, though - shouldn't it be irrelevant if there is a ROOT.war file in webapps? Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith FettermanDirect: 206-319-9434 Mariner Supply, Inc. 206-780-5670 http://www.go2marine.com kfetter...@go2marine.com http://www.boatersline.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
Thanks - I will try this out. I gave up and switched to Tomcat. But I like it less than Resin, so maybe I will switch back. Jeff On Fri, Jun 3, 2011 at 9:43 AM, Keith Fetterman kfetter...@go2marine.com wrote: Hi Jeff, Are you still experiencing this problem? I experienced the same problem in resin 4.0.16 pro. I pulled my hair out including performing the steps you talked about in your email. I finally discovered that I had to turn versioning off. Here is a snippet from my resin.xml file: !-- creates the webapps directory for .war expansion -- !-- web-app-deploy path=webapps versioning=true/ -- web-app-deploy path=webapps/ The default resin.xml file has this set to true. I hope this helps Keith On 05/24/2011 02:23 PM, Jeff Schnitzer wrote: On Tue, May 24, 2011 at 2:04 PM, Scott Fergusonf...@caucho.com wrote: Also, what does the /resin-admin webapps tab say? It reports a webapp at /, but just the stock one. For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. I haven't done anything... seriously, I just went through these steps: 1) Download resin-4.0.18.zip 2) Unzip it into a directory 3) Copy my ROOT.war into resin/webapps 4) Run resin No love. No error messages. I've also tried commenting outweb-app id=/ root-directory=webapps/ROOT/ but it makes no difference. I'm not quite sure what this line is supposed to do, though - shouldn't it be irrelevant if there is a ROOT.war file in webapps? Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- - Keith Fetterman Direct: 206-319-9434 Mariner Supply, Inc. 206-780-5670 http://www.go2marine.com kfetter...@go2marine.com http://www.boatersline.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Resin no longer deploys my war
I tried upgrading to 4.0.18 recently and deployment seems broken. Normally I copy my war file over webapps/ROOT.war, restart appserver, and it works. Now it seems the only way I can get a deployment working is by: 1) Deleting webapps/ROOT (the directory) 2) Manually un-jaring ROOT.war 3) Deleting the resin-data directory If I don't do #3, Resin recreates an old version of my app, not the new contents of ROOT.war. If I don't do #2, Resin creates an empty web project. This is really, insanely confusing :-( Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
Sounds like a file permission issue, but you've checked that, haven't you...? /Mattias - Original Message - Subject: [Resin-interest] Resin no longer deploys my war Date: Tue, 24 May 2011 01:52:04 -0700 From: Jeff Schnitzer j...@infohazard.org I tried upgrading to 4.0.18 recently and deployment seems broken. Normally I copy my war file over webapps/ROOT.war, restart appserver, and it works. Now it seems the only way I can get a deployment working is by: 1) Deleting webapps/ROOT (the directory) 2) Manually un-jaring ROOT.war 3) Deleting the resin-data directory If I don't do #3, Resin recreates an old version of my app, not the new contents of ROOT.war. If I don't do #2, Resin creates an empty web project. This is really, insanely confusing :-( Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
It does sound like that, but I'm running Resin as root. Jeff On Tue, May 24, 2011 at 1:56 AM, Mattias Jiderhamn mj-li...@expertsystems.se wrote: Sounds like a file permission issue, but you've checked that, haven't you...? /Mattias - Original Message - Subject: [Resin-interest] Resin no longer deploys my war Date: Tue, 24 May 2011 01:52:04 -0700 From: Jeff Schnitzer j...@infohazard.org I tried upgrading to 4.0.18 recently and deployment seems broken. Normally I copy my war file over webapps/ROOT.war, restart appserver, and it works. Now it seems the only way I can get a deployment working is by: 1) Deleting webapps/ROOT (the directory) 2) Manually un-jaring ROOT.war 3) Deleting the resin-data directory If I don't do #3, Resin recreates an old version of my app, not the new contents of ROOT.war. If I don't do #2, Resin creates an empty web project. This is really, insanely confusing :-( Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
Just do double check, you are running both the watchdog process and the actual Resin instance as root? Anything on the finest logging level? /Mattias - Original Message - Subject: Re: [Resin-interest] Resin no longer deploys my war Date: Tue, 24 May 2011 02:26:44 -0700 From: Jeff Schnitzer j...@infohazard.org It does sound like that, but I'm running Resin as root. Jeff On Tue, May 24, 2011 at 1:56 AM, Mattias Jiderhamn mj-li...@expertsystems.se wrote: Sounds like a file permission issue, but you've checked that, haven't you...? /Mattias - Original Message - Subject: [Resin-interest] Resin no longer deploys my war Date: Tue, 24 May 2011 01:52:04 -0700 From: Jeff Schnitzer j...@infohazard.org I tried upgrading to 4.0.18 recently and deployment seems broken. Normally I copy my war file over webapps/ROOT.war, restart appserver, and it works. Now it seems the only way I can get a deployment working is by: 1) Deleting webapps/ROOT (the directory) 2) Manually un-jaring ROOT.war 3) Deleting the resin-data directory If I don't do #3, Resin recreates an old version of my app, not the new contents of ROOT.war. If I don't do #2, Resin creates an empty web project. This is really, insanely confusing :-( Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- /Mattias ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
On May 24, 2011, at 4:52 AM, Jeff Schnitzer wrote: I tried upgrading to 4.0.18 recently and deployment seems broken. Normally I copy my war file over webapps/ROOT.war, restart appserver, and it works. Now it seems the only way I can get a deployment working is by: 1) Deleting webapps/ROOT (the directory) 2) Manually un-jaring ROOT.war 3) Deleting the resin-data directory If I don't do #3, Resin recreates an old version of my app, not the new contents of ROOT.war. If I don't do #2, Resin creates an empty web project. This is really, insanely confusing :-( Hi Jeff I just ran a quick test and saw similar behavior. I'll look into it and file a bug if appropriate, and let you know either way. -Paul Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest === Paul Cowan, Software Engineer Caucho Technology co...@caucho.com http://blog.caucho.com http://twitter.com/cauchoresin ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
On May 24, 2011, at 4:52 AM, Jeff Schnitzer wrote: I tried upgrading to 4.0.18 recently and deployment seems broken. Normally I copy my war file over webapps/ROOT.war, restart appserver, and it works. Now it seems the only way I can get a deployment working is by: 1) Deleting webapps/ROOT (the directory) 2) Manually un-jaring ROOT.war 3) Deleting the resin-data directory If I don't do #3, Resin recreates an old version of my app, not the new contents of ROOT.war. If I don't do #2, Resin creates an empty web project. This is really, insanely confusing :-( Jeff Hi Jeff, We fixed a few bugs related to deployment in 4.0.17 and 4.0.18, perhaps the behavior you're expecting has changed. I tested by simply overwriting ROOT.war with a different ROOT.war and didn't have any issues. Resin will recreate the old app from resin-data directory, if you delete the war and directory, since it needs a ROOT webapp. So that behavior is expected. Some things to check are permissions (server-default user-name Resin is running as), resin:DeployService/ exists, webapp version is enabled (host-default web-app-deploy path=webapps versioning=true/). -Paul ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest === Paul Cowan, Software Engineer Caucho Technology co...@caucho.com http://blog.caucho.com http://twitter.com/cauchoresin ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
On Tue, May 24, 2011 at 8:11 AM, Paul Cowan co...@caucho.com wrote: Hi Jeff, We fixed a few bugs related to deployment in 4.0.17 and 4.0.18, perhaps the behavior you're expecting has changed. I tested by simply overwriting ROOT.war with a different ROOT.war and didn't have any issues. Resin will recreate the old app from resin-data directory, if you delete the war and directory, since it needs a ROOT webapp. So that behavior is expected. Some things to check are permissions (server-default user-name Resin is running as), resin:DeployService/ exists, webapp version is enabled (host-default web-app-deploy path=webapps versioning=true/). -Paul I don't know what to say... I'm running vanilla Resin 4.0.18 (non-pro), right out of the zipfile. I get the same behavior on both linux (started using the init.d script, running as root) and Mac (bin/resin.sh console, running as myself). The only changes I've made to resin.xml are tweaks to my logging configuration and disabling the resin-doc webapp. resin:DeployService and web-app-deploy are stock. I've tried commenting out the web-app id=/ root-directory=webapps/ROOT/ but it doesn't seem to make a difference one way or another. It almost seems like Resin just doesn't notice my ROOT.war, but there are no error messages and there's nothing wrong with the permissions. The file unjars just fine with the command line jar utility. Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
On 05/24/2011 01:50 PM, Jeff Schnitzer wrote: On Tue, May 24, 2011 at 8:11 AM, Paul Cowanco...@caucho.com wrote: Hi Jeff, We fixed a few bugs related to deployment in 4.0.17 and 4.0.18, perhaps the behavior you're expecting has changed. I tested by simply overwriting ROOT.war with a different ROOT.war and didn't have any issues. Resin will recreate the old app from resin-data directory, if you delete the war and directory, since it needs a ROOT webapp. So that behavior is expected. Some things to check are permissions (server-default user-name Resin is running as),resin:DeployService/ exists, webapp version is enabled (host-default web-app-deploy path=webapps versioning=true/). -Paul I don't know what to say... I'm running vanilla Resin 4.0.18 (non-pro), right out of the zipfile. I get the same behavior on both linux (started using the init.d script, running as root) and Mac (bin/resin.sh console, running as myself). The only changes I've made to resin.xml are tweaks to my logging configuration and disabling the resin-doc webapp. resin:DeployService andweb-app-deploy are stock. I've tried commenting out theweb-app id=/ root-directory=webapps/ROOT/ but it doesn't seem to make a difference one way or another. It almost seems like Resin just doesn't notice my ROOT.war, but there are no error messages and there's nothing wrong with the permissions. The file unjars just fine with the command line jar utility. Also, what does the /resin-admin webapps tab say? For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. -- Scott Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin no longer deploys my war
On Tue, May 24, 2011 at 2:04 PM, Scott Ferguson f...@caucho.com wrote: Also, what does the /resin-admin webapps tab say? It reports a webapp at /, but just the stock one. For example, if you've deployed a .war using the command-line deploy, that overrides the webapps/ directory. I haven't done anything... seriously, I just went through these steps: 1) Download resin-4.0.18.zip 2) Unzip it into a directory 3) Copy my ROOT.war into resin/webapps 4) Run resin No love. No error messages. I've also tried commenting out web-app id=/ root-directory=webapps/ROOT/ but it makes no difference. I'm not quite sure what this line is supposed to do, though - shouldn't it be irrelevant if there is a ROOT.war file in webapps? Jeff ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest