WTP newbie question [message #207637] |
Tue, 29 January 2008 08:03  |
Eclipse User |
|
|
|
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 08:22  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.26545 seconds