You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Lin Sun (JIRA)" <ji...@apache.org> on 2006/08/02 16:42:13 UTC

[jira] Created: (GERONIMODEVTOOLS-94) cannot run jar or ear from within eclipse

cannot run jar or ear from within eclipse
-----------------------------------------

                 Key: GERONIMODEVTOOLS-94
                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94
             Project: Geronimo-Devtools
          Issue Type: Bug
          Components: eclipse-plugin
    Affects Versions: 1.1.0
         Environment: Windows XP + AG 1.1 + Devtools 1.1
            Reporter: Lin Sun


This looks like a defect. I seem to have forgot to implement support for importing non-qualified plans for 1.1. (i.e Running SchemaConversionUtil on 1.1 plans).


On Aug 1, 2006, at 3:00 PM, Lin Sun wrote:


Hi there,


Has anyone been able to running jar or ear from within eclipse using the devtools 1.1?


I have a MDB sample (from confluence) and I managed to get it running using devtools 1.0 within eclipse. However, when I import my jar file in, the openejb-jar.xml cannot be read by the Geronimo application deployment plan editor. In the past experience, this is a pre-requisite before I can deploy anything to Geronimo server in Eclipse.


I also tried to create a dummy EJB project and the default openejb-jar.xml cannot be opened by the Geronimo application deployment plan editor either. Similar prob with the EAR project.


I am wondering if this is a known limitation of the 1.1 version of devtools project? Seems I can only get war project running...


Thanks, Lin





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMODEVTOOLS-94) cannot run jar or ear from within eclipse

Posted by "Lin Sun (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94?page=comments#action_12425252 ] 
            
Lin Sun commented on GERONIMODEVTOOLS-94:
-----------------------------------------

Thanks for the quick comments.  Could you explain a bit more on "Running SchemaConversionUtil on 1.1 plans"?  I searched SchemaConversionUtil of all the 1.1 plugins in my workspace, but no return.   I also searched all of the 1.0 plugins, no return either.   I assume this is something you implemented in 1.0 but forgot to port it in 1.1.  Is that a good assumption?



> cannot run jar or ear from within eclipse
> -----------------------------------------
>
>                 Key: GERONIMODEVTOOLS-94
>                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.1.0
>         Environment: Windows XP + AG 1.1 + Devtools 1.1
>            Reporter: Lin Sun
>
> This looks like a defect. I seem to have forgot to implement support for importing non-qualified plans for 1.1. (i.e Running SchemaConversionUtil on 1.1 plans).
> On Aug 1, 2006, at 3:00 PM, Lin Sun wrote:
> Hi there,
> Has anyone been able to running jar or ear from within eclipse using the devtools 1.1?
> I have a MDB sample (from confluence) and I managed to get it running using devtools 1.0 within eclipse. However, when I import my jar file in, the openejb-jar.xml cannot be read by the Geronimo application deployment plan editor. In the past experience, this is a pre-requisite before I can deploy anything to Geronimo server in Eclipse.
> I also tried to create a dummy EJB project and the default openejb-jar.xml cannot be opened by the Geronimo application deployment plan editor either. Similar prob with the EAR project.
> I am wondering if this is a known limitation of the 1.1 version of devtools project? Seems I can only get war project running...
> Thanks, Lin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (GERONIMODEVTOOLS-94) Importing archives with non qualified plans cannot be opened with the editor

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94?page=all ]

Sachin Patel resolved GERONIMODEVTOOLS-94.
------------------------------------------

    Resolution: Fixed

> Importing archives with non qualified plans cannot be opened with the editor
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-94
>                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.1.0
>         Environment: Windows XP + AG 1.1 + Devtools 1.1
>            Reporter: Lin Sun
>         Assigned To: Sachin Patel
>
> This looks like a defect. I seem to have forgot to implement support for importing non-qualified plans for 1.1. (i.e Running SchemaConversionUtil on 1.1 plans).
> On Aug 1, 2006, at 3:00 PM, Lin Sun wrote:
> Hi there,
> Has anyone been able to running jar or ear from within eclipse using the devtools 1.1?
> I have a MDB sample (from confluence) and I managed to get it running using devtools 1.0 within eclipse. However, when I import my jar file in, the openejb-jar.xml cannot be read by the Geronimo application deployment plan editor. In the past experience, this is a pre-requisite before I can deploy anything to Geronimo server in Eclipse.
> I also tried to create a dummy EJB project and the default openejb-jar.xml cannot be opened by the Geronimo application deployment plan editor either. Similar prob with the EAR project.
> I am wondering if this is a known limitation of the 1.1 version of devtools project? Seems I can only get war project running...
> Thanks, Lin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (GERONIMODEVTOOLS-94) Importing archives with non qualified plans cannot be opened with the editor

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94?page=all ]

