JBoss Tools SVN: r22314 - in trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core: libprov and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2010-05-25 17:22:09 -0400 (Tue, 25 May 2010)
New Revision: 22314
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java
trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java
Log:
https://jira.jboss.org/browse/JBIDE-5968 JSF Portlet Facet always adds richfaces fragments to web.xml
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java 2010-05-25 21:20:28 UTC (rev 22313)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/internal/project/facet/PortletPostInstallListener.java 2010-05-25 21:22:09 UTC (rev 22314)
@@ -414,7 +414,9 @@
IContainer folder = rootFolder.getUnderlyingFolder();
IContainer webinf = folder.getFolder(new Path(
IPortletConstants.WEB_INF_LIB));
- deleteOldRichfacesLibs(earProject, webinf);
+ if (!addRichfacesFromRichfacesRuntime) {
+ deleteOldRichfacesLibs(earProject, webinf);
+ }
IPath destPath = folder.getFullPath();
ImportOperation op = new ImportOperation( destPath,
Modified: trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java
===================================================================
--- trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java 2010-05-25 21:20:28 UTC (rev 22313)
+++ trunk/portlet/plugins/org.jboss.tools.portlet.core/src/org/jboss/tools/portlet/core/libprov/RuntimeLibraryProviderPropertyTester.java 2010-05-25 21:22:09 UTC (rev 22314)
@@ -26,6 +26,12 @@
}
IRuntime runtime = FacetUtil.getRuntime(primaryRuntime);
if (runtime != null) {
+ if ("isJSFPortletRuntime".equals(property)) { //$NON-NLS-1$
+ String id = runtime.getRuntimeType().getId();
+ if (! "org.jboss.ide.eclipse.as.runtime.eap.43".equals(id) && ! "org.jboss.ide.eclipse.as.runtime.42".equals(id)) { //$NON-NLS-1$//$NON-NLS-2$
+ return false;
+ }
+ }
File location = runtime.getLocation().toFile();
return PortletRuntimeComponentProvider.isPortalPresent(location, runtime, property);
}
15 years, 11 months
JBoss Tools SVN: r22313 - trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2010-05-25 17:20:28 -0400 (Tue, 25 May 2010)
New Revision: 22313
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties
Log:
JBIDE-6328 - updating some error handling
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties 2010-05-25 21:19:09 UTC (rev 22312)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUI.properties 2010-05-25 21:20:28 UTC (rev 22313)
@@ -84,6 +84,8 @@
JAXRSWSTestView_Action_URL_Label=Action URL:
JAXRSWSTestView_Configure_Monitor_Button=Configure Monitor
JAXRSWSTestView_CopyResultsMenu=&Copy
+JAXRSWSTestView_Error_Msg_Starting_Monitor=Encountered an error starting the new TCP/IP monitor. Open the TCP/IP Monitor view and edit the monitor definition to correct the error.
+JAXRSWSTestView_Error_Title_Starting_Monitor=Error Starting Monitor
JAXRSWSTestView_Exception_Status=Exception\:
JAXRSWSTestView_HTTP_Method_Label=HTTP Method:
JAXRSWSTestView_Invoke_Label=Invoke
15 years, 11 months
JBoss Tools SVN: r22312 - in trunk/ws/plugins/org.jboss.tools.ws.ui: src/org/jboss/tools/ws/ui/messages and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: bfitzpat
Date: 2010-05-25 17:19:09 -0400 (Tue, 25 May 2010)
New Revision: 22312
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/META-INF/MANIFEST.MF
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/JAXWSTester.java
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView.java
Log:
JBIDE-6328 - updating some error handling
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/META-INF/MANIFEST.MF 2010-05-25 21:06:40 UTC (rev 22311)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/META-INF/MANIFEST.MF 2010-05-25 21:19:09 UTC (rev 22312)
@@ -32,7 +32,9 @@
Export-Package: org.jboss.tools.ws.ui,
org.jboss.tools.ws.ui.messages,
org.jboss.tools.ws.ui.preferences,
- org.jboss.tools.ws.ui.utils
+ org.jboss.tools.ws.ui.utils,
+ org.jboss.tools.ws.ui.views,
+ org.jboss.tools.ws.ui.wizards
Bundle-Vendor: %PLUGIN_PROVIDER
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Import-Package: org.eclipse.jst.javaee.web,
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java 2010-05-25 21:06:40 UTC (rev 22311)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/messages/JBossWSUIMessages.java 2010-05-25 21:19:09 UTC (rev 22312)
@@ -107,6 +107,8 @@
public static String JAXRSWSTestView_Action_URL_Label;
public static String JAXRSWSTestView_Configure_Monitor_Button;
public static String JAXRSWSTestView_CopyResultsMenu;
+ public static String JAXRSWSTestView_Error_Msg_Starting_Monitor;
+ public static String JAXRSWSTestView_Error_Title_Starting_Monitor;
public static String JAXRSWSTestView_Exception_Status;
public static String JAXRSWSTestView_HTTP_Method_Label;
public static String JAXRSWSTestView_Invoke_Label;
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/JAXWSTester.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/JAXWSTester.java 2010-05-25 21:06:40 UTC (rev 22311)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/utils/JAXWSTester.java 2010-05-25 21:19:09 UTC (rev 22312)
@@ -16,6 +16,7 @@
import javax.xml.soap.MimeHeader;
import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPMessage;
import org.apache.axis.AxisFault;
import org.apache.axis.Message;
@@ -23,6 +24,7 @@
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.message.SOAPEnvelope;
+import org.apache.axis.transport.http.HTTPConstants;
/**
* Tester class for JAX-WS services
@@ -112,13 +114,23 @@
// Get back the response HTTP headers and pass back as a Map
if (call != null && call.getMessageContext() != null) {
MessageContext mc = call.getMessageContext();
- if (mc.getMessage() != null && mc.getMessage().getMimeHeaders() != null) {
- MimeHeaders mh = mc.getMessage().getMimeHeaders();
- Iterator<?> iter = mh.getAllHeaders();
+ if (mc != null){
+ String statusCode = mc.getProperty(HTTPConstants.MC_HTTP_STATUS_CODE).toString();
+ String statusMessage = mc.getProperty(HTTPConstants.MC_HTTP_STATUS_MESSAGE).toString();
+ String protocol = mc.getTransportName();
resultHeaders = new HashMap<String, String>();
- while (iter.hasNext()) {
- MimeHeader next = (MimeHeader)iter.next();
- resultHeaders.put(next.getName(), next.getValue());
+ resultHeaders.put(null, protocol + " " + statusCode + " " + statusMessage); //$NON-NLS-1$//$NON-NLS-2$
+// System.out.println(protocol + " " + statusCode + " " + statusMessage);
+ SOAPMessage sm = mc.getResponseMessage();
+ if (sm != null){
+ MimeHeaders mh = sm.getMimeHeaders();
+ if (mh != null){
+ Iterator<?> iter = mh.getAllHeaders();
+ while (iter.hasNext()) {
+ MimeHeader next = (MimeHeader)iter.next();
+ resultHeaders.put(next.getName(), next.getValue());
+ }
+ }
}
}
}
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView.java 2010-05-25 21:06:40 UTC (rev 22311)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/views/JAXRSWSTestView.java 2010-05-25 21:19:09 UTC (rev 22312)
@@ -28,6 +28,7 @@
import org.eclipse.core.runtime.jobs.IJobChangeEvent;
import org.eclipse.core.runtime.jobs.IJobChangeListener;
import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.SashForm;
@@ -122,6 +123,8 @@
private MenuItem openResponseTagInXMLEditor;
private Menu resultsTextMenu;
private MenuItem copyMenuAction;
+
+ private boolean showSampleButton = true;
/**
* The constructor.
@@ -291,7 +294,7 @@
Button sampleButton = new Button(buttonBar, SWT.PUSH);
sampleButton.setText(JBossWSUIMessages.JAXRSWSTestView_Set_Sample_Data_Label);
- sampleButton.setVisible(false);
+ sampleButton.setVisible(showSampleButton);
sampleButton.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
@@ -401,11 +404,6 @@
public void focusGained(FocusEvent arg0) {
setMenusForCurrentState();
-// if (resultsText.getText().trim().length() > 0){
-// resultsTextMenu.setVisible(true);
-// } else {
-// resultsTextMenu.setVisible(false);
-// }
}
});
@@ -524,23 +522,26 @@
if (!monitor.isRunning()) {
try {
monitor.start();
+ int port = monitor.getLocalPort();
+ int remotePort = monitor.getRemotePort();
+ String host = monitor.getRemoteHost();
+ String newUrl = null;
+ if (oldUrl.contains(host + ":" + remotePort)) { //$NON-NLS-1$
+ newUrl = oldUrl.replace(host + ":" + remotePort, "localhost:" + port); //$NON-NLS-1$ //$NON-NLS-2$
+ } else {
+ newUrl = oldUrl.replace(host, "localhost:" + port); //$NON-NLS-1$
+ }
+ urlCombo.setText(newUrl);
} catch (CoreException e) {
- // if we hit an error, put it in the results text
- resultsText.setText(e.toString());
- e.printStackTrace();
+ // if we hit an error, open a dialog
+ ErrorDialog dialog = new ErrorDialog(this.getSite().getShell(),
+ JBossWSUIMessages.JAXRSWSTestView_Error_Title_Starting_Monitor,
+ JBossWSUIMessages.JAXRSWSTestView_Error_Msg_Starting_Monitor,
+ new Status(IStatus.ERROR, JBossWSUIPlugin.PLUGIN_ID,
+ e.getLocalizedMessage(), e), IStatus.ERROR);
+ dialog.open();
}
}
-
- int port = monitor.getLocalPort();
- int remotePort = monitor.getRemotePort();
- String host = monitor.getRemoteHost();
- String newUrl = null;
- if (oldUrl.contains(host + ":" + remotePort)) { //$NON-NLS-1$
- newUrl = oldUrl.replace(host + ":" + remotePort, "localhost:" + port); //$NON-NLS-1$ //$NON-NLS-2$
- } else {
- newUrl = oldUrl.replace(host, "localhost:" + port); //$NON-NLS-1$
- }
- urlCombo.setText(newUrl);
}
}
}
15 years, 11 months
JBoss Tools SVN: r22311 - in trunk/download.jboss.org/jbosstools: requirements and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-05-25 17:06:40 -0400 (Tue, 25 May 2010)
New Revision: 22311
Added:
trunk/download.jboss.org/jbosstools/requirements/
trunk/download.jboss.org/jbosstools/requirements/helios/
trunk/download.jboss.org/jbosstools/requirements/helios/README.txt
trunk/download.jboss.org/jbosstools/requirements/helios/m2eclipse/
trunk/download.jboss.org/jbosstools/requirements/helios/m2eclipse/build.xml
trunk/download.jboss.org/jbosstools/requirements/helios/svn/
trunk/download.jboss.org/jbosstools/requirements/helios/svn/build.xml
Log:
new cache of uberbuilder reqs will be on download.jboss.org because repository.jboss.org is now read-only
Added: trunk/download.jboss.org/jbosstools/requirements/helios/README.txt
===================================================================
--- trunk/download.jboss.org/jbosstools/requirements/helios/README.txt (rev 0)
+++ trunk/download.jboss.org/jbosstools/requirements/helios/README.txt 2010-05-25 21:06:40 UTC (rev 22311)
@@ -0,0 +1,70 @@
+Total of 20 req'd tgzs/zips/jars.
+
+BIRT 2.6 -> http://www.eclipse.org/downloads/download.php?file=/birt/downloads/build_...
+->
+http://www.eclipse.org/downloads/download.php?file=/birt/downloads/build.php?build=M-R1-2.6RC1-201005181142
+wget "http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/..." \
+ "http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/..."
+
+DTP 1.8 -> http://www.eclipse.org/datatools/downloads.php
+wget "http://www.eclipse.org/downloads/download.php?file=/datatools/downloads/d..."
+
+Eclipse 3.6 + ETF -> http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/
+->
+http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/S-3.6RC2-201005201744/linPlatform.php#EclipseSDK
+wget "http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/dro..." \
+"http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/dro..." \
+"http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/dro..." \
+"http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/dro..." \
+"http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/dro..." \
+"http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/dro..."
+
+EMF & XSD 2.6 ->
+http://www.eclipse.org/modeling/emf/downloads/?project=emf&showAll=0&showMax=5&sortBy=date
+wget "http://www.eclipse.org/downloads/download.php?file=/modeling/emf/emf/down..." \
+"http://www.eclipse.org/downloads/download.php?file=/modeling/emf/emf/down..."
+
+GEF 3.6 ->
+http://www.eclipse.org/gef/downloads/?project=&showAll=0&showMax=5&sortBy=date
+wget "http://www.eclipse.org/downloads/download.php?file=/tools/gef/downloads/d..." \
+"http://www.eclipse.org/downloads/download.php?file=/tools/gef/downloads/d..."
+
+Equinox 3.6 -> http://www.eclipse.org/downloads/download.php?file=/equinox/
+wget "http://www.eclipse.org/downloads/download.php?file=/equinox/drops/S-3.6RC..." \
+"http://www.eclipse.org/downloads/download.php?file=/equinox/drops/S-3.6RC..."
+
+TPTP 4.7 ->
+http://eclipse.org/tptp/home/downloads/?buildId=TPTP-4.7.0RC1-201005171900
+wget "http://www.eclipse.org/downloads/download.php?file=/tptp/4.7.0/TPTP-4.7.0..."
+
+WTP 3.2 ->
+http://friends.eclipse.org/downloads/webtools/downloads/drops/R3.2.0/S-3.2.0RC2-20100520232028/
+wget "http://www.eclipse.org/downloads/download.php?file=/webtools/downloads/dr..."
+
+SWTBot 2.0 e36 ->
+http://www.eclipse.org/swtbot/downloads.php ->
+wget "http://www.eclipse.org/downloads/download.php?r=1&file=/technology/swtbot..." \
+ "http://www.eclipse.org/downloads/download.php?r=1&file=/technology/swtbot..." \
+"http://www.eclipse.org/downloads/download.php?r=1&file=/technology/swtbot..."
+
+------------
+
+3 Custom built zips:
+
+Basebuilder: org.eclipse.releng.basebuilder_R36_RC1.zip
+ latest tag:
+http://wiki.eclipse.org/Platform-releng-basebuilder#Current_build_tag_for_3.6_stream_builds_.28Helios.29
+ cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse -q co -d
+org.eclipse.releng.basebuilder_R36_RC1 -r R36_RC1
+org.eclipse.releng.basebuilder
+ cd org.eclipse.releng.basebuilder_R36_RC1; zip -r9
+../org.eclipse.releng.basebuilder_R36_RC1.zip ./*
+
+m2eclipse-0.10.0.20100209-0800.zip
+ see m2eclipse/build.xml
+
+Subvsve079.I201005121900_SVNconn222.I201005121900_SVNKit133.6648_JNA323_ECF310.v201005082345-Update.zip
+ see svn/build.xml
+ http://divby0.blogspot.com/2009/07/my-love-hate-with-svn-part-6.html
+ http://wiki.eclipse.org/Equinox/p2/Ant_Tasks/Partial_Mirroring/Example
+
Added: trunk/download.jboss.org/jbosstools/requirements/helios/m2eclipse/build.xml
===================================================================
--- trunk/download.jboss.org/jbosstools/requirements/helios/m2eclipse/build.xml (rev 0)
+++ trunk/download.jboss.org/jbosstools/requirements/helios/m2eclipse/build.xml 2010-05-25 21:06:40 UTC (rev 22311)
@@ -0,0 +1,34 @@
+<project default="repo2runnable" name="repo2runnable" basedir=".">
+ <!-- Run this script as nboldt(a)qa01.qa.atl2.redhat.com to fetch the contents of the
+ m2eclipse.sonatype.org update site, unpack the features and unjarred plugins,
+ and zip the results.
+
+ ~/eclipse/eclipse -vm /opt/jdk1.6.0-beta/bin/java -nosplash -data /tmp/workspace \
+ -consolelog -application org.eclipse.ant.core.antRunner -f build.xml -Dsuffix=0.10.0.20100209-0800
+ -->
+ <property name="suffix" value="0.10.0.20100209-0800" />
+ <property name="working.dir" value="/tmp" />
+ <property name="input.repo1" value="http://m2eclipse.sonatype.org/sites/m2e/" />
+ <property name="input.repo2" value="http://m2eclipse.sonatype.org/sites/m2e-extras/" />
+
+ <property name="output.zip" value="${basedir}/m2eclipse-${suffix}.zip" />
+
+ <target name="repo2runnable">
+ <mkdir dir="${working.dir}" />
+ <p2.repo2runnable>
+ <repository location="${working.dir}/tmp-unpacked/eclipse" />
+ <source>
+ <repository location="${input.repo1}" />
+ <repository location="${input.repo2}" />
+ </source>
+ </p2.repo2runnable>
+ <antcall target="all.in.one.zip" />
+ <delete dir="${working.dir}/tmp-unpacked" />
+ </target>
+
+ <!-- rootfiles are not created, but features and plugins will be unpacked and unzipped -->
+ <target name="all.in.one.zip">
+ <zip destfile="${output.zip}" basedir="${working.dir}/tmp-unpacked" excludes="**/content.jar, **/artifacts.jar" />
+ <delete dir="${basedir}/eclipse" quiet="true" />
+ </target>
+</project>
Added: trunk/download.jboss.org/jbosstools/requirements/helios/svn/build.xml
===================================================================
--- trunk/download.jboss.org/jbosstools/requirements/helios/svn/build.xml (rev 0)
+++ trunk/download.jboss.org/jbosstools/requirements/helios/svn/build.xml 2010-05-25 21:06:40 UTC (rev 22311)
@@ -0,0 +1,229 @@
+<project default="partial.repo.mirror" name="partial.repo.mirror">
+
+ <!-- Run this script as nboldt(a)qa01.qa.atl2.redhat.com to fetch a number of
+ features from a remote repo and mirror them locally, then zip the result.
+
+ ~/eclipse/eclipse -vm /opt/jdk1.6.0-beta/bin/java -nosplash -data /tmp/workspace \
+ -consolelog -application org.eclipse.ant.core.antRunner -f build.xml
+ -->
+ <property name="working.dir" value="${java.io.tmpdir}/partial-repo-mirror" />
+
+ <!--
+ use followStrict="true" to prevent downloading all requirements not included in the IU list below
+ or followStrict="false" to produce two zips: one with everything and one with just the specified IUs
+ -->
+ <property name="followStrict" value="true" />
+
+ <property name="output.zip" value="${basedir}/Subversive-SVNKit-Update" />
+
+ <target name="partial.repo.mirror" depends="init">
+ <if>
+ <not>
+ <available file="${working.dir}" type="dir" />
+ </not>
+ <then>
+ <echo>Fetch SVN features and plugins from repos</echo>
+ <mkdir dir="${working.dir}" />
+ <p2.mirror destination="file:/${working.dir}" description="Subversive All-In-One Repo">
+ <source>
+ <repository location="http://eclipse.svnkit.com/1.3.x/" />
+ <repository location="http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-s..." />
+ <repository location="http://download.eclipse.org/technology/subversive/0.7/update-site/" />
+ <repository location="http://download.eclipse.org/rt/ecf/3.2/3.6/site.p2" />
+ <repository location="http://download.eclipse.org/releases/helios/" />
+ </source>
+ <iu id="org.tmatesoft.svnkit.feature.group" />
+ <iu id="com.sun.jna.feature.group" />
+
+ <iu id="org.polarion.eclipse.team.svn.connector.feature.group" />
+ <iu id="org.polarion.eclipse.team.svn.connector.svnkit16.feature.group" />
+
+ <iu id="org.eclipse.team.svn.resource.ignore.rules.jdt.feature.group" />
+ <iu id="org.eclipse.team.svn.feature.group" />
+
+ <iu id="org.eclipse.ecf" />
+ <iu id="org.eclipse.ecf.filetransfer" />
+ <iu id="org.eclipse.ecf.identity" />
+ <iu id="org.eclipse.ecf.provider.filetransfer" />
+ <iu id="org.eclipse.ecf.provider.filetransfer.httpclient" />
+ <iu id="org.eclipse.ecf.provider.filetransfer.httpclient.ssl" />
+ <iu id="org.eclipse.ecf.provider.filetransfer.ssl" />
+ <iu id="org.eclipse.ecf.ssl" />
+
+ <slicingOptions includeFeatures="true" followStrict="${followStrict}" />
+ </p2.mirror>
+ </then>
+ </if>
+
+ <if>
+ <equals arg1="${followStrict}" arg2="false" />
+ <then>
+ <echo>Filter SVN features and plugins from complete mirror to extract subset</echo>
+ <mkdir dir="${working.dir}2" />
+ <copy todir="${working.dir}2">
+ <fileset dir="${working.dir}"
+ includes="
+ **/*svn*.jar*,
+ **/*jna*.jar*,
+ **/org.eclipse.ecf*filetransfer*.jar*,
+ **/org.eclipse.ecf.identity_*.jar*,
+ **/org.eclipse.ecf*ssl_*.jar*,
+ **/org.eclipse.ecf_*.jar*"
+ />
+ </copy>
+ <delete file="${working.dir}2/content.jar" quiet="true" />
+ <delete file="${working.dir}2/artifacts.jar" quiet="true" />
+ <property name="updateSiteJarDir" value="${working.dir}2" />
+ </then>
+ <else>
+ <property name="updateSiteJarDir" value="${working.dir}" />
+ </else>
+ </if>
+ <!-- generate site.xml -->
+ <antcall target="buildSiteXml" />
+ <!-- TODO: switch to use Publisher: http://wiki.eclipse.org/Equinox/p2/Publisher#Features_and_Bundles_Publish...
+
+ <p2.publish.featuresAndBundles
+ metadataRepository="file:/repository/location"
+ artifactRepository="file:/repository/location"
+ publishArtifacts="true"
+ compress="true"
+ source="/bundles/and/features/location/">
+ -->
+
+ <!-- generate metadata -->
+ <java classname="org.eclipse.equinox.launcher.Main"
+ fork="true"
+ timeout="10800000"
+ jvm="${java.home}/bin/java"
+ failonerror="false"
+ maxmemory="512m"
+ taskname="p2"
+ >
+ <classpath>
+ <fileset dir="${eclipse.home}/plugins"
+ includes="org.eclipse.equinox.launcher_*.jar, org.eclipse.equinox.p2.metadata.generator_*.jar"
+ />
+ <pathelement location="${eclipse.home}/plugins" />
+ </classpath>
+ <arg line="-application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator" />
+ <arg line=" -updateSite ${updateSiteJarDir}/ -site file:${updateSiteJarDir}/site.xml" />
+ <arg line="-metadataRepository file://${updateSiteJarDir} -metadataRepositoryName "Subversive Repo"" />
+ <arg line="-artifactRepository file://${updateSiteJarDir} -artifactRepositoryName "Subversive Artifacts"" />
+ <arg line="-compress -noDefaultIUs -reusePack200Files" />
+ </java>
+
+ <if>
+ <equals arg1="${followStrict}" arg2="false" />
+ <then>
+ <zip destfile="${output.zip}-FULL.zip" basedir="${working.dir}" excludes=".blobstore/**" />
+ <zip destfile="${output.zip}.zip" basedir="${updateSiteJarDir}" excludes=".blobstore/**" />
+ </then>
+ <else>
+ <zip destfile="${output.zip}.zip" basedir="${updateSiteJarDir}" excludes=".blobstore/**" />
+ </else>
+ </if>
+ <delete dir="${working.dir}" includeemptydirs="true" quiet="true" />
+ <delete dir="${updateSiteJarDir}" includeemptydirs="true" quiet="true" />
+ <delete dir="${java.io.tmpdir}/workspace" includeemptydirs="true" quiet="true" />
+ </target>
+
+ <target name="buildSiteXml" description="Generate a site.xml to contain the features in a category">
+ <!-- TODO: given a list of features, produce site.xml so they're contained in a default category (or, fix bug 269226 so we don't need this) -->
+ <!-- TODO: support <site mirrorsURL="" associatedSites="" etc.> ? -->
+ <echo>Generating site.xml for use with p2 repo / update site categories...</echo>
+ <echo file="${updateSiteJarDir}/site.xml"><?xml version="1.0" encoding="UTF-8"?></echo>
+ <if>
+ <equals arg1="${pack200Files}" arg2="-reusePack200Files" />
+ <then>
+ <echo append="true" file="${updateSiteJarDir}/site.xml"><site pack200="true"></echo>
+ </then>
+ <else>
+ <echo append="true" file="${updateSiteJarDir}/site.xml"><site></echo>
+ </else>
+ </if>
+
+ <property name="category.name" value="Subversive Repo" />
+
+ <echo append="true" file="${updateSiteJarDir}/site.xml"> <description>To install these features, point Eclipse at this site.</description>
+
+ <!-- ${category.name} -->
+ <category-def label="${category.name}" name="${category.name}">
+ <description>${category.name}: contains all features in this build.</description>
+ </category-def>
+ </echo>
+
+ <for param="featureJar">
+ <path>
+ <fileset dir="${updateSiteJarDir}/features" includes="*.jar" />
+ </path>
+ <sequential>
+ <var name="feature.jarfile" unset="true" />
+ <var name="feature.id" unset="true" />
+ <var name="feature.version" unset="true" />
+ <propertyregex property="feature.jarfile"
+ defaultvalue="@{featureJar}"
+ input="@{featureJar}"
+ regexp=".+/features/([^/]+\.jar)"
+ replace="\1"
+ override="true"
+ />
+ <propertyregex property="feature.id"
+ defaultvalue="${feature.jarfile}"
+ input="${feature.jarfile}"
+ regexp="([^_]+)_(\d+\.\d+\.\d+\..+)\.jar"
+ replace="\1"
+ override="true"
+ />
+ <propertyregex property="feature.version"
+ defaultvalue="${feature.jarfile}"
+ input="${feature.jarfile}"
+ regexp="([^_]+)_(\d+\.\d+\.\d+\..+)\.jar"
+ replace="\2"
+ override="true"
+ />
+ <echo append="true" file="${updateSiteJarDir}/site.xml"> <feature id="${feature.id}" version="${feature.version}" url="features/${feature.jarfile}" patch="false">
+ <category name="${category.name}"/>
+ </feature>
+ </echo>
+ <var name="feature.jarfile" unset="true" />
+ <var name="feature.id" unset="true" />
+ <var name="feature.version" unset="true" />
+ </sequential>
+ </for>
+ <echo append="true" file="${updateSiteJarDir}/site.xml">
+ </site>
+ </echo>
+ </target>
+
+ <target name="init">
+ <property name="COMMON_TOOLS" value="${java.io.tmpdir}"/>
+ <available file="${COMMON_TOOLS}/ant-contrib.jar" type="file" property="ant-contrib.jar.exists" />
+ <antcall target="get.ant-contrib" />
+ <taskdef resource="net/sf/antcontrib/antlib.xml">
+ <classpath>
+ <pathelement location="${COMMON_TOOLS}/ant-contrib.jar" />
+ </classpath>
+ </taskdef>
+ </target>
+
+ <target name="get.ant-contrib" unless="ant-contrib.jar.exists">
+ <property name="ANTCONTRIB_MIRROR" value="http://downloads.sourceforge.net/ant-contrib/" />
+ <get usetimestamp="true"
+ dest="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip"
+ src="${ANTCONTRIB_MIRROR}/ant-contrib-1.0b2-bin.zip"
+ />
+ <touch file="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" />
+ <mkdir dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" />
+ <unzip src="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip"
+ dest="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_"
+ overwrite="true"
+ />
+ <copy file="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_/ant-contrib/lib/ant-contrib.jar"
+ tofile="${COMMON_TOOLS}/ant-contrib.jar"
+ failonerror="true"
+ />
+ <delete dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" includeemptydirs="true" quiet="true" />
+ </target>
+</project>
+
15 years, 11 months
JBoss Tools SVN: r22310 - in trunk/bpel/docs/reference/en-US: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2010-05-25 11:27:33 -0400 (Tue, 25 May 2010)
New Revision: 22310
Added:
trunk/bpel/docs/reference/en-US/images/bpel_task_1.png
trunk/bpel/docs/reference/en-US/images/bpel_task_2.png
trunk/bpel/docs/reference/en-US/images/bpel_task_3.png
trunk/bpel/docs/reference/en-US/modules/summary.xml
trunk/bpel/docs/reference/en-US/modules/tasks.xml
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/browse/TOOLSDOC-48 - Updated BPEL guide.Corrected all found incorrect places. </p>
</body></html>
Added: trunk/bpel/docs/reference/en-US/images/bpel_task_1.png
===================================================================
(Binary files differ)
Property changes on: trunk/bpel/docs/reference/en-US/images/bpel_task_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/bpel/docs/reference/en-US/images/bpel_task_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/bpel/docs/reference/en-US/images/bpel_task_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/bpel/docs/reference/en-US/images/bpel_task_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/bpel/docs/reference/en-US/images/bpel_task_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/bpel/docs/reference/en-US/modules/summary.xml
===================================================================
--- trunk/bpel/docs/reference/en-US/modules/summary.xml (rev 0)
+++ trunk/bpel/docs/reference/en-US/modules/summary.xml 2010-05-25 15:27:33 UTC (rev 22310)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<chapter>
+ <?dbhtml filename="summary.html"?>
+ <title>Summary</title>
+ <para>In conclusion, with this document you know all the capabilities of BPEL Tools
+ and could easily start with them.
+ The chapters above walked you through the steps on how to create and configure BPEL process and
+ deployment descriptor files.
+ If you have questions or suggestions concerned both the documentation and tools behavior,
+ you are welcome to JBoss Tools Users forum.
+ Please, use Jira to report bugs and requests on documentation.</para>
+
+ <section>
+ <title>Other relevant resources on the topic</title>
+ <para>All JBoss Developer Studio/JBoss Tools release documentation you can find at
+ <ulink url="http://docs.jboss.org/tools">http://docs.jboss.org/tools</ulink> in the corresponding release directory.
+ </para>
+ <para>The latest documentation builds are available at <ulink url="http://download.jboss.org/jbosstools/nightly-docs">http://download.jboss.org/jbosstools/nightly-docs</ulink>. </para>
+
+ </section>
+</chapter>
Added: trunk/bpel/docs/reference/en-US/modules/tasks.xml
===================================================================
--- trunk/bpel/docs/reference/en-US/modules/tasks.xml (rev 0)
+++ trunk/bpel/docs/reference/en-US/modules/tasks.xml 2010-05-25 15:27:33 UTC (rev 22310)
@@ -0,0 +1,444 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<chapter id="tasks">
+ <title>Tasks</title>
+ <section id="detail">
+ <title>Creating and editing a BPEL project</title>
+ <para>In the chapter we describe the necessary steps to create a new BPEL project and edit the BPEL files.
+ You can get the source of the example from <property>
+ riftsaw/samples/quickstart/hello_world</property>.
+ Here and further in the guide we will create
+ a simple echo example, used to respond to a sent message with a
+ modified version of the request message being returned in a response.
+ First of all, you should create a BPEL project.
+
+ </para>
+ <section id="createproject">
+ <title>Creating a BPEL project</title>
+ <para>Create the project by selecting
+ <emphasis><property>New > Project... > BPEL 2.0 > BPEL Project</property></emphasis> from the menu bar.
+ Then click the <property>Next</property> button.
+ </para>
+ <figure>
+ <title>New BPEL Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createproject_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>On this page of the <property>New BPEL Project Wizard</property> enter a project name in the <property>Project Name</property>
+ field,e.g enter <property>HelloWorld</property>.</para>
+
+ <figure>
+ <title>New BPEL Project Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createproject_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click the <property>Finish</property> button.
+ So you have created the BPEL project named <property>HelloWorld</property>.
+ Its structure is like this: </para>
+ <figure>
+ <title>The BPEL Project structure</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createproject_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="createprocess">
+ <title>Creating a BPEL process</title>
+ <para>Now you should create a BPEL process. You can create it by selecting
+ <emphasis><property>New > Others... > BPEL 2.0 > New BPEL Process File</property></emphasis>.
+ </para>
+ <figure>
+ <title>New BPEL Process File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createprocess_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click the <property>Next</property> button. Enter the following information:</para>
+ <table>
+
+ <title>Fields and values</title>
+ <tgroup cols="2">
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <thead>
+ <row>
+ <entry>Field</entry>
+ <entry>Value</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><para>BPEL Process Name</para></entry>
+ <entry><para>enter a process name. For example, <property>HelloWorld</property>.</para></entry>
+ </row>
+ <row>
+ <entry><para>Namespace</para></entry>
+ <entry><para>enter or select a namespace for the BPEL process.</para></entry>
+ </row>
+ <row>
+ <entry><para>Template</para></entry>
+ <entry><para>Select the necessary template for the BPEL process.
+ When you select the template, you will see the information
+ about the template below on the page.In our case you should
+ select <property>Synchronous BPEL Process</property>.</para></entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+
+ <figure>
+ <title>New BPEL Process File Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createprocess_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Click the <property>Next</property> button. On the second page make sure that the folder <property>HelloWorld/bpelContent</property> is selected.
+ Click <property>Finish</property>.
+ </para>
+ <note>
+ <para>All of your files that are used in your BPEL project must be under the <property>bpelContent</property> folder. Only in this case
+ these files can be deployed to JBoss server.
+ </para>
+ </note>
+
+ <para>Up to now, you have got a simple BPEL process as on the screen below.</para>
+ <figure>
+ <title>A simple BPEL Process File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_createprocess_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The next step, you can do is to edit the BPEL process file and then deploy it to JBoss server. </para>
+ </section>
+ <section id="editprocess">
+ <title>Editing a BPEL process file</title>
+ <para>If the <emphasis><property>Properties view</property></emphasis> and <emphasis><property>Palette view</property></emphasis> are not opened, you can open the views by right-clicking the BPEL editor and selecting
+ <property>Show in Properties</property>, <property>Show Palette in Palette view</property>. Then you should have the view like this:
+ </para>
+ <figure>
+ <title>The BPEL editor view</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_editprocess_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>In the <emphasis><property>Palette view</property></emphasis>, you can drag a BPEL element to the BPEL editor and drop it in the place you want.</para>
+ <para>In the <emphasis><property>Properties view</property></emphasis>, you can get the information about every element of the BPEL process.
+ In the BPEL editor select any element you want,and then
+ the element's properties will be shown in the Properties view.The table below describes the tabs of the Properties view:
+ </para>
+ <table>
+
+ <title>Tabs of the Property view</title>
+ <tgroup cols="2">
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <thead>
+ <row>
+ <entry>Tab</entry>
+ <entry>Description</entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><para>Description</para></entry>
+ <entry><para>Shows the descriptive information about the element,e.g. <property>Name</property> of the element.</para></entry>
+ </row>
+ <row>
+ <entry><para>Details</para></entry>
+ <entry><para>Shows the detailed and important information about the element.
+ It is the most important section of an element.
+ Most of the properties of an element are set in this section.</para></entry>
+ </row>
+ <row>
+ <entry><para>Join Behavior</para></entry>
+ <entry><para>Shows the <property>Join Failure</property> property of the element.</para></entry>
+ </row>
+ <row>
+ <entry><para>Documentation</para></entry>
+ <entry><para>Shows the <property>documentation</property> sub-element of an element.</para></entry>
+ </row>
+ <row>
+ <entry><para>Other</para></entry>
+ <entry><para>Every BPEL element has its own sections: Correlation section, Message Exchange section, and so on. We will
+ introduce them while using them.</para></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <para>In order to see how a simple BPEL process works in action, you should do some steps as below: </para>
+ <itemizedlist>
+ <listitem>
+ <para>Modify two variables of the process:</para>
+ <itemizedlist>
+ <listitem><para>Click on the details tab of the input variable,
+ select <property>Browse...</property>.
+ Then choose <property>string</property> primitive from the list.</para>
+ <figure>
+ <title>Edit variable in <property>process</property> file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bpel_task_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Select <property>xsd</property> as a namespace in the popup menu.</para>
+ </listitem>
+ </itemizedlist>
+
+ </listitem>
+ <listitem>
+ <para>Add an <property>Assign</property> element between the <property>receiveInput</property> element and <property>replyOutput</property> element.</para>
+ </listitem>
+ <listitem>
+ <para>Click the <property>Assign</property> element in the BPEL editor in order to get the properties information of it in the Properties view.
+ </para>
+ </listitem>
+ <listitem>
+ <para>Set its name in the <property>Description</property> tab as <property>assignHelloMesg</property>.</para>
+ <para>In the <property>Details</property> section of Properties view,
+ you should click the <property>New</property> button to add a <property>copy</property> sub-element to the element.
+ Assign "Variable to Variable"(input:string to output). At this time, an "<property>initializer</property>" popup dialog appears. Click on the <property>Yes</property> button in the dialog.
+ </para>
+ <figure>
+ <title>Add <property>Assign</property> to the process</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bpel_task_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Then you should click <property>New</property> once more and select Expression to Variable
+ (assign <code>concat($input,' World'))</code> to <property>result:string</property>. </para>
+ <figure>
+ <title>Add <property>Expression assign</property> to the process</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/bpel_task_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+ </section>
+
+ <section id="wsdl">
+ <title>Adding Service to WSDL file</title>
+ <para></para>
+ <itemizedlist>
+
+ <listitem>
+ <para>Open the file "<property>HelloWorldArtifacts.wsdl</property>" in the "<property>HelloWorld</property>" project by double-clicking the file. Right-click the WSDL editor and select
+ <property>Add Service</property>. A new service should appear in the editor. Name it <property>HelloWorldProcessService</property>. It has the Port
+ named <property>NewPort</property>. Select it, right-click on it and rename it to <property>HelloWorldProcessPort</property> in the Properties
+ view.
+ </para>
+ <figure>
+ <title>Add <property>Service</property> to the WSDL file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_editprocess_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Right-click somewhere in the whitespace of the WSDL editor and select
+ <property>Add Binding</property>. A new Binding component will appear in the editor. Name it <property>HelloWorldSOAPBinding</property>. Select it, in the
+ General tab of the Properties view and select <property>HelloWorld</property> as a port type in the <property>PortType</property>. Then click on the
+ <property>Generate Binding Content...</property> button to open the <property>Binding Wizard</property>. In the wizard, select <property>SOAP </property>
+ as the <property>Protocol</property>. Finally, click the <property>Finish</property> button to close the wizard.
+ </para>
+ <figure>
+ <title>Add a <property>Binding</property> to the WSDL file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_editprocess_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Click the <property>HelloWorldProcessPort</property> property in the General section of the Properties view, select <property>HelloWorldSOAPBinding</property> in
+ the <property>Binding</property> combobox. In the <property>Address</property> field input <ulink url="http://localhost:8080/bpel/processes/HelloWorld?wsdl">http://localhost:8080/bpel/processes/HelloWorld?wsdl</ulink>.
+ </para>
+ <figure>
+ <title>Add the <property>HelloWorldSOAPBinding</property> to the <property>HelloWorldProcessPort</property></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_editprocess_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem><para>You should also change some service part configurations.
+ To do this,click part element in the WSDL editor,
+ then put the following data in the Properties view.
+ </para>
+ <figure>
+ <title>Configuration of service part</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/detail_editprocess_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+
+ <para>Now you have finished creating a simple BPEL process.As a next step, you can deploy the BPEL project to JBoss BPEL Runtime.</para>
+
+ </section>
+
+ </section>
+ <section id="deploy">
+ <title>Deploy a JBoss BPEL project to JBoss BPEL Runtime</title>
+ <section id="createdeploy">
+ <title>Creating a bpel-deploy.xml file</title>
+ <para>If you want to deploy a BPEL project to JBoss BPEL Runtime, you should create a bpel-deploy.xml file.
+ JBoss tools can help you to create it:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>Create the bpel-deploy.xml by selecting
+ <emphasis><property>New > Other... > BPEL 2.0 > Apache ODE Deployment Descriptor</property></emphasis>. Click the <property>Next</property> button.
+ </para>
+ <figure>
+ <title>New BPEL Deploy file</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>On the next wizard page you should enter the following information:</para>
+ <para><emphasis><property>BPEL Project</property></emphasis>: Click the <property>Browse...</property> button to select the BPEL project in your workspace which you want to deploy to the runtime.
+ Please note, that you should select the <property>bpelContent</property> folder in your new BPEL project as a value of <property>BPEL Project</property> field because the bpel-deploy.xml should be created in this place.
+ </para>
+ <para><emphasis><property>File name</property></emphasis>: The default value is bpel-deploy.xml. Please, don't change it.</para>
+ <para>Click on <property>Finish</property> button to close the wizard and a new bpel-deploy.xml file will be created.</para>
+ <figure>
+ <title>New BPEL Deploy file Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Double-click the bpel-deploy.xml file to open it in ODE Descriptor Deployment Editor.
+ In the <property>Inbound Interfaces</property> section, click the
+ <property>Associated Port</property> column and select <property>HelloWorldProcessPort</property>
+ in the dropdown box.The <property>Related Service</property> and <property>Binding Used</property>
+ columns should be automatically filled in. Save the <emphasis><property>bpel-deploy.xml</property></emphasis>.
+ </para>
+ <figure>
+ <title>bpel-deploy.xml file editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+ </section>
+ <section id="createruntime">
+ <title>Creating JBoss BPEL Server</title>
+ <para>Suppose you have installed the <property>JBoss BPEL Runtime-RiftSaw</property> as it was described <link linkend="installRuntime">before</link>, now you can create a server for JBoss BPEL runtime.</para>
+ <itemizedlist>
+ <listitem>
+ <para>Open the <property>Servers</property> view by selecting
+ <emphasis><property>Windows > Show View > Other... > Server > Servers</property></emphasis>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>Right-click the Servers view and select
+ <emphasis><property>New > Server</property></emphasis> to open the New Server Wizard:
+ </para>
+ <figure>
+ <title>New Server Wizard</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Select <property>JBoss AS 5.1 </property>as a server type. </para>
+ <note>
+ <para>Please note, that only JBoss As 5.1 or higher version supports BPEL.</para>
+ </note>
+ </listitem>
+ <listitem>
+
+ <para>Click the <property>Next</property> button. On the next page, you should input your <emphasis><property>JBoss As</property></emphasis> location. Then click the <property>Next</property> button and
+ you will get the page like this:
+ </para>
+ <figure>
+ <title>Add resource to the server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Select <property>HelloWorld</property>, then click the <property>Add </property> button to add the project to the server.
+ Then click on the <property>Finish</property> button.
+ </para>
+ <para>Start the server by right-clicking on the server and selecting the <property>Start</property> item. </para>
+
+ <figure>
+ <title>The started server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>If some aspects of server creation is not clear, please, read <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/as/html_single/index...">JBoss Server Manager Reference Guide</ulink> for more details.</para>
+ </listitem>
+ <listitem>
+ <para>You can enter the link <ulink url="http://localhost:8080/bpel/processes.html">http://localhost:8080/bpel/processes.html</ulink> to the browser to get the deployed processes.</para>
+ <figure>
+ <title>The BPEL console</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/deploy_createdeploy_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </itemizedlist>
+ <para>If there's anything we didn't cover or you can't figure out, please feel free to visit our <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201"
+ >JBoss Tools Users Forum</ulink> to ask questions.
+ There we are also waiting for your suggestions and comments.</para>
+ </section>
+ </section>
+</chapter>
15 years, 11 months
JBoss Tools SVN: r22309 - in trunk/bpel/docs/reference/en-US: images and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2010-05-25 11:26:14 -0400 (Tue, 25 May 2010)
New Revision: 22309
Modified:
trunk/bpel/docs/reference/en-US/images/deploy_createdeploy_5.png
trunk/bpel/docs/reference/en-US/images/deploy_createdeploy_6.png
trunk/bpel/docs/reference/en-US/master.xml
trunk/bpel/docs/reference/en-US/modules/reference.xml
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/browse/TOOLSDOC-48 - Updated BPEL guide.Corrected all found incorrect places. </p>
</body></html>
Modified: trunk/bpel/docs/reference/en-US/images/deploy_createdeploy_5.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en-US/images/deploy_createdeploy_6.png
===================================================================
(Binary files differ)
Modified: trunk/bpel/docs/reference/en-US/master.xml
===================================================================
--- trunk/bpel/docs/reference/en-US/master.xml 2010-05-25 15:09:16 UTC (rev 22308)
+++ trunk/bpel/docs/reference/en-US/master.xml 2010-05-25 15:26:14 UTC (rev 22309)
@@ -8,6 +8,7 @@
<!ENTITY deploy SYSTEM "modules/deploy.xml">
<!ENTITY reference SYSTEM "modules/reference.xml">
<!ENTITY summary SYSTEM "modules/summary.xml">
+<!ENTITY tasks SYSTEM "modules/tasks.xml">
]>
<book>
@@ -48,8 +49,9 @@
<toc/>
&overview;
&install;
- &detail;
- &deploy;
+ &tasks;
+ <!-- &detail;
+ &deploy;-->
&reference;
&summary;
</book>
Modified: trunk/bpel/docs/reference/en-US/modules/reference.xml
===================================================================
--- trunk/bpel/docs/reference/en-US/modules/reference.xml 2010-05-25 15:09:16 UTC (rev 22308)
+++ trunk/bpel/docs/reference/en-US/modules/reference.xml 2010-05-25 15:26:14 UTC (rev 22309)
@@ -105,7 +105,7 @@
<listitem><para><emphasis>Empty BPEL Process</emphasis> - list of services participating in this BPEL process together
with the one of messages used within the process is empty.There are no any orchestration logic.</para></listitem>
<listitem><para><emphasis>Synchronous BPEL Process</emphasis> -
- similar to Asynchronous BPEL Process temlate except the fact that here
+ similar to Asynchronous BPEL Process template except the fact that here
the caller is notified synchronously when the process completes.</para></listitem>
</itemizedlist></entry>
<entry>Asynchronous BPEL Process</entry>
15 years, 11 months
JBoss Tools SVN: r22308 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2010-05-25 11:09:16 -0400 (Tue, 25 May 2010)
New Revision: 22308
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java
Log:
https://jira.jboss.org/browse/JBIDE-6290
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java 2010-05-25 15:08:34 UTC (rev 22307)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/properties/HibernatePropertyPage.java 2010-05-25 15:09:16 UTC (rev 22308)
@@ -43,7 +43,7 @@
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.jpt.core.JpaProject;
-import org.eclipse.jpt.core.internal.JpaModelManager;
+import org.eclipse.jpt.core.JptCorePlugin;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -72,7 +72,6 @@
import org.osgi.service.prefs.BackingStoreException;
import org.osgi.service.prefs.Preferences;
-@SuppressWarnings("restriction")
public class HibernatePropertyPage extends PropertyPage {
Control[] settings;
@@ -341,7 +340,7 @@
final IWorkspaceRunnable wr = new IWorkspaceRunnable() {
public void run(IProgressMonitor monitor)
throws CoreException {
- JpaModelManager.instance().rebuildJpaProject(getProject());
+ JptCorePlugin.rebuildJpaProject(getProject());
getProject().build(IncrementalProjectBuilder.FULL_BUILD, monitor);
}
};
15 years, 11 months
JBoss Tools SVN: r22306 - in trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse: launch and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2010-05-25 10:30:17 -0400 (Tue, 25 May 2010)
New Revision: 22306
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationJavaClasspathTab.java
Log:
https://jira.jboss.org/browse/JBIDE-6337 - fix with missing archive file in classpath
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2010-05-25 14:09:16 UTC (rev 22305)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2010-05-25 14:30:17 UTC (rev 22306)
@@ -436,6 +436,7 @@
public static String ConsoleConfigurationTab_browse;
public static String ConsoleConfigurationTab_create_new;
public static String ConsoleConfigurationTab_setup;
+ public static String ConsoleConfigurationTabGroup_archive_classpath_entry_does_not_exist;
public static String ConsoleConfigurationTabGroup_classpath_must_be_set_or_restored_to_default;
public static String DirectoryBrowseField_filesystem;
public static String DirectoryBrowseField_workspace;
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2010-05-25 14:09:16 UTC (rev 22305)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2010-05-25 14:30:17 UTC (rev 22306)
@@ -440,6 +440,7 @@
ConsoleConfigurationTab_browse=Browse...
ConsoleConfigurationTab_create_new=Create New
ConsoleConfigurationTab_setup=Setup...
+ConsoleConfigurationTabGroup_archive_classpath_entry_does_not_exist=Archive classpath entry doesn't exist [{0}]
ConsoleConfigurationTabGroup_classpath_must_be_set_or_restored_to_default=Classpath must be set or restored to default
DirectoryBrowseField_filesystem=Filesystem...
DirectoryBrowseField_workspace=Workspace..
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationJavaClasspathTab.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationJavaClasspathTab.java 2010-05-25 14:09:16 UTC (rev 22305)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/ConsoleConfigurationJavaClasspathTab.java 2010-05-25 14:30:17 UTC (rev 22306)
@@ -15,6 +15,7 @@
import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
import org.eclipse.jdt.launching.JavaRuntime;
+import org.eclipse.osgi.util.NLS;
import org.hibernate.eclipse.console.HibernateConsoleMessages;
import org.hibernate.eclipse.console.HibernateConsolePlugin;
@@ -29,27 +30,35 @@
}
public boolean isValid(ILaunchConfiguration launchConfig) {
- if(super.isValid( launchConfig )) {
- setErrorMessage( null );
- setMessage( null );
- IRuntimeClasspathEntry[] entries;
- try {
- entries = JavaRuntime.computeUnresolvedRuntimeClasspath(launchConfig);
- for (int i = 0; i < entries.length; i++) {
- IRuntimeClasspathEntry entry = entries[i];
- if(entry.getClasspathProperty()==IRuntimeClasspathEntry.USER_CLASSES) {
- return true;
+ if (!super.isValid(launchConfig)) {
+ return false;
+ }
+ setErrorMessage(null);
+ setMessage(null);
+ boolean resUserClasses = false, resExistArchive = true;
+ IRuntimeClasspathEntry[] entries;
+ try {
+ entries = JavaRuntime.computeUnresolvedRuntimeClasspath(launchConfig);
+ for (int i = 0; i < entries.length; i++) {
+ IRuntimeClasspathEntry entry = entries[i];
+ if (entry.getClasspathProperty() == IRuntimeClasspathEntry.USER_CLASSES) {
+ resUserClasses = true;
+ if (entry.getType() == IRuntimeClasspathEntry.ARCHIVE) {
+ if (!entry.getPath().toFile().exists()) {
+ resExistArchive = false;
+ String out = NLS.bind(HibernateConsoleMessages.ConsoleConfigurationTabGroup_archive_classpath_entry_does_not_exist, entry.getPath().toString());
+ setErrorMessage(out);
+ }
}
}
-
}
- catch (CoreException e) {
- HibernateConsolePlugin.getDefault().log( e );
- }
- setErrorMessage( HibernateConsoleMessages.ConsoleConfigurationTabGroup_classpath_must_be_set_or_restored_to_default );
- return false;
+ } catch (CoreException e) {
+ HibernateConsolePlugin.getDefault().log( e );
}
- return false;
+ if (!resUserClasses) {
+ setErrorMessage(HibernateConsoleMessages.ConsoleConfigurationTabGroup_classpath_must_be_set_or_restored_to_default);
+ }
+ return resUserClasses && resExistArchive;
}
public void initializeFrom(ILaunchConfiguration configuration) {
15 years, 11 months
JBoss Tools SVN: r22305 - trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-05-25 10:09:16 -0400 (Tue, 25 May 2010)
New Revision: 22305
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/MethodDefinition.java
Log:
https://jira.jboss.org/browse/JBIDE-6339
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/MethodDefinition.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/MethodDefinition.java 2010-05-25 13:31:22 UTC (rev 22304)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/definition/MethodDefinition.java 2010-05-25 14:09:16 UTC (rev 22305)
@@ -12,14 +12,13 @@
import java.util.ArrayList;
import java.util.List;
-import java.util.StringTokenizer;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.ISourceRange;
import org.eclipse.jdt.core.IType;
import org.jboss.tools.cdi.core.CDIConstants;
-import org.jboss.tools.cdi.core.IParameter;
+import org.jboss.tools.cdi.core.CDICorePlugin;
import org.jboss.tools.cdi.internal.core.impl.ParametedType;
import org.jboss.tools.common.model.project.ext.impl.ValueInfo;
import org.jboss.tools.common.model.util.EclipseJavaUtil;
@@ -87,8 +86,8 @@
for (int i = 0; i < params.length; i++) {
if(ps.length <= i) {
- System.out.println("Panic");
- continue;
+ CDICorePlugin.getDefault().logError(new IllegalArgumentException("Cannot parse method parameters for " + paramsString));
+ break;
}
if(!parametersAreInjectionPoints && params[i].indexOf('@') < 0) {
start += params[i].length() + 1;
@@ -165,7 +164,9 @@
while(i < paramsString.length()) {
char c = paramsString.charAt(i);
if(c == ',' && c1 == 0 && c2 == 0 && quote == '\0') {
- result.add(sb.toString());
+ if(sb.toString().trim().length() > 0) {
+ result.add(sb.toString());
+ }
sb.setLength(0);
i++;
continue;
15 years, 11 months