Archive pour mars 2012
Tomcat (5.5) – JSP… is exceeding the 65535 bytes limit Stacktrace
Posté par D.E.S. dans capitalisation, GEEK le 19 mars 2012
JSP’s are reaching the 65k-boundary
Reason: Tomcat encodes all of its variables, making the code very large.
Solution: In web.xml, add/update following servlet section (for Tomcat only- by extension, JBoss, etc.) to avoid variables encoding :
1 2 3 4 5 6 7 8 |
<servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>genStrAsCharArray</param-name> <param-value>true</param-value> </init-param> </servlet> |
Sources & solutions / optimizations :
http://www.tikalk.com/java/migrating-your-application-jboss-4x-jboss-5x
http://stackoverflow.com/questions/3045767/genstraschararray-optimisation-benefits
RACCOURCIS – ECLIPSE – SHORTCUTS
Posté par D.E.S. dans capitalisation, GEEK, Pertinent le 13 mars 2012
petit memo…
CTRL + D : Delete row ALT + ↑↓ : Move code CTRL+SHIFT+O : organize imports CTRL+SHIFT+1 : Quick fix CTRL+SHIFT+T/R: find a type / resource CTRL+E/F6 : list / switch open editors CTRL+F7/F8 : switch views /perspectives F11/CTRL+F11 : bebug /run + define mode CTRL + N : New type… CTRL + M : full screen & shrink CTRL + I : corrects indentation CTRL+SHIFT+F => Window/Pref~/Java/Code st~/Format~ CTRL + J : SEARCH NEXT (“F3 mode”) CTRL+SHIFT+ L : lists all shortcuts… Suggested additions: Window/Pref~/Ge~/Key CTRL+SHIFT+G : generate getters & setters ALT+C : SVN/CVS commit ALT+U : SVN/CVS update CTRL+SHIFT+N : New Class
http://eclipse.dzone.com/news/effective-eclipse-shortcut-key
Help -> Software Updates -> Find and Install -> Search For New Features :
http://update.mousefeed.com
JAXB : XSD => ObjectFactory => XML
Posté par D.E.S. dans capitalisation, GEEK le 2 mars 2012
1. pour générer les classes (dont ObjectFactory.java) à partir du schema XSD:
[EN] http://www.altuure.com/2008/01/22/jaxb-quickstart-via-maven2/
En résumé :
>> Paramètres spécifique d’appel à maven : jaxb2:xjc
>> Config
pom.xml … /build/plugins
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<!-- JAXB --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId> <executions> <execution> <goals> <goal>xjc</goal> </goals> </execution> </executions> <configuration> <schemaDirectory>${basedir}/emplacement/schema/</schemaDirectory> <packageName>com.inetpsa.di.darantie.schema.sources</packageName> <!-- dedicated source directory to avoid clearing the other source code while regenerating this one --> <outputDirectory>${basedir}/xjc/</outputDirectory> </configuration> </plugin> |
schemaDirectory : le schema XSD doit être présent dans ${basedir}/emplacement/schema/
outputDirectory : le répertoire ${basedir}/xjc/ doit exister avant exécution
Pour plus de détails sur la config : http://mojo.codehaus.org/jaxb2-maven-plugin/xjc-mojo.html#schemaDirectory
2. pour générer un flux XML à partir des objets générés:
[EN] http://www.altuure.com/2008/01/22/jaxb-quickstart-via-maven2/ (oui c’est le même lien qu’au-dessus)
[EN] http://www.javacodegeeks.com/2011/02/jaxb-generate-xml-xsd.html (un autre exemple)
PS. [FR] sur l’utilisation de JAXB : http://www.jmdoudoux.fr/java/dej/chap-jaxb.htm
putty – import/export settings – transfert de config
Posté par D.E.S. dans capitalisation, DIY, GEEK le 1 mars 2012
Previous link died… New link : http://korben.info/comment-exporter-et-importer-les-parametre-de-putty.html
Windows Register path to save : « HKEY_CURRENT_USER\Software\SimonTatham«