Sachin Patel reassigned GERONIMODEVTOOLS-94:
--------------------------------------------

    Assignee: Sachin Patel

> Importing archives with non qualified plans cannot be opened with the editor
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-94
>                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.1.0
>         Environment: Windows XP + AG 1.1 + Devtools 1.1
>            Reporter: Lin Sun
>         Assigned To: Sachin Patel
>
> This looks like a defect. I seem to have forgot to implement support for importing non-qualified plans for 1.1. (i.e Running SchemaConversionUtil on 1.1 plans).
> On Aug 1, 2006, at 3:00 PM, Lin Sun wrote:
> Hi there,
> Has anyone been able to running jar or ear from within eclipse using the devtools 1.1?
> I have a MDB sample (from confluence) and I managed to get it running using devtools 1.0 within eclipse. However, when I import my jar file in, the openejb-jar.xml cannot be read by the Geronimo application deployment plan editor. In the past experience, this is a pre-requisite before I can deploy anything to Geronimo server in Eclipse.
> I also tried to create a dummy EJB project and the default openejb-jar.xml cannot be opened by the Geronimo application deployment plan editor either. Similar prob with the EAR project.
> I am wondering if this is a known limitation of the 1.1 version of devtools project? Seems I can only get war project running...
> Thanks, Lin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMODEVTOOLS-94) Importing archives with non qualified plans cannot be opened with the editor

Posted by "Lin Sun (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94?page=comments#action_12428203 ] 
            
Lin Sun commented on GERONIMODEVTOOLS-94:
-----------------------------------------

I still have similar prob.  The MDB openejb-jar.xml plan actually contains the fully qualified tags but it cannot be opened with the geornimo plan editor.  Similar with a new openejb-jar.xml file created by default using the create new ejb project wizard.   



> Importing archives with non qualified plans cannot be opened with the editor
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-94
>                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.1.0
>         Environment: Windows XP + AG 1.1 + Devtools 1.1
>            Reporter: Lin Sun
>         Assigned To: Sachin Patel
>
> This looks like a defect. I seem to have forgot to implement support for importing non-qualified plans for 1.1. (i.e Running SchemaConversionUtil on 1.1 plans).
> On Aug 1, 2006, at 3:00 PM, Lin Sun wrote:
> Hi there,
> Has anyone been able to running jar or ear from within eclipse using the devtools 1.1?
> I have a MDB sample (from confluence) and I managed to get it running using devtools 1.0 within eclipse. However, when I import my jar file in, the openejb-jar.xml cannot be read by the Geronimo application deployment plan editor. In the past experience, this is a pre-requisite before I can deploy anything to Geronimo server in Eclipse.
> I also tried to create a dummy EJB project and the default openejb-jar.xml cannot be opened by the Geronimo application deployment plan editor either. Similar prob with the EAR project.
> I am wondering if this is a known limitation of the 1.1 version of devtools project? Seems I can only get war project running...
> Thanks, Lin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMODEVTOOLS-94) cannot run jar or ear from within eclipse

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94?page=comments#action_12425247 ] 
            
Sachin Patel commented on GERONIMODEVTOOLS-94:
----------------------------------------------

If you need something immediatley, as a workaround this can be implemented on your end inside your plugin, as this is just an extension point.

> cannot run jar or ear from within eclipse
> -----------------------------------------
>
>                 Key: GERONIMODEVTOOLS-94
>                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.1.0
>         Environment: Windows XP + AG 1.1 + Devtools 1.1
>            Reporter: Lin Sun
>
> This looks like a defect. I seem to have forgot to implement support for importing non-qualified plans for 1.1. (i.e Running SchemaConversionUtil on 1.1 plans).
> On Aug 1, 2006, at 3:00 PM, Lin Sun wrote:
> Hi there,
> Has anyone been able to running jar or ear from within eclipse using the devtools 1.1?
> I have a MDB sample (from confluence) and I managed to get it running using devtools 1.0 within eclipse. However, when I import my jar file in, the openejb-jar.xml cannot be read by the Geronimo application deployment plan editor. In the past experience, this is a pre-requisite before I can deploy anything to Geronimo server in Eclipse.
> I also tried to create a dummy EJB project and the default openejb-jar.xml cannot be opened by the Geronimo application deployment plan editor either. Similar prob with the EAR project.
> I am wondering if this is a known limitation of the 1.1 version of devtools project? Seems I can only get war project running...
> Thanks, Lin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMODEVTOOLS-94) Importing archives with non qualified plans cannot be opened with the editor

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94?page=all ]

