• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Cannot Reproduce
  • drb
  • Reporter: tgautier
  • August 28, 2007
  • 0
  • Watchers: 0
  • July 27, 2012
  • October 23, 2008

Description

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 jvoegele@Wintermute 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 jvoegele@Wintermute 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.(StandardTVSConfigurationSetupManagerFactory.java:98) [INFO] [node0] at com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.(StandardTVSConfigurationSetupManagerFactory.java:50) [INFO] [node0] at com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.(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 jvoegele@Wintermute 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 jvoegele@Wintermute 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.(StandardTVSConfigurationSetupManagerFactory.java:98) [INFO] [node0] at com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.(StandardTVSConfigurationSetupManagerFactory.java:50) [INFO] [node0] at com.tc.config.schema.setup.StandardTVSConfigurationSetupManagerFactory.(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

Comments

Eugene Kuleshov 2007-08-28

Taylor, can you please attach your pom.xml?

It looks like you are using relatively old snapshot and we may already fixed this in more recent builds.

Also note you need to use new snapshot repository instead of the the old one. I’ve just updated wiki page about that.