I am experimenting with tomcat7 and I have project for web application and project for applet, I wrote applet and when I right click on applet and click run in menu it pops up applet without any problems, but when I compile my web application, which includes that applet and I run it in web browser it pops this error. I already tried to compile it manually with jar and fastjar (my OS is Ubuntu), but same problem.
And in localhost_access.log
file is this:
"GET /Money/account/org/symphaty/money/applet/LineGraphApplet.class HTTP/1.1" 302 -
Edit:
This is content of .class file extracted from jar file
0000000: c38a c3be c2ba c2be 0000 0033 001e 0a00 ...........3....
0000010: 0600 1307 0014 0a00 0200 150a 0016 0017 ................
0000020: 0700 1807 0019 0100 0001 000c 496e 6e65 ............Inne
0000030: 7243 6c61 7373 6573 0100 063c 696e 6974 rClasses...<init
0000040: 3e01 0003 2829 5601 0004 436f 6465 0100 >...()V...Code..
This is output from od -tx1:
0000000 ca fe ba be 00 00 00 33 00 1e 0a 00 06 00 13 07
0000020 00 14 0a 00 02 00 15 0a 00 16 00 17 07 00 18 07
0000040 00 19 01 00 00 01 00 0c 49 6e 6e 65 72 43 6c 61
0000060 73 73 65 73 01 00 06 3c 69 6e 69 74 3e 01 00 03
0000100 28 29 56 01 00 04 43 6f 64 65 01 00 0f 4c 69 6e
0000120 65 4e 75 6d 62 65 72 54 61 62 6c 65 01 00 12 4c
0000140 6f 63 61 6c 56 61 72 69 61 62 6c 65 54 61 62 6c
0000160 65 01 00 04 74 68 69 73 01 00 2b 4c 6f 72 67 2f
0000200 73 79 6d 70 68 61 74 79 2f 6d 6f 6e 65 79 2f 61
0000220 70 70 6c 65 74 2f 4c 69 6e 65 47 72 61 70 68 41
This is output from jsp page, MoneyApplets.jar is located in WEB-INF/lib:
<%@ include file="basehead.jsp" %>
<body>
<div class="container" style="height: 100%; width: 100%">
<div class="row">
<%@ include file="header.jsp" %>
</div>
<div class="row maincontent">
<%@ include file="menu.jsp" %>
<div class="col-md-7 graphing">
<applet code="org.symphaty.money.applet.LineGraphApplet" archive="MoneyApplets.jar">
</applet>
</div>
<%@ include file="filter.jsp" %>
</div>
</div>
</body>
I moved the jar file to public folder resources and changed it to this, but still getting error, when i add the address to the browser, it offers download of jar file:
<applet code="org.symphaty.money.applet.LineGraphApplet" archive="http://localhost:8080/Money/resources/jar/MoneyApplets.jar"></applet>