Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Issues with java and web source directories for web module config
Issues with java and web source directories for web module config [message #115221] Fri, 01 July 2005 11:40 Go to next message
Eclipse UserFriend
I just installed Eclipse 3.1 and Web Tools M5. I have an existing Tomcat
web module with the following directory structure.

Current : Root directory
Current/src/java : Java source directory
Current/src/web : Web source directory
Current/src/web/WEB-INF/classes : Java compile target directory
Current/src/web/WEB-INF/lib : lib directory

How do I set up a dynamic web application for Tomcat 5.0 using webtools in
Eclipse to use the above directory structure?

When I try to create a dynamic web application using the wizard, it
creates JavaSource and WebSource directories. And it does not point to the
directory structure above. Is there any way to change the JavaSource
directory and the WebSource directory to point to the correct ones I need ?

Any help would be highly appreciated!!!!
Re: Issues with java and web source directories for web module config [message #115728 is a reply to message #115221] Mon, 04 July 2005 07:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi Manoj,

Have you found the solution to your problem.
If yes, please share it with the rest of us.
I think it you have to make changes in .wtpmodues, .classpath and .project
files(I didnt got much time to explore)

Thanks,
Vivek
"Manoj P" <pallikkattil@yahoo.com> wrote in message
news:d1558b6abdb057cb1d3e2121db71b6f2$1@www.eclipse.org...
>I just installed Eclipse 3.1 and Web Tools M5. I have an existing Tomcat
>web module with the following directory structure.
>
> Current : Root directory
> Current/src/java : Java source directory
> Current/src/web : Web source directory
> Current/src/web/WEB-INF/classes : Java compile target directory
> Current/src/web/WEB-INF/lib : lib directory
>
> How do I set up a dynamic web application for Tomcat 5.0 using webtools in
> Eclipse to use the above directory structure?
>
> When I try to create a dynamic web application using the wizard, it
> creates JavaSource and WebSource directories. And it does not point to the
> directory structure above. Is there any way to change the JavaSource
> directory and the WebSource directory to point to the correct ones I need
> ?
>
> Any help would be highly appreciated!!!!
>
>
Re: Issues with java and web source directories for web module config [message #116508 is a reply to message #115728] Tue, 05 July 2005 21:27 Go to previous messageGo to next message
Eclipse UserFriend
Vivek Chauhan wrote:
> Hi Manoj,
>
> Have you found the solution to your problem.
> If yes, please share it with the rest of us.
> I think it you have to make changes in .wtpmodues, .classpath and .project
> files(I didnt got much time to explore)
>
> Thanks,
> Vivek
> "Manoj P" <pallikkattil@yahoo.com> wrote in message
> news:d1558b6abdb057cb1d3e2121db71b6f2$1@www.eclipse.org...
>
>>I just installed Eclipse 3.1 and Web Tools M5. I have an existing Tomcat
>>web module with the following directory structure.
>>
>>Current : Root directory
>>Current/src/java : Java source directory
>>Current/src/web : Web source directory
>>Current/src/web/WEB-INF/classes : Java compile target directory
>>Current/src/web/WEB-INF/lib : lib directory
>>
>>How do I set up a dynamic web application for Tomcat 5.0 using webtools in
>>Eclipse to use the above directory structure?
>>
>>When I try to create a dynamic web application using the wizard, it
>>creates JavaSource and WebSource directories. And it does not point to the
>>directory structure above. Is there any way to change the JavaSource
>>directory and the WebSource directory to point to the correct ones I need
>>?
>>
>>Any help would be highly appreciated!!!!

Someone should probably just open a bug for this issue, there does not
appear to be a good solution beyond hacking the config files.

- Rob Sanheim
Re: Issues with java and web source directories for web module config [message #116515 is a reply to message #115728] Tue, 05 July 2005 21:33 Go to previous messageGo to next message
Eclipse UserFriend
Vivek Chauhan wrote:
> Hi Manoj,
>
> Have you found the solution to your problem.
> If yes, please share it with the rest of us.
> I think it you have to make changes in .wtpmodues, .classpath and .project
> files(I didnt got much time to explore)
>
> Thanks,
> Vivek
> "Manoj P" <pallikkattil@yahoo.com> wrote in message
> news:d1558b6abdb057cb1d3e2121db71b6f2$1@www.eclipse.org...
>
>>I just installed Eclipse 3.1 and Web Tools M5. I have an existing Tomcat
>>web module with the following directory structure.
>>
>>Current : Root directory
>>Current/src/java : Java source directory
>>Current/src/web : Web source directory
>>Current/src/web/WEB-INF/classes : Java compile target directory
>>Current/src/web/WEB-INF/lib : lib directory
>>
>>How do I set up a dynamic web application for Tomcat 5.0 using webtools in
>>Eclipse to use the above directory structure?
>>
>>When I try to create a dynamic web application using the wizard, it
>>creates JavaSource and WebSource directories. And it does not point to the
>>directory structure above. Is there any way to change the JavaSource
>>directory and the WebSource directory to point to the correct ones I need
>>?
>>
>>Any help would be highly appreciated!!!!

Someone should probably just open a bug for this issue, there does not
appear to be a good solution beyond hacking the config files.

- Rob Sanheim
Re: Issues with java and web source directories for web module config [message #116596 is a reply to message #116508] Wed, 06 July 2005 07:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.JanSC.de

I've got a quite similar problem. I'm testing Eclipse 3.1 with WTP on
Linux and Windows XP. I've installed exactly the same features + plugins.

On Windows it is working without problems (so far). But if I want to
create a new servlet on Linux it demands an absolute path:

"Source folder path must be absolute."

Could this and those other "Issues" be a platform dependent problem?
Maybe the Linux binaries are mixed up with Windows binaries.
Re: Issues with java and web source directories for web module config [message #117127 is a reply to message #115728] Wed, 06 July 2005 22:35 Go to previous messageGo to next message
Eclipse UserFriend
I tried modifying the config file. It did not resolve the issue. I started
getting some other issues with Java build path. There should be a UI
support to change the web and java source directories for web apps. Or the
new web app wizard should allow for customization of these directories.
Re: Issues with java and web source directories for web module config [message #117166 is a reply to message #117127] Thu, 07 July 2005 03:01 Go to previous messageGo to next message
Eclipse UserFriend
Manoj P wrote:
> I tried modifying the config file. It did not resolve the issue. I
> started getting some other issues with Java build path. There should be
> a UI support to change the web and java source directories for web apps.
> Or the new web app wizard should allow for customization of these
> directories.
>


Agreed 100%. I opened a new bug for this type of thing with a detailed
description - go vote for it so it gets into WTP soon:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=102981

- Rob Sanheim
Re: Issues with java and web source directories for web module config [message #117192 is a reply to message #117127] Thu, 07 July 2005 03:36 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

changing the java src directory to
java/src
works for me, by
removing the WTP generated JavaSource directory from the build path
(project-properties-build path)
adding the java/src directory
be careful to set the output dir to .deployables/../WEB-INF/classes
additionally change
.wtpmodules
set <wb-resources source-path> to /src/java
I had to do this - otherwise the Servlet creation wizard would not work

I have not tried to change the WebContent dir though...

HTH,

michael
Re: Issues with java and web source directories for web module config [message #117350 is a reply to message #117166] Thu, 07 July 2005 07:56 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I also solved the problem in the same way by changing the config files and
adding the Lib files.

Also hope that this bug is removed by the time next Milestone is released,
but working with even this WTP is much better than working without it..

Voted for this bug ;)

Cheers..
Vivek Chauhan

"Rob Sanheim" <rsanheim@gmail.com> wrote in message
news:daik09$hni$1@news.eclipse.org...
> Manoj P wrote:
>> I tried modifying the config file. It did not resolve the issue. I
>> started getting some other issues with Java build path. There should be a
>> UI support to change the web and java source directories for web apps. Or
>> the new web app wizard should allow for customization of these
>> directories.
>>
>
>
> Agreed 100%. I opened a new bug for this type of thing with a detailed
> description - go vote for it so it gets into WTP soon:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=102981
>
> - Rob Sanheim
>
Re: Issues with java and web source directories for web module config [message #117543 is a reply to message #117166] Thu, 07 July 2005 12:03 Go to previous messageGo to next message
Eclipse UserFriend
Thanks a lot guys! I voted for the bug!!!
Re: Issues with java and web source directories for web module config [message #121374 is a reply to message #117350] Sat, 16 July 2005 00:41 Go to previous message
Eclipse UserFriend
Originally posted by: rwallace.thewallacepack.net

Vivek Chauhan wrote:
> Hi,
>
> I also solved the problem in the same way by changing the config files and
> adding the Lib files.
>

How did you add the lib files? Do you mean external libraries being
included in the webapp? I mean, I'm using maven so being able to point
the web app libraries at the local maven repo would be awesome.

Rich

> Also hope that this bug is removed by the time next Milestone is released,
> but working with even this WTP is much better than working without it..
>
> Voted for this bug ;)
>
> Cheers..
> Vivek Chauhan
>
> "Rob Sanheim" <rsanheim@gmail.com> wrote in message
> news:daik09$hni$1@news.eclipse.org...
>
>>Manoj P wrote:
>>
>>>I tried modifying the config file. It did not resolve the issue. I
>>>started getting some other issues with Java build path. There should be a
>>>UI support to change the web and java source directories for web apps. Or
>>>the new web app wizard should allow for customization of these
>>>directories.
>>>
>>
>>
>>Agreed 100%. I opened a new bug for this type of thing with a detailed
>>description - go vote for it so it gets into WTP soon:
>>
>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=102981
>>
>>- Rob Sanheim
>>
>
>
>
Previous Topic:Web app libs
Next Topic:JSP validation problem
Goto Forum:
  


Current Time: Mon May 12 09:11:24 EDT 2025

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

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

Back to the top