Does anyone have information on what needs to be enabled or what .dll file needs to be present or what trick is necessary to make Scratch files run from a Windows Server 2003 (Standard Edition) with IIS 6.0? I asked this question on the FAQ board and after trying all possible solutions offered, it was suggested I ask over here. I have a website hosted by GoDaddy, and I uploaded the following: my .sb files, ScratchApplet.jar, soundbank.gm, and the prescribed html files, and on my GoDaddy site, everything worked perfectly, no problem. But on my school's intranet server, where I want to host Scratch files created by students in a computer club, I cannot get Scratch files to run. The closest I get is to display the Scratch "loading" screen, but the Scratch files never appear. There must be some server setting that I can enable, or some .dll file I can put in place, or some other trick to make them work, but I don't know who I can ask since I am the website administrator and I don't have any more ideas. I have literally been trying for months. I've installed both Scratch and Java on the server thinking that would put files in place or enable whatever needs to be enabled. I have tried every combination of the .htm code imaginable. I don't know where else to turn other than here and hope the Scratch community has someone who wouldn't mind sharing this information. Anybody?
Offline
It was suggested that you post the HTML code that was failing.
Without seeing the code, it is hard for us to see what is wrong.
On a unix server, I would conjecture that the .sb file was not made publically readable, but I don't know enough about Windows servers to know what sort of permission schemes they have.
Offline
Yes, post the HTML or even better send a link to the website. We'll get it to work, don't worry.
Offline
Thank you very much. The server I want to host these Scratch files is an intranet server that requires a userID.... which I can create for you, is there an email address I can send the login credentials or somewhere off list? I could also allow access base on IP address, if you can supply me with that, I can pass you through. And again... THANK YOU!!
Offline
PS - This is the html code that is "failing":
<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="./" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="hat.sb">
</applet>
</body>
</html>
I also tried it like this:
<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="hat.sb">
</applet>
</body>
</html>
I also tried changing the applet id and the 'name' param. All users have suffient permissions to view and execute files in the folder. I have other Java applets running on our server that work just fine. (One difference I notice is that they are .class files instead of .jar files. I don't know if that would prevent Scratch files from running, however).
All files are in the same folder on the server. I would also like to explain why it is highly preferable for our school to host our Scratch files on our own server. I will be happy, however, to post those files that meet our criteria for being made publicly accessible, but I would like to do that off list. I can post an email address for you to write to if you would be so kind.
Offline
PPS - I have sent a message through the form on the Contact Us page at:
http://scratch.mit.edu/contact/us
The message contains the URL and login credentials for our intranet server. I have tried everything I can think of, and I am very grateful that you have offered to help.
Offline
Here is the code that is "failing" (all files are in the same folder on the server):
==============
<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="./" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="hat.sb">
</applet>
</body>
</html>
==============
Also tried it without the codebase param:
==============
<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="hat.sb">
</applet>
</body>
</html>
===============
I sent the URL to you through the form on the "Contact Us" page. Were you able to access the site? Does your offer to help still stand? Should I keep checking back for a response or am I at the point where I should give up? I thought of writing Microsoft but I can't image it would do any good.
Offline
The HTML code looks ok to me. I'm not on the Scratch team, so don't have the URL to check out. It sounds like a file permission or firewall problem, with the server not delivering the .sb file to the client. Since I have no familiarity with Windows servers at all (and no desire ever to acquire such familiarity), I'm afraid someone else will have to help you.
Offline
Well thank you, Kevin. I've seen you offer so much help to so many people, I just assumed you were part of the scratch team. Maybe Andres is checking with some some server experts as I type this. I thought it might be a problem with permissions also, so I adjusted those setting accordingly and since other Java applets run fine on the same server, I don't know who else to try to get help from other than the Scratch community. Maybe no one else is trying to host Scratch files on a W2K3 Server.
Offline
I have discovered a solution, but it is not perfect. I renamed the .sb file by changing the extension from .sb to .class and changed the html code accordingly. Everything worked perfectly for .sb files that did not have sound. But when I tried this with a Scratch file that used sounds, it played the sounds I recorded okay, but not sounds from the soundbank, so I guess the next problem is that IIS doesn’t know what to do with .gm files. When accessing the Scratch files through a browser, an error message appears when the program tries to access the soundbank; it appears in the top gray bar of the Scratch screen just to the right of the red stop sign and green flag: "No soundbank; note & drum commands disabled." Does anyone have any suggestions?
Offline
So I got to thinking, maybe these file types (.sb & .gm) are not listed in the MIME tables of my server... and they're NOT!!! HA HA HA HA HA HA!!!! I've been wrestling with this since May.... So I added ".sb" as "application/x-java-applet" and it worked! So I don't need to use that goofy name-change solution, but that's what led me to this idea, so okay. I also added ".gm" I tried the MIME types of "application/x-java-applet" and "audio/basic" and BOTH worked but I have the suspicion that neither is actually correct. Would anyone happen to know what MIME type ".gm" (as in, soundbank.gm) is supposed to be?
Offline
Hi, Rico.
How frustrating! I've been also bitten by this issue of the server not having the MIME type for given file extensions on several occaisions--and it always throws me, too! At least you can change add MIME types to your severs configuration.
Re: soundbank.gm
Filext.com does not list a particular MIME type for .gm files. I'd go with:
application/octet-stream
that should work fine with the Scratch Java applet.
I'm glad you finally got it working and thank you for sharing that answer here.
-- John
Offline
I think that the .gm files are supposed to be audio/midi
Offline
Thank you very much Kevin and John. I tried both, and both seemed to work (as did the other two I tried)... I guess browsers are very forgiving; the important part is having the extension listed in the MIME Tables so that the server will serve up the file. Sorry for the double posting, but I wasn't sure if anyone would read to the bottom of this one :-) We can now get our after school club started, and we look forward to posting all projects on our intranet and to posting all projects that are fit to post on the Scratch server.
Offline
johnm wrote:
Hi, Rico.
How frustrating! I've been also bitten by this issue of the server not having the MIME type for given file extensions on several occaisions--and it always throws me, too! At least you can change add MIME types to your severs configuration.
Re: soundbank.gm
Filext.com does not list a particular MIME type for .gm files. I'd go with:
application/octet-stream
that should work fine with the Scratch Java applet.
I'm glad you finally got it working and thank you for sharing that answer here.
-- John
You are correct
Offline
comp500 wrote:
johnm wrote:
Hi, Rico.
How frustrating! I've been also bitten by this issue of the server not having the MIME type for given file extensions on several occaisions--and it always throws me, too! At least you can change add MIME types to your severs configuration.
Re: soundbank.gm
Filext.com does not list a particular MIME type for .gm files. I'd go with:
application/octet-stream
that should work fine with the Scratch Java applet.
I'm glad you finally got it working and thank you for sharing that answer here.
-- JohnYou are correct
Uh, in case you haven't noticed, this topic is almost 3 years old.
Offline
Harakou wrote:
comp500 wrote:
johnm wrote:
Hi, Rico.
How frustrating! I've been also bitten by this issue of the server not having the MIME type for given file extensions on several occaisions--and it always throws me, too! At least you can change add MIME types to your severs configuration.
Re: soundbank.gm
Filext.com does not list a particular MIME type for .gm files. I'd go with:
application/octet-stream
that should work fine with the Scratch Java applet.
I'm glad you finally got it working and thank you for sharing that answer here.
-- JohnYou are correct
Uh, in case you haven't noticed, this topic is almost 3 years old.
![]()
Well, I needed it, For my IIS server.
Offline