For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 10 replies, 5 voices, and was last updated 19 years, 8 months ago by
Scott Anderson.
-
AuthorPosts
-
Alexandru PopescuMemberHi!
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.12Project 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-pathOn web project Builders I have listed the following builders:
WebClasspathBuilder
Java Builder
J2EEProjectValidator
DeploymentDescriptorValidator
Validation
Structured Document and Model Builder
DeploymentBuilderAs you can imagine this is a _critical stopper_.
Please advice as soon as possible. Thanks in advance
./alex
—
.w( the_mindstorm )p.–
October 20, 2005 at 8:29 am #239792
Riyad KallaMemberAlex,
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.
October 20, 2005 at 10:46 am #239811
Alexandru PopescuMemberYep, 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.October 20, 2005 at 12:16 pm #239822
Riyad KallaMemberThe 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.
October 20, 2005 at 4:41 pm #239839
Alexandru PopescuMemberTo 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.December 9, 2005 at 4:52 am #242900
tschlenkerMemberI 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.0Thanks,
TilmanDecember 9, 2005 at 8:11 am #242906
Riyad KallaMemberTilman,
Are the dependencies all Java projects, or other kinds of projects?December 12, 2005 at 4:36 am #242982
revoltingdigitsMemberI 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 ).December 12, 2005 at 11:49 am #243001
Riyad KallaMemberWhat types are Project 1 and 2?
December 19, 2005 at 9:09 am #243344
tschlenkerMemberHow 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?
December 20, 2005 at 9:19 am #243439
Scott AndersonParticipantTillman,
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?
-
AuthorPosts