Alvin,

That's easy to fix.  It appears that a setting in the file
webapps/cas/WEB-INF/classes/log4j.properties is attempting to write the log
to a location where it can't be written.

This most likely means its attempting to write the log to the directory
where tomcat was started.  You either (a) need to add write permissions for
the user to that directory or modify the log4j.properties to tell it to
write the cas.log to another directory.

And then restart Tomcat ;-)

-Scott

On 8/9/07, Alvin Pandrya <[EMAIL PROTECTED]> wrote:
>
> Hi Scott and Christian,
>
> Thanks so much for the swift reply!
>
> @Christian: I think it is the right port since I can get the tomcat
> welcome page in tomcat using port 8180. I've also checked server.xml and
> the port is set to 8180.
>
> @Scott: this is from catalina.out. I guess this
> java.lang.ExceptionInInitializerError is the cause. But I don't know how
> to fix this thing.
>
> 08-Aug-07 PM 04:32 org.apache.catalina.startup.HostConfig deployWAR
> SEVERE: Error deploying web application archive cas.war
> org.apache.commons.logging.LogConfigurationExcepti on:
> java.lang.ExceptionInInitializerError (Caused by
> java.lang.ExceptionInInitializerError)
> at org.apache.commons.logging.impl.LogFactoryImpl.new Instance(
> LogFactoryImpl.java:53
> at org.apache.commons.logging.impl.LogFactoryImpl.get Instance(
> LogFactoryImpl.java:235)
> at org.apache.commons.logging.LogFactory.getLog(LogFa ctory.java:370)
> at org.apache.catalina.core.ContainerBase.getLogger(C ontainerBase.java
> :380)
> at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java
> :4114)
> at org.apache.catalina.core.ContainerBase.addChildInt ernal(
> ContainerBase.java:759)
> at org.apache.catalina.core.ContainerBase.access$0(Co ntainerBase.java
> :743)
> at org.apache.catalina.core.ContainerBase$PrivilegedA ddChild.run(
> ContainerBase.java:143)
> at java.security.AccessController.doPrivileged(Native Method)
> at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java
> :737)
> at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:524)
> at org.apache.catalina.startup.HostConfig.deployWAR(H ostConfig.java:809)
> at org.apache.catalina.startup.HostConfig.deployWARs( HostConfig.java:69
> at org.apache.catalina.startup.HostConfig.deployApps( HostConfig.java:472)
> at org.apache.catalina.startup.HostConfig.start(HostC onfig.java:1122)
> at org.apache.catalina.startup.HostConfig.lifecycleEv ent(HostConfig.java
> :310)
> at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(
> LifecycleSupport.java:119)
> at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1021)
> at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:71
> at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1013)
> at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:442)
> at org.apache.catalina.core.StandardService.start(Sta ndardService.java
> :450)
> at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:709)
> at org.apache.catalina.startup.Catalina.start(Catalin a.java:551)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Native
> MethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
> legatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:294)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Native
> MethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
> legatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.commons.daemon.support.DaemonLoader.sta rt(DaemonLoader.java
> :177)
> Caused by: java.lang.ExceptionInInitializerError
> at org.apache.log4j.Logger.getLogger(Logger.java:104)
> at org.apache.commons.logging.impl.Log4JLogger.getLog ger(Log4JLogger.java
> :283)
> at org.apache.commons.logging.impl.Log4JLogger.<init> (Log4JLogger.java:10
> at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(
> NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(
> DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
> at org.apache.commons.logging.impl.LogFactoryImpl.new Instance(
> LogFactoryImpl.java:529)
> ... 33 more
> Caused by: java.security.AccessControlException: access denied (
> java.io.FilePermission cas.log write)
> at java.security.AccessControlContext.checkPermission (
> AccessControlContext.java:323)
> at java.security.AccessController.checkPermission(Acc essController.java
> :546)
> at java.lang.SecurityManager.checkPermission(Security Manager.java:532)
> at java.lang.SecurityManager.checkWrite(SecurityManag er.java:962)
> at java.io.FileOutputStream.<init>(FileOutputStream.j ava:169)
> at java.io.FileOutputStream.<init>(FileOutputStream.j ava:102)
> at org.apache.log4j.FileAppender.setFile(FileAppender .java:289)
> at org.apache.log4j.RollingFileAppender.setFile(Rolli ngFileAppender.java
> :165)
> at org.apache.log4j.FileAppender.activateOptions(File Appender.java:163)
> at org.apache.log4j.config.PropertySetter.activate(Pr opertySetter.java
> :256)
> at org.apache.log4j.config.PropertySetter.setProperti es(
> PropertySetter.java:132)
> at org.apache.log4j.config.PropertySetter.setProperti es(
> PropertySetter.java:96)
> at org.apache.log4j.PropertyConfigurator.parseAppende r(
> PropertyConfigurator.java:654)
> at org.apache.log4j.PropertyConfigurator.parseCategor y(
> PropertyConfigurator.java:612)
> at org.apache.log4j.PropertyConfigurator.configureRoo tCategory(
> PropertyConfigurator.java:509)
> at org.apache.log4j.PropertyConfigurator.doConfigure(
> PropertyConfigurator.java:415)
> at org.apache.log4j.PropertyConfigurator.doConfigure(
> PropertyConfigurator.java:441)
> at org.apache.log4j.helpers.OptionConverter.selectAnd Configure(
> OptionConverter.java:46
> at org.apache.log4j.LogManager.<clinit>(LogManager.ja va:122)
> ... 41 more
>
> On 8/9/07, Christian Haugen <[EMAIL PROTECTED]> wrote:
> >
> >  Are you sure you are using the right port? I am using the same setup
> > and I use port 8080 for http and 8443 for https.
> >
> >
> >
> > Christian
> >
> >
> >  ------------------------------
> >
> > *From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]
> > *On Behalf Of *Scott Battaglia
> > *Sent:* 9. august 2007 13:54
> > *To:* Yale CAS mailing list
> > *Subject:* Re: Need Help to setup CAS in Ubuntu Feisty
> >
> >
> >
> > Alvin,
> >
> > Check your cas.log or or catalina.out to see if any exceptions were
> > thrown.
> >
> > -Scott
> >
> > On 8/9/07, *Alvin Pandrya* < [EMAIL PROTECTED]> wrote:
> >
> > Hi everyone,
> >
> > I've got problem in setting up CAS in Ubuntu 7.04. I have installed
> > tomcat5.5, tomcat5.5-admin, and tomcat5.5-webapps. I've also installed
> > Java 6 JDK.
> >
> > I can get the welcome page when I browse to http://localhost:8180/ using
> > firefox (the default port opened is 8180 in Ubuntu)
> >
> > Then, what I do is copy the cas.war to /var/lib/tomcat5.5/webapps and
> > browse to http://localhost:8180/cas using firefox.
> > However, I got a HTTP 404 Error, saying the resources /cas can't be
> > found.
> >
> > Did I do something wrong? Please help. Thanks!
> >
> > Best regards,
> >
> > Alvin Pandrya
> >
> > _______________________________________________
> > Yale CAS mailing list
> > [email protected]
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
> >
> >
> >
> > --
> > -Scott Battaglia
> >
> > LinkedIn: http://www.linkedin.com/in/scottbattaglia
> >
> > _______________________________________________
> > Yale CAS mailing list
> > [email protected]
> > http://tp.its.yale.edu/mailman/listinfo/cas
> >
> >
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>


-- 
-Scott Battaglia

LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to