facebook

no WEB-INF/lib deployment

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Hi!

    I am having an annoying problem: the jars are not deployed into the WEB-INF/lib directory of my servlet container. The directory isn’t even created.

    Details:

    Env:
    MyEclipse 4.0.2GA
    Eclipse 3.1.1
    Java 1.5.0_05
    Tomcat 5.5.12

    Project structure:
    – the web project contains only jsp files and depends on a number of other projects (their build is correctly triggered by a build on this project)
    – the web project defines a set of jars to be used
    – deployment strategies:
    i) Use Smart deployment for dependent Java projects
    ii) Jars on Web Project build-path

    On web project Builders I have listed the following builders:
    WebClasspathBuilder
    Java Builder
    J2EEProjectValidator
    DeploymentDescriptorValidator
    Validation
    Structured Document and Model Builder
    DeploymentBuilder

    As you can imagine this is a _critical stopper_.

    Please advice as soon as possible. Thanks in advance

    ./alex

    .w( the_mindstorm )p.

    #239792

    Riyad Kalla
    Member

    Alex,
    To clarify you have a single Web Project, that relies on many Java Projects and you have turned on Smart Deployment. When you open the Deployment Tool, and click Deploy for your 1 Web Project, and wait for it to finish THEN select it and click Browse, and drill down to the WEB-INF directory, there is no /lib directory OR if there is one, it is empty?

    Is this correct?

    Do you have any JARs in the web project under the WEB-INF/lib directory to start off with? Do tey atleast get deployed?

    Can you check your log file (<workspace dir>\.metadata\.log) for exceptions, near the bottom, and post them here for us to see.

    #239811

    Yep, the description of the behavior is correct.

    The web project does not have any jars in its WEB-INF/lib. Do you suggest that if I place some fake file there the things will start working?

    The log file is empty (otherwise I should have included the messages ;-)).

    hope to find out soon from you

    ./alex

    .w( the_mindstorm )p.

    #239822

    Riyad Kalla
    Member

    The web project does not have any jars in its WEB-INF/lib. Do you suggest that if I place some fake file there the things will start working?

    Let’s try that just for kicks, do you not even have a lib dir? That might be why it’s dying… first try and create an empty one, then try and put some dummy jar in there.

    #239839

    To deblock myself, I have spent a couple of hours writting some complex Ant script to trigger the deploy (configured as a builder).

    I will try to recreate the scenario later. Please keep an eye open on this issue and if anything new please update. I will get back to you as soon as I will be able to reproduce the problem.

    ./alex

    .w( the_mindstorm )p.

    #242900

    tschlenker
    Member

    I am having a similar problem trying to deploy my web project to a JBoss server.
    My project has several build-path entries referenced from other dependent projects. I have changed the deployment settings to include everything (checkbox on all options) and my WEB-INF/lib exists in the project.
    After deploying the project the WEB-INF/lib is empty.

    Is there something I am missing?

    Software versions:
    MyEclipse 4.0.3
    Eclipse 3.1.0

    Thanks,
    Tilman

    #242906

    Riyad Kalla
    Member

    Tilman,
    Are the dependencies all Java projects, or other kinds of projects?

    #242982

    I have the same problem.

    project 1 : project has multiple source folders and also rely on jar files that are referenced
    by variable extension from my local maven repository.

    project 2: requires classes from within this project, builds fine this way. At runtime though
    my taglibs that I created in project 1 cannot be resolved by project1.

    result tomcat errors, this is a build structure I’ve been working on for a week so it looks
    like a pain to re-organise.

    If there are any files that you want me to send please contact me at my listed email address
    and I will be happy to send them to you ( up to and including my entire workspace ).

    #243001

    Riyad Kalla
    Member

    What types are Project 1 and 2?

    #243344

    tschlenker
    Member

    How do I find out what type of project the projects are?
    This is what I believe the setup is:
    – The project itself is a MyEclipse WebProject
    – One project it depends on is a WebProject as well (marked with S)
    – Four are Java projects (marked with J)
    – One is a Java project but does not contain any source folders (used to jars)

    Do you need the configuration of the Builders?

    #243439

    Scott Anderson
    Participant

    Tillman,

    You can determine the project type by the icon (globe = web, J = java, S=Spring, bean=EJB, jar=Enterprise). For Spring projects, right-clicking and selecting Properties and seeing if MyEclipse-Web is listed will determine if it’s also a web project.

    – One project it depends on is a WebProject as well (marked with S)

    One web project depending on another one is not supported because it would lead us down a path to determining merge policies for common artifacts (web.xml, etc). Dependent project have to be plain Java projects for the deployer to pick them up.

    Four are Java projects (marked with J)

    Those should be jarred and deployed if configured. Can you please review the Advanced section of Working with Web Projects to be sure you’ve configured your projects as described?

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: no WEB-INF/lib deployment

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