Lance Manion

Greenhorn
+ Follow
since May 16, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Lance Manion

Yes, I had changed the name of the package to conform with java standards as someone suggested.

tbh, I'm not really interested in fixing this problem anymore unless someone with a similar experience already has a solution. We've gone through all the appropriate trouble shooting and I like to think that I kept my process as simple as possible. I think the problem is some obscure configuration error between windows 7, tomcat, java, and whatever else involved.
12 years ago
By explorer I mean double clicking the .html file and displaying it with my web browser. The URL is file:///C:/Program%20Files/Apache%20Software%20Fou...07.0/webapps/sample/index.html

By local I mean using tomcat where the URL is http://localhost:8080/sample/

It works fine everywhere except on the tomcat server, localhost
12 years ago
Yes, it downloads fine. I downloaded it from sample/Ship.jar. Then I replaced webapps/sample/Ship.jar with it. It runs fine in the explorer, but not on localhost.
12 years ago
Ship is the jar
ship is the package name
It all seems kind of irrelevant to me since it works perfectly fine elsewhere.

The jar file needs to be in the same folder as the html page since it is an applet. I believe servlets go into the WEB-INF folder. I expect the tomcat server to display an html page exactly like I would find on the internet. It displays images fine, but for some reason it is doing something with the jar's.

The only thing I can even think of is that tomcat is forcing my computer to use a 32bit jvm while my browser expects 64b. However, this doesn't really make any sense and I don't know how to change tomcat's jvm anyway.
12 years ago
The get looks fine.
0:0:0:0:0:0:0:1 - - [25/May/2011:15:08:03 -0400] "GET /sample/Ship.jar HTTP/1.1" 200 1451641

This is the error from the console



The jar works fine from explorer and on a public server I use. I have no idea why Tomcat won't run it locally.
12 years ago
From the manager I can see my webpage, but I don't see any references to the applet.

In WEB-INF I have
classes/
lib/
web.xml

classes and lib are empty.

In the folder with the html page I have a gif and the jar. From my understanding tomcat will pass the jar just as it would the gif. This is why I don't understand why the gif file displays without error while the applet will not load.
12 years ago
I do not use any IDE.
12 years ago
I renamed the package, removed the file extension, reinstalled tomcat. Access logs don't say much, just a bunch of GETS.
12 years ago
I think I found the issue. Whenever I download Ship.jar, it is 12kb, but the current one in webapps/sample is 1,418kb.

If I'm manually putting files in to sample, how do I get tomcat to update this?

I'm starting the server with bin/tomcat7.exe, would this cause any problems?
12 years ago

Lance Manion wrote:I have in folder C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\sample
index.html
Ship.jar
ship.gif

In index.html



The URL of my Tomcat server is http://localhost:8080/sample/ (index.html)

Ship.ShipGame.class is in the jar, Ship/ShipGame.class.

I am able to download the jar from http://localhost:8080/sample/Ship.jar, are there any other permissions I should check? I'll take a look at the access logs tomorrow.
12 years ago
I have written the html applet code in every way I could think of, packed and unpacked in a jar. This is a jar I have used in the past, I even have it posted on a public server with the exact same html code.

If there are no tomcat settings or paths to worry about then it seems my only option is to try another version of tomcat.
12 years ago
I have been mulling over this problem for a whole day and I'm unable to find any documentation or posts that help.

I have in folder C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\sample
index.html
Ship.jar
ship.gif

In index.html


ship.gif displays fine, but ship.jar gives me this error:


When I execute the html page from file:///C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/sample/index.html, it works fine, but when I use tomcat, http://localhost:8080/sample/, it fails.

Is this an issue with tomcat 7?
12 years ago