Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Could not initialize class flash.util.Trace

Avatar

Not applicable
Hi, I am trying to run the LCDS 2.51 samples with Tomcat 5.5 on Ubuntu Linux. I am currently receiving the following error whenever I try to click on one of the mxml files from the samples:



java.lang.NoClassDefFoundError: Could not initialize class flash.util.Trace

flex.webtier.util.ServiceUtil.setupFlexService(ServiceUtil.java:63)

flex.webtier.server.j2ee.MxmlServlet.init(MxmlServlet.java:57)

flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:87)



It seems that all required JARs are present in the application's lib directory, and from what I can tell from Google, the class flash.util.Trace doesn't even exist.



Does anyone have any advice here?



Thank you,

Adam
1 Reply

Avatar

Level 3
Hi Adam,



You should have a swfkit.jar in your /WEB-INF/flex/jars/ directory. That's the jar, used by the webtier compiler, that contains flash.util.Trace.



If that's missing you might want to start out with the empty flex.war that the installer lays down, and update with your custom application sources and configuration.



HTH,

Seth