# Cannot create a component as it is not registered with a factory

**URL:** <https://verificationacademy.com/forums/t/cannot-create-a-component-as-it-is-not-registered-with-a-factory/27842>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [March 21, 2012, 9:53am UTC](https://verificationacademy.com/forums/t/cannot-create-a-component-as-it-is-not-registered-with-a-factory/27842 "2012-03-21T09:53:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cgales](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ccd318/32.png) [@cgales](https://verificationacademy.com/forums/u/cgales)\
**Post date:** [March 21, 2012, 1:45pm UTC](https://verificationacademy.com/forums/t/cannot-create-a-component-as-it-is-not-registered-with-a-factory/27842/2 "2012-03-21T13:45:57Z")

</div>

When you register a component with the factory, you do not enclose the class name with quotes.

You should use `uvm\_component\_utils(testclass\_name) (note no quotes).

Also, the error message seems to indicate that you are possibly including a path with the test name? You should specify only the class name with +UVM\_TESTNAME (i.e. +UVM\_TESTNAME=testclass\_name).

–Chuck

---

_[View the full topic](https://verificationacademy.com/forums/t/cannot-create-a-component-as-it-is-not-registered-with-a-factory/27842)._
