Exhibit 23.1

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the incorporation by reference in the following Registration
Statements:



| | (1) | Registration Statement (Form S-8 Nos. 333-147418) pertaining to the 2006 Stock Incentive Plan and the 1997 Employee Stock Purchase Plan.
| | --- | ----------------------------------------------------------------------------------------------------------------------------------------

| | (2) | Registration Statement (Form S-8 Nos. 333-118432, 333-69241, 333-36286, 333-36278, 333-60010, 333-86772, 333-107452, 333-133308, 333-127776) pertaining to the 1997 Stock Incentive
Plan and the 1997 Employee Stock Purchase Plan.
| | --- | -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

| | (3) | Registration Statement (Form S-8 Nos. 333-129352) pertaining to the Plumtree Software Inc. 1997 Equity Incentive Plan and the Plumtree Software Inc. 2002 Stock Plan.
| | --- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------

| | (4) | Registration Statement (Form S-8 Nos. 333-37385) pertaining to the 1995 Flexible Stock Incentive Plan and the 1997 Stock Incentive Plan.
| | --- | ----------------------------------------------------------------------------------------------------------------------------------------

| | (5) | Registration Statement (Form S-8 Nos. 333-24941, 333-77723) pertaining to the 1997 Employee Stock Purchase Plan.
| | --- | ----------------------------------------------------------------------------------------------------------------

| | (6) | Registration Statement (Form S-8 Nos. 333-66445) pertaining to the WebLogic, Inc 1996 Stock Plan.
| | --- | -------------------------------------------------------------------------------------------------

| | (7) | Registration Statement (Form S-8 Nos. 333-77725, 333-87301) pertaining to the 1997 Stock Incentive Plan.
| | --- | --------------------------------------------------------------------------------------------------------

| | (8) | Registration Statement (Form S-8 Nos. 333-92257) pertaining to The Theory Center, Inc. Amended and Restated 1999 Stock Option/Stock Issuance Plan.
| | --- | --------------------------------------------------------------------------------------------------------------------------------------------------

| | (9) | Registration Statement (Form S-8 Nos. 333-67646) pertaining to CrossGain Corporation, Amended and Restated 2000 Stock Plan.
| | --- | ---------------------------------------------------------------------------------------------------------------------------

| | (10) | Registration Statement (Form S-3 Nos. 333-58439, 333-66443, 333-34956, 333-92085, 333-40582, 333-67644, 333-83642 ) of BEA Systems, Inc.
| | ---- | ----------------------------------------------------------------------------------------------------------------------------------------

of our reports dated March 26, 2008, with respect to the consolidated financial statements and schedule of BEA Systems, Inc. and the effectiveness of internal
control over financial reporting of BEA Systems, Inc., included in this Annual Report (Form 10-K) for the year ended January 31, 2008.

/s/ Ernst & Young LLP

San Jose, California

March 26, 2008