In omniORB 4.0.6, CosNotification.idl line 30 defines _EventType but then goes on to use EventType (without the underscore) elsewhere in the file and in other related IDL files. For seemingly obvious reasons, this causes the Java idl compiler to fail on that file.