Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » deploy to tomcat failure
deploy to tomcat failure [message #222906] Tue, 21 October 2008 14:59 Go to next message
Dean Hiller is currently offline Dean Hiller
Messages: 46
Registered: July 2009
Member
I have a project in which the diretory structure was determined by the
buildtemplate project on sourceforge(http://buildtemplate.sourceforge.net)

The directory structure it uses works for war files, jars, and osgi
bundles and is as such for my war file
input/javasrc
input/libexclude - jars that will not be deployed like servlet-api.jar,
junit.jar
input/libinclude - jars needed for deployment like hibernate.jar or
whatever libs are not in common/lib of your tomcat
input/webroot - all the jsps or xhtml, css, and graphics for the web
app(if is a web app).

Now, when I go to deploy to tomcat, I really want to do something like
MyEclipse supports where all jars are deployed to WEB-INF/lib except for
the libexclude jars. Is there a way to do this with WTP or do I need to
stick with MyEclipse still going forward?

I finally figured out that WTP is copying input/webroot/WEB-INF/lib to the
deployment directory, but this sort of violates our company directory
structure which is the same on every project(due to buildtemplate) and it
is the same regardless of building a jar or a war file.
thanks,
Dean
Re: deploy to tomcat failure [message #222931 is a reply to message #222906] Wed, 22 October 2008 09:01 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
On the Libraries tab of the Java Build Path page of the project's
Properties dialog, how are the jars from libexclude and libinclude
listed. Are their jars individually listed or is there some a library
shown for these folders that contains their jars?

Cheers,
Larry

Dean Hiller wrote:
> I have a project in which the diretory structure was determined by the
> buildtemplate project on sourceforge(http://buildtemplate.sourceforge.net)
>
> The directory structure it uses works for war files, jars, and osgi
> bundles and is as such for my war file
> input/javasrc
> input/libexclude - jars that will not be deployed like servlet-api.jar,
> junit.jar
> input/libinclude - jars needed for deployment like hibernate.jar or
> whatever libs are not in common/lib of your tomcat
> input/webroot - all the jsps or xhtml, css, and graphics for the web
> app(if is a web app).
>
> Now, when I go to deploy to tomcat, I really want to do something like
> MyEclipse supports where all jars are deployed to WEB-INF/lib except for
> the libexclude jars. Is there a way to do this with WTP or do I need to
> stick with MyEclipse still going forward?
>
> I finally figured out that WTP is copying input/webroot/WEB-INF/lib to
> the deployment directory, but this sort of violates our company
> directory structure which is the same on every project(due to
> buildtemplate) and it is the same regardless of building a jar or a war
> file.
> thanks,
> Dean
>
>
Previous Topic:How to add new features MANUALLY?
Next Topic:How to avoid to get IllegalArgumentException when rename a non-j2ee project
Goto Forum:
  


Current Time: Thu Aug 21 20:02:26 EDT 2014

Powered by FUDForum. Page generated in 0.02738 seconds