|
From: Senthil S <sen...@gm...> - 2006-02-09 19:54:10
|
Hi, My application launches a browser as soon as it gets started.The following is the code I use RunTime.exec(rundll32 url.dll, FileHandlerProtocol http://localhost:1090); This one brings up a browser when I start the application in the console mode but doesn't invoke the browser when started as a service nor does it complain of any errors. I have the following for the path wrapper.java.path.1=%SYSTEM%\rundll32.dll wrapper.java.path.2=%SYSTEM%\url.dll wrapper.java.library.path.3=%SYSTEM%\rundll32.dll wrapper.java.library.path.4=%SYSTEM%\url.dll The %PATH% has C:\winnt\SYSTEM32 . What do I miss? Please reply me ASAP Waiting for your reply, Senthil |
|
From: Leif M. <le...@ta...> - 2006-02-09 22:43:00
|
Senthil,
Are you setting the wrapper.ntservice.interactive property? This is
needed or the service
and all of its child processes will not have access to the desktop.
ie. They can't show the
user anything.
Cheers,
Leif
Senthil S wrote:
> Hi,
> My application launches a browser as soon as it gets started.The
> following is the code I use
>
> RunTime.exec(rundll32 url.dll, FileHandlerProtocol
> http://localhost:1090);
>
> This one brings up a browser when I start the application in the
> console mode but doesn't invoke the browser when started as a service
> nor does it complain of any errors. I have the following for the path
> wrapper.java.path.1=%SYSTEM%\rundll32.dll
> wrapper.java.path.2=%SYSTEM%\url.dll
> wrapper.java.library.path.3=%SYSTEM%\rundll32.dll
> wrapper.java.library.path.4=%SYSTEM%\url.dll
>
> The %PATH% has C:\winnt\SYSTEM32 .
>
> What do I miss? Please reply me ASAP
>
> Waiting for your reply,
> Senthil
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|
|
From: Senthil S <sen...@gm...> - 2006-02-10 12:23:31
|
Hi Leif, I even tried using "wrapper.ntservice.interactive=3Dtrue" but all I get is = a message box saying "The application failed to initialize properly (0xc0000142)" I even tried increasing the maxmemory property to 300MB. Still it doesn't work. Thanks for early reply, Senthil On 2/10/06, Leif Mortenson <le...@ta...> wrote: > > Senthil, > Are you setting the wrapper.ntservice.interactive property? This is > needed or the service > and all of its child processes will not have access to the desktop. > ie. They can't show the > user anything. > > Cheers, > Leif > > Senthil S wrote: > > Hi, > > My application launches a browser as soon as it gets started.The > > following is the code I use > > > > RunTime.exec(rundll32 url.dll, FileHandlerProtocol > > http://localhost:1090); > > > > This one brings up a browser when I start the application in the > > console mode but doesn't invoke the browser when started as a service > > nor does it complain of any errors. I have the following for the path > > wrapper.java.path.1=3D%SYSTEM%\rundll32.dll > > wrapper.java.path.2=3D%SYSTEM%\url.dll > > wrapper.java.library.path.3=3D%SYSTEM%\rundll32.dll > > wrapper.java.library.path.4=3D%SYSTEM%\url.dll > > > > The %PATH% has C:\winnt\SYSTEM32 . > > > > What do I miss? Please reply me ASAP > > > > Waiting for your reply, > > Senthil > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > > _______________________________________________ > > Wrapper-user mailing list > > Wra...@li... > > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Leif M. <le...@ta...> - 2006-02-10 14:06:30
|
Senthil, > I even tried using "wrapper.ntservice.interactive=true" but all I get > is a message box saying > "The application failed to initialize properly (0xc0000142)" What is process that is crashing? Is this your JVM or the browser process? > I even tried increasing the maxmemory property to 300MB. Still it > doesn't work. I doubt that the memory is the problem. That just sets the memory used by the JVM launched by the Wrapper. So without the interactive flag set, the browser gets launched but does nothing. But when the flag is set, something is crashing? What is the RunTime class? Is that something that you created? Have you tried launching the browser using the java.lang.Runtime.exec method? I haven't launched a browser before, but have launched Excel without any problems in the past. Cheers, Leif > On 2/10/06, *Leif Mortenson* <le...@ta... > <mailto:le...@ta...>> wrote: > > Senthil, > Are you setting the wrapper.ntservice.interactive > property? This is > needed or the service > and all of its child processes will not have access to the desktop. > ie. They can't show the > user anything. > > Cheers, > Leif > > Senthil S wrote: > > Hi, > > My application launches a browser as soon as it gets started.The > > following is the code I use > > > > RunTime.exec(rundll32 url.dll, FileHandlerProtocol > > http://localhost:1090); > > > > This one brings up a browser when I start the application in the > > console mode but doesn't invoke the browser when started as a > service > > nor does it complain of any errors. I have the following for the > path > > wrapper.java.path.1=%SYSTEM%\rundll32.dll > > wrapper.java.path.2=%SYSTEM%\url.dll > > wrapper.java.library.path.3=%SYSTEM%\rundll32.dll > > wrapper.java.library.path.4=%SYSTEM%\url.dll > > > > The %PATH% has C:\winnt\SYSTEM32 . > > > > What do I miss? Please reply me ASAP > > > > Waiting for your reply, > > Senthil > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep > through log > > files > > for problems? Stop! Download the new AJAX search engine that > makes > > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642> > > _______________________________________________ > > Wrapper-user mailing list > > Wra...@li... > <mailto:Wra...@li...> > > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642> > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > <mailto:Wra...@li...> > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |
|
From: Senthil S <sen...@gm...> - 2006-02-10 18:12:13
|
Leif,
I am sure its the browser launch process that fails, because even after
that the application runs smoothly.
The exact statement I use is,
Process p = Runtime.getRuntime.exec(rundll32 url.dll
,FileProtocolHandler http://localhost:1090);
and also I tried
Runtime.getRuntime.exec(cmd.exe /c start http://localhost:1090);
Where Runtime is java.lang.Runtime.
If not from wrapper.maxmemory=300MB (initially it had 256MB), how do I
set the memory for the browser launch process?(should I set it at all?)
Without interactive flag set , I was not getting this error message
("The application failed to initialize properly (0xc0000142)" ).
In both cases(with/without interactive flag set) the browser wasn't
launched.
Thanks,
Senthil
Leif Mortenson wrote:
> Senthil,
>
>> I even tried using "wrapper.ntservice.interactive=true" but all I get
>> is a message box saying
>> "The application failed to initialize properly (0xc0000142)"
>
> What is process that is crashing? Is this your JVM or the browser
> process?
>
>> I even tried increasing the maxmemory property to 300MB. Still it
>> doesn't work.
>
> I doubt that the memory is the problem. That just sets the memory
> used by the JVM
> launched by the Wrapper.
>
> So without the interactive flag set, the browser gets launched but
> does nothing. But
> when the flag is set, something is crashing?
>
> What is the RunTime class? Is that something that you created? Have
> you tried
> launching the browser using the java.lang.Runtime.exec method? I
> haven't launched
> a browser before, but have launched Excel without any problems in the
> past.
>
> Cheers,
> Leif
>
>> On 2/10/06, *Leif Mortenson* <le...@ta...
>> <mailto:le...@ta...>> wrote:
>>
>> Senthil,
>> Are you setting the wrapper.ntservice.interactive
>> property? This is
>> needed or the service
>> and all of its child processes will not have access to the desktop.
>> ie. They can't show the
>> user anything.
>>
>> Cheers,
>> Leif
>>
>> Senthil S wrote:
>> > Hi,
>> > My application launches a browser as soon as it gets started.The
>> > following is the code I use
>> >
>> > RunTime.exec(rundll32 url.dll, FileHandlerProtocol
>> > http://localhost:1090);
>> >
>> > This one brings up a browser when I start the application in the
>> > console mode but doesn't invoke the browser when started as a
>> service
>> > nor does it complain of any errors. I have the following for the
>> path
>> > wrapper.java.path.1=%SYSTEM%\rundll32.dll
>> > wrapper.java.path.2=%SYSTEM%\url.dll
>> > wrapper.java.library.path.3=%SYSTEM%\rundll32.dll
>> > wrapper.java.library.path.4=%SYSTEM%\url.dll
>> >
>> > The %PATH% has C:\winnt\SYSTEM32 .
>> >
>> > What do I miss? Please reply me ASAP
>> >
>> > Waiting for your reply,
>> > Senthil
>> >
>> >
>> >
>> > -------------------------------------------------------
>> > This SF.net email is sponsored by: Splunk Inc. Do you grep
>> through log
>> > files
>> > for problems? Stop! Download the new AJAX search engine that
>> makes
>> > searching your log files as easy as surfing the web. DOWNLOAD
>> SPLUNK!
>> >
>>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>>
>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642>
>>
>> > _______________________________________________
>> > Wrapper-user mailing list
>> > Wra...@li...
>> <mailto:Wra...@li...>
>> > https://lists.sourceforge.net/lists/listinfo/wrapper-user
>> >
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through
>> log files
>> for problems? Stop! Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the web. DOWNLOAD
>> SPLUNK!
>>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>>
>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642>
>>
>> _______________________________________________
>> Wrapper-user mailing list
>> Wra...@li...
>> <mailto:Wra...@li...>
>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>
>>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|
|
From: Leif M. <le...@ta...> - 2006-02-11 01:34:46
|
Senthil,
One other thing. Unless you specify an account to run as, the
Wrapper runs as a service
using the default SYSTEM user. This means that any child processes will
also be run as
the system user. Back when I was playing with Excel, I was having a
problem launching
Excel as the SYSTEM user because Excel likes to bring up a configuration
wizard when
it is launched for the first time for a given user.
I am wondering if your browser is crashing because it is not finding
its expected
configurations for the SYSTEM user.
I was able to get around this with Excel by running the Wrapper as a
user for which I
had already initialized Excel. The problem for you though is that when
running as a user
other than SYSTEM, it is not possible to set the interactive flag. In
my case, I was using
Excel to run a VBS script that generated a CSV file and exited. No user
interaction
required so it all worked.
Not sure what browser you are using, but you might want to try
googling around
using this as a base.
The memory properties of the wrapper simply set the -Xms and -Xmx
parameters to
the JVM, they have no control over the child processes.
Cheers,
Leif
Senthil S wrote:
> Leif,
>
> I am sure its the browser launch process that fails, because even
> after that the application runs smoothly.
> The exact statement I use is,
>
> Process p = Runtime.getRuntime.exec(rundll32 url.dll
> ,FileProtocolHandler http://localhost:1090);
> and also I tried
> Runtime.getRuntime.exec(cmd.exe /c start http://localhost:1090);
>
> Where Runtime is java.lang.Runtime.
> If not from wrapper.maxmemory=300MB (initially it had 256MB), how do I
> set the memory for the browser launch process?(should I set it at all?)
> Without interactive flag set , I was not getting this error message
> ("The application failed to initialize properly (0xc0000142)" ).
> In both cases(with/without interactive flag set) the browser wasn't
> launched.
>
> Thanks,
> Senthil
>
> Leif Mortenson wrote:
>
>> Senthil,
>>
>>> I even tried using "wrapper.ntservice.interactive=true" but all I
>>> get is a message box saying
>>> "The application failed to initialize properly (0xc0000142)"
>>
>> What is process that is crashing? Is this your JVM or the browser
>> process?
>>
>>> I even tried increasing the maxmemory property to 300MB. Still it
>>> doesn't work.
>>
>> I doubt that the memory is the problem. That just sets the memory
>> used by the JVM
>> launched by the Wrapper.
>>
>> So without the interactive flag set, the browser gets launched but
>> does nothing. But
>> when the flag is set, something is crashing?
>>
>> What is the RunTime class? Is that something that you created? Have
>> you tried
>> launching the browser using the java.lang.Runtime.exec method? I
>> haven't launched
>> a browser before, but have launched Excel without any problems in the
>> past.
>>
>> Cheers,
>> Leif
>>
>>> On 2/10/06, *Leif Mortenson* <le...@ta...
>>> <mailto:le...@ta...>> wrote:
>>>
>>> Senthil,
>>> Are you setting the wrapper.ntservice.interactive
>>> property? This is
>>> needed or the service
>>> and all of its child processes will not have access to the desktop.
>>> ie. They can't show the
>>> user anything.
>>>
>>> Cheers,
>>> Leif
>>>
>>> Senthil S wrote:
>>> > Hi,
>>> > My application launches a browser as soon as it gets started.The
>>> > following is the code I use
>>> >
>>> > RunTime.exec(rundll32 url.dll, FileHandlerProtocol
>>> > http://localhost:1090);
>>> >
>>> > This one brings up a browser when I start the application in the
>>> > console mode but doesn't invoke the browser when started as a
>>> service
>>> > nor does it complain of any errors. I have the following for the
>>> path
>>> > wrapper.java.path.1=%SYSTEM%\rundll32.dll
>>> > wrapper.java.path.2=%SYSTEM%\url.dll
>>> > wrapper.java.library.path.3=%SYSTEM%\rundll32.dll
>>> > wrapper.java.library.path.4=%SYSTEM%\url.dll
>>> >
>>> > The %PATH% has C:\winnt\SYSTEM32 .
>>> >
>>> > What do I miss? Please reply me ASAP
>>> >
>>> > Waiting for your reply,
>>> > Senthil
>>> >
>>> >
>>> >
>>> > -------------------------------------------------------
>>> > This SF.net email is sponsored by: Splunk Inc. Do you grep
>>> through log
>>> > files
>>> > for problems? Stop! Download the new AJAX search engine that
>>> makes
>>> > searching your log files as easy as surfing the web. DOWNLOAD
>>> SPLUNK!
>>> >
>>>
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>>>
>>>
>>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642>
>>>
>>> > _______________________________________________
>>> > Wrapper-user mailing list
>>> > Wra...@li...
>>> <mailto:Wra...@li...>
>>> > https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>> >
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.net email is sponsored by: Splunk Inc. Do you grep through
>>> log files
>>> for problems? Stop! Download the new AJAX search engine that
>>> makes
>>> searching your log files as easy as surfing the web. DOWNLOAD
>>> SPLUNK!
>>>
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>>>
>>>
>>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642>
>>>
>>> _______________________________________________
>>> Wrapper-user mailing list
>>> Wra...@li...
>>> <mailto:Wra...@li...>
>>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>>
>>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you grep through
>> log files
>> for problems? Stop! Download the new AJAX search engine that makes
>> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>> _______________________________________________
>> Wrapper-user mailing list
>> Wra...@li...
>> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
|