Java applet and Windows Server 2003

Hello Experts

We have a new server this morning and I'm transfering our entire website over to it from a windows 2000 server.  Everything seems to work fine other than my simple java side menu.  I believe I found the menu on a free dhtml site.  It's called HJava.  Anyway, it doesn't seem to work right on the new server.  The applet loads up and I get the menu background but I never see the actual menu items.  It's just an empty box.  I didn't change anything in my code other than addresses for the links.  So I copied the menu file back over to the win2k server to see if the links were wrong and they are not.  They work fine.

So, is there some special service that needs to be running/installed on a windows server 2003 to get java apps working properly?  I have 0 experience with java other than playing around with this menu.  Any help is appreciated as this is urgent!
jay-areAsked:
Who is Participating?
 
ZvonkoConnect With a Mentor Systems architectCommented:
Ok, last try.
Rename the meny2.mnu to meny2.txt and change the parameter to:
<param name=meny value="meny2.txt">

Also check wether your txt file is responding as text file without the applet.
If not, then I have no more ideas what it could be.

0
 
ZvonkoSystems architectCommented:
This is the JavaScript topic area, not Java applet.
But anyway, your applet needs nothing special on server side, it is executed in the browser on the client side.
Except it loads its parameter from a config file on the server side and you changed your direstory structure.
Check the parameters in the <applet> definition of the html page.


0
 
mreuringCommented:
I recommend downloading and installing a JDK from Sun and see if the applet is still malfunctioning. It's not entirally unlikely that the installed Java-components aren't functioning properly, I personally use a Java-applet that malfunctions under default isntalls of WinXP but works fine after installing a SUN or IBM JDK.

Good luck,

 Martin.

BTW, I recommend asking for this thread to be placed in the 'WEB languages' topic as this is not JavaScript related.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
mreuringCommented:
After reading Zvonko's comment I realise I misinterpreted the question and withdraw my advice as towards installing a new JDK, that would only apply for applets not functioning properly on the client.
0
 
jay-areAuthor Commented:
I will ask for this to be moved to web languages.  Sorry for the inconvience.  
0
 
ZvonkoSystems architectCommented:
No problem at all.
Did you check the <applet> definition?
0
 
jay-areAuthor Commented:
Yeah the definition stayed the same as it has on the win2k server.  The actual box for the applet loads fine.  Just none of the menu items appear for some reason.

<applet code="hJavamenu.class" width="119" height="350" VIEWASTEXT>
<param name=meny value="meny2.mnu">
<param name=bgcolor value="20,20,40">
<param name=menucolor value="0,0,255">
<param name=textcolor value="255,255,255">
<param name=linkcolor value="100,200,255">
<param name=3d value="0">
<param name=fontsizemain value="15">
<param name=fontsizesub value="13">
</applet>

0
 
ZvonkoSystems architectCommented:
Is this your applet: http://www.javafile.com/menuing/hjava/hjava.php
If yes, then check this parameter:
<param name=meny value="meny3.mnu">

I suppose your menu definition file is missing.

0
 
ZvonkoSystems architectCommented:
Ok, put this in your browser URL:
http://your.server.com/your/directory/meny3.mnu

The path should be same as your page's path where the applet is embedded.
Instead of the page name add your menu file name.
You should get the menu definition contenet as text in browser.
If you do not get that text file content, then is your web server configured not to deliver files with extension .mnu


0
 
jay-areAuthor Commented:
Actually as you can see in my html code above I use meny2.mnu instead of meny3.  This works fine on the old server.  The root dir contains both meny2 and the meny3 file that came with the app.  Meny3 is basically their example menu file so I never changed it at all.

I tried the URL out and it didn't display anything, gave me a 404 error.  I'm sure there is an extension or service that isn't running on win2k3.  What it is I'm not sure.  2003 is a lot different from 2000 so I'm kinda lost.
0
 
ZvonkoSystems architectCommented:
Hah! we got it!

Ok, now is the question hoe to configure your web server to pass the *.mnu files.
Is your meny2.mnu present and with correct access rights for the web server?

0
 
jay-areAuthor Commented:
The mnu file is in the wwwroot directory with everything else including my initial pages that it loads on.
Do I need to set special permissions for that directory or specific file?

This is so much easier to do in win2k!  :)

0
 
ZvonkoSystems architectCommented:
Ok, I download that applet and opened that meny2.mnu on my local IIS. It was no problem.
Getting error 404 does say: page not found.
Access errors would be normaly 401
I don't know why you get 404 when your meny2.mnu is in the correct directory.
Is your html page also in the root directory of your IIS server?

0
 
jay-areAuthor Commented:
Yeah my index.htm and all its associated pages are in the wwwroot dir.

HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)

That's the specific error it gives me.  Do I need to change the setup of the default web dir in IIS?  
0
 
ZvonkoSystems architectCommented:
No, you need not to change anything.

Is your page accessible on the Internet?


0
 
jay-areAuthor Commented:
The website is for intranet only.  So its on an internal IP and everything loads and runs fine except for this menu.  Kinda need the menu to navigate the rest of the site too

:)
0
 
jay-areAuthor Commented:
Strangely enough that works!

I renamed the mnu to a text file, then changed the applet parameters and bam it loads.  So I'm guessing the 2003 server wasn't allowing .mnu extensions?

*confused*
0
 
ZvonkoSystems architectCommented:
Yep! That was also my previous assumption in my upper configuration comment.

Anyway, thanks for points.

0
 
jay-areAuthor Commented:
I appreciate your prompt work!

Next time I'll try to post these sorts of questions in the right place.

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.