Hi all,

I am trying (for the first time) to set up Newapp on a Linux box.

I started by loading tdk-2.1 and hitting http://myhost:8080/test/servlet/test, and all 
was 
well. 

However, when I try the same application on my ISP's Apache-Tomcat4 installation, I 
get:

PANIC : Error configuring AvalonLogSystem : java.io.FileNotFoundException: 
/home/virtual/site1/fst/var/www/html/logs/velocity.log (Permission denied)
PANIC : Error configuring AvalonLogSystem : java.io.FileNotFoundException: 
/home/virtual/site1/fst/var/www/html/logs/velocity.log (Permission denied)
java.lang.NullPointerException
java.lang.NullPointerException
        at org.apache.velocity.runtime.log.AvalonLogSystem.logVelocityMessage
(AvalonLogSystem.java)
        at org.apache.velocity.runtime.Runtime.log(Runtime.java)
        at org.apache.velocity.runtime.Runtime.dumpPendingMessages(Runtime.java)
        at org.apache.velocity.runtime.Runtime.initializeLogger(Runtime.java)
        at org.apache.velocity.runtime.Runtime.init(Runtime.java)
        at org.apache.velocity.app.Velocity.init(Velocity.java)
        at org.apache.turbine.services.velocity.TurbineVelocityService.initVelocity
(TurbineVelocityService.java:460)
        at org.apache.turbine.services.velocity.TurbineVelocityService.init
(TurbineVelocityService.java:138)
        at org.apache.turbine.services.TurbineBaseService.init
(TurbineBaseService.java:108)
        at org.apache.turbine.services.BaseInitableBroker.initClass
(BaseInitableBroker.java:150)
        at org.apache.turbine.services.BaseServiceBroker.doInitService
(BaseServiceBroker.java:226)
        at org.apache.turbine.services.BaseServiceBroker.initServices
(BaseServiceBroker.java:195)
        at org.apache.turbine.Turbine.init(Turbine.java:185)
        at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:916)

I tried adding the following permission to site1.policy.custom:

grant codeBase "file:/home/virtual/site1/fst/var/www/html/WEB-INF/lib/-" {
  permission java.security.AllPermission;
};

and I also tried the individual jar files:

grant codeBase "file:/home/virtual/site1/fst/var/www/html/WEB-INF/lib/velocity-1.2-
dev.jar" {
  permission java.security.AllPermission;
};
grant codeBase "file:/home/virtual/site1/fst/var/www/html/WEB-INF/lib/turbine-
2.1.jar" {
  permission java.security.AllPermission;
};
grant codeBase "file:/home/virtual/site1/fst/var/www/html/WEB-INF/lib/log4j-1.1.jar" {
  permission java.security.AllPermission;
};

but it still fails as above.

My environment:
Apache/1.3.22
Tomcat4.0.3
Turbine 2.1

Has anyone come across this?  Any ideas what I am doing wrong?

Regards,
Kevin McKenzie




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to