Ah - sorry, I think it's expecting a file path, rather than a URL. If you're keen you may be able to modify JXplorer.java (where the config and defaults are set), but otherwise I don't think it will work. I'm afraid I'm not familiar with JNLP...

  - Chris

On 14/12/2007, at 8:25 PM, Kanthaa wrote:

Hi Chris

thank you very much for the quick response :-)

I have tried in the similar lines. Here I edited the jxplorer.jnlp file to set the jxplorer.config property because we dont use jxplorer.sh. jxplorer.jnlp is opened via internet explorer by accessing the http: \\trdhcp10254\jxplorer\jxplorer.jnlp.
http:\\trdhcp10254\jxplorer cotains the jxplorer extracted to it.

the jnlp looked like below

<?xml version="1.0" encoding="utf-8"?> <!-- JNLP File for LDAP Browser Application -->
<jnlp
spec="1.0+"
codebase = "http://trdhcp10254/jxplorer " >
  <information>
    <title>JXplorer LDAP Browser Application</title>
    <vendor>CA </vendor>
    <homepage href="htmldocs/start.html"/>
    <description>JXplorer LDAP Browser Application</description>
<description kind="short">A Java LDAP Browser Application</ description>
    <icon href="htmldocs/ODBanner.gif"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.6+"/>
    <j2se version="1.5+"/>
    <j2se version="1.4+"/>
<property name="jxplorer.config" value="http://trdhcp10254/ jxplorer/"/>
    <jar href="jars/jxplorer.jar"/>
    <jar href="jars/ldapsec.jar"/>
    <jar href="jars/log4j.jar"/>
    <jar href="jars/junit.jar"/>
    <jar href="jars/jhall.jar"/>
    <jar href="jars/help.jar"/>
  </resources>
  <application-desc main-class=" com.ca.directory.jxplorer.JXplorer"/>
</jnlp>

and the jxconfig.txt looked like below, also I copied the jxconfig.txt to dxconfig.txt too.

[EMAIL PROTECTED] jxplorer]# cat jxconfig.txt
#dir this sets the directories that JXplorer reads its resources from.
dir.help=http:\\trdhcp10254\jxplorer\help\
dir.htmldocs=http:\\trdhcp10254\jxplorer\htmldocs\
dir.icons=http:\\trdhcp10254\jxplorer\icons\
dir.images=http:\\trdhcp10254\jxplorer\images\
dir.local=http:\\trdhcp10254\jxplorer\
dir.plugins=http:\\trdhcp10254\jxplorer\plugins\
dir.templates=http:\\trdhcp10254\jxplorer\templates\


here I get below error, it seems to have taken the config file from the http path only, but still for icons it looks at local directory :-(

main start
TIME: Fri Dec 14 10:59:47 EET 2007  (532)

Fri Dec 14 10:59:47 EET 2007: running JXplorer version JXplorer (build JXv3.1rc5 2005-02-01 17:00 EST) Fri Dec 14 10:59:47 EET 2007: running java from: C:\Program Files \Java\jre1.6.0
Fri Dec 14 10:59:47 EET 2007: running java version 1.6.0
localDir = C:\Documents and Settings\kantharu\Desktop\
Fri Dec 14 10:59:47 EET 2007: set configuration file to http:// trdhcp10254/jxplorer/\dxconfig.txt Fri Dec 14 10:59:47 EET 2007: ERROR: Unable to initialise GSSAPI config file java.io.FileNotFoundException: http:\trdhcp10254 \jxplorer\gssapi.conf (The filename, directory name, or volume label syntax is incorrect)

Fri Dec 14 10:59:47 EET 2007: unable to load resource bundle 'language.JX' Fri Dec 14 10:59:48 EET 2007: no search filter config file found at: http://trdhcp10254/jxplorer/\search_filters.txt Fri Dec 14 10:59:48 EET 2007: can't find html template directory C: \Documents and Settings\kantharu\Desktop\templates - trying to find /templates directory

Fri Dec 14 10:59:48 EET 2007: Error initialising HTML Template: java.io.FileNotFoundException: ERROR - Cannot find backup /template directory in C:\Documents and Settings\kantharu\Desktop\templates

can't find: C:\Documents and Settings\kantharu\Desktop\htmldocs \start_en.html can't find: C:\Documents and Settings\kantharu\Desktop\htmldocs \start.html Fri Dec 14 10:59:48 EET 2007: can't find icon directory C: \Documents and Settings\kantharu\Desktop\icons\ trying to find / icons directory

Fri Dec 14 10:59:48 EET 2007: Can't find icon directory; check 'dir.icons=' line in dxconfig.txt.
main end
TIME: Fri Dec 14 10:59:49 EET 2007  (15)

br, Kanthaa

On Dec 13, 2007 10:10 PM, Chris Betts <[EMAIL PROTECTED]> wrote:
Hi Kanthaa,

I'm afraid this is not one of the better features of JXplorer, as it does not use directories as well as some native unix applications. However, you may be able to work around the problem by modifying the batch file used to start JXplorer ( jxplorer.sh) and setting a property "jxplorer.config" to point to a network location where the jxconfig.txt configuration file is. Within that configuration file, you should then be able to define the network locations for all the various JX resources. (use the " dir.xxx" properties - it's all fairly obvious :-) ).

