-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix a short coming when launching jruby-rack with webspere where the war... #170
Conversation
…war-file gets not unpacked
Thanks Kristian, last time I checked there were no issues deploying onto WS ( well all of them were fixed :) ... it's a bit unfortunate to put in an empty rescue block. do you still have the stack trace for the exception thrown and maybe report for future generations the server/jruby version used. p.s. isn't this related to the refactorings done inside JRuby with how default gems are loaded ? |
I can get the backtrace and then we can figure it out how to do it better not sure if it is new and it depends on how directories are handled with |
WebSphere Application Server Liberty Profile - version 8.5.5.1 only unexploded jars produces the error. (more later) |
for the record of this issue ... here's the failure as reported by WAS Liberty Profile 8.5.5.1 :
|
unfortunately ... as I was afraid it won't work with unexploded .war by default, due JRuby :
@mkristian do you know if this happens to get addressed on JRuby itself ? |
FYI: jruby has a nice feature for rubygems which I use for quite some time BTW I also pack all the files which should be on the LOAD_PATH in rails might not work since they rely on path operations all over the place here that issue only came since it raises an exception when jruby-rack does to detect a jar url by the '!/' inside the path could be doable ;) |
Thanks Kristian, that is great to know but our users likely do not now about those details thus would be great to provide them with an "out-of-the-box experience" ... instead of, you know, a "Java-EE experience" it is configurable just copy that here and there :) ... so maybe this should than go with Warbler to introduce an option of packing gems into WEB-INF/classes (I do not like that but if it works it's better than failing) ? |
well, I try to also look at how to setup a servlet which uses JRuby's ScriptingContainer and gems. there it is easier if you do not need to worry about how to setup the ENV['GEM_PATH'] and that is how I personally pack executable jars using ScriptingContainer and gems. and to run junit-tests I just need to make sure rubygems are on the classpath. let see what @jkutner says about the idea to add an alternative packing for warbler. |
actually, (maybe) less of a need to. I was able to get WAS to boot a "little more" by hacking after an expanded
should be noted that some File methods seem to work e.g. I got p.s. I was hoping you won't tell @jkutner ... he is a former IBM employee and he'll do anything to get their "Liberty Profile" working :) ... we're pretty much screwed here! |
since you are already so far you could just try using (just a feeling) but File.dir? and File.exists? should behave consistently - maybe a bug. PS I might ask you one day to look at jruby-rack (for version 2.0) to be PSS I had the feeling WS will have more funny classloader surprises hidden |
I've put out 1.1.15 (long time coming) where some of the "real-path" layout resolution is improved ... |
thanx |
...-file gets not unpacked
see an explanation on how to setup websphere: https://github.com/mkristian/war-pack/
do not know how to provide a test case for this :( - hope that is OK