|WAR file not exploded at org.eclipse.wst.server.core [message #629118]
||Mon, 27 September 2010 09:33
| No real name
Registered: September 2010
I created Dynamic Web Module (web1) and created Server project (Tomcat).
Now I have external WAR file that contains images and css that I want to use from web1.
So I decided to create another Dynamic Web Module (web2) and put the war file in this module. So when I will run Tomcat server I will see 2 web applications. and I can reference images on web2 from web1.
The problem is that the WAR file is not exploded in: .metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebap ps\web2
The folder looks like this:
So I can't reference to web2 files.
Is there a way to tell tomcat to explode the WAR file?
Maybe there is better solution, instead of creating Dynamic Web Module for the WAR file.
Thanks in advance
|Re: WAR file not exploded at org.eclipse.wst.server.core [message #630666 is a reply to message #630505]
||Mon, 04 October 2010 13:44
| Larry Isaacs
Registered: July 2009
On 10/3/2010 9:39 AM, firstname.lastname@example.org wrote:|
> Thanks for the answer,
> But the first solution will not work.
> I want the war file to be in my project directory under source control,
> where I can replace it from time to time.
> I want the war file to be exploded in org.eclipse.wst.server.core folder
> (where all server files exists, when I run tomcat from eclipse).
> I can extract the war manually and put it in org.eclipse.wst.server.core
> folder, and it will work, but I understand that when running tomcat from
> eclipse it should be automaticly.
WTP doesn't support the use case of treating a war file as if it were a
project. If you create a dynamic web project from the war, WTP can
deploy it for you. If not a dynamic web project, then you will have to
handle the deployment yourself. If auto-deployment is still enabled,
you could simply drop the war in the
"org.eclipse.wst.server.core/tmp?/webapps" folder and let Tomcat do its
Powered by FUDForum
. Page generated in 0.01732 seconds