- This topic has 3 replies, 2 voices, and was last updated 13 years, 7 months ago by Chip Forster.
-
AuthorPosts
-
Chip ForsterMemberWe have a Websphere workspace with several projects. In particular we have a business logic (database access) project – but it’s not an EJB project. We also have a Web project.
I’ve imported both of these into MyEclipse successfully and they run under JBoss on my desktop just fine.
Now I want to create an EAR project comprised of the business logic project and the Web project – just as we did in Websphere. However, it appears the Enterprise Application can only incorporate Web and EJB projects. What alternatives do I have?
I tried just imported the existing Websphere EAR project. That worked but I can’t turn around and export that project to an ear file. The dialog says “No J2EE enterprise projects available. If your workspace includes J2EE enterprise projects they must be open to be exported.”
I’m using MyEclipse Blue 8.5 and WebSphere SAD 5.1.0
I thought MyEclpipse Blue would allow me to do this “painlessly”.
support-joyMemberlforster022650,
What is the type of project you are referring as business logic project? You mention you have imported this project to MyEclipse successfully. What is the type of project this is exported to? To add modules to EAR project, it has to be either web / ejb module.
In case you have imported as a java project, you can convert the same to web by adding the web capabilities.Right click on the project > MyEclipse > Add web project capabilities. Right click on this project > Close project. Right click on closed project > Open Project. Next add this as a web module to your EAR project. Let me know how this works for you
Chip ForsterMemberThanks for the reply.
The business logic is contained in a Java project. It contains logic to access the database and objects to represent database values as well as current session values. It does not contain EJB’s. The J2EE application is composed of two projects Trakmaster and TrakmasterWeb. And I can run this application within MyEclipse Blue on my desktop using JBoss 5.1 just fine. I simply want to deploy it in a ear file to a JBoss 5.1 environment on a server. We’ve done this in WebSphere many times.Here is the WebSphere ear file:
C:\temp>%D%\jar -tf trakmastersample.ear
AdventNetSnmp.jar
TraKmasterWeb.war
TraKmaster.jar
META-INF/MANIFEST.MF
META-INF/application.xmlAdvendNetSnmp.jar is additional classes required to run this application.
Chip ForsterMemberA co-worked helped me to delete and create (not import) the ear project. Although I haven’t actually tested the results I do have an ear file. Thanks agin.
-
AuthorPosts