- This topic has 11 replies, 3 voices, and was last updated 19 years, 6 months ago by Scott Anderson.
-
AuthorPosts
-
preetpalMemberHi,
I am using the following specs for my development.
1. MyEclipse –
version – 3.1.0
2. Weblogic 8.1 sp3
3. JVM version – 1.4.2
4. XP system.I have a Ear by the name abc.ear. This EAR has two project web project
web.war and ejb project ejb.jar.When i try to deploy the EAR in an exploded manner to weblogic I note that in the
{wl_home}\user_projects\domains\eclipse\application
directory the EAR turns up as folder with only the ejb.jar being the subfolder. The Webproject doesn’t turn up as a folder.On starting the server the build fails. I am not sure why the web project does not end up in the applications directory.
Thanks
Preetpal Singh
preetpalMemberOne more thing the packaged deployment and doing an export of the Enterprise application Project to an ear and then deploying works perfectly fine. It is only when i do exploded EAR deployment that the web project is missing in the directory structure.
preetpalMemberCan somebody please answer this question
Riyad KallaMemberPreetpal,
Can you navigate to Window > Preferences > MyEclipse and read me the version of MyEclipse shown there?Also can you check your <workspace dir>\.metadata\.log file for exceptions that may help us figure out what is going on.
Also I’d like you to Add/Remove Modules on your enterprise project, remove both modules hit OK then re-add both the EJB and Web project again. Then I’d like you to double check your application.xml file to make sure it is ok and then remove and recreate the exploded deployment to Weblogic, did that work?
preetpalMemberRiyad,
Following is the information.
1. Version under Window > Preferences > MyEclipse – 3.8.4 +QF2-BetaFor3.1M6
2. I did as you told me to do…. removed projects from EAR and then re added them… undeployed and redeployed… Still the web project is not turning up in the EAR directory under weblogic application directory. There is nothing in the .log file also….HAAAALP!!!!!!!
Riyad KallaMemberLet’s try a few other things.
Idea #1
Create 3 new projects, TestEJB (EJB Project), TestWEB (Web Project), and TestEAR (Enterprise Project). Make the TestEJB and TestWeb both modules of the TestEAR project, then try deploying it to your app server. Did it work?Idea #2
Going back to your original EAR project, can you deploy it successfully to a Custom Location?
preetpalMemberRiyad,
Idea #1 – this idea worked when i did this and deployed it i am able to see the web project turning up in the directory structure.
Idea # 2 – This doesnt work even if i dump the ear to a custom location.I think we are making progress.. Can you suggest what maybe different which makes this deployment unsuccessful. One more thing i am using CVS with the project.s
Riyad KallaMemberPreetpal,
Try and shut down MyEclipse and add the -clean command line argument to the shortcut you use to start it, then fire it back up (startup should seem 2-3x longer). After this you can remove the -clean command line arg, but I would like you to try and readd the modules to the EAR project then deploy it. Did it work?Also try and remove the EJB module from the EAR and deploy it, did anything deploy?
If not, can you create a new Web Project and then copy-paste the old project ontop of the new one, then try and add the new one as a module to the EAR, did that work when you deployed it?
Scott AndersonParticipantI think we are making progress.. Can you suggest what maybe different which makes this deployment unsuccessful.
It’s definately a differnce between the “working” and “non-working” project structures. Can you deploy your web project *by itself* in exploded format to a custom location? If not, there’s something wrong with the web project structure that is confusing the deployer. Are there any log file entries (<workspace>/.metadata/.log) related to deployment?
If deploying it alone worked, is it possible that you don’t have write access to your .mymetadata file in root of your EAR project? If you open the .mymetadata file, does it list both the EJB project and the Web project?
preetpalMember1.I cannot deploy the web project by itself in an exploded manner. although export the EAR using the export option works fine/ packaged manner also works fine.
2. This is what my .metadata looks like
<?xml version=”1.0″ encoding=”UTF-8″?>
<enterprise-project
version=”1.0.0″
name=”DLCADMINEAR”
id=”myeclipse.1116863648174″
j2ee-spec=”1.3″
archive=”DLCADMINEAR.ear”>
<project-modules>
<project-module
type=”WEB”
name=”DLCAdminWeb”
id=”myeclipse.1118258080550″
context-root=”/DLCAdminWeb”
j2ee-spec=”1.4″
archive=”DLCAdminWeb.war”>
<attributes>
<attribute name=”webrootdir” value=”/WebRoot” />
</attributes>
</project-module>
<project-module
type=”EJB”
name=”DLCAdminEJB”
id=”myeclipse.1116520409991″
j2ee-spec=”1.3″
archive=”DLCAdminEJB.jar” />
</project-modules>
</enterprise-project>3.there are no log enteries.
preetpalMembersir,
Would be great if somebody can help on this… I am pretty much stuck up.. doing export as EAR and then doing manual deploys. Give me a number and i can call to fix the problem. I am available in dallas.
Scott AndersonParticipantThere’s definately a some sort of problem with the web project setup. Can you create a zip file containing just the web project and send it to us at support@genuitec.com? That way we’ll be able to analyze it and see exactly what’s wrong.
-
AuthorPosts