Monday, 13 July 2009

JBoss jBPM Info Center

jBPM 4.0

jBPM User Guide (jBPM 4.0)



jBPM Developers Guide (jBPM 4.0)



jBPM Wiki



Getting Started with jBPM 4.0 - (Part I)



Getting Started with jBPM 4.0 - (Part II)



Getting Started with jBPM 4.0 - (Part III)



Getting Started with jBPM 4.0 - (Part IV)



jBPM 3.X

jBPM3 Getting Started



jBPM deployment in production environments



FAQ

When running jBPM (3.2.6.SP1) within Seam (2.1.2), the process does not run in persistent state. For example: all process instances are lost after JBoss AS restarts


In jBPM side, hibernate.cfg.xml takes the main responsibility for jBPM's persistent properties. Make sure all settings are configured properly especially:

<property name="hibernate.connection.datasource">java:JbpmDS</property>


When trying jBPM's websale example, exception occurs when clicking evaluation button


Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: -3f57fffd:daa:4a702b15:1fe status: ActionStatus.ABORT_ONLY >

Could not enlist in transaction on entering meta-aware object!;

Unable to persist timer


XA data sources and jBPM



When trying jBPM's websale example (jbpm-3.2.6.SP1), AFTER clicking evaluation button and complete the task successfully, manager's task with timer causes exceptions


java.lang.UnsupportedClassVersionError: Bad version number in .class file
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)

jBPM distribution maybe compiled by Java 6, use JDK6 compiled JBoss AS 5 and set JAVA_HOME and JRE_HOME to JDK6.

Friday, 26 June 2009

K10 AM2(+) Overclock Info Center

LP UT 790FX-M2R + 955BE Possible?....Sure it is ;-)


OC on DFI LP DK 790FXB-M2RSH Hand Holding Tutorial



DFI LANparty UT 790FX-M2R (ATI/AMD 790FX) with OCZ 8000 ReaperX


8000 Platinum, 8000 Reaper X, and 8500 Reaper tRFC 54 SPD flashing instructions


HEX codes, for changing NB voltage question.


Regarding FSB, although theoretically speaking it should be able to operate 1066 without overclocking the FSB, many times it makes it much more stable with a higher FSB speed. This is especially apparent with AMD platforms.

Windows XP Installtion Note on K10 (Domain User)

Here I just record several steps need to go through after installation is done. AMD K10 system ONLY!!


Several things have to be changed since now I am using domain account, SoftCloud Software Platform, Windows XP SP3 etc. System configuration should be done by using administrator account.



Hardware Driver Setup



  • Install Windows XP SP3

  • Disable System Restore

  • Format D: and E: Drives (Or Document and ProgramFiles Drives)

  • Set Virtual Memory in D: Drive

  • Install CPU Drivers (AMD K8 Driver, XP Fix and DualCore Optimizer

  • Install 790FX Chipset Driver

  • Install .Net Framework package (ATI Gfx Card ONLY!)

  • Install Gfx Card Driver

  • Install Audio Driver

  • Install LAN Driver

  • Install Mouse & Keyboard Driver


Set Up User Profile



  • Setup correct IP, Gateway and DNS address that points to DC

  • Join to domain NERV.HQ

  • Logon as domain account after system reboot so new profile is setup

  • Reboot, Logon as local administrator

  • Copy domain user folder from C:\Documents and Settings to D: Drive

  • Open regedit -> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Change ProfileImagePath to new location from above step

  • Copy back up My Documents to that new location

  • Add domain user into local administrator group


Partition Size List



  • 10400 --> 10GB

  • 5154 --> 5GB

  • 41002 --> 40GB

  • 20600 --> 20GB

  • 30800 --> 30GB

  • 51300 --> 50GB

Install MS SyncToy 2.0

MS SyncToy 2.0 requires MS .Net Framework 2.0 SP1. Install .Net Framework may requires Windows Installer. So the safest way to do it is:




Friday, 15 May 2009

ActiveBPEL Exceptions Tricky

Platform: ActiveBPEL 3.1 + Tomcat 5.5.27 + Java2 SDK 1.4.2_18
The message part 'response' produced the following error during validation: cvc-complex-type.2.4.a: Invalid content was found starting with element 'vehicle'. One of '{company}' is expected.) :...

This happens when the given message is different from defined message in WSDL. Note that the order of the elements is very important: it has to be the exact same order as defined in WSDL. In BPEL, the order of Copy/To decides the order of elements appear in the message. Thus make sure the copy order is exactly the same as the element order defined in WSDL.

Error executing SOAP-RPC request. Operation not found for: bookRequest

Check if the process has been triggered and become active. If not, it's possibly caused by SOAP style type mismatch. When generating the BPP file, last step is select Binding style: mostly either Document Literal or RPC Encoding. Must select the one which is the same as defined in WSDL

Reason: WSDLException (at /schema): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.:

The incorrect referencing the location of those XSD, WSDL documents. BPP finds the documents by referring to catalog.xml which is generated when making BPR file. So MUST generate the BPR file by using Designer to ensure consistency.

org.xml.sax.SAXException: Deserializing parameter 'clientRequest': could not find deserializer for type {http://www.travelAgent.com/book/schema}requestOrderType

XML parser could not deserialize the message. It maybe caused by given message is different from what the parser expects. For example, the client may calls WS_1 by using WS_2's endpoint address. So message types mismatch and thus could not be deserialized.


Completed with fault: missingRequest (No matching receive for reply) :  [/process/flow/reply[@name='ReplyConfirmToCustomer']] [f]

Or

org.activebpel.rt.bpel.impl.AeBpelException: No matching receive for reply

In general however you can only reply to a Receive activity once and then that thread is closed so there is no longer anything to reply to. For example start the process with an onMessage and then in the onMessage container you reply to the receive. Once you have done that then all the replies in the Fault handlers become invalid.


http://localhost/active-bpel/SOAPMonitor --> not running or capturing anything!

Enabled the Soap Monitor in ActiveBPEL by editing $CATALINA_HOME/shared/classes/ae-server-config.wsdd

Tuesday, 6 January 2009

Oracle OraClient Network Configuration

After Oracle OraClient has been installed, network connection can be added, edited manually from Network Configuration File. This file locates in X:\oracle\product\10.2.0\client_1\network\admin\tnsnames.ora. Its syntax looks like


ServiceName =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = HostName)(PORT = HostPort))
)
(CONNECT_DATA =
(SERVICE_NAME = ServiceName)
)
)