config property for maven plugin doesn't work
---------------------------------------------

                 Key: CDV-401
                 URL: https://jira.terracotta.org/jira//browse/CDV-401
             Project: Community Development
          Issue Type: Bug
            Reporter: Taylor Gautier
         Assigned To: Issue Review Board


I specified a different filename for the config property for tc:run.  When 
doing so, I get the following exception (note that the file is located in the 
directory found, as evidenced by the modules being scanned, but then tc itself 
doesn't find it)

2007-08-28 18:34:43,211 INFO - Terracotta trunk, as of 20070826-070836 
(Revision 5272 by [EMAIL PROTECTED] from trunk)
2007-08-28 18:34:43,628 INFO - Configuration loaded from the file at 
'/Users/tgautier/src/jetty-example/./target/classes/tc-config.xml'.
[INFO] Resolving module org.terracotta.modules:modules-common-1.0:jar:1.0.0
[INFO] Resolving module org.terracotta.modules:clustered-jetty-6.1:jar:1.0.0
[INFO] Resolving module 
org.terracotta.modules:clustered-apache-struts-1.1:jar:1.1.0
[INFO] Resolving module org.mortbay.jetty:jetty-terracotta-sessions:jar:6.1.5
[INFO] BootJar already exist 
/Users/tgautier/src/jetty-example/target/dso-boot.jar
[INFO] Skipping starting DSO Server
[INFO] ------------------------------------------------------------------------
2007-08-28 18:34:43,720 INFO - Configuration loaded from the file at 
'/Users/tgautier/src/jetty-example/./target/classes/tc-config.xml'.
[INFO] Resolving module org.terracotta.modules:modules-common-1.0:jar:1.0.0
[INFO] Resolving module org.terracotta.modules:clustered-jetty-6.1:jar:1.0.0
[INFO] Resolving module 
org.terracotta.modules:clustered-apache-struts-1.1:jar:1.1.0
[INFO] Resolving module org.mortbay.jetty:jetty-terracotta-sessions:jar:6.1.5
[INFO] Starting DSO processes
[INFO] ------------------------------------------------------------------------
[INFO] Waiting completion of the DSO process
[INFO] [node0] 2007-08-28 18:34:44,411 INFO - Terracotta trunk, as of 
20070826-070836 (Revision 5272 by [EMAIL PROTECTED] from trunk)
[INFO] [node0] java.lang.reflect.InvocationTargetException
[INFO] [node0]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [node0]  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] [node0]  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] [node0]  at java.lang.reflect.Method.invoke(Method.java:585)
[INFO] [node0]  at 
com.tc.object.bytecode.hook.impl.ClassProcessorHelper.createGlobalContext(ClassProcessorHelper.java:438)
[INFO] [node0]  at 
com.tc.object.bytecode.hook.impl.ClassProcessorHelper.init(ClassProcessorHelper.java:329)
[INFO] [node0]  at 
com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelper.java:468)
[INFO] [node0]  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[INFO] [node0]  at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[INFO] [node0]  at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[INFO] [node0]  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[INFO] [node0]  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[INFO] [node0]  at java.security.AccessController.doPrivileged(Native Method)
[INFO] [node0]  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[INFO] [node0]  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[INFO] [node0]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[INFO] [node0]  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[INFO] [node0]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[INFO] [node0] Caused by: 
com.tc.config.schema.setup.ConfigurationSetupException: 
[INFO] [node0] 
*******************************************************************************
[INFO] [node0] You must specify the location of the Terracotta configuration 
file for this process, using the 'tc.config' system property.
[INFO] [node0] 
*******************************************************************************
[INFO] [node0] 
[INFO] [node0]  at 
com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.<init>(StandardTVSConfigurationSetupManagerFactory.java:98)
[INFO] [node0]  at 
com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.<init>(StandardTVSConfigurationSetupManagerFactory.java:50)
[INFO] [node0]  at 
com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.<init>(StandardTVSConfigurationSetupManagerFactory.java:44)
[INFO] [node0]  at 
com.tc.object.bytecode.hook.impl.DSOContextImpl.getGlobalConfigHelper(DSOContextImpl.java:163)
[INFO] [node0]  at 
com.tc.object.bytecode.hook.impl.DSOContextImpl.createGlobalContext(DSOContextImpl.java:61)
[INFO] [node0]  ... 18 more
[INFO] DSO processes finished
[INFO] Skipping stopping DSO Server
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Tue Aug 28 18:34:44 PDT 2007
[INFO] Final Memory: 8M/15M
[INFO] ------------------------------------------------------------------------
administrators-computer-4:~/src/jetty-example tgautier$ cp 
target/classes/tc-config.xml tc.xml
administrators-computer-4:~/src/jetty-example tgautier$ ls 
logs    pom.xml src     target  tc.xml
administrators-computer-4:~/src/jetty-example tgautier$ vi pom.xml 
administrators-computer-4:~/src/jetty-example tgautier$ !m
mvn tc:run
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'tc'.
[INFO] 
----------------------------------------------------------------------------
[INFO] Building jetty-example Maven Webapp
[INFO]    task-segment: [tc:run]
[INFO] 
----------------------------------------------------------------------------
[INFO] Preparing tc:run
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [tc:run]
2007-08-28 18:35:39,260 INFO - Terracotta trunk, as of 20070826-070836 
(Revision 5272 by [EMAIL PROTECTED] from trunk)
2007-08-28 18:35:39,702 INFO - Configuration loaded from the file at 
'/Users/tgautier/src/jetty-example/tc.xml'.
[INFO] Resolving module org.terracotta.modules:modules-common-1.0:jar:1.0.0
[INFO] Resolving module org.terracotta.modules:clustered-jetty-6.1:jar:1.0.0
[INFO] Resolving module 
org.terracotta.modules:clustered-apache-struts-1.1:jar:1.1.0
[INFO] Resolving module org.mortbay.jetty:jetty-terracotta-sessions:jar:6.1.5
[INFO] BootJar already exist 
/Users/tgautier/src/jetty-example/target/dso-boot.jar
[INFO] Skipping starting DSO Server
[INFO] ------------------------------------------------------------------------
2007-08-28 18:35:39,794 INFO - Configuration loaded from the file at 
'/Users/tgautier/src/jetty-example/tc.xml'.
[INFO] Resolving module org.terracotta.modules:modules-common-1.0:jar:1.0.0
[INFO] Resolving module org.terracotta.modules:clustered-jetty-6.1:jar:1.0.0
[INFO] Resolving module 
org.terracotta.modules:clustered-apache-struts-1.1:jar:1.1.0
[INFO] Resolving module org.mortbay.jetty:jetty-terracotta-sessions:jar:6.1.5
[INFO] Starting DSO processes
[INFO] ------------------------------------------------------------------------
[INFO] Waiting completion of the DSO process
[INFO] [node0] 2007-08-28 18:35:40,563 INFO - Terracotta trunk, as of 
20070826-070836 (Revision 5272 by [EMAIL PROTECTED] from trunk)
[INFO] [node0] java.lang.reflect.InvocationTargetException
[INFO] [node0]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[INFO] [node0]  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[INFO] [node0]  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[INFO] [node0]  at java.lang.reflect.Method.invoke(Method.java:585)
[INFO] [node0]  at 
com.tc.object.bytecode.hook.impl.ClassProcessorHelper.createGlobalContext(ClassProcessorHelper.java:438)
[INFO] [node0]  at 
com.tc.object.bytecode.hook.impl.ClassProcessorHelper.init(ClassProcessorHelper.java:329)
[INFO] [node0]  at 
com.tc.object.bytecode.hook.impl.ClassProcessorHelper.defineClass0Pre(ClassProcessorHelper.java:468)
[INFO] [node0]  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[INFO] [node0]  at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[INFO] [node0]  at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[INFO] [node0]  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[INFO] [node0]  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[INFO] [node0]  at java.security.AccessController.doPrivileged(Native Method)
[INFO] [node0]  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[INFO] [node0]  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[INFO] [node0]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[INFO] [node0]  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[INFO] [node0]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[INFO] [node0] Caused by: 
com.tc.config.schema.setup.ConfigurationSetupException: 
[INFO] [node0] 
*******************************************************************************
[INFO] [node0] You must specify the location of the Terracotta configuration 
file for this process, using the 'tc.config' system property.
[INFO] [node0] 
*******************************************************************************
[INFO] [node0] 
[INFO] [node0]  at 
com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.<init>(StandardTVSConfigurationSetupManagerFactory.java:98)
[INFO] [node0]  at 
com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.<init>(StandardTVSConfigurationSetupManagerFactory.java:50)
[INFO] [node0]  at 
com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.<init>(StandardTVSConfigurationSetupManagerFactory.java:44)
[INFO] [node0]  at 
com.tc.object.bytecode.hook.impl.DSOContextImpl.getGlobalConfigHelper(DSOContextImpl.java:163)
[INFO] [node0]  at 
com.tc.object.bytecode.hook.impl.DSOContextImpl.createGlobalContext(DSOContextImpl.java:61)
[INFO] [node0]  ... 18 more
[INFO] DSO processes finished


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

        
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to