• Post Reply Bookmark Topic Watch Topic
  • New Topic

newbie 2D/Notinited/missing files(??) problem

 
Barbara Norway
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I was just given a dozen or so class files and an html file to add to our web server. I placed them in a directory under htdocs on our Apache server. I have a number of questions:
1) is Tomcat necessary as a servlet container or will "vanilla" Apache do?
2) The applet works with neither Newest versions of IE nor Netscape
3) The Java console window says:
java.lang.NoClassDefFoundError: y/view/Graph2DView
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
4. The html file says:
html
.
.
.
function resize() {
var w_newWidth,w_newHeight;
if (navigator.appName.indexOf("Microsoft") != -1)
{
w_newWidth=document.body.clientWidth;
w_newHeight=document.body.clientHeight;
}else{
var netscapeScrollWidth=15;
w_newWidth=window.innerWidth-netscapeScrollWidth;
w_newHeight=window.innerHeight-netscapeScrollWidth;
}
document.ProteinInteractionMapApplet.setSize(w_newWidth,w_newHeight);
window.scroll(0,0);
}
window.onResize = resize;
window.onLod = resize;
center
applet NAME="ProteinInteractionMapApplet" code="ProteinInteractionMapApplet" archive="y.jar" height="100%" width="100%"/applet
/center
/body
/html
=================================================
5. Is the fact that the html code above says "y.jar" under archive and there is not a y.jar file a problem?
____________________
6. The status bar says "ProteinInteractionMapApplet Notinited "
Sorry this post is so long and rambling but I'm trying to give enough detail that I can at least narrow down where I should start looking for a solution. I realize there may be multiple things that may need configuring or fixing.
Thanks VERY much (in advance) for any insight provided.
Barbara
 
Barbara Norway
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
After working on this some more I have ironed out a number of the issues. Looking at the error messages I tried to find out what was missing and it turns out that the application is using some classes from a company called yworks (www.yworks.com). The developer who gave me the files that he developed didn't give me the yworks stuff. I figured all this out by searching the web for the missing file names. I believe the application will work once I get the missing files.
But if anyone sees any other potential pitfalls, please let me know.
P.S. I think it's going to work with just Apache server (no servlet container needed) by putting the class files in the proper directories.
Thanks!
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Barbara,
Servlets run on the server, while applets run on the client. To run a servlet, you must have a servlet container in which the servlet can run -- bare Apache won't do it, as it contains no JVM. To run an applet, a servlet container is irrelevant -- the browser functions as the "applet container" and all the server does is send the .class files, which, as far as the server is concerned, might as well be images or sound files; no special configuration is needed.
It sounds to me from your description like you've got an applet, not a servlet, in which case it sounds like you've got the situation under control.
 
Barbara Norway
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Yes, everything is working now. I appreciate the help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!