tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chrishumphrey <>
Subject Re: Java Web Start
Date Sun, 22 Nov 2009 07:26:07 GMT

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.


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 <>
> 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 <>
>>> 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 -
>> --
>> View this message in context:
>> Sent from the OpenEJB User mailing list archive at

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message