Forums Register Login

Ant problem with EJB utility project

+Pie Number of slices to send: Send
Hi,

I've have a utility project modules which contains java beans, and class to access databases. These are used by my ejbs.

I create EAR by "export" option in Websphere Studio and deploy it on WebSphere, it works fine.
When i try the same by creating EAR with ANT by a build script, it fails. All the classes in my utility projects are shown as "cannot be resolved". Altough i checked the contants of both the EAR's created by WebSphere and by ANT, the contents were same.

Does any one know proper steps to creae EAR using ANT for a J2EE project containing EJB modules and Utility-Project Modules ?
Any good materials online ?
+Pie Number of slices to send: Send
Sandeep,
Welcome to JavaRanch!

A utiliity project maps to a jar in the ear. So you use the Ant jar task first on the utility project. Once you have that jar and the ejb jar, you can use the jar task again to generate the ear.
+Pie Number of slices to send: Send
Thanks,
That's great help. I tried it and worked.
One more help,
I am using "jar" task in ANT to create ears. i'm copying all required files and folders like manifest,packages, etc into a folder and jaring it.

But it seems "ejbjar" task of ANT is the proper way to use it. I cannot find any material on "ejbjar" task. I tried apache site, they have material for websphere4.0, but i'm using websphere 5.1.2.

Do you know where can i find help using ANT "ejbjar" task for Websphere5.1 ?
It would give a normal human mental abilities to rival mine. To think it is just a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 739 times.
Similar Threads
WebSphere "Unable to save ear"
Websphere Studio Application Developer 5.1.0
Websphere Studio Application Developer 5.1.0 problem...please help
Classpath problems
How to use Log4j - single log file for 6 j2ee modules in a project
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:17:39.