|
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
>
|