Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [bpel-dev] Ganymede port

Okay, I have got it working, but it's really quite weird.

Simon, can you please test the attached patch and let me know whether it works for you? If not, I may have missed something else.

### Eclipse Workspace Patch 1.0
#P org.eclipse.bpel.runtimes
Index: src/org/eclipse/bpel/runtimes/ui/wizards/NewBPELProjectWizardPage1.java
===================================================================
RCS file: /cvsroot/technology/org.eclipse.bpel/plugins/org.eclipse.bpel.runtimes/src/org/eclipse/bpel/runtimes/ui/wizards/NewBPELProjectWizardPage1.java,v
retrieving revision 1.2
diff -u -r1.2 NewBPELProjectWizardPage1.java
--- src/org/eclipse/bpel/runtimes/ui/wizards/NewBPELProjectWizardPage1.java	8 Nov 2006 13:47:52 -0000	1.2
+++ src/org/eclipse/bpel/runtimes/ui/wizards/NewBPELProjectWizardPage1.java	28 Aug 2008 03:40:30 -0000
@@ -13,6 +13,7 @@
 import org.eclipse.bpel.runtimes.IBPELModuleFacetConstants;
 import org.eclipse.bpel.runtimes.IRuntimesUIConstants;
 import org.eclipse.bpel.runtimes.RuntimesPlugin;
+import org.eclipse.wst.common.componentcore.internal.util.IModuleConstants;
 import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
 import org.eclipse.wst.web.ui.internal.wizards.DataModelFacetCreationWizardPage;
 
@@ -26,13 +27,17 @@
 
 	public NewBPELProjectWizardPage1(IDataModel dataModel, String pageName) {
 		super(dataModel, pageName);
-		setTitle(Messages.NewProjectWizard_1);
-		setDescription(Messages.NewProjectWizardPage1_1);
+		setTitle(org.eclipse.bpel.runtimes.ui.wizards.Messages.NewProjectWizard_1);
+		setDescription(org.eclipse.bpel.runtimes.ui.wizards.Messages.NewProjectWizardPage1_1);
 		setImageDescriptor(RuntimesPlugin.getPlugin().getImageDescriptor(IRuntimesUIConstants.ICON_NEWPRJ_WIZARD_BANNER));
 	}
 	
 	protected String getModuleFacetID() {
 		return IBPELModuleFacetConstants.BPEL20_MODULE_TYPE;
 	}
+	
+	protected String getModuleTypeID() {
+		return IBPELModuleFacetConstants.BPEL20_MODULE_TYPE;
+	}
 
 }



My understanding of the problem (arrived at while somewhat tired, so forgive me if this doesn't make sense): ProjectFacetsManager.getProjectFacets was called on the BPEL module type id (bpel.module). This happens in DataModelFacetCreationWizardPage.createPrimaryFacetComposite. In there it makes a call to getModuleTypeId. Why it does that, I don't understand. But to retrieve a project facet, it would make more sense to me if this was called on the project facet id. I must be missing something here, if not this should affect other projects using this feature of WST. Well, as a quick fix, until I can figure out whether or not this is a bug in WST code or not, I changed our implementation of getModuleTypeID() in NewBPELProjectWizardPage1 to return the project facet id.

I will try to see whether this part of the WST code changed at all and whether someone else has reported this as a problem. If not, then I might have missed what was going on with this bug.

-- Bruno


On 28 Aug 2008, at 03:03, Bruno Wassermann wrote:

Bruno has taken a few hours of looks so far, but hasn't been able to fix the problem yet. What seems to be the problem is that the ProjectFacetsManager doesn't register an id for our BPEL facet anymore. But why exactly this is and what we need to do differently/in addition in order to get our facet id back in there, I haven't figured out yet.

As I mentioned, I can only look at this from around 10, 11 pm Eastern, so this may take me a while.


-- Bruno

On 27 Aug 2008, at 12:02, Simon D Moser wrote:


Hey Andrei - we have an initial patch available (see attached file - apply
on HEAD stream code using Ganymede). However, I am encountering a few
issues where I am stuck and need some help (see list below).

(See attached file: OS_34Port.patch)

Problem a.) is probably caused by a WST change somehow (and Bruno wanted to
take a look, but hasn't gotten back to me yet). b.) seems to be a
classloader problem that I cannot seem to figure out ?!

Obviously, any help here is greatly appreciated ;-)

a.) I cannot create a new BPEL Project. I always get a Facade unknown
exception. This is probably due to some WST changes -  Bruno, since you
wrote most of that code - would you mind taking a look there ?

!ENTRY org.eclipse.ui 4 0 2008-08-21 21:53:15.343
!MESSAGE Unhandled event loop exception:
!STACK 0
java.lang.IllegalArgumentException: Project facet null has not been
defined.:
    at
org .eclipse .wst .common .project.facet.core.internal.FacetedProjectFrameworkImpl.getProjectFacet
(
FacetedProjectFrameworkImpl.java:230)
    at
org .eclipse .wst.common.project.facet.core.ProjectFacetsManager.getProjectFacet
(
ProjectFacetsManager.java:74)
    at
org.eclipse.wst.web.ui.internal.wizards.DataModelFacetCreationWizardPage.createPrimaryFacetComposite
(
DataModelFacetCreationWizardPage.java:124)
    at
