Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » tomcat runtime classpath
tomcat runtime classpath [message #160981] Thu, 16 February 2006 07:43 Go to next message
Eclipse UserFriend
I use webtools to start a tomcat 5 server runtime.
Is there another way than copying the needed jars to the WEB-INF/lib directory to customize the server classpath runtime ?
In particular, I would expect the library used at compilation and added in my build path to be automatically deployed on runtime as server starts.
Another linked problem is that I do not manage to add any config files needed by the runtime as I add to put them in runtime classpath.
Did I miss something ?
Re: tomcat runtime classpath [message #161022 is a reply to message #160981] Thu, 16 February 2006 12:55 Go to previous messageGo to next message
Eclipse UserFriend
Be aware that:

adding jars to Java Build Path != adding jars to web module

If you add a jar to the build path, you are implying that the server
will supply access to that jar and that you only need to add it to the
build path so the project can build. If the server is not going to
supply access to this jar, then you need to add it to the web module in
your project so it will be treated as part of the web application. To
do this, you can put a copy of the jar in the project's
<WebContent>/WEB-INF/lib folder or use the J2EE Module Dependencies
Project Properties page. Note that when using the later approach, Add
External Jars and Variable... buttons should only be used in recent WTP
1.0.1 builds. In WTP 1.0, the jars added in this fashion would not be
included in the published web application. In early WTP 1.0.1 releases,
an error would occur when the project was published to the server making
it impossible to add the project to a server.

Cheers,
Larry

ffred wrote:
> I use webtools to start a tomcat 5 server runtime.
> Is there another way than copying the needed jars to the WEB-INF/lib directory to customize the server classpath runtime ?
> In particular, I would expect the library used at compilation and added in my build path to be automatically deployed on runtime as server starts.
> Another linked problem is that I do not manage to add any config files needed by the runtime as I add to put them in runtime classpath.
> Did I miss something ?
Re: tomcat runtime classpath [message #161047 is a reply to message #161022] Thu, 16 February 2006 19:37 Go to previous message
Eclipse UserFriend
Larry Isaacs wrote:
> Be aware that:
>
> Add External Jars and Variable... buttons should only be used in
> recent WTP 1.0.1 builds. In WTP 1.0, the jars added in this fashion
> would not be included in the published web application. In early WTP
> 1.0.1 releases, an error would occur when the project was published to
> the server making it impossible to add the project to a server.

Be aware also that even with the latest M-build, the "Add Jars..."
option will only deploy correctly if your projects are physically on the
"C:" drive (I only tested on windows). Or maybe its whatever drive
eclipse was started from. But in either case the actual location of the
jars is not being resolved correctly.
Previous Topic:WTP 1.0.2 and entity beans
Next Topic:How to change Context Root ?
Goto Forum:
  


Current Time: Sat Mar 15 17:45:58 EDT 2025

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

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

Back to the top