Monday 26 September 2011

Windows 7 Home: Service Logon Right

If you're using a Windows 7 Home Edition you'll have trouble granting users the right to run services.  Note this is not a problem on Professional or Ultimate Editions.

A way round it is described in the blog below - you install a Windows 2003 Resource kit and use the "ntrights" command.  I've tried it and it worked - obviously subsitute service for batch and realise that this is not recommended in any way, shape or form!!

How to grant "log on as batch job" in Windows 7 Home Premium
How to Set Logon User Rights with the Ntrights.exe Utility

Tomcat Hardening Resources

OWASP
Center for Internet Security (Linux specific, but still useful for all platforms)

Saturday 10 September 2011

INFO: validateJarFile(C:\...\WEB-INF\lib\com.springsource.javax.servlet-2.5.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

This warning on your Tomcat stderr is becuase you've included a Servlet.class in your war.  You don't need to, it is supplied by the Tomcat container:  JAR Files You Should Never Include In Your Webapp

But if you remove it your Maven build fails?  Use <scope>provided</scope> it does exactly what you need:  Maven Dependency Scope