Sachin Patel updated GERONIMODEVTOOLS-94:
-----------------------------------------

    Summary: Importing archives with non qualified plans cannot be opened with the editor  (was: cannot run jar or ear from within eclipse)

> Importing archives with non qualified plans cannot be opened with the editor
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-94
>                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.1.0
>         Environment: Windows XP + AG 1.1 + Devtools 1.1
>            Reporter: Lin Sun
>
> This looks like a defect. I seem to have forgot to implement support for importing non-qualified plans for 1.1. (i.e Running SchemaConversionUtil on 1.1 plans).
> On Aug 1, 2006, at 3:00 PM, Lin Sun wrote:
> Hi there,
> Has anyone been able to running jar or ear from within eclipse using the devtools 1.1?
> I have a MDB sample (from confluence) and I managed to get it running using devtools 1.0 within eclipse. However, when I import my jar file in, the openejb-jar.xml cannot be read by the Geronimo application deployment plan editor. In the past experience, this is a pre-requisite before I can deploy anything to Geronimo server in Eclipse.
> I also tried to create a dummy EJB project and the default openejb-jar.xml cannot be opened by the Geronimo application deployment plan editor either. Similar prob with the EAR project.
> I am wondering if this is a known limitation of the 1.1 version of devtools project? Seems I can only get war project running...
> Thanks, Lin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMODEVTOOLS-94) Importing archives with non qualified plans cannot be opened with the editor

Posted by "Lin Sun (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94?page=comments#action_12428561 ] 
            
Lin Sun commented on GERONIMODEVTOOLS-94:
-----------------------------------------

The fix for devtools 94 doesn't work.

I tried to print out the following var plan in ImportDeploymentPlanOperation.java

			plan = runtime.fixGeronimoWebSchema(planFile);
	        	System.out.println("plan 1: " + plan.toString());

Here's the printout:
plan 1: <xml-fragment xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1" xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1" xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1" xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-1.1">
  <sys:environment>
    <sys:moduleId>
      <sys:groupId>samples</sys:groupId>
      <sys:artifactId>cviewer</sys:artifactId>
      <sys:version>1.1</sys:version>
      <sys:type>war</sys:type>
    </sys:moduleId>
    <sys:dependencies/>
    <sys:hidden-classes/>
    <sys:non-overridable-classes/>
  </sys:environment>
  <web:context-root>/cviewer</web:context-root>
</xml-fragment>

Note this is not a valid plan.

I updated the following method in org.apache.geronimo.st.v11.core.GeronimoRuntime and it is working now (for war file).

	public XmlObject fixGeronimoWebSchema(IFile plan) throws XmlException {
        XmlObject xmlplan = getXmlObject(plan);
        if (plan != null) {
            SchemaConversionUtils.fixGeronimoSchema(xmlplan, GerWebAppDocument.type.getDocumentElementName(),
                    GerWebAppType.type);
            save(xmlplan, plan);
            return xmlplan;
        }
        return null;
	//return SchemaConversionUtils.fixGeronimoSchema(getXmlObject(plan), GerWebAppDocument.type.getDocumentElementName(), GerWebAppType.type);
	}

