Question: I have a peculiar problem.The @InjectParam works on tomcat but not on glassfish.

It is just null in glassfish.
Any reasons for this?

public class RestControllers {

```
private static Log log=LogFactory.getLog(RestControllers.class.getName()); 
@InjectParam
private RulesController controller;

```

When I say controller.getSomething() is throwing NPE. 

The controller.getSomething is throwing a null pointer exception only on glassfish. Works like a dream on tomcat.

Regards,

Avinash C

Answer: 
Layout stores the position and state of the tool windows, you can change it back how you like it and store it as the new default.

There is no GUI to reset layout to the IDE default, but the configuration is stored inside the project directory in `./idea/workspace.xml` file. When the project is closed you can delete `<component name="ToolWindowManager">` node from this file.
To anyone who is struggling with this "basic" error, you can go to **Settings (Ctrl + Alt + S) -> Appearance & Behavior -> Appearance -> Tool Windows** and check the following check boxes:

* Show tool window bars
* Show tool window numbers (optional)

All the others solutions that I have found didn't solve the problem and it is very frustrating that the IDE does not give support to reset the Window to its default.

P.S.: I can't post a screenshot of the settings mentioned above due to security of my company laptop, but it is very easy to find following the path I have written.