|
From: Mark L. <mid...@ve...> - 2007-06-26 00:24:41
|
I have a Java Swing app that supports drag and drop. It works properly in stand-alone mode, but when I run it as a service via Wrapper, the drag and drop is disabled. When I drag a file that I should be able to drop, I get the circle with a slash icon. I have "wrapper.ntservice.interactive=true" in the Wrapper configuration file. Is there any other setting in Wrapper that might remedy this? I posted on the Sun java forums, but didn't get any responses. I'm hoping someone here might know how to make this work. -Mark |
|
From: Leif M. <le...@ta...> - 2007-06-26 01:32:20
|
Mark,
That is not something I have tried personally. To be clear,
Drag and drop is not working when running as a service. Does
it work when running under the Wrapper in a console?
Cheers,
Leif
Mark Leone wrote:
> I have a Java Swing app that supports drag and drop. It works properly
> in stand-alone mode, but when I run it as a service via Wrapper, the
> drag and drop is disabled. When I drag a file that I should be able to
> drop, I get the circle with a slash icon. I have
> "wrapper.ntservice.interactive=true" in the Wrapper configuration file.
> Is there any other setting in Wrapper that might remedy this? I posted
> on the Sun java forums, but didn't get any responses. I'm hoping someone
> here might know how to make this work.
>
> -Mark
>
|
|
From: Mark L. <mid...@ve...> - 2007-06-26 04:34:20
|
Leif, Yes, the drag and drop works when my app is run in the Wrapper in a console. It also works when the app is run directly in the JVM, without the Wrapper. It does not work when it is run in the Wrapper as a Service. I have no way to test whether it works properly in a service implemented without the Wrapper, but I assume the problem is inherent to running a GUI app as a service. There seems to be something about the Windows service environment that is disabling drag and drop. I was hoping that some setting in the Wrapper might solve the problem, though a search of the documentation and the mail archives did not reveal any such thing. It would also be nice to know if anyone else is able to implement Java drag and drop in a Wrapper-implemented service. Also, shouldn't the setting for enabling a service to interact with the desktop (wrapper.ntservice.interactive=true) cover this problem? If so, is there some other consideration I should be aware of regarding that setting? I did verify in the Windows service manager window that the interactive setting was enabled. I wonder if it could be related to me running the service as the local system account, while trying to do the drag and drop while logged in as my personal account. I changed the setting in the Windows Service Manager to run the app as my personal account. I restarted the service, and it looked normal in the service manager, but the GUI never showed up. Then I tried the same thing by changing the wrapper.conf file to run the service as my personal account wrapper.ntservice.interactive=false wrapper.ntservice.account=.\Mark wrapper.ntservice.password=myPassword And it behaved the same way. Looked as expected in the Service Manager window, but the GUI never showed up. -Mark Leif Mortenson wrote: > Mark, > That is not something I have tried personally. To be clear, > Drag and drop is not working when running as a service. Does > it work when running under the Wrapper in a console? > > Cheers, > Leif > > Mark Leone wrote: >> I have a Java Swing app that supports drag and drop. It works >> properly in stand-alone mode, but when I run it as a service via >> Wrapper, the drag and drop is disabled. When I drag a file that I >> should be able to drop, I get the circle with a slash icon. I have >> "wrapper.ntservice.interactive=true" in the Wrapper configuration >> file. Is there any other setting in Wrapper that might remedy this? >> I posted on the Sun java forums, but didn't get any responses. I'm >> hoping someone here might know how to make this work. >> >> -Mark >> > > > |
|
From: Leif M. <le...@ta...> - 2007-06-26 05:22:02
|
Mark,
A service can only show windows if it has its interactive flag set.
Due to the way MS implemented things, if the user is not the local
system account, this interactive flag is ignored and disabled.
So to show a window, you must be the local system account. This
is a general rule with services, not just with the Wrapper.
All the wrapper.ntservice.interactive property does is to
set the interactive bit for the service. The Wrapper is not
doing anything else behind the scenes which should affect
the drag and drop functionality directly.
Cheers,
Leif
Mark Leone wrote:
> Leif,
>
> Yes, the drag and drop works when my app is run in the Wrapper in a
> console. It also works when the app is run directly in the JVM, without
> the Wrapper. It does not work when it is run in the Wrapper as a
> Service. I have no way to test whether it works properly in a service
> implemented without the Wrapper, but I assume the problem is inherent to
> running a GUI app as a service. There seems to be something about the
> Windows service environment that is disabling drag and drop.
>
> I was hoping that some setting in the Wrapper might solve the problem,
> though a search of the documentation and the mail archives did not
> reveal any such thing. It would also be nice to know if anyone else is
> able to implement Java drag and drop in a Wrapper-implemented service.
> Also, shouldn't the setting for enabling a service to interact with the
> desktop (wrapper.ntservice.interactive=true) cover this problem? If so,
> is there some other consideration I should be aware of regarding that
> setting? I did verify in the Windows service manager window that the
> interactive setting was enabled.
>
> I wonder if it could be related to me running the service as the local
> system account, while trying to do the drag and drop while logged in as
> my personal account. I changed the setting in the Windows Service
> Manager to run the app as my personal account. I restarted the service,
> and it looked normal in the service manager, but the GUI never showed
> up. Then I tried the same thing by changing the wrapper.conf file to run
> the service as my personal account
>
> wrapper.ntservice.interactive=false
> wrapper.ntservice.account=.\Mark
> wrapper.ntservice.password=myPassword
>
> And it behaved the same way. Looked as expected in the Service Manager
> window, but the GUI never showed up.
>
> -Mark
>
> Leif Mortenson wrote:
>
>> Mark,
>> That is not something I have tried personally. To be clear,
>> Drag and drop is not working when running as a service. Does
>> it work when running under the Wrapper in a console?
>>
>> Cheers,
>> Leif
>>
>> Mark Leone wrote:
>>
>>> I have a Java Swing app that supports drag and drop. It works
>>> properly in stand-alone mode, but when I run it as a service via
>>> Wrapper, the drag and drop is disabled. When I drag a file that I
>>> should be able to drop, I get the circle with a slash icon. I have
>>> "wrapper.ntservice.interactive=true" in the Wrapper configuration
>>> file. Is there any other setting in Wrapper that might remedy this?
>>> I posted on the Sun java forums, but didn't get any responses. I'm
>>> hoping someone here might know how to make this work.
>>>
>>> -Mark
>>>
>>>
>>
>>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
|
|
From: Mark L. <mid...@ve...> - 2007-06-26 04:39:04
|
One more piece of info that just occurred to me: My app runs in the system tray, using the SystemTray class available only in J2SE 6. Could that be causing the problem? I'll try running in J2SE 5, in which case it will run without the System Tray, and see if that works. -Mark Mark Leone wrote: > Leif, > > Yes, the drag and drop works when my app is run in the Wrapper in a > console. It also works when the app is run directly in the JVM, without > the Wrapper. It does not work when it is run in the Wrapper as a > Service. I have no way to test whether it works properly in a service > implemented without the Wrapper, but I assume the problem is inherent to > running a GUI app as a service. There seems to be something about the > Windows service environment that is disabling drag and drop. > > I was hoping that some setting in the Wrapper might solve the problem, > though a search of the documentation and the mail archives did not > reveal any such thing. It would also be nice to know if anyone else is > able to implement Java drag and drop in a Wrapper-implemented service. > Also, shouldn't the setting for enabling a service to interact with the > desktop (wrapper.ntservice.interactive=true) cover this problem? If so, > is there some other consideration I should be aware of regarding that > setting? I did verify in the Windows service manager window that the > interactive setting was enabled. > > I wonder if it could be related to me running the service as the local > system account, while trying to do the drag and drop while logged in as > my personal account. I changed the setting in the Windows Service > Manager to run the app as my personal account. I restarted the service, > and it looked normal in the service manager, but the GUI never showed > up. Then I tried the same thing by changing the wrapper.conf file to run > the service as my personal account > > wrapper.ntservice.interactive=false > wrapper.ntservice.account=.\Mark > wrapper.ntservice.password=myPassword > > And it behaved the same way. Looked as expected in the Service Manager > window, but the GUI never showed up. > > -Mark > > Leif Mortenson wrote: > >> Mark, >> That is not something I have tried personally. To be clear, >> Drag and drop is not working when running as a service. Does >> it work when running under the Wrapper in a console? >> >> Cheers, >> Leif >> >> Mark Leone wrote: >> >>> I have a Java Swing app that supports drag and drop. It works >>> properly in stand-alone mode, but when I run it as a service via >>> Wrapper, the drag and drop is disabled. When I drag a file that I >>> should be able to drop, I get the circle with a slash icon. I have >>> "wrapper.ntservice.interactive=true" in the Wrapper configuration >>> file. Is there any other setting in Wrapper that might remedy this? >>> I posted on the Sun java forums, but didn't get any responses. I'm >>> hoping someone here might know how to make this work. >>> >>> -Mark >>> >>> >> >> > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > |
|
From: Mark L. <mid...@ve...> - 2007-06-26 04:44:55
|
The System Tray is not the problem. I ran the app with JRE 1.5, in which case the System Tray is not used, and drag and drop still does not work when the app is run as a service. -Mark Mark Leone wrote: > One more piece of info that just occurred to me: My app runs in the > system tray, using the SystemTray class available only in J2SE 6. > Could that be causing the problem? I'll try running in J2SE 5, in > which case it will run without the System Tray, and see if that works. > |