0

I cannot add jar files into server classpath through eclipse (kepler version), here follows the senario i used
1. Opened the launch configuration of server by clicking Open launch configuration link
enter image description here
2. Added the jar files to classpath from Classpath tab. Then applied and save it by clicking Ok button.
enter image description here

But when i take this configuration tab again i cant find out any jar files previously added.

Anish Antony
  • 875
  • 3
  • 17
  • 35
  • 1
    You shouldn't add jars to the server classpath. The jars should be in your deployed war file, under WEB-INF/lib. – JB Nizet Nov 01 '13 at 11:57
  • @JBNizet Then what is the use of this option in eclipse? – Anish Antony Nov 03 '13 at 13:44
  • 1
    Eclipse allows you to do it, but that doesn't mean you should. Just like Java allows you to put classes in the default package, although you should almost always not do it. The jars of your webapp should be packaged with your webapp. You shouldn't change the classpath of the whole JBoss server for a specific webapp. – JB Nizet Nov 03 '13 at 13:47

1 Answers1

2

In the Argumments tab you can see a check box with label as "ALways update arguments related to the runtime". Make sure that check box is unchecked. Guess that will do it :)

Regards

Ajin