You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Kevan Miller (JIRA)" <de...@geronimo.apache.org> on 2005/12/15 18:01:46 UTC

[jira] Created: (GERONIMO-1370) velocity.log is created in current directory on server startup

velocity.log is created in current directory on server startup
--------------------------------------------------------------

         Key: GERONIMO-1370
         URL: http://issues.apache.org/jira/browse/GERONIMO-1370
     Project: Geronimo
        Type: Bug
    Versions: 1.0    
 Environment: 1.0 RC1
    Reporter: Kevan Miller
    Priority: Minor
     Fix For: 1.0


velocity.log is being created in the current directory when you start the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-1370) velocity.log is created in current directory on server startup

Posted by "Alan Cabrera (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-1370?page=all ]

Alan Cabrera updated GERONIMO-1370:
-----------------------------------

    Fix Version:     (was: 1.0)

> velocity.log is created in current directory on server startup
> --------------------------------------------------------------
>
>          Key: GERONIMO-1370
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1370
>      Project: Geronimo
>         Type: Bug
>     Versions: 1.0
>  Environment: 1.0 RC1
>     Reporter: Kevan Miller
>     Priority: Minor

>
> velocity.log is being created in the current directory when you start the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-1370) velocity.log is created in current directory on server startup

Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-1370?page=all ]

Aaron Mulder updated GERONIMO-1370:
-----------------------------------

      Component: sample apps
                 startup/shutdown
    Fix Version: 1.1

It sounds like a fix has been applied.  Can this be closed?

> velocity.log is created in current directory on server startup
> --------------------------------------------------------------
>
>          Key: GERONIMO-1370
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1370
>      Project: Geronimo
>         Type: Bug
>   Components: sample apps, startup/shutdown
>     Versions: 1.0
>  Environment: 1.0 RC1
>     Reporter: Kevan Miller
>     Assignee: Kevan Miller
>     Priority: Minor
>      Fix For: 1.1

>
> velocity.log is being created in the current directory when you start the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (GERONIMO-1370) velocity.log is created in current directory on server startup

Posted by "Kevan Miller (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-1370?page=all ]

Kevan Miller reassigned GERONIMO-1370:
--------------------------------------

    Assign To: Kevan Miller

Looks like this problem is caused by the Debug Console. org.apache.geronimo.jmxdebug.web.velocity.ServletLogger is trying to act as the Velocity logger. However, ServletLogger doesn't implement the org.apache.velocity.runtime.log.LogSystem interface (although it seems to implement all of the required methods...).  Since ServletLogger doesn't implement LogSystem, Velocity is falling back to the Avalon log system...

> velocity.log is created in current directory on server startup
> --------------------------------------------------------------
>
>          Key: GERONIMO-1370
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1370
>      Project: Geronimo
>         Type: Bug
>     Versions: 1.0
>  Environment: 1.0 RC1
>     Reporter: Kevan Miller
>     Assignee: Kevan Miller
>     Priority: Minor

>
> velocity.log is being created in the current directory when you start the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (GERONIMO-1370) velocity.log is created in current directory on server startup

Posted by "Paul McMahan (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-1370?page=comments#action_12360835 ] 

Paul McMahan commented on GERONIMO-1370:
----------------------------------------

If the current directory where you start the server is not writable then you get the following error in the server log.

PANIC : Error configuring AvalonLogSystem : java.io.FileNotFoundException: /home/pmcmahan/download/geronimo-1.0/velocity.log (Permission denied)
PANIC : Error configuring AvalonLogSystem : java.io.FileNotFoundException: /home/pmcmahan/download/geronimo-1.0/velocity.log (Permission denied)
11:32:52,547 ERROR [[/debug-tool]] Debug: BasicVelocityActionServlet
java.lang.Exception: Unable to configure AvalonLogSystem : java.io.FileNotFoundException: /home/pmcmahan/download/geronimo-1.0/velocity.log (Permission denied)
        at org.apache.velocity.runtime.log.AvalonLogSystem.init(AvalonLogSystem.java:92)
        at org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:127)
        at org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance.java:553)
        at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:226)
        at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:80)
        at org.apache.geronimo.jmxdebug.web.velocity.BasicVelocityActionServlet.init(BasicVelocityActionServlet.java:103)
        at javax.servlet.GenericServlet.init(GenericServlet.java:168)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3880)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4141)
        at org.apache.geronimo.tomcat.GeronimoStandardContext.access$101(GeronimoStandardContext.java:64)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:267)
        at org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
        at org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
        at org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
        at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:187)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:287)
        at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$9f00ee94.addContext(<generated>)
        at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:407)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:936)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:325)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:132)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:537)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:208)
        at org.apache.geronimo.kernel.config.Configuration.startRecursiveGBeans(Configuration.java:315)
        at org.apache.geronimo.kernel.config.Configuration$$FastClassByCGLIB$$7f4b4a9b.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:835)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:178)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:173)
        at org.apache.geronimo.kernel.config.ConfigurationManagerImpl.start(ConfigurationManagerImpl.java:142)
        at org.apache.geronimo.kernel.config.ConfigurationManagerImpl$$FastClassByCGLIB$$fbed85d2.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at org.apache.geronimo.kernel.config.ConfigurationManager$$EnhancerByCGLIB$$49a67291.start(<generated>)
        at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:323)
        at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:82)
        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:404)
