Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » WTP newbie question
WTP newbie question [message #207637] Tue, 29 January 2008 13:03 Go to next message
frank b is currently offline frank b
Messages: 39
Registered: July 2009
Member
Hello,

I try to use WTP to develop a Dynamic Web Project with Eclipse 3.3.1.1
M20071023-1652 (Tomcat server is 4.136-LE-jdk14). I've succeeded in
writing several jsp that are located in the WebContent folder (java EE
perspective).

The problem is when I want to add externals libraries using the "build
path" context menu from the project, or my own classes in the "Jav
Resources: src" directory.

Tomcat returns an error when it tries to compile the jsp that calls
these resources :

"Please remove or make sure it appears in the correct subdirectory of
the classpath",

because of the import clause in the header of the jsp file.

I do know that Tomcat is looking for these resources in the wrong
directory or that I've not properly created or imported my resources in
the project, but I don't find a the solution.

thanks a lot,
frank
Re: WTP newbie question [message #207645 is a reply to message #207637] Tue, 29 January 2008 13:22 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
frank wrote:
> Hello,
>
> I try to use WTP to develop a Dynamic Web Project with Eclipse 3.3.1.1
> M20071023-1652 (Tomcat server is 4.136-LE-jdk14). I've succeeded in
> writing several jsp that are located in the WebContent folder (java EE
> perspective).
>
> The problem is when I want to add externals libraries using the "build
> path" context menu from the project, or my own classes in the "Jav
> Resources: src" directory.
>
> Tomcat returns an error when it tries to compile the jsp that calls
> these resources :
>
> "Please remove or make sure it appears in the correct subdirectory of
> the classpath",
>
> because of the import clause in the header of the jsp file.
>
> I do know that Tomcat is looking for these resources in the wrong
> directory or that I've not properly created or imported my resources in
> the project, but I don't find a the solution.
>
> thanks a lot,
> frank

Adding a jar to the *build* path doesn't by itself add the jar to the
project's module for use at runtime. Go to the J2EE Module Dependencies
page in the project's Properties dialog and check that jar to include it
in the module. Note that if you use the J2EE Module Dependencies page
first to add the jar, it will be added to the build path as well as
included in the module in one step.

Cheers,
Larry
Previous Topic:EMF ecore and genmodel for the jee-models?
Next Topic:Batch Validation and "clean" action
Goto Forum:
  


Current Time: Sun Oct 26 08:41:16 GMT 2014

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

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