我正在尝试按照 Brigilin Stanley 在此处编写的示例通过 cxf 重现创建 Web 服务:http: //confluex.com/blog/jax-ws-service-with-cxf-in-mule/
这在 Mule Studio 中运行良好,但是当我部署到 linux red Hat 服务器时遇到一个奇怪的问题:
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.SunToolkit
at sun.awt.AppContext$2.run(AppContext.java:271)
at sun.awt.AppContext$2.run(AppContext.java:260)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:260)
at sun.awt.AppContext.access$200(AppContext.java:133)
at sun.awt.AppContext$3.run(AppContext.java:316)
at sun.awt.AppContext$3.run(AppContext.java:298)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:297)
at sun.awt.AppContext$6.getContext(AppContext.java:839)
at sun.misc.SharedSecrets.getJavaAWTAccess(SharedSecrets.java:201)
at java.util.TimeZone.getDefaultInAppContext(TimeZone.java:734)
at java.util.TimeZone.getDefaultRef(TimeZone.java:630)
at java.util.Calendar.getInstance(Calendar.java:968)
at org.apache.log4j.helpers.AbsoluteTimeDateFormat.<init>(AbsoluteTimeDa
teFormat.java:62)
at org.apache.log4j.helpers.ISO8601DateFormat.<init>(ISO8601DateFormat.j
ava:46)
at org.apache.log4j.helpers.PatternParser.finalizeConverter(PatternParse
r.java:256)
at org.apache.log4j.helpers.PatternParser.parse(PatternParser.java:186)
at org.apache.log4j.PatternLayout.<init>(PatternLayout.java:438)
有任何想法吗?谢谢