For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 6 replies, 2 voices, and was last updated 20 years, 4 months ago by
Riyad Kalla.
-
AuthorPosts
-
vbrecherMemberLast week I upgraded both Eclipse and MyEclipse to 3.1.2 and 4.1.1 respectively. Since then I have had a number of problems, but the one show stopper is that I am unable to deploy the jar files in my WEB-INF lib directory to Weblogic 8 from MyEclipse. I have tried including my jar files in the project properties -> java build path -> order and export list. It doesn’t help. The only jar files that are deployed to the web application WEB-INF/lib directory are jstl.jar and standard.jar, which I presume are there because I specified jstl 1.1 support when I created the project.
This problem is common to all MyEclipse projects that I deploy locally on WebLogic. I have one project I test on Tomcat, and there is no problem deploying the jars in its case.
I can build and deploy my project manually using an ant build file (not created through MyEclipse), but there is a problem running it in MyEclipse. Where I right click on the build file, the run ant script is not among the options. I have to press Alt-Shift-X to run the build withing MyEclipse. That’s a minor problem, however.
April 10, 2006 at 1:01 pm #250183
Riyad KallaMemberFirst, please tell me how you upgraded Eclipse and MyEclipse. Did you just unzip new copies ontop fo the existing ones? Did you install brand new copies ot new dirs? Did you run the update manager on both?
Secondly, remove all your deployments, try and refresh all your effected projects, then go to Project and clean/rebuild them all, then recreate your deployments. Sometimes deployments short-circuit or fail quietly like this when the files system is out of sync.
April 13, 2006 at 12:42 pm #250448
vbrecherMemberI deleted the old Eclipse files and started from scratch after saving my Workspace to another directory. I then unzipped Eclipse 3.1.2 to the C:\eclipse directory. I had tried running uninstall on MyEclipse, but it failed, so I deleted it’s directories too after asking your support people. I then installed MyEclipse 4.1.1. I recreated the applications in my workspace by importing them from CVS. I then set the Windows properties and the project properties, including setting the build path. Oddly the jar files are on my WEB-INF/lib directory, but when I deploy, they do not get written to the Weblogic directory. I can workaround this problem by manually copying the jars, but everytime I do a deployment, I lose them. Fortunately the automatic deployment updates and Weblogic restarts work OK for me, so I can continue to work.
I am supposed to be helping other people in my group migrate from JBuilder to MyEclipse, so I want to make sure that they do not also have this problem.
I’ve already stepped through the second scenario several times. I will try one more time, however.
I would also like to be able to run Ant from within MyEclipse, so I’d like to figure out how to make the correct Ant dialog come up instead of the “Run” dialog when I click on an xml file in my project.
Thank you,
VirginiaApril 13, 2006 at 12:57 pm #250451
vbrecherMemberI just tried your suggestion again. I undeployed all application in MyEclipse. Then I made sure they were all undeployed in the Weblogic console. They were. I cleaned and rebuilt one application. Then I deployed it. Still no libraries.
Did I miss a step?
Thanks!
April 13, 2006 at 5:23 pm #250461
Riyad KallaMemberVirginia,
When you open your project properties and go to the MyEclipse-Web panel for the project, what are the two values there?Also, be sure to right-click on the root of your project and do a Refresh, then recreate your deployment. If your Eclipse workspace is out of sync with your filesystem contents, which is almost guarunteed to happen if you are using Ant (As it executes outside of the Eclispe VM) then you need to refresh your file system each time, or your deployments will fail.
You can turn on auto refresh under Window > Prefs > General > Workspace if you like, that might be easier.
Also to get the default Ant menu popping up, you can navigate to Window > Prefs > General > Editors > File Associations and set the Ant Editor as the default for the XML extension. Unfortunately this may cause some contension of editors with other XML files, so you may need to fine tune the behavior using Open With if necessary.
April 14, 2006 at 8:47 am #250478
vbrecherMemberRiyad,
As you suggested, I turned on the auto refresh, undeployed and redeployed, and the libraries were included. I will add that to the documentation I’m writing for others in our group who are migrating to MyEclipse. We use Ant to do builds for the real servers, so we would all have this problem.
We can run Ant from the command line, so the second problem isn’t a big issue.
Thank you so much for your help!
Virginia
April 14, 2006 at 9:39 am #250485
Riyad KallaMemberGlad it’s working now, I’m going to file this as a bug infact that our deployment tool should have informed you of this problem.
-
AuthorPosts
