Hi,

anonymous wrote : Yes, please report bugs in jira with steps on how to 
reproduce - otherwise we can't really give you news :)

I was not sure that this is a bug, it could be programming mistake or 
misconfiguration. 

There are no Null Pointer exceptions on Windows workstations, only on a Linux 
one.

After some research I've discovered that the problem occurs if our  XHTML files 
start with "<html xmlns=...", e.g.:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | <html xmlns="http://www.w3.org/1999/xhtml";
  |     xmlns:ui="http://java.sun.com/jsf/facelets";
  |     xmlns:h="http://java.sun.com/jsf/html";
  |     xmlns:f="http://java.sun.com/jsf/core";
  |     xmlns:s="http://jboss.com/products/seam/taglib";
  |     xmlns:a="https://ajax4jsf.dev.java.net/ajax";
  |     xmlns:rich="http://richfaces.ajax4jsf.org/rich";>
  | <ui:composition template="/layout/template.xhtml">

And there is no problem when XHTML files start with "<ui:composition...", e.g.:

<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  |                       
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | <ui:composition xmlns="http://www.w3.org/1999/xhtml";
  |     xmlns:s="http://jboss.com/products/seam/taglib";
  |     xmlns:ui="http://java.sun.com/jsf/facelets";
  |     xmlns:f="http://java.sun.com/jsf/core";
  |     xmlns:h="http://java.sun.com/jsf/html";
  |     xmlns:a="https://ajax4jsf.dev.java.net/ajax";
  |     xmlns:rich="http://richfaces.ajax4jsf.org/rich";
  |     template="layout/template.xhtml">
  | 

Now after migration to the 2nd "style" there are no null pointer exceptions any 
more during opening XHTML files, 
but Visual Editor is still not working on my Linux workstation :-(

The following link didn't help:
http://wiki.jboss.org/wiki/JBosstoolsVisualEditorFAQ
There is already compat-libstdc++-5.0.7-22.2 installed and symbolic link 
libstdc++.so.5 pointing to it already exists.

But hope that this will help...
https://jira.jboss.org/jira/browse/JBDS-170

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173558#4173558

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173558
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to