Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Adding project natures for flexile project
Adding project natures for flexile project [message #116837] Wed, 06 July 2005 12:25 Go to next message
Eclipse UserFriend
Hi,
I have 2 eclipse projects and I wish to include a "library" project in a
"webapp" project and deploy to Tomcat. I am trying to follow the
instructions in the document at the following link:
http://www.eclipse.org/webtools/jst/components/j2ee/scenario s/flexible_project_builder_testplan.html

However, I cannot find out how to add the "Deployable Module Builder" and
"Local Dependency Resolver" builders to the project. Specifically the part
"Select 'Add' and navigate to find the Deployable Module Builder and
repeat for the Local Dependent Resolver." The only 2 options available are
'New...' and 'Import...' and there is no way to navigate to the
appropriate builders.

Cheers
Jason
Re: Adding project natures for flexile project [message #117025 is a reply to message #116837] Wed, 06 July 2005 17:34 Go to previous messageGo to next message
Eclipse UserFriend
I should also mention that I am using Eclipe 3.1, and wtp M5. thx
Re: Adding project natures for flexile project [message #117102 is a reply to message #116837] Wed, 06 July 2005 21:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jason,

In WTP 0.7M5, I believe you accomplish this by opening the Properties
dialog for the "webapp" project and select Java JAR Dependencies. Then
check the desired "library" projects and click OK.

Cheers,
Larry

Jason King wrote:
> Hi,
> I have 2 eclipse projects and I wish to include a "library" project in a
> "webapp" project and deploy to Tomcat. I am trying to follow the
> instructions in the document at the following link:
> http://www.eclipse.org/webtools/jst/components/j2ee/scenario s/flexible_project_builder_testplan.html
>
>
> However, I cannot find out how to add the "Deployable Module Builder"
> and "Local Dependency Resolver" builders to the project. Specifically
> the part "Select 'Add' and navigate to find the Deployable Module
> Builder and repeat for the Local Dependent Resolver." The only 2 options
> available are 'New...' and 'Import...' and there is no way to navigate
> to the appropriate builders.
>
> Cheers
> Jason
>
Re: Adding project natures for flexile project [message #117271 is a reply to message #117102] Thu, 07 July 2005 04:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi Larry, Thanks for this feedback.

When I bring up the "Java Jar Dependencies" option in the project
properties for the Dynamic Web Project, the window under "Select utility
projects to add as Web Library Projcets to the web module" is blank. i.e
There are no entries in the JAR/Module & Project area. The "Set Web
Library Project Dependency" option is checked and greyed out.

I've tried lots of combinations of settings to try to get my "util"
project to appear here. For example, adding the util project as a
dependent project and "exporting" the src folder. I've also tried manually
adding a .wtpmodules file to the util project and adding lines like the
following to it:

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId">
<wb-module deploy-name="Core.jar">
<wb-module module-type-id="jst.utility"/>
<wb-resource deploy-path="/" source-path="/searchBoostCore/src"/>
</wb-module>
</project-modules>

None seem to help. My test for success is classes from the util project
appear in the .deployables/myWebProject/WEB-INF/classes

I would be very grateful for further details on how to enable my util
project for inclusion in the web project (or adding the 2 natures needed
in the original link that I posted).

Thanks
Jason
Re: Adding project natures for flexile project [message #117386 is a reply to message #117271] Thu, 07 July 2005 08:51 Go to previous messageGo to next message
Eclipse UserFriend
If you create a new Java Project, does it appear in the JAR/Module list?

Note that success means that a jar, probably with the name of the Java
Project, will appear in ".deployables/myWebProject/WEB-INF/lib". I
believe only Java source from the Dynamic Web Project will appear under
".deployables/myWebProject/WEB-INF/classes".

Larry

Jason King wrote:
> Hi Larry, Thanks for this feedback.
> When I bring up the "Java Jar Dependencies" option in the project
> properties for the Dynamic Web Project, the window under "Select utility
> projects to add as Web Library Projcets to the web module" is blank.
> i.e There are no entries in the JAR/Module & Project area. The "Set Web
> Library Project Dependency" option is checked and greyed out.
>
> I've tried lots of combinations of settings to try to get my "util"
> project to appear here. For example, adding the util project as a
> dependent project and "exporting" the src folder. I've also tried
> manually adding a .wtpmodules file to the util project and adding lines
> like the following to it:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project-modules id="moduleCoreId">
> <wb-module deploy-name="Core.jar">
> <wb-module module-type-id="jst.utility"/>
> <wb-resource deploy-path="/" source-path="/searchBoostCore/src"/>
> </wb-module>
> </project-modules>
>
> None seem to help. My test for success is classes from the util project
> appear in the .deployables/myWebProject/WEB-INF/classes
>
> I would be very grateful for further details on how to enable my util
> project for inclusion in the web project (or adding the 2 natures needed
> in the original link that I posted).
>
> Thanks
> Jason
>
>
Re: Adding project natures for flexile project [message #117532 is a reply to message #117386] Thu, 07 July 2005 11:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Adding a new Java Project does not result in the Jar/Modules becoming
populated. In fact, if I select Project -> Properties -> Java JAR
Dependencies for the newly created project I get a dialog saying "The
currently displayed page contains invalid values." Selecting the
properties for the web project remains the same (empty).

Cheers
Jason
Re: Adding project natures... SOLUTION [message #117553 is a reply to message #117386] Thu, 07 July 2005 12:11 Go to previous message
Eclipse UserFriend
Hi Larry,

I have managed to get a solution to the problem by starting eclipse in a
new workspace. The util project appeared in the dialog the first time!

Perhaps this is a migration issue or perhaps I should have ran eclipse
-clean the first time I installed M5. I had M4 installed previously, and
although I performed a fresh installation of eclipse and the plugins, I
had not replaced the workspace (our team has a lot of projects and it
would have been a headache to ask them to delete everything at present).

However, this is a good step forward as we can migrate the workspaces
soon. Finally, thanks for you assistance and getting me to try a few
things. In the end, the solution was deceptively simple :-)

Regards and thanks
Jason
Previous Topic:HTML editor does not open
Next Topic:Embedded Tomcat via Generic Server Support
Goto Forum:
  


Current Time: Tue Apr 29 18:44:04 EDT 2025

Powered by FUDForum. Page generated in 0.08242 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top