• Bug
  • Status: Closed
  • 1 Critical
  • Resolution: Fixed
  • hsingh
  • Reporter: teck
  • July 30, 2009
  • 0
  • Watchers: 0
  • February 12, 2013
  • August 06, 2009

Attachments

Description

kermit:~/desktop/terracotta-3.1.0-stable1/samples/pojo/chatter>./run.sh Starting BootJarTool… 2009-07-30 15:35:31,211 INFO - Terracotta 3.1.0-stable1, as of 20090730-130721 (Revision 13295 by [email protected] from 3.1) 2009-07-30 15:35:31,477 INFO - Configuration loaded from the file at ‘c:\Documents and Settings\teck\Desktop\terracotta-3.1.0-stable1\samples\pojo\chatter.\tc-config.xml’. 2009-07-30 15:35:31,961 INFO - Found boot JAR file at ‘C:\Documents and Settings\teck\Desktop\terracotta-3.1.0-stable1\lib\dso-boot\dso-boot-hotspot_win32_160_14.jar’; validating… 2009-07-30 15:35:32,102 INFO - Valid. java.lang.NoClassDefFoundError: and Caused by: java.lang.ClassNotFoundException: and at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Could not find the main class: and. Program will exit.

Comments

Steve Harris 2009-07-30

Doesn’t have to be fixed for the stable 1 but should be fixed by release

Hung Huynh 2009-08-06

not working completely in some scenarios

Himadri Singh 2009-08-12

Getting following error on windows with cygwin in rev 4358-13385

bash-3.2$ ./run.sh Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]… NAME… cygpath [-c HANDLE] cygpath [-ADHPSW] Convert Unix and Windows format paths, or output system path information

Output type options: -d, –dos print DOS (short) form of NAMEs (C:\PROGRA~1) -m, –mixed like –windows, but with regular slashes (C:/WINNT) -M, –mode report on mode of file (binmode or textmode) -u, –unix (default) print Unix form of NAMEs (/cygdrive/c/winnt) -w, –windows print Windows form of NAMEs (C:\WINNT) -t, –type TYPE print TYPE form: ‘dos’, ‘mixed’, ‘unix’, or ‘windows’ Path conversion options: -a, –absolute output absolute path -l, –long-name print Windows long form of NAMEs (with -w, -m only) -p, –path NAME is a PATH list (i.e., ‘/bin:/usr/bin’) -s, –short-name print DOS (short) form of NAMEs (with -w, -m only) System information: -A, –allusers use `All Users’ instead of current user for -D, -P -D, –desktop output `Desktop’ directory and exit -H, –homeroot output `Profiles’ directory (home root) and exit -P, –smprograms output Start Menu `Programs’ directory and exit -S, –sysdir output system directory and exit -W, –windir output `Windows’ directory and exit Try `cygpath –help’ for more information. Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]… NAME… cygpath [-c HANDLE] cygpath [-ADHPSW] Convert Unix and Windows format paths, or output system path information

Output type options: -d, –dos print DOS (short) form of NAMEs (C:\PROGRA~1) -m, –mixed like –windows, but with regular slashes (C:/WINNT) -M, –mode report on mode of file (binmode or textmode) -u, –unix (default) print Unix form of NAMEs (/cygdrive/c/winnt) -w, –windows print Windows form of NAMEs (C:\WINNT) -t, –type TYPE print TYPE form: ‘dos’, ‘mixed’, ‘unix’, or ‘windows’ Path conversion options: -a, –absolute output absolute path -l, –long-name print Windows long form of NAMEs (with -w, -m only) -p, –path NAME is a PATH list (i.e., ‘/bin:/usr/bin’) -s, –short-name print DOS (short) form of NAMEs (with -w, -m only) System information: -A, –allusers use `All Users’ instead of current user for -D, -P -D, –desktop output `Desktop’ directory and exit -H, –homeroot output `Profiles’ directory (home root) and exit -P, –smprograms output Start Menu `Programs’ directory and exit -S, –sysdir output system directory and exit -W, –windir output `Windows’ directory and exit Try `cygpath –help’ for more information. Starting BootJarTool… 2009-08-12 18:24:19,984 INFO - Terracotta Enterprise 3.1.0-nightly, as of 20090810-150830 (Revision 4358-13385 by [email protected] from 3.1) 2009-08-12 18:24:20,578 INFO - Configuration loaded from the file at ‘C:\Terracotta\terracotta-3.1.0-nightly-ee-rev13385\samples\pojo\chatter\tc-config.xml’. 2009-08-12 18:24:20,781 INFO - Product key found at: C:\Terracotta\terracotta-3.1.0-nightly-ee-rev13385\product.key 2009-08-12 18:24:20,890 INFO - —————- Terracotta product key ————– License type = Trial License number = 1 Licensee = Terracotta Test Product = FX Max clients = 200 Capabilities = roots, sessions, TOC, server striping —————————————————— 2009-08-12 18:24:21,515 INFO - Found boot JAR file at ‘C:\Terracotta\terracotta-3.1.0-nightly-ee-rev13385\samples\pojo\chatter\dso-boot-hotspot_win32_160_14.jar’; validating… 2009-08-12 18:24:21,781 INFO - Valid. Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]… NAME… cygpath [-c HANDLE] cygpath [-ADHPSW] Convert Unix and Windows format paths, or output system path information

