facebook

Deploy Application to Geronimo

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #246385 Reply

    Fran_Varin
    Member

    I 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?

    #246392 Reply

    Riyad Kalla
    Member

    1) 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?

    #246396 Reply

    Fran_Varin
    Member

    1) 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.

    #246397 Reply

    Riyad Kalla
    Member

    1) 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?

    #246399 Reply

    Fran_Varin
    Member

    With 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…

    #246400 Reply

    Riyad Kalla
    Member

    Are you using the Jetty or Tomcat release of Geronimo? (Did you try the other version depending on which one you have?)

    #246401 Reply

    Riyad Kalla
    Member

    Wait 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.

    #246402 Reply

    Riyad Kalla
    Member

    Update: 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.

    #246409 Reply

    Fran_Varin
    Member

    Ok, 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.

    #246410 Reply

    Riyad Kalla
    Member

    Our 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.

    #246426 Reply

    Fran_Varin
    Member

    OK, 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.

    #246428 Reply

    Riyad Kalla
    Member

    OK, 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.

    #246431 Reply

    Fran_Varin
    Member

    I am using Tomcat…the one bundled with Geronimo…MyEclipse 4.0 and Eclipse 3.1.

    #246432 Reply

    Fran_Varin
    Member

    So, 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.

    #246434 Reply

    Fran_Varin
    Member

    BTW…I installed MyEclipse 4.1.1 and Eclipse 3.1.2 and deploy problem is resolved. Must have been addressed in the release change.

Viewing 15 posts - 1 through 15 (of 17 total)
Reply To: Deploy Application to Geronimo

You must be logged in to post in the forum log in