[jboss-user] [Beginners Corner] - Re: Problem with deployed .jar files

monze2 do-not-reply at jboss.com
Fri May 18 12:19:50 EDT 2007


First of all, that that you will take your time to help me.

I don't pack them as EAR files. I'm deploying a jar file, and "forget" to deploy the second jar file.

The content of the jar files is very simply. They both contain another jar file, which have one class, that print text to the screen (it is the way things are written where I work).

e.g.
jar1>
        write "I'm alive"
        use jar2 to print a line
        write "I will never be written"

jar2>
       write "I don't exist"

The result is:
       "I'm alive"

If I deploy both jar files it works fine. But when I 'forget' the second jar file the program stop.

If I use 'java -cd jar1.jar ...' and it can find the second file, i get a 'ClassNotFoundException'. If I run them from eclipse, I get a 'ClassNotFoundException'. But in JBoss I get nothing...? No print to the error log, no print to the screen, nothing... the first jar files simple stops, and JBoss keep working as nothing has ever happened.

I can show the code, but i guess it will be just as easy for you to create the test your self.

jacob m

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046880#4046880

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046880



More information about the jboss-user mailing list