org.eclipse.wst.web.ui.internal.wizards.DataModelFacetCreationWizardPage.createTopLevelComposite
(
DataModelFacetCreationWizardPage.java:118)
    at
org .eclipse .wst .common .frameworks.internal.datamodel.ui.DataModelWizardPage.createControl
(
DataModelWizardPage.java:103)
    at org.eclipse.jface.wizard.Wizard.createPageControls(
Wizard.java:170.)
    at
org .eclipse .wst .common.project.facet.ui.ModifyFacetedProjectWizard.createPageControls
(
ModifyFacetedProjectWizard.java:307)
    at
org.eclipse.wst.web.ui.internal.wizards.NewProjectDataModelFacetWizard.createPageControls
(
NewProjectDataModelFacetWizard.java:136)
    at org.eclipse.jface.wizard.WizardDialog.createPageControls(
WizardDialog.java:669.)
    at org.eclipse.jface.wizard.WizardDialog.setWizard(
WizardDialog.java:1083)

b.) If I reuse an existing BPEL Project, I can create a new Process and
things look good on first glance. However, as soon as some code tries to
access an object from javax.wsdl, I get some strange error

b1.) If I use JDK 5, I get

!ENTRY org.eclipse.ui.views.properties.tabbed 4 2 2008-08-21 22:01:29.156
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ui.views.properties.tabbed".
!STACK 0
java.lang.NoClassDefFoundError: javax.wsdl.Input
    at org.eclipse.bpel.ui.util.ModelHelper.getVariableType(
ModelHelper.java:1376)
    at
org .eclipse .bpel.ui.properties.InvokeVariableSection.updateInputVariableWidgets
(
InvokeVariableSection.java:1101)
    at org.eclipse.bpel.ui.properties.InvokeVariableSection.refresh(
InvokeVariableSection.java:1050)
    at org.eclipse.ui.views.properties.tabbed.TabContents$6.run(
TabContents.java:217)

b2.) With JDK6, I get

java.lang.LinkageError: loader constraint violation: loader (instance of
org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
initiated loading for a different type with name "javax/wsdl/Input"
    at org.eclipse.bpel.ui.util.ModelHelper.getVariableType(
ModelHelper.java:1376)
    at
org .eclipse .bpel.ui.properties.InvokeVariableSection.updateInputVariableWidgets
(
InvokeVariableSection.java:1101)
    at org.eclipse.bpel.ui.properties.InvokeVariableSection.refresh(
InvokeVariableSection.java:1050)
    at org.eclipse.ui.views.properties.tabbed.TabContents$6.run(
TabContents.java:217)

someone seeing these, too ? Someone any idea what might cause this ?


Mit freundlichen Grüßen / Kind regards

Simon Daniel Moser

Team Lead BPEL Editor - Websphere Integration Developer (WID)
IBM Software Group, Application and Integration Middleware Software?
Business Process Solutions Development 1





Phone: +49-7031-16-4304 IBM Deutschland (Embedded image moved to file: pic24480 .gif)

Fax:              +49-7031-16-4890           Schoenaicher Str. 220

E-Mail:           smoser@xxxxxxxxxx          71032 Boeblingen

                                            Germany





IBM Deutschland
Research &
Development
GmbH /
Vorsitzender des
Aufsichtsrats:
Martin Jetter
Geschäftsführung:
Erich Baier
Sitz der
Gesellschaft:
Böblingen /
Registergericht:
Amtsgericht
Stuttgart, HRB
243294





|------------>
| From:      |
|------------>
--------------------------------------------------------------------------------------------------------------------------------------------------|
|Andrei Shakirin < andrei .shakirin @sopera .de > |
--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
--------------------------------------------------------------------------------------------------------------------------------------------------|
|"BPEL Designer project developer discussions." <bpel- dev @eclipse .org > |
--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
--------------------------------------------------------------------------------------------------------------------------------------------------|
|27.08.2008 10 : 29 |
--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
--------------------------------------------------------------------------------------------------------------------------------------------------|
|[bpel-dev] Ganymede port |
--------------------------------------------------------------------------------------------------------------------------------------------------|





Hi Simon,]

Do you have already kind of time plan / roadmap regarding Ganymede port?
Could we help/support BPEL team with this topic?

Regards,
Andrei.,

Andrei Shakirin
SOPERA GmbH - Open Source SOA



From: bpel-dev-bounces@xxxxxxxxxxx [mailto:bpel-dev- bounces@xxxxxxxxxxx] On
Behalf Of Hanyu Xiao
Sent: Freitag, 22. August 2008 23:10.
To: BPEL Designer project developer discussions.
Subject: [bpel-dev] Ganymede port

Hi Simon,


Regards,,
Hanyu
-----------------------
Hanyu Xiao
Tibco Software Inc.
3303 Hillview Ave..
Palo Alto, CA 94304_______________________________________________
bpel-dev mailing list
bpel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/bpel-dev

< OS_34Port .patch><pic24480.gif>_______________________________________________
bpel-dev mailing list
bpel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/bpel-dev

_______________________________________________
bpel-dev mailing list
bpel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/bpel-dev


Back to the top