- This topic has 24 replies, 3 voices, and was last updated 12 years ago by
reachmuzamilshaikh.
-
AuthorPosts
-
reachmuzamilshaikhMemberI have 2 web projects in my ear, inside xyzweb.war->WEB-INF->lib-> i get 2 java jar projects. this is done in RAD using j2ee module dependancies. With Myeclipse i am not able to put those two java jars under xyzweb.war->WEB-INF->lib-> . Hence i am facing some exception during the server start up. When i add those java projects under deployment assembly, they are getting created at the root level of the ear in the deployment folder and not in xyzweb.war->WEB-INF->lib->.
The setting that i have for web project is under dependent java project deployment policy-jar dependent java project output are placed in the lib directory selected.
under library deployment policy all check boxes are selected.for ear:under dependent java project deployment policy- jar dependent java project is selected
under library deployment policy all check boxes are selected.Please help ASAP.
reachmuzamilshaikhMemberCurrently i have select user deployment assembly mapping for the ear and both web projects.
support-swapnaModeratorreachmuzamilshaikh,
Sorry that you are seeing this issue.
1. Can you please make sure that the java projects are added to the Java Build Path ?
2. You should not be using the Deployment Assembly. If you use the Deployment Assembly the other deployment policies will not come into effect.
reachmuzamilshaikhMemberThanks for the information, i will disable deployment assembly and try. But can you tell me which deployment policy to apply so that i want the two dependent java.jar projects inside web.war->WEB-INF->lib . in the ear deployment folder.
reachmuzamilshaikhMemberAs it is not able to find the java projects inside the web projects It is throwing an exception when i start the server :
E com.ibm.ws.webcontainer.webapp.WebApp commonInitializationFinally SRVE0266E: Error occured while initializing servlets: {0}
javax.servlet.UnavailableException: SRVE0203E: Servlet [action]: com……..eActionServlet was found, but is missing another required class.
SRVE0206E: This error typically implies that the servlet was originally compiled with classes which cannot be located by the server.Hope this helps. Please advise.
reachmuzamilshaikhMember1. i tried by adding the java projects to the java build path of the web project.
2. i also tried by adding the dependent java project in the manifest file of the web project as Class-Path: <jar name>
3. tried by disabling the deployment assembly mapping and using the jar dependent java projects policy and selecting all check boxed for library policy of the ear.
for web: jar and place them in /lib policy and all selecting all check boxes for library deployment policy.i tried packaged, exploded and inworkspace mode also. I think the deployment policy is not responding.
I just need to get the dependent java jar projects under the war-> web-inf-> lib, this will solve my problem.
Please help ASAP as i have very less time to deliver my myeclipse evaluation results, and this looks to be a showstopper for us.
reachmuzamilshaikhMemberIn RAD we can do this easily using j2eemodule dependencies-> web library tab.
I am using WAS 8.0.0.5.I have tried many combinations (Also tried modifying class loader policy of was), its not working. I just have to try smart deployment(packaged) , this i will try tomorrow. Please let me know in case you need any more information.
reachmuzamilshaikhMemberThis seems like a bug, the deployment policies are not responding, please find my project settings below taken from com.genuitec.eclipse.j2eedt.core.prefs in settings folder:
WEB:
eclipse.preferences.version=1
j2ee.deployment.web.archive_dependent_projects=always
j2ee.deployment.web.deploy_exported_jars=true
j2ee.deployment.web.deploy_exported_user_libs=true
j2ee.deployment.web.deploy_jars=true
j2ee.deployment.web.deploy_user_libs=true
j2ee.deployment.web.use_workspace_settings=false
useAssemblyMapping=falseEAR:
eclipse.preferences.version=1
j2ee.deployment.ear.deploy_exported_jars=true
j2ee.deployment.ear.deploy_exported_user_libs=true
j2ee.deployment.ear.jar_dependent_projects=true
j2ee.deployment.ear.manual_application_xml=true
j2ee.deployment.ear.use_workspace_settings=false
useAssemblyMapping=falseWe had planned to move to MyEclipse by the end of JAN and this is blocking it.
In case if you feel i am missing something, please let me know the steps that i have to follow to get the dependent java jar projects under the war-> web-inf-> lib.Sorry for posting multiple responses, just wanted to make sure we come out with the correct solution.
reachmuzamilshaikhMemberi also tried to do it by creating sample projects but its not working, I am attaching the sample projects., i am using was 8 developer edition. i wanted the testjava project to appear under installedApps\CRTIB0LB2246TZZNode04Cell\testear.ear\testweb.war\WEB-INF\lib as testjava.jar
Attachments:
You must be logged in to view attached files.
support-swapnaModeratorreachmuzamilshaikh,
We could not replicate the issue at our end.
Can you please send us an example project which fails with a similar issue to help us replicate the issue at our end ? You can attach the .zip file of the project to this post or send it to [email protected] mentioning the link to this thread.
reachmuzamilshaikhMemberI have already attached the sample projects, please check. Will also send through mail.
reachmuzamilshaikhMemberPosting the installation details in case you need them for replication.
*** Date:
Friday, January 11, 2013 4:56:17 PM IST*** System properties:
OS=WindowsXP
OS version=5.1.0
OS arch=x86
Profile arch=x86
Window system=win32
Java version=1.6.0_13
Workspace=file:/C:/MyEclipseEngPWorkSpace/
VM Args=-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
-Dosgi.nls.warnings=ignore
-Djava.class.path=C:\MYECLI~1\MYECLI~1\../Common/plugins/OR02A7~1.JAR*** Subscription information
Your 30-day trial period expires on Feb 03, 2013*** Eclipse details:
MyEclipse Blue EditionVersion: 10.7 Blue
Build id: 10.7-Blue-20121026Blueprint: MyEclipse Blue Edition 10
com.genuitec.myeclipse.blue.feature – 10.7.0.me201211011550
com.genuitec.myeclipse.database – 10.7.0.me201211011550
com.genuitec.myeclipse.db2 – 10.7.0.me201211011550
com.genuitec.myeclipse.desktop – 10.7.0.me201211011550
com.genuitec.myeclipse.editor – 10.7.0.me201211011550
com.genuitec.myeclipse.geronimo – 10.7.0.me201211011550
com.genuitec.myeclipse.glassfish – 10.7.0.me201211011550
com.genuitec.myeclipse.icefaces.feature – 10.7.0.me201211011550
com.genuitec.myeclipse.iedebugger – 10.7.0.me201211011550
com.genuitec.myeclipse.imageeditor – 10.7.0.me201211011550
com.genuitec.myeclipse.jboss – 10.7.0.me201211011550
com.genuitec.myeclipse.jetty – 10.7.0.me201211011550
com.genuitec.myeclipse.jonas – 10.7.0.me201211011550
com.genuitec.myeclipse.jrun – 10.7.0.me201211011550
com.genuitec.myeclipse.jsf – 10.7.0.me201211011550
com.genuitec.myeclipse.matisse – 10.7.0.me201211011550
com.genuitec.myeclipse.maven – 10.7.0.me201211011550
com.genuitec.myeclipse.oracle – 10.7.0.me201211011550
com.genuitec.myeclipse.orion – 10.7.0.me201211011550
com.genuitec.myeclipse.persistence – 10.7.0.me201211011550
com.genuitec.myeclipse.pulse – 10.7.0.me201211011550
com.genuitec.myeclipse.reports – 10.7.0.me201211011550
com.genuitec.myeclipse.resin – 10.7.0.me201211011550
com.genuitec.myeclipse.struts – 10.7.0.me201211011550
com.genuitec.myeclipse.sun – 10.7.0.me201211011550
com.genuitec.myeclipse.tomcat – 10.7.0.me201211011550
com.genuitec.myeclipse.uml2 – 10.7.0.me201211011550
com.genuitec.myeclipse.visualvm – 10.7.0.me201211011550
com.genuitec.myeclipse.visualvm.server – 10.7.0.me201211011550
com.genuitec.myeclipse.weblogic – 10.7.0.me201211011550
com.genuitec.myeclipse.ws – 10.7.0.me201211011550
com.genuitec.myeclipse.ws.blue – 10.7.0.me201211011550
org.eclipse.birt – 2.6.1.me201211011550
org.eclipse.datatools.connectivity.feature – 1.9.0.me201211011550
org.eclipse.datatools.enablement.feature – 1.9.0.me201211011550
org.eclipse.datatools.modelbase.feature – 1.9.0.v201106031100-77078CcNBHCBYKYEbNV
org.eclipse.datatools.sqldevtools.feature – 1.9.0.me201211011550
org.eclipse.emf – 2.7.0.v20110606-0949
org.eclipse.gef – 3.7.0.v20110425-2050-777D-81B2Bz0685C3A6E34272
org.eclipse.graphiti.feature – 0.8.0.v20110607-1252
org.eclipse.jpt.jpa.feature – 3.0.0.me201211011550
org.eclipse.jpt.jpadiagrameditor.feature – 1.0.0.me201211011550
org.eclipse.jst.common.fproj.enablement.jdt – 3.3.0.me201211011550
org.eclipse.jst.enterprise_ui.feature – 3.3.0.me201211011550
org.eclipse.jst.server_adapters.ext.feature – 3.3.0.me201211011550
org.eclipse.jst.server_adapters.feature – 3.2.100.me201211011550
org.eclipse.jst.server_ui.feature – 3.3.0.me201211011550
org.eclipse.jst.ws.axis2tools.feature – 1.1.200.me201211011550
org.eclipse.m2e.feature – 1.0.0.me201211011550
org.eclipse.sapphire.platform – 0.3.0.201106221325
org.eclipse.wst.common.fproj – 3.3.0.me201211011550
org.eclipse.wst.server_adapters.feature – 3.2.100.me201211011550
org.eclipse.xsd – 2.7.0.v20110606-0949
org.springframework.ide.eclipse.feature – 2.9.1.me201211011550com.collabnet.subversion.merge.feature – 2.2.4
com.sun.jna – 3.2.7
fr.obeo.acceleo.bridge.feature – 2.6.0.200906261742
org.eclipse.cvs – 1.3.100.v20110520-0800-7B78FHl9VF7BD7KBM4GP9C
org.eclipse.draw2d – 3.7.0.v20110425-2050-46-7w3122153603161
org.eclipse.equinox.p2.core.feature – 1.0.1.v20110906-1605-8290FZ9FVKHVRKtmx3fpNuo02129
org.eclipse.equinox.p2.extras.feature – 1.0.1.v20110906-1605-7A4FD4DiVOMap8cHSc6vPuny4gqO
org.eclipse.equinox.p2.rcp.feature – 1.0.1.v20110906-1605-782EqBqNKGVkiV-PUsgz-uny4gqO
org.eclipse.equinox.p2.user.ui – 2.1.2.R37x_v20110815-1155-6-Bk8pYWZz0qUTX5I15GZWwbXkrl
org.eclipse.help – 1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx
org.eclipse.jdt – 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
org.eclipse.jsf.feature – 3.3.0.me201211011550
org.eclipse.ocl – 3.1.0.v20110606-1427
org.eclipse.pde – 3.7.2.v20120120-1420-7b7rFUOFEx2Xnqafnpz0E–0
org.eclipse.platform – 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
org.eclipse.rcp – 3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272
org.tigris.subversion.clientadapter.feature – 1.6.12
org.tigris.subversion.clientadapter.javahl.feature – 1.6.17
org.tigris.subversion.clientadapter.svnkit.feature – 1.6.15
org.tigris.subversion.subclipse – 1.6.18
org.tigris.subversion.subclipse.graph.feature – 1.0.9
org.tigris.subversion.subclipse.mylyn – 3.0.0
org.tmatesoft.svnkit – 1.3.5.7406Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\MyEclipseInstallation\MyEclipse Blue Edition 10\myeclipse-blue.exe
-name
Myeclipse-blue
–launcher.library
C:\MyEclipseInstallation\MyEclipse Blue Edition 10\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_4.2.0.v201201111650\eclipse_4201.dll
-startup
C:\MyEclipseInstallation\MyEclipse Blue Edition 10\../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
-install
C:\MyEclipseInstallation\MyEclipse Blue Edition 10
-configuration
C:\MyEclipseInstallation\MyEclipse Blue Edition 10\configuration
-vm
C:\MyEclipseInstallation\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
support-piotrParticipant@reachmuzamilshaikh wrote:
I have already attached the sample projects, please check. Will also send through mail.
reachmuzamilshaikh,
I have used the project you’ve provided. Adding a single class to test java project makes it appear in the lib folder of the web project. After importing RAD project into MyEclipse, have you used “MyEclipse -> Enhance RAD project” wizard? That wizard creates required MyEclipse metadata. I hope you will be able to get preview in time. Please let us know if you have any more troubles!
reachmuzamilshaikhMemberNow in the sample projects it is generating the testjava.jar in the lib folder of the web project.
I had already used the “MyEclipse -> Enhance RAD project wizard”, but some how it is not generating in the lib folder of the web project. I have the same deployment settings as in the sample projects.
Can u suggest some thing here.
support-piotrParticipantreachmuzamilshaikh,
Unfortunately without having the projects locally and seeing configuration files I cannot help you more. To be able to solve the issue I just need configuration files, so I can propose, that you remove all the source code from your projects and send them to us, either via forum or to [email protected] e-mail address. Please keep only all “.*” files (like “.project”, “.mymetadata”, “.settings” directory, etc.) and all deployment descriptors (web.xml, application.xml). I will take care of the issue immediately when I receive projects.
-
AuthorPosts