Attention: Answers.ros.org is deprecated as of August the 11th, 2023. Please visit robotics.stackexchange.com to ask a new question. This site will remain online in read-only mode during the transition and into the foreseeable future. Selected questions and answers have been migrated, and redirects have been put in place to direct users to the corresponding questions on Robotics Stack Exchange. Additional details are available here.
This sounds like your newly created package is not in your ROS_PACKAGE_PATH. See these Q/As for more info on that: 1, 2, 3. You either have to put your new package into a folder that is already in your ROS_PACKAGE_PATH, or add your package folder to it.