Google+ August 2014 ~ Java Geek Zone

Friday 1 August 2014

On 03:49 by Unknown in , ,    1 comment
Hi Friends,

Are you facing issue in Eclipse while searting tomcat in debugging mode?

Some times Eclipse tries to start tomcat in debugging mode and it gives below mentioned error message.

“Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.”















The message itself says you can try increasing the timeout in server editor and we all will try searching it in eclipse settings. But you could not find it right?

Do not worry this issue can easily be fixed with minor configuration in workspace\.metadata\.plugins\org.eclipse.wst.server.core\server.xml

Navigate to the above mentioned location in your Eclipse project workspace and open the file in any text editor.

You will see xml configuration similar to below


 
 
 

Look for start-timeout=”45″ and change it to big value like start-timeout=”145″

You are done!!! Restart the workspace and try now.

Hope this will help you…

Cheers!!!
On 03:34 by Unknown in , ,    1 comment
If your code is using Servlet.getRealPath() and Weblogic Server[WLS] returns null . You might be thinking that it's one more weblogic server bug but it's not a bug.

It depends on how you deploy your application. If the application was deployed using exploded mode, getRealPath returns occured, valid value. But if you deploy application as an archive having extentions like ear, war etc. you will get "null pointer" Exception.

Good news is,There are two simple way to solve this exception.

1. you can solve this issue in domain level, setting weblogic Admin Console option Domain | Web Application | Archived Real Path Enabled to true, as mentioned below:



You can also correct this issue in application level by configuring below mentioned entry to weblogic.xml file in your application:


true


Cheers!!!