JSF full project path
If you need to create a link with the actual location in it you can use #{request.contextPath}. here an example: <a href=”#{request.contextPath}/some/dir/test.jsf”>GO</a>
JSF full project path Read More »
If you need to create a link with the actual location in it you can use #{request.contextPath}. here an example: <a href=”#{request.contextPath}/some/dir/test.jsf”>GO</a>
JSF full project path Read More »
If you want log4j-style logging under a JBoss AS7 project, just include the seam solder jar which abstracts the log4j-logger and use the org.jboss.logging.Logger as log-provider. For maven: <dependency> <groupId>org.jboss.seam.solder</groupId> <artifactId>seam-solder</artifactId> <version>3.0.0.Final</version> </dependency> And if you want to use all loglevels you can change your loglevel in your standalone.xml file by changing the subsystem. I
Logging with JBoss as7 Logger Read More »
If you want to create Soap WebServices you first have to extend your standalone.xml file. Add the module and it’s configuration: … <extensions> … <extension module=”org.jboss.as.webservices”/> … </extensions> … <profile> … <subsystem xmlns=”urn:jboss:domain:webservices:1.0″ xmlns:javaee=”http://java.sun.com/xml/ns/javaee” xmlns:jaxwsconfig=”urn:jboss:jbossws-jaxws-config:4.0″> <wsdl-host> localhost </wsdl-host> <modify-wsdl-address> true </modify-wsdl-address> <endpoint-config> <jaxwsconfig:config-name> Standard-Endpoint-Config </jaxwsconfig:config-name> </endpoint-config> <endpoint-config> <jaxwsconfig:config-name> Recording-Endpoint-Config </jaxwsconfig:config-name> <jaxwsconfig:pre-handler-chains> <javaee:handler-chain> <javaee:protocol-bindings> ##SOAP11_HTTP ##SOAP11_HTTP_MTOM
SOAP WebServices with JBoss AS7 Read More »
First add a postgresql module to your modules folder as described in my former post. Then open standalone.xml and insert a datasource and the postgresql driver. Search for subsystem xmlns=”urn:jboss:domain:datasources:1.0″ and insert the datasource. <datasource jndi-name=”java:jboss/datasources/TestDS” pool-name=”TESTDS” enabled=”true” jta=”true” use-java-context=”true” use-ccm=”true”> <connection-url> jdbc:postgresql:test </connection-url> <driver> org.postgresql </driver> <pool> <min-pool-size> 5 </min-pool-size> <max-pool-size> 25 </max-pool-size> <prefill>
PostgreSQL Datasource in JBoss AS7 Read More »
If you are in a JEE6 environment with CDI and JSF be very careful with choosing annotations. Always prefer the ones from javax.enterprise.context.* if there are also the same ones under javax.faces.. as JSF you surely run into troubles if you mix them. CDI annoteted beans are managed by the container and beans annotated with
JEE6 CDI and JSF annotation hell Read More »
Just download the latest jdbc4 driver and place it into JBOSS_HOME/modules/org/postgresql/main. Then create a file module.xml in the same folder with the following content (replace filename if necessary): <?xml version=”1.0″ encoding=”UTF-8″?> <module xmlns=”urn:jboss:module:1.0″ name=”org.postgresql”> <resources> <resource-root path=”postgresql-9.1-901.jdbc4.jar”/> </resources> <dependencies> <module name=”javax.api”/> <module name=”javax.transaction.api”/> </dependencies> </module>
JBoss Postgresql Module Read More »
if you have an iso-image of a cd/dvd you can easily mount it with [codesyntax lang=”bash”] sudo mount /path/to/an.iso /media/cdrom -t iso9660 -o loop [/codesyntax]
Mount .iso File under Linux Read More »
today i had the problem under Ubuntu 11.10 64bit, that adb from the Android SDK failed to start with the output error while loading shared libraries: libncurses.so.5: wrong ELF class: ELFCLASS64 The solution is quite simple: The system has a 64bit environment, but the package from google is 32bit. So you have to install the
Android SDK under 64bit Ubuntu 11.10 Read More »
If you are using special ports or different usernames on different ssh-hosts you can simplify your connect commands with a .ssh/config file like the one in the following example. Host test1 HostName 8.8.8.8 Port 12345 User myname Host test2 HostName fubuntu User horaz Host * User root ssh test1 equals ssh myname@8.8.8.8 -p 12345. The
I had the problem that I wasn’t able to configure my dual screen system with the gnome config tools so I wanted to try the tools shipped with the FGLRX drivers but I couldn’t find them. You get the tools with the command sudo amdcccle
ATI Configuration under Ubuntu 11.10 Read More »