- This topic has 8 replies, 2 voices, and was last updated 14 years, 8 months ago by support-shalini.
-
AuthorPosts
-
akolchinskyParticipantWhen I load my project into the myeclipse workspace, for the first time, either through IDE or through an API, myeclipse modifies the archive attribute in my project’s .metadata file. The resulting .metadata file looks like this:
<?xml version=”1.0″ encoding=”UTF-8″?>
<project-module
type=”EJB”
name=”system”
id=”myeclipse.1267221003033″
j2ee-spec=”5.0″
archive=”system.jar” /> <!– this should say system.sar, not systerm.jar –>Where it should be:
<?xml version=”1.0″ encoding=”UTF-8″?>
<project-module
type=”EJB”
name=”system”
id=”myeclipse.1267221003033″
j2ee-spec=”5.0″
archive=”system.sar” />This doesn’t work when I deploy to JBoss, because JBoss expects system.sar.
After the first time load, if I go and modify it back to systerm.sar manually, then it works, but I have to exit out of myeclipse and get back into it again.
support-shaliniMemberakolchinsky,
Can you give some more information?
1. Can you copy paste your installation details from MyEcilpse > Installation Summary > Installation Details?
2. What was the version of MyEclipse used to create the original project?
akolchinskyParticipantHi Shalini,
I am using myeclipse version 8.0. I have tried reinstall several times. Whenever I load my projects the very fist time, I observe this behavior. After I go and edit the system/.mymetadata file from system.jar to systerm.sar, then everything works fine. Also, I observed that when I select the checkbox to copy the project files into the workspace, it doesn’t do this, and everything works. However, this is not an acceptable workaround for me. Below pls. note the installation details and error log.
======================================================================
*** Date:
Tuesday, March 2, 2010 11:58:32 AM PST** System properties:
OS=Linux
OS version=2.6.18.el5
Java version=1.6.0_13*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 8.0
Build id: 8.0-20091120*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 8.0
Build id: 8.0-20091120Eclipse startup command=-os
linux
-ws
gtk
-arch
x86
-showsplash
-launcher
/home/akolchinsky/Genuitec/MyEclipse 8.x Latest/myeclipse
-name
Myeclipse
–launcher.library
/home/akolchinsky/Genuitec/MyEclipse 8.x Latest//../Common/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520/eclipse_1206.so
-startup
/home/akolchinsky/Genuitec/MyEclipse 8.x Latest//../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-exitdata
491001c
-install
/home/akolchinsky/Genuitec/MyEclipse 8.x Latest
-vm
/home/akolchinsky/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_1.6.0.013/bin/java==============================================================================
Also, pls. take a look at the error log. There are some exceptions I noted:
!SESSION 2010-03-02 12:03:18.867 ———————————————–
eclipse.buildId=unknown
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86!ENTRY org.eclipse.equinox.p2.repository 4 0 2010-03-02 12:03:20.294
!MESSAGE ProvisioningEventBus could not be obtained. Metadata caches may not be cleaned up properly.!ENTRY com.genuitec.eclipse.core 1 0 2010-03-02 12:03:28.792
!MESSAGE Unable to locate .myeclipse.properties file!ENTRY org.eclipse.jface 2 0 2010-03-02 12:03:42.400
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2010-03-02 12:03:42.400
!MESSAGE A conflict occurred for SHIFT+DEL:
Binding(SHIFT+DEL,
ParameterizedCommand(Command(org.eclipse.datatools.sqltools.result.removeAllInstances,Remove All Visible Results,
,
Category(org.eclipse.datatools.sqltools.result.category,SQL Results View,null,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(SHIFT+DEL,
ParameterizedCommand(Command(org.eclipse.ui.edit.cut,Cut,
Cut the selection to the clipboard,
Category(org.eclipse.ui.category.edit,Edit,null,true),
org.eclipse.ui.internal.handlers.WidgetMethodHandler@12f0124,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.dialogAndWindow,,,system)
Binding(SHIFT+DEL,
ParameterizedCommand(Command(org.topcased.modeler.deleteModelObject,Delete From Model,
Allows the user to delete the selected graph element and its associated model element in a Topcased editor.,
Category(org.eclipse.ui.category.edit,Edit,null,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.335
!MESSAGE NLS unused message: action.moduleProjectWizardAction in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.335
!MESSAGE NLS unused message: artifactComponent.artifact in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.337
!MESSAGE NLS unused message: directoriesComponent.projectLayout in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.337
!MESSAGE NLS unused message: launch.browseFs in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.337
!MESSAGE NLS unused message: launch.browseVariables in: org.maven.ide.eclipse.messages….
!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.337
!MESSAGE NLS unused message: launch.choosePomDir in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.337
!MESSAGE NLS unused message: launch.errorPomMissing in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.337
!MESSAGE NLS unused message: launch.errorSelectPom in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.338
!MESSAGE NLS unused message: launch.goals in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.338
!MESSAGE NLS unused message: launch.goalsDialog.lifecyclePhases in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.338
!MESSAGE NLS unused message: launch.goalsDialog.title in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.338
!MESSAGE NLS unused message: launch.goalsLabel in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.338
!MESSAGE NLS unused message: launch.mainTabName in: org.maven.ide.eclipse.messages!ENTRY org.eclipse.osgi 2 1 2010-03-02 12:04:15.338
…..
support-shaliniMemberakolchinsky.
I could not replicate this at my end. Creating a new EAR project added the EJB module as .jar
Can you please list out the steps in detail, right from the project creation, to replicate the above issue.
akolchinskyParticipantHello Shalini.
I am trying to deploy system.sar inside the EAR file. Here are my steps.
Create a new myspace enterprise project + 1 WAR project + 2 EJB projects. One of the 2 EJB projects is called system. This one will need to deploy system.sar, instead of system.jar. Now, I exit out of myeclipse and modify any reference from system.jar to systerm.sar, including .mymetadata files. Now I create velocity templates out of these projects. Now, I have my own plugin with I envoke when I startup myeclipse. This plugin goes through all the project files, applies the velocity templates and loads the projects into myspace. When these projects get loaded, I go back to the disk, and I see that the .mymetadata files have system.sar changed back to system.jar, even though velocity templates say system.sar. This means that some code in eclipse/myeclipse changed these names back to system.jar. So basically, what I am trying to do is create a pre-canned project which I can deploy to JBOSS, and JBOSS needs this system.sar file. How can I create an EAR file with system.sar in it. Of course I can use something like LOMBOZ, but I really don’t want to use that plugin.
akolchinskyParticipantHello Shalini, can you please help us with this issue. We are considering myeclipse for our new product which will be deployed to many users in the future, and if we cannot get past this hurdle, we will have to revert to using the vanilla eclipse.
Sincerely,
akolchinsky
akolchinskyParticipantHello Shalini,
I found this entry: https://www.genuitec.com/forums/topic/what-is-the-correct-way-to-add-a-har-or-sar-module/&start=0&postdays=0&postorder=asc&highlight=
Which recommended naming the entire project system.sar instead of system. I did that, but now I get an error:
Failed to read project description file from location …./.project. My .project file looks like this:
<projectDescription>
<name>system.sar</name>…
akolchinskyParticipantHello Shalini,
I finally got it to work. The trick was to name the project system.sar. Thanks a lot.
Alex.
support-shaliniMemberAlex,
I finally got it to work. The trick was to name the project system.sar.
Good to know that you are all set and thank you for posting your findings.
-
AuthorPosts