Output type options: -d, –dos print DOS (short) form of NAMEs (C:\PROGRA~1) -m, –mixed like –windows, but with regular slashes (C:/WINNT) -M, –mode report on mode of file (binmode or textmode) -u, –unix (default) print Unix form of NAMEs (/cygdrive/c/winnt) -w, –windows print Windows form of NAMEs (C:\WINNT) -t, –type TYPE print TYPE form: ‘dos’, ‘mixed’, ‘unix’, or ‘windows’ Path conversion options: -a, –absolute output absolute path -l, –long-name print Windows long form of NAMEs (with -w, -m only) -p, –path NAME is a PATH list (i.e., ‘/bin:/usr/bin’) -s, –short-name print DOS (short) form of NAMEs (with -w, -m only) System information: -A, –allusers use `All Users’ instead of current user for -D, -P -D, –desktop output `Desktop’ directory and exit -H, –homeroot output `Profiles’ directory (home root) and exit -P, –smprograms output Start Menu `Programs’ directory and exit -S, –sysdir output system directory and exit -W, –windir output `Windows’ directory and exit Try `cygpath –help’ for more information. java.lang.NoClassDefFoundError: com/tc/cluster/DsoClusterListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Caused by: java.lang.ClassNotFoundException: com.tc.cluster.DsoClusterListener at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) … 12 more Could not find the main class: demo.chatter.Main. Program will exit. Exception in thread “main” bash-3.2$

Tim Eck 2009-08-12

I can confirm this happens to me too. I get a slightly different error running this on cygwin 1.7 too:

kermit:~/tmp/tc 3.1/samples/pojo/chatter>./run.sh cygwin warning: MS-DOS style path detected: C:\cygwin\home\teck\tmp\tc 3.1\lib\dso-boot\dso-boot-hotspot_win32_160_16.jar Preferred POSIX equivalent is: /home/teck/tmp/tc 3.1/lib/dso-boot/dso-boot-hotspot_win32_160_16.jar CYGWIN environment variable option “nodosfilewarning” turns off this warning. Consult the user’s guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames Starting BootJarTool… 2009-08-12 10:50:44,035 INFO - Terracotta 3.1.0-nightly, as of 20090812-090828 (Revision 13399 by [email protected] from 3.1) 2009-08-12 10:50:44,520 INFO - Configuration loaded from the file at ‘C:\cygwin\home\teck\tmp\tc 3.1\samples\pojo\chatter\tc-config.xml’. 2009-08-12 10:50:46,754 INFO - Creating boot JAR file at ‘C:\cygwin\home\teck\tmp\tc 3.1\lib\dso-boot\dso-boot-hotspot_win32_160_16.jar’… 2009-08-12 10:50:47,129 INFO - Successfully created boot JAR file at ‘C:\cygwin\home\teck\tmp\tc 3.1\lib\dso-boot\dso-boot-hotspot_win32_160_16.jar’. java.lang.NoClassDefFoundError: 3/1\lib\dso-boot\dso-boot-hotspot_win32_160_16/jar Caused by: java.lang.ClassNotFoundException: 3.1\lib\dso-boot\dso-boot-hotspot_win32_160_16.jar at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

Hung Huynh 2009-08-12

Himadri ran into an old problem with old nightly. Latest rev will resolve it.

New cygwin could be an issue. I start to think we’re whacking the moles and it’s best just to call .bat scripts (which handle spaces natively) if people run .sh scripts in Cygwin.

Hung Huynh 2009-08-12

Could you guys retry with these scripts? Just untar it inside the “bin” folder.

Hung Huynh 2009-08-12

refix with 13403

Himadri Singh 2009-08-13

$ ./samples/pojo/chatter/run.sh Starting BootJarTool… 2009-08-13 01:03:35,093 INFO - Terracotta 3.1.0-nightly, as of 20090812-150850 (Revision 13403 by [email protected] from 3.1) 2009-08-13 01:03:36,406 INFO - Configuration loaded from the file at ‘c:\Documents and Settings\hsingh\Desktop\terracotta-3.1.0-nightly-rev13403\samples\pojo\chatter\TC-CON~1.XML’. 2009-08-13 01:03:48,546 INFO - Creating boot JAR file at ‘C:\Documents and Settings\hsingh\Desktop\terracotta-3.1.0-nightly-rev13403\lib\dso-boot\DSO-BO~1.JAR’… 2009-08-13 01:03:50,406 INFO - Successfully created boot JAR file at ‘C:\Documents and Settings\hsingh\Desktop\terracotta-3.1.0-nightly-rev13403\lib\dso-boot\DSO-BO~1.JAR’. 2009-08-13 01:03:52,671 INFO - Terracotta 3.1.0-nightly, as of 20090812-150850 (Revision 13403 by [email protected] from 3.1) 2009-08-13 01:03:53,921 INFO - Configuration loaded from the file at ‘c:\Documents and Settings\hsingh\Desktop\terracotta-3.1.0-nightly-rev13403\samples\pojo\chatter\TC-CON~1.XML’. 2009-08-13 01:03:54,406 INFO - Log file: ‘c:\Documents and Settings\hsingh\Desktop\terracotta-3.1.0-nightly-rev13403\terracotta\client-logs\pojo\chatter\20090813010354312\terracotta-client.log’. 2009-08-13 01:03:58,875 INFO - Connection successfully established to server at 10.0.4.186:9510