Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRun on Server isn't copying entire web application
https://www.eclipse.org/forums/index.php/mv/msg/541896/1128265/#msg_1128265
I am having a problem with the "run on server" feature in Eclipse WTP.
Previously, I'd handle "deployment" by placing a context.xml file under the org.eclipse.wst.server.core/tmp0/conf/catalina/localhost/ and have the docBase point to the directory that contained the results of the "prepare-package" Maven build phase.
I am aiming to have a more simple (common) work flow and I decided to try using the "run on server" feature. What I am seeing confuses me. The web application is copied into the
org.eclipse.wst.server.core/tmp0/wtpwebapps directory. However it is missing two directories.
I'm confused how two directories would be omitted? So while trying to narrow down the issue, I started to wonder how this all works. Does the "run on server" feature:
Copy the web application from the build output directory?
Copy the web application from the WAR?
Both the build output directory and the WAR deploy to Tomcat correctly so I know the build is fine. I did notice that "run on server" copies over a META-INF/maven directory that would appear to only be available from the assembled WAR.
]]>Tim Astle2013-10-07T14:12:26-00:00Re: Run on Server isn't copying entire web application
https://www.eclipse.org/forums/index.php/mv/msg/541896/1129503/#msg_1129503
> Hi all,
>
> I am having a problem with the "run on server" feature in Eclipse WTP.
>
> Previously, I'd handle "deployment" by placing a context.xml file under
> the org.eclipse.wst.server.core/tmp0/conf/catalina/localhost/ and have
> the docBase point to the directory that contained the results of the
> "prepare-package" Maven build phase.
>
> I am aiming to have a more simple (common) work flow and I decided to
> try using the "run on server" feature. What I am seeing confuses me.
> The web application is copied into the
> org.eclipse.wst.server.core/tmp0/wtpwebapps directory. However it is
> missing two directories.
>
> I'm confused how two directories would be omitted? So while trying to
> narrow down the issue, I started to wonder how this all works. Does the
> "run on server" feature:
>
>
> Copy the web application from the build output directory?
> Copy the web application from the WAR?
>
>
> Both the build output directory and the WAR deploy to Tomcat correctly
> so I know the build is fine. I did notice that "run on server" copies
> over a META-INF/maven directory that would appear to only be available
> from the assembled WAR.
>
> Can someone provide any insight to help me out?
>
> Thanks in advance,
>
> Tim
>
> Environment:
>
>
> Java 7 u40
> Maven 3.1.0
> Tomcat 7.0.42
> Eclipse Kepler (eclipse-jee-kepler-R-win32-x86_64)
>
> M2E 1.4
> WTP 3.5
>
>
Under the project properties dialog, examine the Deployment Assembly
page. This is where WTP defines what to include in the web application
for the project. I'm not that familiar with the Maven support in
Eclipse, so I don't know how well these are supposed to stay in sync
automatically, if at all. It sounds like a couple of folders need to be
added in the Deployment Assembly page so they will be included.
Cheers,
Larry]]>Larry Isaacs2013-10-08T17:54:19-00:00Re: Run on Server isn't copying entire web application
https://www.eclipse.org/forums/index.php/mv/msg/541896/1129546/#msg_1129546
Now I just need to figure out how those propagate from Maven to Eclipse. Probably m2e related. If anyone has any suggestions in regards to that, I'd be very thankful, else I might have to hit the m2e mailing lists.]]>Tim Astle2013-10-08T18:56:22-00:00