Um, I'm afraid I haven't done this myself - let us know how it goes!

     - Chris

On 13/12/2007, at 11:00 PM, Kanthaa wrote:

Hi

It is very nice to see such a community of developers working together. Especially special thanks to Chris!.

I try to invoke the jxplorer over network using JNLP by sharing the jxplorer directory via apache http server. But the problem seems it looks for the icons,images files in the local pc. So the images in the button bar is not displayed in the jxplorer application.

Any solutions to this?


here is the jnlp I have:-
<jnlp

spec="1.0+"

codebase = "

http://webserver/jxplorer"; >
<information>

<title>JXplorer LDAP Browser Application</title>

<vendor>CA </vendor>

<homepage href="htmldocs/start.html"/>

<description>JXplorer LDAP Browser Application</description>

<description kind="short">A Java LDAP Browser Application</ description>

<icon href="htmldocs/ODBanner.gif"/>

</information>

<security>

<all-permissions/>

</security>

<resources>

<j2se version="1.4+"/>

<jar href="jars/jxplorer.jar"/>

<jar href="jars/ldapsec.jar"/>

<jar href="jars/log4j.jar"/>

<jar href="jars/junit.jar"/>

<jar href="jars/jhall.jar"/>

<jar href="jars/help.jar"/>

</resources>

<application-desc main-class="com.ca.directory.jxplorer.JXplorer"/>

</jnlp>


 and here is the trace messgaes from java console in the pc:-

main start

TIME: Tue Dec 11 18:03:13 EET 2007 (771)

Tue Dec 11 18:03:13 EET 2007: running JXplorer version JXplorer (build JXv3.1rc5 2005-02-01 17:00 EST)

Tue Dec 11 18:03:13 EET 2007: running java from: C:\Program Files \Java\jre1.6.0

Tue Dec 11 18:03:13 EET 2007: running java version 1.6.0 localDir = C:\Documents and Settings\kantharu\Desktop\

Tue Dec 11 18:03:14 EET 2007: set configuration file to C: \Documents and Settings\kantharu\Desktop\dxconfig.txt

Tue Dec 11 18:03:14 EET 2007: unable to load resource bundle 'language.JX'

Tue Dec 11 18:03:14 EET 2007: no search filter config file found at: C:\Documents and Settings\kantharu\Desktop\search_filters.txt

Tue Dec 11 18:03:14 EET 2007: can't find html template directory C: \Documents and Settings\kantharu\Desktop\templates - trying to find /templates directory

Tue Dec 11 18:03:14 EET 2007: Error initialising HTML Template: java.io.FileNotFoundException: ERROR - Cannot find backup / template directory in C:\Documents and Settings\kantharu\Desktop \templates

can't find: C:\Documents and Settings\kantharu\Desktop\htmldocs \start_en.html

can't find: C:\Documents and Settings\kantharu\Desktop\htmldocs \start.html

Tue Dec 11 18:03:14 EET 2007: can't find icon directory C: \Documents and Settings\kantharu\Desktop\icons\ trying to find / icons directory

Tue Dec 11 18:03:14 EET 2007: Can't find icon directory; check 'dir.icons=' line in dxconfig.txt.

main end

TIME: Tue Dec 11 18:03:15 EET 2007 (313)



Br, Kanthaa

--------------------------------------------------------------------- ----
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ marketplace_______________________________________________
Jxplorer-devel mailing list
Jxplorer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxplorer-devel


---------------------------------------------------------------------- ---
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ marketplace_______________________________________________
Jxplorer-devel mailing list
Jxplorer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxplorer-devel

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Jxplorer-devel mailing list
Jxplorer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxplorer-devel

Reply via email to