0

I am trying to install a wrapper for a JBoss 4 App.

My wrapper.conf contains:

wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp

Yet I get the error below:

INFO   | wrapper  | 2014/09/05 17:10:36 | Waiting to start...

STATUS | wrapper  | 2014/09/05 17:10:40 | Launching a JVM...

INFO   | jvm 5    | 2014/09/05 17:10:40 | ***java.lang.NoClassDefFoundError: org/tanukisoftware/wrapper/WrapperSimpleApp***

INFO   | jvm 5    | 2014/09/05 17:10:40 | Caused by: java.lang.ClassNotFoundException: org.tanukisoftware.wrapper.WrapperSimpleApp

INFO   | jvm 5    | 2014/09/05 17:10:40 |   at java.net.URLClassLoader$1.run(URLClassLoader.java:202)

INFO   | jvm 5    | 2014/09/05 17:10:40 |   at java.security.AccessController.doPrivileged(Native Method)

INFO   | jvm 5    | 2014/09/05 17:10:40 |   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

INFO   | jvm 5    | 2014/09/05 17:10:40 |   at 
java.lang.ClassLoader.loadClass(ClassLoader.java:306)

INFO   | jvm 5    | 2014/09/05 17:10:40 |   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

INFO   | jvm 5    | 2014/09/05 17:10:40 |   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

INFO   | jvm 5    | 2014/09/05 17:10:40 | Could not find the main class: org.tanukisoftware.wrapper.WrapperSimpleApp.  Program will exit.

INFO   | jvm 5    | 2014/09/05 17:10:40 | Exception in thread "main" 

ERROR  | wrapper  | 2014/09/05 17:10:40 | JVM exited while loading the application.

Any pointers would be great.

4

1 回答 1

0

找不到类错误是因为在项目的构建路径中可能找不到该类,但找不到类定义将是清单没有导入的原因。

建议:

删除清单文件并重新生成项目,例如:mvn clean install

于 2014-09-05T16:40:38.553 回答