- This topic has 12 replies, 4 voices, and was last updated 16 years, 1 month ago by
Loyal Water.
-
AuthorPosts
-
Curt KingParticipantI’ve created a web project that is J2EE 5 compliant. When I deploy this application to Tomcat 6 (either the MyEclipse Tomcat sandbox install or a standalone Tomcat 6 server), the server complains because the jstl-1.2.jar file isn’t present. When I manually move a copy of this file to my webapp’s WEB-INF/lib directory, everything runs fine.
Do I need to configure my J2EE 5 projects to deploy the J2EE 5 jar files as part of the deployment? What’s the recommended practice for getting the J2EE 5 Libraries to Tomcat?
Thanks,
CurtFebruary 2, 2009 at 1:23 pm #294252
Loyal WaterMemberCurt,
I created a new web project and deployed it to the MyEclipse Tomcat server. I got the jstl-1.2 jar to deploy to the lib folder.Can you go to MyEclipse > Installation Summary > Installation Details and paste it here for me.
Can you list the exact steps to help me reproduce this issue at my end.
February 3, 2009 at 2:05 pm #294305
Curt KingParticipantI think I’ve narrowed the issue down to the “MyEclipse Enterprise Workbench – Java Enterprise Project – Web Project – Deployment” tab. If I check the box marked “JARs from User Libraries”, then I get three JAR files in the WEB-INF/lib directory: jsf-api.jar, jsf-impl.jar, and jstl-1.2.jar. If I un-check that box, I do not get any JAR files in the WEB-INF/lib directory.
Does the above reasoning make sense? Why would the Java EE JAR files be considered “JARs from User Libraries?”
I can still post my installation details if you’d like — just let me know.
Thanks,
CurtFebruary 4, 2009 at 12:03 pm #294348
Loyal WaterMemberCurt,
You should have “Jars from build path” checked under the library deployment policies unless you have added these libraries as user libraries.If you have these libs added as user libs then it makes sense.
February 4, 2009 at 12:59 pm #294356
Curt KingParticipantThat’s the odd thing — I have not added them as user libraries. They were added into the project by default when I created a Java EE 5 project. However, they do not deploy to Tomcat (either the ME sandbox version or a standalone server) unless I check “JARs from User Libraries.”
I’ve recorded a screencast of this. It’s rather large (40MB), but it should illustrate what’s happening:
http://dl.getdropbox.com/u/496517/demo.avi
Let me know if you need me to do anything else.
Thanks,
CurtFebruary 11, 2009 at 8:26 am #294677
Curt KingParticipantHas there been any progress on this?
February 12, 2009 at 12:30 am #294724
support-joyMembercurtking,
From MyEclipse menu go to Window – Preferences. Select MyEclipse Enterprise Workbench -> Java Enterprise Project -> Web Project. Click on the Deployment tab. Check the Library Deployment Policies. (I’m sure they are not same as default). Click on [Restore Defaults], then [Apply] and [OK].
Now repeat http://dl.getdropbox.com/u/496517/demo.avi
I did see that you have few more projects. At some point you must have changed the default settings. Everytime you create a web project, it reflects the changes you made to the default library deployment policies.
Let me know if this resolved your problem.
Attachments:
You must be logged in to view attached files.February 16, 2009 at 7:39 am #294858
Curt KingParticipantIf I restore everything to default, it <b>does</b> deploy the three JAR files: jsf-api.jar, jsf-impl.jar, and jstl-1.2.jar.
But here’s the problem: If I deselect the “JARs from User Libraries” box, those three JAR files do not get deployed. The “JARs from User Libraries” checkbox should not affect the deployment of the JSF and JSTL JAR files, since they are not user libraries.
February 16, 2009 at 9:20 am #294861
Loyal WaterMembercurt,
I was able to reproduce the issue that you have pointed out at my end as well. I’ll let the dev team know about this. Thank you for bringing this up.February 26, 2009 at 6:35 am #295307
Curt KingParticipantNo problem. Glad I could help.
Curt
April 24, 2009 at 10:29 pm #297874
PeterMemberHi,
I am getting the same problem except i have all the boxes checked as per above screenshot. both in default and custom project settings. creating a web project->jsf capabilities->iceface capabilities. Then i deploy unto weblogic 10.3 and it does not deploy any of the java ee libraries…javaee.jar jsf-api.jar jsf-impl.jar jstl-1.2.jar …. Pleeeeeeease help i waste soo much time deploying them manually.April 30, 2009 at 1:32 am #298014
support-joyMembersweepy,
Sorry to hear that you ran into this issue. Can you copy and paste your installation detail. You can get it from MyEclipse > Installation Summary > Installation Detail. This will help me understand your current configuration. I will get a dev team member to assist you with this issue.
April 30, 2009 at 10:47 am #298029
Loyal WaterMemberSweepy,
It shouldn’t deploy any of the Java EE JARs — anything that is from the MyEclipse Java EE containers should not be deployed — the server provides those JARs and deploying them with your project is usually illegal. They are provided by MyEclipse so you have compilation-support in your project in the IDE, but once it’s deployed, it’s up to the app server to provide all those libs.Attachments:
You must be logged in to view attached files. -
AuthorPosts