INFO: Reading standard config META-INF/standard-faces-config.xml 24.10.2007 12:24:28 org.apache.myfaces.config.FacesConfigurator feedWebAppConfig INFO: Reading config /WEB-INF/faces-config.xml 24.10.2007 12:24:31 org.apache.myfaces.webapp.DefaultFacesInitializer initFaces SCHWERWIEGEND: Error initializing MyFaces: java.net.UnknownHostException: java.sun.com javax.faces.FacesException: java.net.UnknownHostException: java.sun.com at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:182) at org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFacesInitializer.java:112)Offensichtlich wurde beim Einlesen der faces-config.xml diese XML-Datei validiert. Schuld daran ist der folgende Eintrag:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd" >
<faces-config>
...
Schuld daran ist die web-facesconfig_1_1.dtd, die nicht mehr mit MyFaces 1.2.0 ausgeliefert wird. Daher sollte man bei Verwendung von JSF 1.2 nicht mehr die DTD, sondern die entsprechende XSD angeben:
<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
Damit sollte dann Tomcat (oder andere Servlet-Container) ohne diese Exception starten.
Wer allerdings zum Editieren der faces-config.xml die Faces-Console von James Holmes verwendet, wird feststellen, dass sich damit diese Datei nicht mehr grafisch editieren lässt. Abhilfe: auf eine anderen Editor umsteigen - allerdings habe ich bis jetzt noch keine wirkliche Alternative für die Faces-Console gefunden.
... link (0 Kommentare) ... comment
... link (0 Kommentare) ... comment
- OpenOffice starten. Für ein Video ist eine Auflösung für 640x480 ausreichend. Deshalb empfiehlt es sich, unter dem Menüpunkt "Bildschirmpräsentationseinstellungen..." "Fenster" als Darstellungsart auszuwählen.
- Screen-Capture starten: xvidcap --cap_geometry 640x480
- Aufnahme starten
- Folien-Präsentation starten
... link (0 Kommentare) ... comment
Anfangs hatte ich zwar noch Bedenken, ob ich mit dem anvisierten Stoff durchkommen würde, aber diese Bedenken waren zum Glück unbegründet. Zum Abschluss blieb noch genügend Zeit, die einzelnen Schulungsteilnehmer im Team bei Robocode gegeneinander antreten zu lassen, was allen Beteiligten sichtlich Spaß bereitet hat.
... link (0 Kommentare) ... comment
void meinKleinerAdvice() : meinPointcut() { System.out.println("Halli hallo!"); }Dummerweise kommt es in meinem AspectJ5-Buch nicht so klar hervor. Daher habe ich diesen Hinweis in den Korrekturen zum Buch mit aufgenommen.
... link (0 Kommentare) ... comment
... link (0 Kommentare) ... comment

Gestern habe ich zusammen mit Günter von der MUGS meinem Mac Mini (PPC) eine 160GB-Platte und 1 GB Hauptspeicher gegönnt. Mit ein bißchen handwerklichen Geschick ist das gar nicht so schlimm. Hierzu einige Links, die uns dabei geholfen haben: Etwas schwieriger gestaltete sich der Transfer der Benutzer-Daten von der alten auf die neue Platte. Dazu habe ich
- OS-X 10.4 installiert,
- die alte Platte in ein USB-Gehäuse eingebaut und an meinen Mac angeschlossen,
- die User-Daten von der alten auf die neue Platte rüberkopiert (per Kommandozeile und tar- bzw. cp-Kommando).
... link (0 Kommentare) ... comment
... link (0 Kommentare) ... comment
I started a proof of concept if Lucence could be used for searching in log files. Here a first result of the indexer (see also benchmarks of the Lucene site):
- Dedicated machine for indexing: yes
- CPU: Intel Pentium M, 1.6 GHz, 1 processor
- RAM: 2 GB
- Drive configuration: IDE 2,5" hard disk (in a Dell Lititude D810 notebook)
- Lucene Version: 2.2.0
- Java Version: Java SE 1.6.0_02
- Java VM: client VM
- OS Version: WinXP with SP1
- Location of index: local
- Number of source documents: 9
- Total filesize of source documents: 15 MB
- Average filesize of source documents:2 MB
- Source documents storage location: Filesystem
- File type of source documents: log files
- Parser(s) used, if any:
- Analyzer(s) used: StandardAnalyzer
- Number of fields per document: 3
- Type of fields: text
- Index persistence: FSDirectory
- Index size: 3 MB
- Time taken (in ms/s as an average of at least 3 indexing
runs): 7 s (first try: 37 s -> ignored) - Time taken / 1000 docs indexed: 150 s (estimated)
- Memory consumption: started with -Xmx128m -Xms128m
- Query speed: not yet measured
- Note: first prototype, no special tuning/strategies
- Note: maxFieldLength set to 1,000,000 (default of 10,000 was to small)
Hardware Environment
Software environment
Lucene indexing variables
Figures
Notes
... link (2 Kommentare) ... comment
Symptoms
<Ctrl>-Shift-T (Open Type) does not work suddenly.
Solution
Close the Java perspective and open it again.
Alternativly: delete workspace and set it up again (but this is not really what you want).
... link (0 Kommentare) ... comment
What is Lucene? A search engine? Nearly - it is more a toolset consisting an indexer and a search engine. If you want to start with Lucene take a look in the Getting Started document. It gives you a good feeling how to use Lucene.
A google-like search engine based on Lucence seems to be Red Piranha. I haven't it tested yet but the screenshots looks promising.
... link (1 Kommentar) ... comment
Yesterday I had to problem to compare 2 different versions of jsse.jar. Clirr was the tool of my choice. Also the development seems to be stopped (the last version was from September 2005) the tool does exactly what I need.
... link (0 Kommentare) ... comment
There are thousands of blogs. But no one of it is from me or for me. Why not create my own blog? - So here it is! In the future it may be interesting also for other people but at he moment my main goals are:
- just for learning
- to have a place to collect some hints for Java and AspectJ programmer
- to improve my English (so if you find an error please send it to me)
A few words about me: i come from S-Germany and my main interests are Java / JEE since 1999. Since 2003 I was infected by the AspectJ virus from Arno Schmidmeier on the ApectJ Summer Camp. Two years later I organized the ApectJ Winter Camp
My main home page is www.aosd.de. At the moment of this writing I have holidays. So don't expect any (technical) news or announcements in the next time.
... link (0 Kommentare) ... comment