facebook

Deploy JAR file to Tomcat [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #220068 Reply

    jdurrant
    Member

    Hi,
    I’m new to MyEclipse so if I’m postoing in the wrong please – sorry!

    I’m trying to deploy to Tomcat 4, but I find some of the JAR in WEB-INF/lib are deployed, and some are not. (I know they are in the project, as everything complied OK).

    Could some please let me know how to do this without using “copy&paste”.

    Many thanks!

    #220076 Reply

    Scott Anderson
    Participant

    (I know they are in the project, as everything complied OK).

    Actually, it implies that the jars are somewhere on the classpath, not that they’re in WEB-INF/lib. I think what you need to know is explained in our Web Development Quickstart that is contained in our Documentation section, here: http://www.myeclipseide.com/ContentExpress-display-ceid-67.html

    #220118 Reply

    jdurrant
    Member

    Thanks for your reply Scott.

    Unfortunately, I can’t find the relevant article in the link you provided. I’ve also re-read my original post; you did well to make any sense of it! 😆

    Let me elaborate:

    The JAR files are not in the classpath – I have created a “User Library” (Window -> Preferences and the following in the popup: Java -> Build Path -> User Libraries and “New” on the menu. I then followed the wizard). This allows me to see the user library I created in the “Package Explorer”, and my code compiles. (Which it doesn’t if I remove this).

    I have also changed the “Web Projects Deployment” (Window -> Preferences and the following in the popup: MyEclipse -> J2EE Project -> Web Project Deployment” so that “Always deploy external libraries and place in the ‘lib’ directory when deploying” is selected.

    However, the problem remains, that when I deploy to Tomcat, the JARS in the “User Library” do not get deployed to the WEB-INF/lib directory.

    Help!

    #220123 Reply

    Riyad Kalla
    Member

    James,
    The setting you configured is for external JAR files,not User Libraries. Deployed of User Libraries won’t be supported until 3.8.3, which is in beta testing now; so hang tight for another couple of weeks and then you’ll be able to do what you are trying to do right now and it will just magically work 😉

    #220125 Reply

    jdurrant
    Member

    Thanks Riyad.

    I’ve moved the JARS from my User Library, and instead included them as externals JARS. Everything now is now as it should be!

    Thanks again for your help. 😀

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Deploy JAR file to Tomcat [Closed]

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