11:32:52,561 ERROR [[/debug-tool]] Servlet /debug-tool threw load() exception
java.lang.Exception: Unable to configure AvalonLogSystem : java.io.FileNotFoundException: /home/pmcmahan/download/geronimo-1.0/velocity.log (Permission denied)
        at org.apache.velocity.runtime.log.AvalonLogSystem.init(AvalonLogSystem.java:92)
        at org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:127)
        at org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance.java:553)
        at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:226)
        at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:80)
        at org.apache.geronimo.jmxdebug.web.velocity.BasicVelocityActionServlet.init(BasicVelocityActionServlet.java:103)
        at javax.servlet.GenericServlet.init(GenericServlet.java:168)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3880)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4141)
        at org.apache.geronimo.tomcat.GeronimoStandardContext.access$101(GeronimoStandardContext.java:64)
        at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:267)
        at org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
        at org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
        at org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
        at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:187)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at org.apache.geronimo.tomcat.TomcatContainer.addContext(TomcatContainer.java:287)
        at org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$$9370b073.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at org.apache.geronimo.tomcat.TomcatContainer$$EnhancerByCGLIB$$9f00ee94.addContext(<generated>)
        at org.apache.geronimo.tomcat.TomcatWebAppContext.doStart(TomcatWebAppContext.java:407)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:936)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:325)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:110)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:132)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:537)
        at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:208)
        at org.apache.geronimo.kernel.config.Configuration.startRecursiveGBeans(Configuration.java:315)
        at org.apache.geronimo.kernel.config.Configuration$$FastClassByCGLIB$$7f4b4a9b.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:835)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:178)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:173)
        at org.apache.geronimo.kernel.config.ConfigurationManagerImpl.start(ConfigurationManagerImpl.java:142)
        at org.apache.geronimo.kernel.config.ConfigurationManagerImpl$$FastClassByCGLIB$$fbed85d2.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at org.apache.geronimo.kernel.config.ConfigurationManager$$EnhancerByCGLIB$$49a67291.start(<generated>)
        at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:323)
        at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:82)
        at org.apache.geronimo.system.main.Daemon.main(Daemon.java:404)


> velocity.log is created in current directory on server startup
> --------------------------------------------------------------
>
>          Key: GERONIMO-1370
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1370
>      Project: Geronimo
>         Type: Bug
>     Versions: 1.0
>  Environment: 1.0 RC1
>     Reporter: Kevan Miller
>     Priority: Minor

>
> velocity.log is being created in the current directory when you start the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (GERONIMO-1370) velocity.log is created in current directory on server startup

Posted by "Kevan Miller (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-1370?page=comments#action_12360962 ] 

Kevan Miller commented on GERONIMO-1370:
----------------------------------------

Fixed in HEAD:

Sending        applications/jmxdebug/src/java/org/apache/geronimo/jmxdebug/web/velocity/ServletLogger.java
Sending        applications/jmxdebug/src/webapp/mbeaninfo.vm
Transmitting file data ..
Committed revision 358088.

ServletLogger now implements org.apache.velocity.runtime.log.LogSystem. Discovered some Velocity errors while testing (velocity searches for methods, even if the html is commented out...). So, I fixed this and enabled MBean methods, while I was at it...

Velocity/Debug Console logging is all via the ServletContext. This seems less than ideal, but I assume the Debug Console will soon be replaced...

> velocity.log is created in current directory on server startup
> --------------------------------------------------------------
>
>          Key: GERONIMO-1370
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1370
>      Project: Geronimo
>         Type: Bug
>     Versions: 1.0
>  Environment: 1.0 RC1
>     Reporter: Kevan Miller
>     Assignee: Kevan Miller
>     Priority: Minor

>
> velocity.log is being created in the current directory when you start the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (GERONIMO-1370) velocity.log is created in current directory on server startup

Posted by "Kevan Miller (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-1370?page=all ]
     
Kevan Miller closed GERONIMO-1370:
----------------------------------

    Fix Version: 1.0.1
     Resolution: Fixed

Merged fix from trunk to 1.0

1.0:

Sending        applications/jmxdebug/src/java/org/apache/geronimo/jmxdebug/web/velocity/ServletLogger.java
Sending        applications/jmxdebug/src/webapp/mbeaninfo.vm
Transmitting file data ..
Committed revision 370723.


> velocity.log is created in current directory on server startup
> --------------------------------------------------------------
>
>          Key: GERONIMO-1370
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1370
>      Project: Geronimo
>         Type: Bug
>   Components: sample apps, startup/shutdown
>     Versions: 1.0
>  Environment: 1.0 RC1
>     Reporter: Kevan Miller
>     Assignee: Kevan Miller
>     Priority: Minor
>      Fix For: 1.1, 1.0.1

>
> velocity.log is being created in the current directory when you start the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (GERONIMO-1370) velocity.log is created in current directory on server startup

Posted by "Paul McMahan (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-1370?page=comments#action_12360836 ] 

Paul McMahan commented on GERONIMO-1370:
----------------------------------------

Forgot to mention:  the server and console still appears to be functional after getting the above error message.

> velocity.log is created in current directory on server startup
> --------------------------------------------------------------
>
>          Key: GERONIMO-1370
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1370
>      Project: Geronimo
>         Type: Bug
>     Versions: 1.0
>  Environment: 1.0 RC1
>     Reporter: Kevan Miller
>     Priority: Minor

>
> velocity.log is being created in the current directory when you start the server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira