| Author |
can't access class files under WEB-INF
|
L. Wahana
Greenhorn
Joined: Jun 30, 2002
Posts: 3
|
|
Can anyone help me with this problem? Is there any setting at Tomcat or Apache to disable accessing WEB-INF directory? Because I can access jsp, but unable to run servlet or accessing class under WEB-INF from this jsp. The chmod is 755, but still i cant access it. thanks. Wahana.
|
 |
Rene Larsen
Ranch Hand
Joined: Oct 12, 2001
Posts: 1179
|
|
You need a folder named 'classes' in the WEB-INF where you put all *.class and you need to configure the servlets in web.xml /Rene
|
Regards, Rene Larsen
Dropbox Invite
|
 |
L. Wahana
Greenhorn
Joined: Jun 30, 2002
Posts: 3
|
|
I created classes folder under WEB-INF, and I also defined servlet and servlet mapping at web.xml. But, still doesnt work. In my local machine it worked fine, but not in my ISP machine. I have no idea how to solve this problem. There may be a configuration file that I need to set up. Wahana.
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12267
|
|
If your classes are not in a package, this could be the problem. When some servers see a class in the default package they look in the wrong place. Bill
|
Java Resources at www.wbrogden.com
|
 |
L. Wahana
Greenhorn
Joined: Jun 30, 2002
Posts: 3
|
|
I did put the class in a package. I found that there is examples.war running in my ISP machine. The difference with my web application is: My web application is linked (using soft link) from tomcat/webapps directory. Examples web-applications is physically under web-apps. My ISP machine is using Red Hat Linux. Wahana.
|
 |
 |
|
|
subject: can't access class files under WEB-INF
|
|
|