Also added the save method back from 1.0 to org.apache.geronimo.st.v11.core.GeronimoRuntime:

	private void save(XmlObject object, IFile file) {
		try {
			object.save(file.getLocation().toFile());
			file.refreshLocal(IFile.DEPTH_ONE, null);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (CoreException e) {
			e.printStackTrace();
		}
	}	

I 'll supply a patch for this tomorrow.  This change needs to be applied for other fixGeronimoXXXSchema method in GeronimoRuntime.java for both st.v1 and st.v11.   


> Importing archives with non qualified plans cannot be opened with the editor
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-94
>                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.1.0
>         Environment: Windows XP + AG 1.1 + Devtools 1.1
>            Reporter: Lin Sun
>         Assigned To: Sachin Patel
>
> This looks like a defect. I seem to have forgot to implement support for importing non-qualified plans for 1.1. (i.e Running SchemaConversionUtil on 1.1 plans).
> On Aug 1, 2006, at 3:00 PM, Lin Sun wrote:
> Hi there,
> Has anyone been able to running jar or ear from within eclipse using the devtools 1.1?
> I have a MDB sample (from confluence) and I managed to get it running using devtools 1.0 within eclipse. However, when I import my jar file in, the openejb-jar.xml cannot be read by the Geronimo application deployment plan editor. In the past experience, this is a pre-requisite before I can deploy anything to Geronimo server in Eclipse.
> I also tried to create a dummy EJB project and the default openejb-jar.xml cannot be opened by the Geronimo application deployment plan editor either. Similar prob with the EAR project.
> I am wondering if this is a known limitation of the 1.1 version of devtools project? Seems I can only get war project running...
> Thanks, Lin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMODEVTOOLS-94) Importing archives with non qualified plans cannot be opened with the editor

Posted by "Sachin Patel (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94?page=comments#action_12428204 ] 
            
Sachin Patel commented on GERONIMODEVTOOLS-94:
----------------------------------------------

Please open a different jira on this.

> Importing archives with non qualified plans cannot be opened with the editor
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-94
>                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.1.0
>         Environment: Windows XP + AG 1.1 + Devtools 1.1
>            Reporter: Lin Sun
>         Assigned To: Sachin Patel
>
> This looks like a defect. I seem to have forgot to implement support for importing non-qualified plans for 1.1. (i.e Running SchemaConversionUtil on 1.1 plans).
> On Aug 1, 2006, at 3:00 PM, Lin Sun wrote:
> Hi there,
> Has anyone been able to running jar or ear from within eclipse using the devtools 1.1?
> I have a MDB sample (from confluence) and I managed to get it running using devtools 1.0 within eclipse. However, when I import my jar file in, the openejb-jar.xml cannot be read by the Geronimo application deployment plan editor. In the past experience, this is a pre-requisite before I can deploy anything to Geronimo server in Eclipse.
> I also tried to create a dummy EJB project and the default openejb-jar.xml cannot be opened by the Geronimo application deployment plan editor either. Similar prob with the EAR project.
> I am wondering if this is a known limitation of the 1.1 version of devtools project? Seems I can only get war project running...
> Thanks, Lin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (GERONIMODEVTOOLS-94) Importing archives with non qualified plans cannot be opened with the editor

Posted by "Lin Sun (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94?page=all ]

Lin Sun updated GERONIMODEVTOOLS-94:
------------------------------------

    Attachment: devtools94.patch

Patch has been tested on importing war projects.

JAR project still doesn't want, but that is not because the import portion not working.   Creating a new JAR project doesn't work either (devtools 103).



> Importing archives with non qualified plans cannot be opened with the editor
> ----------------------------------------------------------------------------
>
>                 Key: GERONIMODEVTOOLS-94
>                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-94
>             Project: Geronimo-Devtools
>          Issue Type: Bug
>          Components: eclipse-plugin
>    Affects Versions: 1.1.0
>         Environment: Windows XP + AG 1.1 + Devtools 1.1
>            Reporter: Lin Sun
>         Assigned To: Sachin Patel
>         Attachments: devtools94.patch
>
>
> This looks like a defect. I seem to have forgot to implement support for importing non-qualified plans for 1.1. (i.e Running SchemaConversionUtil on 1.1 plans).
> On Aug 1, 2006, at 3:00 PM, Lin Sun wrote:
> Hi there,
> Has anyone been able to running jar or ear from within eclipse using the devtools 1.1?
> I have a MDB sample (from confluence) and I managed to get it running using devtools 1.0 within eclipse. However, when I import my jar file in, the openejb-jar.xml cannot be read by the Geronimo application deployment plan editor. In the past experience, this is a pre-requisite before I can deploy anything to Geronimo server in Eclipse.
> I also tried to create a dummy EJB project and the default openejb-jar.xml cannot be opened by the Geronimo application deployment plan editor either. Similar prob with the EAR project.
> I am wondering if this is a known limitation of the 1.1 version of devtools project? Seems I can only get war project running...
> Thanks, Lin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira