|
Re: Where are Java Class files deployed to JBoss 7? [message #1657539 is a reply to message #1657466] |
Sun, 08 March 2015 01:22 |
|
On 03/07/2015 05:35 PM, Al Koch wrote:
> When I manually deploy a .war to JBoss I place the file in a specific
> folder under the JBoss installation where it is detected by the server
> and deployed. (This is similar in concept to how I did this with
> Tomcat.) However, I have noticed that when I am running in Eclipse and
> Publish my files to the JBoss server that "everything works" but nothing
> is placed in that JBoss folder where I would manually place a .war.
>
> Can someone explain what Eclipse does to "deploy" a project to JBoss?
>
> Thank you.
This is really a question for the Eclipse WTP forum. However, I'll take
a stab.
When you are running within the IDE using a (Tomcat) Server you created
(in the Project Explorer view), Eclipse doesn't publish the WAR at all,
but creates the web application on the path:
workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
just as if the .war file were dropped into Tomcat's webapps folder.
I suppose it's probably the same for JBoss. Take a look to see if your
files aren't deployed on that path.
However, it's also possible NOT to use a Server from within the IDE in
which case Eclipse should be copying the WAR to wherever JBoss puts them
because that's what it does for Tomcat. If this is the case for you,
then you'll want to repost your question in the other forum.
I hope this gives you some help. Weekends are a little dead in the forums.
Best of luck.
|
|
|
|
Re: Where are Java Class files deployed to JBoss 7? [message #1662338 is a reply to message #1659301] |
Tue, 10 March 2015 01:29 |
|
On 03/08/2015 01:28 PM, Al Koch wrote:
> Hi Russell,
>
> Thank you for taking the time to respond on the weekend!
>
> I didn't find the deployed files at the path you suggested
> (workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0) but your
> answer gave me a hint of where to start looking. A file grep() located
> the deployed files at:
>
> metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_7.1_Runtime_Server1381534679241\deploy
>
>
> so thanks for your response.
>
> Now that I see where this is being placed it makes me wonder how JBoss
> knows that it's there. Do you know how JBoss is "directed" to start
> processing this location?
>
> Also, thanks for your suggestion about the WTP forum. I didn't realize
> that that would be the correct place to have posted this. I'll make a
> note of that for future use.
>
> Al
Makes perfect sense. (I've never run JBoss.)
How it knows is because JBoss is running under Eclipse and Eclipse has
told it a different (Tomcat webapp-equivalent), namely the "strange"
directory you found.
Best of luck!
|
|
|
|
Powered by
FUDForum. Page generated in 0.08263 seconds