Thanks for the help and suggestions, everyone. Ripping out the manifest at least allowed CF to run normally (otherwise, no pages would pull up at all), but it couldn't see the classes. The file is on the classpath, so what I did was this:
Every other JAR file contains two top level directories: META-INF and the packages. I had to zip the packages at the top level, rename it to a *.JAR, and everything works. What is different about this one JAR file? I have no idea. I'm strongly pushing for this to be considered legacy code that will be ported to Groovy/Grails or something similar, because working on it is a huge pain, not to mention this deployment oddity. Oh well, that's why we have jobs, right? :) Thanks again, everyone. Chris On Thu, Mar 12, 2009 at 9:27 PM, Aaron Rouse <[email protected]> wrote: > What little experience I have with adding custom JAR's to CF what we have > experienced when we update the JARs we have to restart the CF service. I do > not have any involvement in the development of those files though so could > not begin to speculate the cause of the problems here. > > > On Thu, Mar 12, 2009 at 5:11 PM, AHMED EL-RASHEEDY < > [email protected]> wrote: > >> >> Hi All, >> When the ColdFusion starts it locks the JAR files that are added to >> the JVM Class paths so you normally cannot replace them until you stop >> the CF server. This happens when you are applying hot fixes or if you >> are replacing your JDBC drivers for example. I would think that it is >> the same with your scenario. >> I would agree that adding the JAR to your class path in your >> jvm.config (or through the admin) should make all the classes in it >> accessible by ColdFusion. I hope that helps. >> Thanks, >> Ahmed El-Rasheedy. >> >> On Thu, Mar 12, 2009 at 11:44 AM, Mike Gillespie <[email protected]> >> wrote: >> > >> > What happens if you rip the manifest file out of the jar? >> > >> > On Mar 11, 4:19 pm, Chris Watkins <[email protected]> wrote: >> >> Hi All, >> >> >> >> Many moons ago, I decided to leverage some in-house Java expertise and >> >> deploy some servlets and JSPs under CF. In hindsight, this was a bad >> >> decision for many reasons, but that is another story. >> >> >> >> The upshot is this: I'm maintaining some of the codebase, and am seeing >> some >> >> very perplexing behavior. >> >> >> >> The original Java files were deployed as a JAR in the WEB-INF/lib >> directory. >> >> Opening the JAR up, however, shows that there is no manifest and it's >> only >> >> the class files bundled together into an archive with a JAR extension. >> I am >> >> under the impression that JAR files are supposed to have manifests. >> >> >> >> I can make changes to the code in Eclipse and export as a JAR. However, >> it >> >> does include a manifest; however, while the CF service starts, I get >> the >> >> following error: >> >> >> >> Either the Macromedia application server is unreachable or it does not >> have >> >> a mapping to process this request. >> >> >> >> If I just grab the classes and drop them into the WEB-INF/classes >> directory, >> >> everything works. >> >> >> >> So, here are my questions: >> >> >> >> What exactly is this existing JAR file that works with no manifest >> file? >> >> Why doesn't a regular JAR file made by Eclipse cause CF to crash, but >> the >> >> unarchived classes work fine? >> >> >> >> I'm hoping this is a n00b question that we can all laugh about. >> >> >> >> Thanks! >> >> Chris >> > > >> > >> >> >> > > > -- > Aaron Rouse > http://www.happyhacker.com/ > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Houston ColdFusion Users' Group" discussion list. To unsubscribe, send email to [email protected] For more options, visit http://groups.google.com/group/houcfug?hl=en -~----------~----~----~----~------~----~------~--~---
