Delivery Status Notification (Failure)
by postmaster@lists.jboss.org
This is an automatically generated Delivery Status Notification.
Delivery to the following recipients failed.
vsviridovdd@localhost
18 years, 1 month
[JBoss jBPM] - Re: Generating BPEL wsdl offline
by alex.guizar@jboss.com
Yes. The product includes an Ant task for offline WSDL generation in jbpm-bpel-tools.jar. Here is a sample build file that defines and executes the task.
<target name="generate.wsdl" depends="package.process" description="generate wsdl description">
| <taskdef name="wsdlservice" classname="org.jbpm.bpel.tools.ant.WsdlServiceTask">
| <classpath>
| <pathelement location="${config.dir}" />
| <pathelement location="${lib.commons.collections.local}" />
| <pathelement location="${lib.commons.lang.local}" />
| <pathelement location="${lib.commons.logging.local}" />
| <pathelement location="${lib.dom4j.local}" />
| <pathelement location="${lib.log4j.local}" />
| <pathelement location="${lib.jaxen.local}" />
| <pathelement location="${lib.jbpm.bpel.jar.local}" />
| <pathelement location="${lib.jbpm.bpel.tools.jar.local}" />
| <pathelement location="${lib.jbpm.jpdl.jar.local}" />
| <pathelement location="${lib.wsdl4j.local}" />
| </classpath>
| </taskdef>
| <wsdlservice processarchive="${output.dir}/${module.name}.zip"
| wsdldir="${output.dir}/resources/web/wsdl"
| generatedescriptor="no" />
| </target>
Make sure the config.dir includes the jbpm.cfg.xml file.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152153#4152153
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152153
18 years, 1 month
[JBoss Portal] - Configure dashboard javascript error w single quote in portl
by esmith1
We noticed a javascript error in the configure dashboard option when the list of portlets includes the "Who's online portlet". Under IE6 with script debugging enabled this shows up during page load; under FF it shows up later when you hover over that portlet.
I tracked it down to jboss-portal.sar\portal-core.war\WEB-INF\jsp\content\portlet_editor.jsp.
The existing code uses the portlet displayName to construct a DIV.
<div class="darktip" id="info-container-<%= displayName %>">
| becomes
| <div class="darktip" id="info-container-Who's online portlet">
Then refers to that div in javascript a few lines later in a getElementById call, but if the div name has a single quote in it then it does not get escaped and so the javascript string is terminated. <span onmouseover="domTT_activate(this, event, 'content', document.getElementById('info-container-<%= displayName %>'),'delay', 0 ...
| becomes
| <span onmouseover="domTT_activate(this, event, 'content', document.getElementById('info-container-Who's online portlet'),'delay', 0 ...
I think the problem with this approach of naming the DIV is that the HTML standard only allows ID values to use alphanumeric, hyphen, colon, underscore, period. http://www.w3.org/TR/html401/types.html#type-name. I do not know what portlet display names allow, but clearly they allow problematic chars.
Here is a fix that is not perfect (because it does not account for duplicates) but is an improvement.
1) within the same for loop, above the <div line, define a variable and use the ID, not the displayName.
String sDivName = "info-container-" + instance.getId().replace(' ','.');
2) change the <div tag
<div class="darktip" id="<%=sDivName%>">
3) change the <span tag
<span onmouseover="domTT_activate(this, event, 'content', document.getElementById('<%=sDivName%>'),'delay', 0, ...
I don't know enough about JIRA to know if I am supposed to enter this there, or wait for someone to tell me to, or if someone else will do it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152151#4152151
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152151
18 years, 1 month
[JBoss jBPM] - Re: Tutorial or guide to create instances of processes in ja
by Fornachari
Hello!
I am having the same difficulty that mikool.
I want to do a client application to make an instance of a process.
I did this, using this hands on http://wiki.jboss.org/wiki/_Files/Main/jbpm3.2.2-handsontutorial.pdf, but when I do a new instance of my process, I can't see the open tasks of my process through the jBPM Admnistrator WebConsole. Is it possible to start a process through a Java Application and complete the tasks using the jBPM WebConsole?
I am using the jBPM version 3.2.2 and my application code are below:
|
| import org.jbpm.graph.def.ProcessDefinition;
| import org.jbpm.graph.exe.ProcessInstance;
| import org.jbpm.graph.exe.Token;
|
| public class ClientApp
| {
| public static void main(String[] args)
| {
| try
| {
| ProcessDefinition definition = ProcessDefinition.parseXmlResource("request/processdefinition.xml");
|
| ProcessInstance instance = new ProcessInstance(definition);
| instance.getRootToken().getNode().getName();
|
| instance.getContextInstance().setVariable("infoDoc", "C:\\Document.pdf");
|
| Token token = instance.getRootToken();
| token.signal();
|
| String infoDoc = (String)instance.getContextInstance().getVariable("infoDoc");
| System.out.println("*************************** Document Information: " + dadosDoc);
|
| instance.hasEnded();
| }
| catch (Exception ex)
| {
| System.out.println("------>ERROR: "+ex.getMessage());
| }
|
| }
| }
Any help would be appreciated.
Thank you in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152148#4152148
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152148
18 years, 1 month
[JNDI/Naming/Network] - Re: no security manager: RMI class loader disabled
by noFreak
hey, is it possible that you are using OSGI bundles (e. g. Eclipse RCP is based on)? If so, i have a possible solution.
In my case (as far as I can remember,no guaranty :)), i have called the different serviceLocator's from different OSGI Bundles in the same VM. So i have had problems with the JBoss Client Classes, which should be needed by both OSGI Bundles. For some reason (i cant describe the exactly reason, cause id didnt understood it), its get this problem. I have soluted this problem, with a third OSGI bundle which only contains the jboss-allclient.jar.
Let depend the other two bunldes which have to call the services on the jboss-allclient bundle. Add the following to the jboss-allclient.jar's manifest.mf:
Eclipse-BuddyPolicy: registered
and this to the depending bundles:
Eclipse-RegisterBuddy: <Bundle-SymbolicName>.
whereas <Bundle-SymbolicName> should be an attribute value in the jboss-allclient.jar's manifest.mf which identify the bundle.
I hope i could help :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152145#4152145
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152145
18 years, 1 month
[Installation, Configuration & DEPLOYMENT] - JBoss Scheduler problem
by gryffin
I'm trying to set up an audit to run at a scheduled interval. I've tested the audit and confirmed that it works when run manually. Now I'm trying to use the JBoss timer service to get it to run unattended.
I've imported the varia Schedulable interface, and I've put an mbean descriptor in the jar's META-INF directory, but as near as I can tell, the class never instantiates or fires off.
I've tried to make sense of the documentation, but it doesn't give a fully fleshed out example of how it's supposed to be deployed and the *-service.xml example is just a tad vague as to how to define the mbean.
| package com.boeing.nmt.nls.audit;
|
|
| import ...
|
| import org.jboss.logging.Logger;
|
| import org.jboss.varia.scheduler.Schedulable;
|
| public class AuditorBean implements Schedulable
| {
| ...
|
| public AuditorBean(String foo)
| {
| log.debug("AuditorBean instantiated: " + foo);
| ...
|
| log.debug("AuditorBean finished");
| }
|
| public void perform(Date now, long remainingRepetitions)
| {
| log.debug("AuditorBean.perform():\n\tnow: " + now +
| "\n\tremainingRepetitions: " + remainingRepetitions +
| "\n\thost: " + host + "\n\trecipients: " + recipientList);
| audit();
| }
|
| public void audit()
| {
| log.debug("AuditorBean.audit() called");
| ...
| }
| ...
| }
here's the audit-service.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <mbean code="com.boeing.nmt.nls.audit.AuditorBean"
| name="nmt.nls:service=AuditScheduler">
| <attribute name="StartAtStartup">true</attribute>
| <attribute name="SchedulableClass">com.boeing.nmt.nls.audit.AuditorBean</attribute>
| <attribute name="SchedulableArguments">Foo</attribute>
| <attribute name="SchedulableArgumentTypes">java.lang.String</attribute>
| <attribute name="InitialStartDate">NOW</attribute>
| <attribute name="SchedulePeriod">5000</attribute>
| <attribute name="InitialRepetitions">3</attribute>
| <attribute name="FixedRate">true</attribute>
| </mbean>
|
| <depends>
| <mbean code="javax.management.timer.Timer" name="jboss:service=Timer"/>
| </depends>
| </server>
|
and here's the structure of my jar:
| C:\Documents and Settings\tx714c\My Documents\workspace\EJB3fun\files>jar -tvf ..\gen\AuditorBean.jar
| 0 Tue May 20 13:25:02 PDT 2008 META-INF/
| 106 Tue May 20 13:25:00 PDT 2008 META-INF/MANIFEST.MF
| 0 Tue May 20 09:55:46 PDT 2008 com/
| 0 Tue May 20 09:55:46 PDT 2008 com/boeing/
| 0 Tue May 20 09:55:46 PDT 2008 com/boeing/nmt/
| 0 Tue May 20 09:55:46 PDT 2008 com/boeing/nmt/nls/
| 0 Tue May 20 09:55:46 PDT 2008 com/boeing/nmt/nls/audit/
| 2030 Tue May 20 13:11:10 PDT 2008 META-INF/audit-service.xml
| 131 Mon May 19 08:57:06 PDT 2008 META-INF/mail.properties
| 13383 Tue May 20 12:43:14 PDT 2008 com/boeing/nmt/nls/audit/AuditorBean.class
| 2030 Tue May 20 13:11:10 PDT 2008 META-INF/audit-service.xml
| 131 Mon May 19 08:57:06 PDT 2008 META-INF/mail.properties
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152144#4152144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152144
18 years, 1 month
[Clustering/JBoss] - HA-JNDI server side problem
by wecucho
Hi all, first at all i am running JBoss 4.2.2 GA.
I develop a few methods to obtain the master node for a cluster easily given at least a node and all works great outside the server (the reason i need the master node is to create and delete JMS queues).
In my test enviroment i have a cluster with 2 nodes, A and B, and i have a web application deployed on both nodes who has the fancy buttons to see, create and remove my queues... so, i ported my tests code into the web component and fails obtaining the master node, i already read the documentation and i am doing exactly what they say without a positive result, my InitialContext always return the local instance for the node who runs the web component, so, if i start the web page in the master node all runs ok, by the other hand if i use the web pages in the Non Master node it will fail.
My Nodes are:
A = 192.168.5.63 (MASTER)
B = 192.168.5.52 (Non Master)
The magic button who try to obtain the correct Master Node has the following code (just as the documentation says):
anonymous wrote :
|
| public static MBeanServerConnection getMasterNodeFromCluster(int tries, String node) {
|
| try {
|
| for (int i = 0; i < tries; i++) {
|
| Properties env = new Properties();
| env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| env.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
| env.put(Context.PROVIDER_URL, node);
| System.out.print("trying with " + node);
|
| Context ctx = new InitialContext(env);
| MBeanServerConnection mbs = (MBeanServerConnection) ctx.lookup("jmx/invoker/RMIAdaptor");
|
| System.out.print(" obtained "
| + mbs.getAttribute(new ObjectName("jboss:service=HAJNDI"), "BindAddress").toString());
|
| if (mbs.getAttribute(new ObjectName("jboss.ha:service=HASingletonDeployer"), "MasterNode").toString()
| .equalsIgnoreCase("true")) {
| System.out.println();
| return mbs;
| }
| }
|
| } catch (Exception e) {
| e.printStackTrace();
| }
|
| System.out.println("not found");
|
| return null;
|
| }
|
|
|
and i am calling this method from the action of the button this way:
anonymous wrote :
|
| JMQueuesUtils.getMasterNodeFromCluster(10, "192.168.5.63:1100");
|
|
Don't pay any attention to the 'tries' variable, that was just a test...
The Cluster Guide for JBoss 4.2 says literally this:
anonymous wrote :
| So, an EJB home lookup through HA-JNDI, will always be delegated to the local
| JNDI instance. If different beans (even of the same type, but participating in different
| clusters) use the same JNDI name, it means that each JNDI server will have a
| different "target" bound (JNDI on node 1 will have a binding for bean A and JNDI
| on node 2 will have a binding, under the same name, for bean B). Consequently, if
| a client performs a HA-JNDI query for this name, the query will be invoked on any
| JNDI server of the cluster and will return the locally bound stub. Nevertheless, it may
| not be the correct stub that the client is expecting to receive!
|
|
| and ....
|
| If you want to access HA-JNDI from inside the application server, you must explicitly
| get an InitialContext by passing in JNDI properties. The following code shows how to
| create a naming Context bound to HA-JNDI:
| Properties p = new Properties();
| p.put(Context.INITIAL_CONTEXT_FACTORY,
| "org.jnp.interfaces.NamingContextFactory");
| p.put(Context.URL_PKG_PREFIXES,
| "jboss.naming:org.jnp.interfaces");
| p.put(Context.PROVIDER_URL, "localhost:1100"); // HA-JNDI port.
| return new InitialContext(p);
|
im doing exactly this but simply does not work... :(
Thanks in advance! and forgive my english.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152143#4152143
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152143
18 years, 1 month