How to run Junit from Weblogic Workspace without actually adding the library refrences from weblogic system libraries?
Open the project properties, build path and
1. Remove the following libraries from your Weblogic System Libraries
api.jar
wls-api.jar
weblogic.jar
wlcommons-logging.jar
junit.jar
wseeclient.jar
2. Add the following to the build path as external jar files
api.jar
wls-api.jar
weblogic.jar
wlcommons-logging.jar
junit.jar
wseeclient.jar
3. Compile the project and run the junit tests.
4. Thats it!
Showing posts with label workspace. Show all posts
Showing posts with label workspace. Show all posts
Sunday, November 22, 2009
EJB Client generation
EJB Client generation using workspace IDE
- Right click the ejb project – > Properties -> Weblogic EJB – > Jar Settings EJB Client Jar: enter the name of the client jar
- To build the client jar export the project as “EJB Jar File”, both the jars will be created, client as well as ejb jar.
EJB Client generation using ANT
- Add this @JarSettings(ejbClientJar = “xyzManagementClient.jar”) to the bean
- add desired EJBC flags directly to the build script where “weblogic.ejbc” is executed.
- Right click the ejb project – > Properties -> Weblogic EJB – > Jar Settings EJB Client Jar: enter the name of the client jar
- To build the client jar export the project as “EJB Jar File”, both the jars will be created, client as well as ejb jar.
EJB Client generation using ANT
- Add this @JarSettings(ejbClientJar = “xyzManagementClient.jar”) to the bean
- add desired EJBC flags directly to the build script where “weblogic.ejbc” is executed.
Subscribe to:
Posts (Atom)