Deployment issue using JBoss

I am using JBoss 4.0.4. I have a webapp that due to some issues, I must
package as a .ear. My project has an app module and a web module. This
works correctly, but when I compile code in the web module, I cannot see
the changes until I reload the application. Is there some way to make
it work like it does with a .war? With a .war, I just compile and let
it get swapped in.

9 comments

I'm not quite sure what you're talking about. In the case of the standalone war, do you debug and use HotSwap to apply changes? Or what do you mean by 'let it get swapped in'?

0

When I use a .war, I compile a class and use HotSwap to update the
compiled class. When I do this with a .ear, I do not see the change.
The only thing that I have figured out to do is to undeploy/deploy the
whole app. I am thinking this is related to the different class loaders
that JBoss uses.

Martin Fuhrer wrote:

I'm not quite sure what you're talking about. In the case of the standalone war, do you debug and use HotSwap to apply changes? Or what do you mean by 'let it get swapped in'?

0

That's quite strange. I can HotSwap here inside an app without any problem.

0

Does anyone have any input on this?

Norris Shelton wrote:

When I use a .war, I compile a class and use HotSwap to update the
compiled class. When I do this with a .ear, I do not see the change.
The only thing that I have figured out to do is to undeploy/deploy the
whole app. I am thinking this is related to the different class
loaders that JBoss uses.

>

Martin Fuhrer wrote:

>> I'm not quite sure what you're talking about. In the case of the
>> standalone war, do you debug and use HotSwap to apply changes? Or
>> what do you mean by 'let it get swapped in'?
>>

0

My previous answer didn't show up in the newsgroup, so here's what I've
written:

"That's quite strange. I can HotSwap here inside an app without any
problem."

I know that it's not a very helpful answer, but I simply can't imagine
why HotSwap shouldn't work.

Norris Shelton wrote:

Does anyone have any input on this?

Norris Shelton wrote:

>> When I use a .war, I compile a class and use HotSwap to update the
>> compiled class. When I do this with a .ear, I do not see the change.
>> The only thing that I have figured out to do is to undeploy/deploy the
>> whole app. I am thinking this is related to the different class
>> loaders that JBoss uses.
>>
>> Martin Fuhrer wrote:
>>> I'm not quite sure what you're talking about. In the case of the
>>> standalone war, do you debug and use HotSwap to apply changes? Or
>>> what do you mean by 'let it get swapped in'?
>>>

--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com

0

I used to have the WAR set-up for exploded and the EAR set-up for
exploded. I unset the WAR and only have the EAR set for exploded. That
produces a full exploded EAR (WAR contents also exploded). This seems
to have fixed most of my problems, but now when I right click on a .jsp
to package it, it does not have the option to package. I have to build
project to get it there.

Am I missing something?



Martin Fuhrer wrote:

My previous answer didn't show up in the newsgroup, so here's what
I've written:

>

"That's quite strange. I can HotSwap here inside an app without any
problem."

>

I know that it's not a very helpful answer, but I simply can't imagine
why HotSwap shouldn't work.

>

Norris Shelton wrote:

>> Does anyone have any input on this?
>>
>> Norris Shelton wrote:
>>> When I use a .war, I compile a class and use HotSwap to update the
>>> compiled class. When I do this with a .ear, I do not see the
>>> change. The only thing that I have figured out to do is to
>>> undeploy/deploy the whole app. I am thinking this is related to the
>>> different class loaders that JBoss uses.
>>>
>>> Martin Fuhrer wrote:
>>>> I'm not quite sure what you're talking about. In the case of the
>>>> standalone war, do you debug and use HotSwap to apply changes? Or
>>>> what do you mean by 'let it get swapped in'?
>>>>
>

0

Any comment on why you can't package a single file when working in an
exploded .ear?

Norris Shelton wrote:

I used to have the WAR set-up for exploded and the EAR set-up for
exploded. I unset the WAR and only have the EAR set for exploded.
That produces a full exploded EAR (WAR contents also exploded). This
seems to have fixed most of my problems, but now when I right click on
a .jsp to package it, it does not have the option to package. I have
to build project to get it there.
Am I missing something?

>
>
>

Martin Fuhrer wrote:

>> My previous answer didn't show up in the newsgroup, so here's what
>> I've written:
>>
>> "That's quite strange. I can HotSwap here inside an app without any
>> problem."
>>
>> I know that it's not a very helpful answer, but I simply can't
>> imagine why HotSwap shouldn't work.
>>
>> Norris Shelton wrote:
>>> Does anyone have any input on this?
>>>
>>> Norris Shelton wrote:
>>>> When I use a .war, I compile a class and use HotSwap to update the
>>>> compiled class. When I do this with a .ear, I do not see the
>>>> change. The only thing that I have figured out to do is to
>>>> undeploy/deploy the whole app. I am thinking this is related to
>>>> the different class loaders that JBoss uses.
>>>>
>>>> Martin Fuhrer wrote:
>>>>> I'm not quite sure what you're talking about. In the case of the
>>>>> standalone war, do you debug and use HotSwap to apply changes? Or
>>>>> what do you mean by 'let it get swapped in'?
>>>>>
>>

0

Can't comment on this - that's core IDEA business...

0

Hello Norris,

Looks like a bug. Please file a Jira request.

Any comment on why you can't package a single file when working in an
exploded .ear?

Norris Shelton wrote:

>> I used to have the WAR set-up for exploded and the EAR set-up for
>> exploded. I unset the WAR and only have the EAR set for exploded.
>> That produces a full exploded EAR (WAR contents also exploded). This
>> seems to have fixed most of my problems, but now when I right click
>> on
>> a .jsp to package it, it does not have the option to package. I
>> have
>> to build project to get it there.
>> Am I missing something?
>> Martin Fuhrer wrote:
>>
>>> My previous answer didn't show up in the newsgroup, so here's what
>>> I've written:
>>>
>>> "That's quite strange. I can HotSwap here inside an app without any
>>> problem."
>>>
>>> I know that it's not a very helpful answer, but I simply can't
>>> imagine why HotSwap shouldn't work.
>>>
>>> Norris Shelton wrote:
>>>
>>>> Does anyone have any input on this?
>>>>
>>>> Norris Shelton wrote:
>>>>
>>>>> When I use a .war, I compile a class and use HotSwap to update the
>>>>> compiled class. When I do this with a .ear, I do not see the
>>>>> change. The only thing that I have figured out to do is to
>>>>> undeploy/deploy the whole app. I am thinking this is related to
>>>>> the different class loaders that JBoss uses.
>>>>>
>>>>> Martin Fuhrer wrote:
>>>>>
>>>>>> I'm not quite sure what you're talking about. In the case of the
>>>>>> standalone war, do you debug and use HotSwap to apply changes? Or
>>>>>> what do you mean by 'let it get swapped in'?
>>>>>>


0

Please sign in to leave a comment.