Skip to main content

Variable Data Type Browse Button Problem in Eclipse BPEL


Do you face such a problem?

When you add data type to a variable under BPEL in eclipse Juno, and click on Browse button in figure1, Browse button doesn't work.

figure1
 

So to solve this, There are two ways: 

The first way: Edit "yourfilename.bpel" file in eclipse using text editor: 
 Right click on your bpel file under Project Explorer > open with > Text Editor

Open .bpel using text editor
Edit xxxx.bpel
 Adding the XMLShema under <bpel:process> element, Then define the type of you variables under <bpel:variables> element by writing type="ns1:yourtype" as follow:
add your xmlschema in the shown format

define your variable data type by refering to ns1 or ns2 as you need
Note: Refer to your defined XMLSchem in <bpel:process> as follow:
<bpel:process xmlns:ns1="http://www.w3.org/2001/XMLSchema> 
and in <bpel:variables> write before the type "ns1:" as a mark to its location in <bpel:process> as follow:
<bpel:variables>
<bpel:variable name="iterator" type="ns1:int"></bpel:variable>
</bpel:variables>

The second way: Install Eclipse Indigo, and it will work successfully without doing the above steps.

 I hope this Help :)



Comments

Popular posts from this blog

Error Class names are only accepted if annotation processing is explicitly requested

Do you get the following error? Class names, 'Hello', are only accepted if annotation processing is explicitly requested 1 error In case you got this error, then you forget to add .java to the file name when you compile it So when you want to compile a file using cmd console window write the filename.java extension Example: Javac Hello.java If you write it in this way the error will go away. So don’t forget to include suffix with your file name during compilation.

Multitenancy

What is Multitenancy? Multitenancy is an architecture in which a single instance of a software application serves multiple customers. It gives the ability to use the same software and interfaces to configure resources and it isolates customer-specific traffic and data. Each customer is called a tenant. Tenants may be given the ability to configure some parts of the application, such as color of the user interface ( UI ) or business rules , but they cannot change the application's code . This means that although tenants are using the same building blocks in their configuration, the appearance or workflow of the application may be different for two tenants. Also, the Service Level Agreement (SLA) of each tenant can differ [1]. Multitenancy vs. Singletenancy: Multitenancy can be economical because software development and maintenance costs are shared. It can be contrasted with single-tenancy, an architecture in which each customer has their own software instance and ...

An attempt was made to insert a node where it is not permitted

Do you face this Error while you are writing code to generate xml file from java? Exception in thread "main" org.w3c.dom.DOMException : HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.        at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(Unknown Source)        at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(Unknown Source)        at generatexml.WriteXMLFile.main( WriteXMLFile.java:30 ) Well the answer is: Don't insert the node where it isn't permitted. Change your generated directory file path from 'C' to other directory ex, D or to any directory you have. Make sure the ‘appendChild’ is referring to the right element. Don’t appending twice, only make it once. Ex, //Writetoxml.java   Element rootElement = doc . createElement ( " Company " );   doc . appendChild ( ro...