[JBoss Tools] - JBoss 7 eclipse missing the run.jar
by David Norris
David Norris [http://community.jboss.org/people/dnorris] created the discussion
"JBoss 7 eclipse missing the run.jar"
To view the discussion, visit: http://community.jboss.org/message/615186#615186
--------------------------------------------------------------
Cannot install server runtime in eclpise 3.7 (indigo) with JBoss Tools 3.3.m2.
Fresh installation of eclispe 3.7 and Tools 3.3.m2.
Window - Preferences - Server - Runtime Environments: Add
Select JBoss Community - JBoss 7.0 Runtime - next
Dialog shows: New Server Runtime Environment
JBoss Runtime
The home directory does not exist or is missing the run.jar.
At this point this is expected because the wizard defaults to c:/program files/jboss-7.0.x which is of course NOT where I put the server.
Browse to the existing server install folder i.e. S:\jboss-as-7.0.0.Final
The wizard still says "The home directory does not exist or is missing the run.jar." and will not enable Next or Finish buttons.
The server runs perfectly by executing standalone.bat
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/615186#615186]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM] - Re: jBPM5.2: own service task feature usable with the console?
by Tihomir Surdilovic
Tihomir Surdilovic [http://community.jboss.org/people/tsurdilovic] created the discussion
"Re: jBPM5.2: own service task feature usable with the console?"
To view the discussion, visit: http://community.jboss.org/message/634874#634874
--------------------------------------------------------------
>> I tried but the behavior is the same, when dragging the task into my process, it just pops back to palette ( but green hook is shown before!). <<
Sorry I have not seen this behaviour yet and would like to get to the bottom of it. Are you getting an JS errors? Can you show your workitem definitions configuration file so I can try to reproduce? What is the designer version used?
>> Does this mean i have to pack my work item java implementation into the .jar file that i have to upload? I really need to control my tasks by Java. <<
Yes, you have to provide the handler implementations to the runtime classpath for your runtime to be able to pick it up and use it
>> EDIT: Another really important question for my company is: when will be a release of JBPM 5.2 ? <<
It is scheduled for end-of-the-month.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/634874#634874]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[IronJacamar] - Re: SonicMQ RA in JBoss7 showing lots of IJ000612 warnings
by Robert Stupp
Robert Stupp [http://community.jboss.org/people/snazy] created the discussion
"Re: SonicMQ RA in JBoss7 showing lots of IJ000612 warnings"
To view the discussion, visit: http://community.jboss.org/message/634631#634631
--------------------------------------------------------------
There are no hashCode/equals method implementations in any of the Sonic *Connection* classes mentioned in the log messages.
Only com.sonicsw.sonicmq.j2ee.jmsra.impl.XAResourceWrapper implements them (output from JAD):
public boolean equals(Object obj)
{
if(this == obj)
return true;
if(obj == null)
return false;
if(obj instanceof XAResourceWrapper)
{
XAResource xaresource = ((XAResourceWrapper)obj).m_res;
return m_res.equals(xaresource);
}
if(obj instanceof XAResource)
{
XAResource xaresource1 = (XAResource)obj;
return m_res.equals(xaresource1);
} else
{
return false;
}
}
public int hashCode()
{
return m_res.hashCode();
}
The matchmanagedConnections from SonicManagedConnectionFactory looks like this (JAD output):
public ManagedConnection matchManagedConnections(Set set, Subject subject, ConnectionRequestInfo connectionrequestinfo)
throws ResourceException
{
for(Iterator iterator = set.iterator(); iterator.hasNext();)
{
Object obj = iterator.next();
if(obj instanceof JMSSessionManagedConnection)
{
JMSSessionManagedConnection jmssessionmanagedconnection = (JMSSessionManagedConnection)obj;
if(!jmssessionmanagedconnection.isDestroyed() && jmssessionmanagedconnection.isCRIEqual((JMSConnectionRequestInfo)connectionrequestinfo))
{
RAUtils.printDebug("FOUND MATCHING SESSION");
return jmssessionmanagedconnection;
}
}
}
RAUtils.printDebug("DID NOT FIND MATCHING SESSION");
return null;
}
isCRIEqual delegates to the equals method in JMSConnectionRequestInfo (don't know, why they use a StringBuffer for hashCode implementation...):
public boolean equals(Object obj)
{
if(obj instanceof JMSConnectionRequestInfo)
{
JMSConnectionRequestInfo jmsconnectionrequestinfo = (JMSConnectionRequestInfo)obj;
if(jmsconnectionrequestinfo.m_type == m_type && jmsconnectionrequestinfo.m_isXA == m_isXA && jmsconnectionrequestinfo.m_isTransacted == m_isTransacted && jmsconnectionrequestinfo.m_ackMode == m_ackMode && jmsconnectionrequestinfo.m_connectionID == m_connectionID && jmsconnectionrequestinfo.m_poolSessions == m_poolSessions && jmsconnectionrequestinfo.m_preserveSessionsMidTxn == m_preserveSessionsMidTxn)
return true;
}
return false;
}
public int hashCode()
{
StringBuffer stringbuffer = new StringBuffer();
stringbuffer.append(m_isXA);
stringbuffer.append(m_isTransacted);
stringbuffer.append(m_ackMode);
stringbuffer.append(m_connectionID);
stringbuffer.append(m_poolSessions);
stringbuffer.append(m_preserveSessionsMidTxn);
return stringbuffer.toString().hashCode();
}
Can you explain, why and where equals and hashCode implementations are mandatory. Maybe it is possible to write wrapper classes for them (I know, that this is sick, but it might work).
The same warning messages occur with IronJacamar 1.1.0.Alpha3 with latest AS7 code.
The validator says:
Severity: ERROR
Section: 19.4.2
Description: A ResourceAdapter must implement a "public int hashCode()" method.
Code: com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicResourceAdapter
Severity: ERROR
Section: 19.4.2
Description: A ResourceAdapter must implement a "public boolean equals(Object)" method.
Code: com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicResourceAdapter
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/634631#634631]
Start a new discussion in IronJacamar at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[jBPM] - How to trigger a Process by signal from external source?
by Leo Tseng
Leo Tseng [http://community.jboss.org/people/leovleov] created the discussion
"How to trigger a Process by signal from external source?"
To view the discussion, visit: http://community.jboss.org/message/634202#634202
--------------------------------------------------------------
Hi
I've tried a example that can start a process by signal event in eclipse environment.
Like:
public static final void main(String[] args) {
try {
KnowledgeBase kbase = readKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
Map<String, Object> params = new HashMap<String, Object>();
params.put("x", "Ya!");
params.put("y", "Cool!");
ksession.signalEvent("MySignal", params);
} catch (Throwable t) {
t.printStackTrace();
}
}
private static KnowledgeBase readKnowledgeBase() throws Exception {
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("SignalSTest.bpmn"), ResourceType.BPMN2);
kbuilder.add(ResourceFactory.newClassPathResource("SignalSReTest.bpmn"), ResourceType.BPMN2);
return kbuilder.newKnowledgeBase();
}
In Process define:
<startEvent id="_1" name="Start" >
<dataOutput id="_1_Output" />
<dataOutputAssociation>
<sourceRef>_1_Output</sourceRef>
<targetRef>x</targetRef>
</dataOutputAssociation>
<outputSet>
<dataOutputRefs>_1_Output</dataOutputRefs>
</outputSet>
<signalEventDefinition signalRef="MySignal" />
</startEvent>
It does work.
But my question is,
when I deploy the process to Guvnor and build the package.
I don't know how to trigger the process in JBPM server from external environment.
I know there are some REST command to start the process, but it can't carry parameters like signal does and it can't trigger multiple processes once.
Is there any way to send a signal into JBPM server in order to trigger a process?
Any suggention will be appreciate.
Thanks for help.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/634202#634202]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss Tools] - NPE just installed jboss tools
by Javier jagr
Javier jagr [http://community.jboss.org/people/garramja] created the discussion
"NPE just installed jboss tools"
To view the discussion, visit: http://community.jboss.org/message/632977#632977
--------------------------------------------------------------
Hi.
I've just installed jboss tools (jbosstools-3.2.1.Final.aggregate-Update-2011-08-01_12-53-33-H1305) for eclipse 3.6.2 (eclipse-jee-helios-SR2-win32-x86_64).
When eclipse finish the installation and restarts, a prompt is shown with nullPointerException. I think that is caused by process building, because when I execute Project/Clean menu this prompt is shown too.
Prompt say:
'Cleanning all projects' has encountered a problem.
Errors occurred during the build
Details:
Errors occurred during the build.
Errors running builder 'Validation' on project xxxxx-ejb'.
java.lang.NullPointerException
Errors running builder 'Validation' on project 'xxxxx-webapp'.
java.lang.NullPointerException
Errors running builder 'Validation' on project xxxxx'.
java.lang.NullPointerException
I've installed jboss tools from file downloaded from sourceforge and intalled by eclipse->install new software
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/632977#632977]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years