[jbosstools-dev] JBoss AS Adapter Problems in development environment
Rob Stryker
rob.stryker at redhat.com
Wed Oct 3 18:07:36 EDT 2007
Did some tracing.
The first time ensureDefaults is called is from the publisher. I'm sure
you're wondering why the publisher cares about the launch. Here's why.
Publisher needs to know where to deploy things. Deploy path could be
server/default/deploy, or it could be overwritten via command line
arguments. Therefore, in order to know where to deploy to, it has to
have a working launch config. Server.getLaunchConfiguration() calls
setup, which calls ensureDefaults.
The second time is from the actual beginnings of the launch.
The third time is called from the JMX Poller, which needs to search the
command line arguments for jmx validation information (username, pass).
This uses the WTP API Server.getLaunchConfiguration, which of course
tries to set it up first.
So basically it gets called often whenever anything in the command args
can overwrite what its searching for. Username / pass, deploy folder,
configuration folder, etc etc etc.
- Rob
Max Rydahl Andersen wrote:
> Rob Stryker wrote:
>> Sorry for not responding to this. It got lost in the email hoarde.
>>
>> Basically, when starting the server, WTP creates the start launch
>> config on its own and just asks me to "fill" it. This is where I call
>> ensureDefaults. It doesn't look like I call ensureDefaults at all
>> during the launch... or am I missing something?
>
> put a breakpoint and you'll see ;)
>
> it did for me.
>
> /max
>> - Rob
>>
>> Max Rydahl Andersen wrote:
>>> Fixed (at least it does the same as it did before)
>>>
>>> Rob: Why is it necessary to call ensureDefaults on both launchconfig
>>> creation and when it is actually launched ?
>>>
>>> /max
>>>
>>>>
>>>> FYI: http://jira.jboss.org/jira/browse/JBIDE-981
>>>>
>>>> i'm working on it.
>>>>
>>>> /max
>>>>
>>>>> btw. I can confirm this issue now after updating svn.
>>>>>
>>>>> I'll see if i can figure out why it happens since Rob is
>>>>> out-of-office today.
>>>>>
>>>>> /max
>>>>>
>>>>>> Rob, could you help me a little.
>>>>>>
>>>>>> I'm faced weird problem with JBoss AS adapter in development
>>>>>> environment.
>>>>>>
>>>>>> I cannot start Server anymore. It always says
>>>>>>
>>>>>>
>>>>>>
>>>>>> and launch configuration looks empty
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Did I miss new plug-in from Server adapter?
>>>>>>
>>>>>> Thanks
>>>>>> Denis
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> jbosstools-dev mailing list
>>>>>> jbosstools-dev at lists.jboss.org
>>>>>> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>>>>>
>>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> jbosstools-dev mailing list
>>> jbosstools-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>>
>
More information about the jbosstools-dev
mailing list