How to deploy JOGL on my server?

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

How to deploy JOGL on my server?

kitfox
I'm serving a webstart program that uses JOGL.  At the moment, the JNLP is including:
        <extension name="jogl-all-awt"
            href="http://jogamp.org/deployment/jogamp-current/jogl-all-awt.jnlp"/>

However, this is causing some issues.  I would like to be able to serve everything from my own server.  

I've found the many jogl jars and native resources that JOGL has very confusing.  What is the easiest way I could grab a given distro of JOGL, upload it to the same server that hosts my JNLP file, and then have my JNLP reference that?  (And in such a way that Linux, Windows, Mac etc. find their appropriate binaries?)
Reply | Threaded
Open this post in threaded view
|

Re: How to deploy JOGL on my server?

gouessej
Administrator
Hi

What is really confusing? You can look at my JNLP file for the pre-beta version of TUER. I only use the JARs, nothing else.

You can use the same signature for all JARs (JOGL, GlueGen and those of your application) like me or you can use the signed official JARs (then you have to load it as an extension).

Good luck.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: How to deploy JOGL on my server?

Sven Gothel
Administrator
In reply to this post by kitfox
On 03/01/2012 03:42 PM, kitfox [via jogamp] wrote:
>
>
> I'm serving a webstart program that uses JOGL.  At the moment, the JNLP is
> including:
>         <extension name="jogl-all-awt"
>            
> href="http://jogamp.org/deployment/jogamp-current/jogl-all-awt.jnlp"/>
>
> However, this is causing some issues.  

Despite the fact that it's OK to host your own variants on your own server,
I would like to know about your issues - so we have a chance to fix things.

> I would like to be able to serve
> everything from my own server.  
>

You can simply issue a wget of our release URL and clone it to your server.
Then you would simply need to change the URL in the jnlp [maybe html] files.

Lets see for the current test deployment (since its the current form of packaging).
  <http://jogamp.org/deployment/jogamp-test/>

Fetching the important data
using GNU Wget 1.13.4:

+++

JOGAMP_ROOT=http://jogamp.org/deployment/jogamp-test/
WGET="wget -r -N -np -L -l 1"

$WGET $JOGAMP_ROOT/
$WGET $JOGAMP_ROOT/jar/
$WGET $JOGAMP_ROOT/jnlp-files/
$WGET $JOGAMP_ROOT/log/

+++

This will lead ot the following local folder:
  <jogamp.org/deployment/jogamp-test/>

Here is the script we use to relocate the JNLP/HTML files:
  <http://jogamp.org/git/?p=jogamp-scripting.git;a=blob;f=deployment/funcs_jnlp_relocate.sh;hb=HEAD>

> I've found the many jogl jars and native resources that JOGL has very
> confusing.  What is the easiest way I could grab a given distro of JOGL,
> upload it to the same server that hosts my JNLP file, and then have my JNLP
> reference that?  (And in such a way that Linux, Windows, Mac etc. find their
> appropriate binaries?)

Maybe you like to read the JNLP specs .. ?

<http://en.wikipedia.org/wiki/Java_Web_Start>
  (See External Links there as well, to check the original pages)

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to deploy JOGL on my server?

gouessej
Administrator
I don't understand why but JOGL installation requires less time since I host it on my own server and I assume this is mainly due to the fact I have never enabled Pack200.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: How to deploy JOGL on my server?

Sven Gothel
Administrator
On 03/01/2012 10:29 PM, gouessej [via jogamp] wrote:
>
>
> I don't understand why but JOGL installation requires less time since I host
> it on my own server and I assume this is mainly due to the fact I have never
> enabled Pack200.

fascinating .. that would be cpu/compression vs bandwidth,
where the latter wins.

I and other users of JOGL back in 2008'ish did some tests
and our dear Russian clients really favored pack200
when dl'ing from the states.

Our server is located in Germany/Europe now.

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to deploy JOGL on my server?

kitfox
I'm having the same issues I was having earlier that I was discussing in this thread:
http://forum.jogamp.org/Can-t-run-JOGL-over-webstart-td3693408.html

The AVG issue aside (I can get around that be disabling AVG), there also seems to be a problem with loading the JOGL files from your webserver.  I discussed this issue with Nam Nguyen while chatting with him after submitting a bug report against the Java bug database (bug #7115184).  I don't really understand it, but there seems to be an issue with finding the jars jogl.all.jar links to.

I'll attach some of the email discussion I had with him.
Reply | Threaded
Open this post in threaded view
|

Re: How to deploy JOGL on my server?

kitfox
> Hi Nam,
>
> Here's the dump.

...

I tried the demo, it could not launch because the NoClassDefException
mentioned.  The jar
http://jogamp.org/deployment/archive/rc/v2.0-rc5/jar/jogl.all.jar is a
jar wrapping a true jogl.all.jar.  You could try download the jar
directly and examine.

...

>
> Also, why do you think you're having trouble loading javax.media?  
> Those files are not hosted on my server.  They're hosted on jogamp.org.
Its the jar problem as mention above.
>
> Mark
>

...

>>>>>>>>
>>>>>>>> On Wed, 25 Jan 2012 16:57:34 -0800, Nam Nguyen
>>>>>>>> <nam.t.nguyen@oracle.com> wrote:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> I am responsible for fixing this bug that you reported.
>>>>>>>>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7115184
>>>>>>>>>
>>>>>>>>> This bug description implied multiple issues and some of them had
>>>>>>>>> been fixed in latest build of 7u4:
>>>>>>>>> http://jdk7.java.net/archive/7u4-b07.html
>>>>>>>>>
>>>>>>>>> I tried the build on Windows 7 laptop and it finished loading:
>>>>>>>>>    .\javaws.exe
>>>>>>>>> http://raven.java.net/apps/studio/RavenStudio.jnlp
>>>>>>>>>
>>>>>>>>> However, the log still show some error about failing to load some
>>>>>>>>> javax.media.opengl class.  There is no indication that this
>>>>>>>>> error was
>>>>>>>>> caused by java webstart.  It would be great if you could try
>>>>>>>>> out the
>>>>>>>>> latest bits to see if you see additional problems cause by
>>>>>>>>> javaws.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> Nam Nguyen
>>>>>>>>> Oracle, Java Platform Group.
>>>>>>>>
>>>>>>
Reply | Threaded
Open this post in threaded view
|

Re: How to deploy JOGL on my server?

gouessej
Administrator
In reply to this post by kitfox
Hi

Can you give me the URL of the ticket for AVG? Why hasn't it been solved?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: How to deploy JOGL on my server?

kitfox
I don't think there's a URL for it, but I'm discussing my issues with a tech at AVG with case #0004425352.  I'm really not sure why this hasn't been solved, or how much of this issue is related to AVG itself.  If I disable AVG, my app still hangs, but in a different spot.  It's possible there may actually be two issues, with AVG being responsible for only one of them.
Reply | Threaded
Open this post in threaded view
|

Re: How to deploy JOGL on my server?

kitfox
In reply to this post by gouessej
Also, I presume Nam wasn't using AVG, so there's a loading issue with JOGL that's apart from AVG.  

In the earlier thread, I discovered that if I started my program and then ran Tuer, my program would magically start working.  So I thought about grabbing the latest release of JOGL and copying Tuer's JNLP and hosting everything from my server.  However, JOGL has a lot of jars, I didn't know what subset I would need, I wasn't sure about how to set up the natives for different OSes, and just generally got confused - so I put it off until now.