Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

server setup to recognise mine types etc?

Options
  • 28-05-2009 2:07am
    #1
    Closed Accounts Posts: 9,082 ✭✭✭


    trying to fiddle with this
    http://www.dublinstreams.com/temp/zwgvtest.html

    which is supposed to have a svg image i can manipulate like this

    http://zvtm.sourceforge.net/zgrviewer/applet/

    now i had it working fine on the previous linux server i had an account on, now i had to move to and for ungodly reason i ticked to use windows server account.

    now it won't work, i checked the plugin and that works, so i hadn't realised i had to set up my server to recognise .svg, i just thought it was such a common and important file it would be set up already, does that mean i have to set up .jar and .class too on my webspace config with

    .class application/octet-stream
    .jar application/java-archive
    .svg image/svg+xml

    im not sure that the problem but the only difference i can think of

    which i did do but still doesn't work what else do i have to do to get it working?


Comments

  • Registered Users Posts: 2,931 ✭✭✭Ginger


    Check with your server admins/ISP as this needs to be added at the config level in IIS to allow serving of mime types it doesnt know otherwise you get a 404 error


  • Closed Accounts Posts: 9,082 ✭✭✭lostexpectation


    well, i added the mine types in the config panel as above and then i could view .svg's on the domain right enough but then the applet above still isn't working, although the same applet script and image works on a linux server.

    i added.js application/x-javascript

    im wondering if theres more to it then that.


  • Closed Accounts Posts: 9,082 ✭✭✭lostexpectation


    would i have to put .jar as application/x-java-applet if this is the code



    <Applet code="net.claribole.zgrviewer.ZGRApplet.class" archive="http://www.dublinstreams.com/zgrviewer/zvtm-0.9.8jar,http://www.dublinstreams.com/zgrviewer/zgrviewer-0.8.2.jar&quot; width="720" height="480">
    <param name="type" value="application/x-java-Applet;version=1.4" />
    <param name="scriptable" value="false" />
    <param name="width" value="720" />
    <param name="height" value="480" />
    <param name="svgURL" value="http://www.dublinstreams.com/temp/test1.svg&quot; />
    <param name="title" value="zgrviewer - Applet" />
    <param name="appletBackgroundColor" value="#DDD" />
    <param name="graphBackgroundColor" value="#DDD" />
    <param name="highlightColor" value="red" />
    <param name="displayOverview" value="true" />
    <param name="focusNodeMagFactor" value="2.0" />
    </Applet>
    </div>

    *shrug*


  • Registered Users Posts: 2,931 ✭✭✭Ginger


    Ok quick tests

    http://www.dublinstreams.com/zgrviewer/zvtm-0.9.8jar (served me something)
    http://www.dublinstreams.com/zgrviewer/zgrviewer-0.8.2.jar - Java loaded but nothing came down - Expected this

    Ran this file bit you gave me and it loaded the Applet and the test SVG file

    <Applet code="net.claribole.zgrviewer.ZGRApplet.class" archive="http://www.dublinstreams.com/zgrviewer/zvtm-0.9.8jar,http://www.dublinstreams.com/zgrviewer/zgrviewer-0.8.2.jar&quot; width="720" height="480">
    <param name="scriptable" value="false" />
    <param name="width" value="720" />
    <param name="height" value="480" />
    <param name="svgURL" value="http://www.dublinstreams.com/temp/test1.svg&quot; />
    <param name="title" value="zgrviewer - Applet" />
    <param name="appletBackgroundColor" value="#DDD" />
    <param name="graphBackgroundColor" value="#DDD" />
    <param name="highlightColor" value="red" />
    <param name="displayOverview" value="true" />
    <param name="focusNodeMagFactor" value="2.0" />
    </Applet>

    Works for me.. check your java cache


  • Closed Accounts Posts: 9,082 ✭✭✭lostexpectation


    Ginger wrote: »
    Ok quick tests



    Works for me.. check your java cache

    thanks for taking a look

    cleared it, tried pages on diffent computer, check things again no luck

    do you really see the working diagram on my ds webpage


  • Advertisement
  • Registered Users Posts: 2,931 ✭✭✭Ginger


    What I get is the attached image


  • Closed Accounts Posts: 9,082 ✭✭✭lostexpectation


    well its working on your home server not my webserver.... which is the problem


  • Registered Users Posts: 2,931 ✭✭✭Ginger


    It's reading from dublinstream via the code supplied not my server. Page is local alright so maybe check using only the code I used above without any other html to verify or send me a link to a test page so I can check


  • Closed Accounts Posts: 9,082 ✭✭✭lostexpectation


    thats the test page
    http://www.dublinstreams.com/temp/zwgvtest.html

    the code from above

    http://www.dublinstreams.com/temp/test2.html

    which ain'' working for me either, i tried it on my brothers computer, not owrking there either, is both our javas corrupted somehow, i cleared my java cache should a uninstall and reinstall all my java 1.6 ?


  • Registered Users Posts: 2,931 ✭✭✭Ginger


    Do you have a custom 404 error or something

    Quick check with fiddler and its tries to get

    GET /temp/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration HTTP/1.1

    GET /temp/%3c!DOCTYPE%20html%20PUBLIC%20%22-//W3C//DTD%20XHTML%201/0%20Transitional//EN%22%20%22http://www/w3/org/TR/xhtml1/DTD/xhtml1-transitional/dtd%22%3e.class HTTP/1.1

    Which looks like its been served a page .. and to test I typed in http://www.dublinstreams.com/te and it came back with a lot of stuff on the page...

    You are missing a file somewhere and the response is being screwed

    http://www.dublinstreams.com/zgrviewer/zvtm-0.9.8jar possibly should be http://www.dublinstreams.com/zgrviewer/zvtm-0.9.8.jar


  • Advertisement
  • Closed Accounts Posts: 9,082 ✭✭✭lostexpectation


    ah its working
    i had a .htaccess file with RewriteBase /howthmalahide/ which i'd left in my home directory after struggling to overcome a upload size limit when the server changed,i know thats wrong but i just left it and thought this problem was elsewhere, i just deleted it and its all working now.... hurrah thank you very much.

    do you think that should read zvtm-0.9.8jar, its what yerman has on his site, i thought there some reason for it,although the diagrams applet work with it like that anyway, should i email him to correct it


  • Registered Users Posts: 2,931 ✭✭✭Ginger


    Possibly would explain why it worked for me then on a local file because it would ignore it.

    It worked for me with the zvtm-0.9.8jar as well originally but it was the fact that it was throwing an error lead me to think about the custom 404 error and that causing an issue.

    Solved anyways, but email the author just to confirm or deny its an issue..


Advertisement