Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Where are Java Class files deployed to JBoss 7?(Where are Java Class files deployed to JBoss 7?)
Where are Java Class files deployed to JBoss 7? [message #1657466] Sun, 08 March 2015 00:35 Go to next message
Al Koch is currently offline Al KochFriend
Messages: 62
Registered: August 2011
Member
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.

Re: Where are Java Class files deployed to JBoss 7? [message #1657539 is a reply to message #1657466] Sun, 08 March 2015 01:22 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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 #1659301 is a reply to message #1657466] Sun, 08 March 2015 19:28 Go to previous messageGo to next message
Al Koch is currently offline Al KochFriend
Messages: 62
Registered: August 2011
Member
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
Re: Where are Java Class files deployed to JBoss 7? [message #1662338 is a reply to message #1659301] Tue, 10 March 2015 01:29 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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!
Re: Where are Java Class files deployed to JBoss 7? [message #1662702 is a reply to message #1657466] Tue, 10 March 2015 05:09 Go to previous message
Al Koch is currently offline Al KochFriend
Messages: 62
Registered: August 2011
Member
Hi Russell,

Thanks for all your help in answering these questions!

Al
Previous Topic:Eclipse Error: Indirect reference from .class
Next Topic:The Eclipse Tabbed Properties View
Goto Forum:
  


Current Time: Sat Apr 20 15:30:30 GMT 2024

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

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

Back to the top