tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Quintin Beukes <quin...@skywalk.co.za>
Subject Re: Java Web Start
Date Mon, 23 Nov 2009 10:00:45 GMT
I guess another option is making an installer. Zip the distribution
and make a JWS installer which setups it up as a standard app on the
target PC. It all depends on the reason for using JWS, though.

Quintin Beukes



On Sun, Nov 22, 2009 at 8:24 PM, chrishumphrey <chris@parallelsw.com> wrote:
>
> I was not sure if I had tried the allow offline option in this version, but I
> did add it in and verified, it sets the url's up the same, so I got the same
> npe with this option set.
>
> -chris
>
>
> Quintin Beukes-2 wrote:
>>
>> I understand. That would cause a problem because if JWS builds the
>> classpath with URLs then those lines could cause problems. Have you
>> tried enabling the "allow offline" options?
>>
>> I'm not JWS expert myself, so these are just best guesses. I'm going
>> to experiment with it myself now. You pretty much made me fear for my
>> life :>
>>
>> Quintin Beukes
>>
>>
>>
>> On Sun, Nov 22, 2009 at 9:26 AM, chrishumphrey <chris@parallelsw.com>
>> wrote:
>>>
>>> Hi Quintin,
>>>
>>> I'm new to Java-Web-Start, but I think the problem is, the app comes down
>>> as
>>> pure URL's, and when openejb loads it only recognizes files (in this
>>> load).
>>> I think the JWS stuff does in fact write the files, but they run the app
>>> with the URL's only, there is no (known to the JVM) file.  I'm looking at
>>> converting things to not expect a file at all, just use the URL's all the
>>> way through.
>>> here is part of the method that causes the NPE:
>>>       protected static File getFile(URL warUrl) {
>>>             if ("jar".equals(warUrl.getProtocol())) {
>>>                  String pathname = warUrl.getPath();
>>>
>>>                 // we only support file based jar urls
>>>                 i f (!pathname .startsWith("file:")) {
>>>                     return null;
>>>                 }
>>> The 'if (!pathname .startsWith("file:")) {' return null;} --which is sent
>>> into another method that causes the npe.
>>>
>>> I'm not sure why this converts the URL into a file, cause the next thing
>>> it
>>> does is converts the files back into a URL, so I think it can be
>>> removed...
>>> I'm not sure whats around the corner though.
>>>
>>> -chris
>>>
>>>
>>> Quintin Beukes-2 wrote:
>>>>
>>>> I was actually not aware there would be a problem, because our app
>>>> will also be deployed primarily with web start :/
>>>>
>>>> Have you tried turning security restrictions off, ie. signing the app
>>>> and giving it full permission? The only thing i can think off
>>>> immediately about why it won't work with JWS is that it's not allowed
>>>> to access something.
>>>>
>>>> Quintin Beukes
>>>>
>>>>
>>>>
>>>> On Fri, Nov 20, 2009 at 7:58 AM, chrishumphrey <chris@parallelsw.com>
>>>> wrote:
>>>>>
>>>>> Sounds good, I will spend some time on it and post when I get
>>>>> something.
>>>>>
>>>>>
>>>>> Jacek Laskowski wrote:
>>>>>>
>>>>>> On Thu, Nov 19, 2009 at 4:18 AM, chrishumphrey <chris@parallelsw.com>
>>>>>> wrote:
>>>>>>
>>>>>>> If there is an interest in changing this code, and relaxing this
>>>>>>> requirement, I may be able to find some time to work on a new
>>>>>>> solution,
>>>>>>> but
>>>>>>> if I'm the only one who needs this I don't know that I really
want to
>>>>>>> spend
>>>>>>> the time on it, I've moved over to a native Windows installer,
and it
>>>>>>> seems
>>>>>>> to be working so far, just have 30 days now to evaluate and get
all
>>>>>>> of
>>>>>>> the
>>>>>>> installs done.
>>>>>>
>>>>>> There *is* an interest in pursuing it as there *is* a user who needed
>>>>>> it (and chances are there are more albeit they haven't spoken up
yet)
>>>>>> :)
>>>>>>
>>>>>> Do what suits your needs (=make the changes as simple as possible
so
>>>>>> you don't spend much time on it) and we make sure it won't break
>>>>>> openejb (via unit/integration tests and code review) so it can get
>>>>>> published in a official release.
>>>>>>
>>>>>> Jacek
>>>>>>
>>>>>> --
>>>>>> Jacek Laskowski
>>>>>> Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl
>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://old.nabble.com/Java-Web-Start-tp26400095p26424216.html
>>>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Java-Web-Start-tp26400095p26463292.html
>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Java-Web-Start-tp26400095p26466429.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>

Mime
View raw message