- This topic has 16 replies, 2 voices, and was last updated 18 years, 9 months ago by Riyad Kalla.
-
AuthorPosts
-
Fran_VarinMemberI have two questions regarding the use of Geronimo:
1) I am working with Geronimo for the first time and have successfully started the server through MyEclipse (very simple and easy by the way!). However, when I select a Web application to deploy to the server I receive this message “Deployment is out of date due to chagnes in the underlying project contents. You’ll need to manually ‘Redeploy’ the project to update the deployed archive.” in the “Project Deployments” dialog. There is also a yellow caution sign next to the Geronimo server in the “Deployments” grid.
I have some experience using Tomcat with MyEclipse and did not run into this issue with Tomcat. I was able to get around the problem by exporting the application as a WAR file to the “deploy” directory within Geronimo. However, this approach seems to go around the deployment feature of MyEclipse. Is there something I’m missing?
2) After deploying the WAR file as described above, I added several JAR files to the “Append to classpath” secion of the Preferences/paths for Geronimo to enable IBM MQ functionality. However, when I restart the server and run my application I still receive ClassNotFound exception when trying to utilize some of the MQ classes. I have made the identical definition in my Apache Tomcat server definition and it works just fine. Am I missing something with Geronimo?
Riyad KallaMember1) The problem is that your project needs to be refreshed. Right click on the root of it and do a Refresh.
2) If you take those JARs and temporarily copy them directly into the server’s /lib directory and restart it, does your code run all the sudden as it should?
Fran_VarinMember1) I have tried this several times and once again based on your suggestion. This does not resolve the problem.
2) No, if I copy th JARs to the server’s lib directory the problem persists.
Riyad KallaMember1) Try and remove the deployment, be sure when you refresh you refresh from the root of the project, then do a Project > Clean and rebuild the project. Then recreate the deployment. Did that help?
2) This sounds like a problem with Geronimo then. Can you try it with another library, say something random like lucene?
Fran_VarinMemberWith regard to “1” above. I deleted the WAR file from the deploy directory. Then, executed “clean” from the project menu against the project in question. Then, took “build automatically” off and built the project manually. Same issue…
Riyad KallaMemberAre you using the Jetty or Tomcat release of Geronimo? (Did you try the other version depending on which one you have?)
Riyad KallaMemberWait nevermind, in my testing of this I was able to reproduce it. It wasn’t right away but I see what you are seeing now. I’ll have someone take a look at this.
Riyad KallaMemberUpdate: Hmm ok now I cannot reproduce the deployment out of date issue but I was able to reproduce the ClassNotFound exception consistently now. I’m filing it as a bug.
Fran_VarinMemberOk, I’m relieved that you are able to reproduce both problems. Is there some way that I can track the progress of the bug report? I’m going to try one more thing on the class not found issue. I’m going to try and add the jar files to the project and redeploy. I’m thinking this problem may be related to an issue with class loaders in some way.
Riyad KallaMemberOur bug tracker isn’t public because we track other things in it besides just software issues, but this has been tenatively targetted (the classpath issue, not the Out of Date issue) for 4.1.1.
Fran_VarinMemberOK, the classpath problem leaves me “dead in the water” is there some kind of work-around? I tried putting the jars in the web-inf lib folder of the project…that does not work either.
What are your thoughts on the out of date issue? I cannot get that to function with Geronimo. I have to export the war to the deploy directory manually in order to deploy the application.
Riyad KallaMemberOK, the classpath problem leaves me “dead in the water” is there some kind of work-around? I tried putting the jars in the web-inf lib folder of the project…that does not work either.
That’s a geronimo bug if that is the case. The class loaders should pick those classes up, that has nothing to do with MyEclipse.
What are your thoughts on the out of date issue? I cannot get that to function with Geronimo. I have to export the war to the deploy directory manually in order to deploy the application.
I didn’t have that problem, I just clicked “redeploy” and it worked fine even though it did show out of date 1 time for me. Try rebooting or restarting MyEclipse. I haven’t been able to reproduce it consistently and only saw it once out of the 50 or so times I deployed trying to run down the other bug.
Also are you using the Jetty or Tomcat version of Ger? Try using the Tomcat one.
Fran_VarinMemberI am using Tomcat…the one bundled with Geronimo…MyEclipse 4.0 and Eclipse 3.1.
Fran_VarinMemberSo, what then is the nature of the bug that you have logged? If my classpath issue is a Geronimo issue and you cannot reproduce the other problem. What have you logged as a but…I’m confused.
Fran_VarinMemberBTW…I installed MyEclipse 4.1.1 and Eclipse 3.1.2 and deploy problem is resolved. Must have been addressed in the release change.
-
AuthorPosts