Hi,
I am having a problem getting a .jar file to execute a class upon deployment.
------------------------------------
The contents/listings of my .jar are as follows:
/meta-inf/Manifest.mf
/foo/TestClass.class
Manifest.mf listing:
Manifest-Version: 1.0
Created-By: 1.4.1_01 (Sun Microsystems Inc.)
Main-Class: foo.TestClass
TestClass.java listing:
package foo;
public class TestClass {
public static void main(String[] args) {
System.out.println("TEST **** TEST");
}
}
------------------------------------
When I copy the .jar file to the server/default/deploy directory, the following is displayed in the console:
13:49:15,750 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss
-3.0.6_tomcat-4.1.18/server/default/deploy/RandomTest.jar
13:49:15,750 INFO [MainDeployer] Deployed package: file:/D:/jboss-3.0.6_tomcat-
4.1.18/server/default/deploy/RandomTest.jar
The main() method of TestClass is not executed. If I execute the .jar from the command line (java -jar RandomTest.jar) .. it works.
Please help .. am I missing some JBOSS specific configuration?
Thanks in advance,
Colin