View Full Version : JDOM Comment data cannot start with a hyphen
amin.lalji
10-27-2004, 05:31 AM
Trying to deploy on JBOSS... seems all lzx files are suffering from this behaviour... replaced all <!--- with <!-- ... just wondering of anybody is experiencing these issues...
msheimhu
10-28-2004, 01:28 PM
I observe the same behaviour (using JBoss 3.2.3). I think it's a bug in the used XML parser. The XML spec says about comments:
Comment::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'
So a comment starting with "<---" should be ok. I will try if upgrading the parser libs helps (one day)...
dobleerre
11-04-2004, 11:46 PM
I have the same problem trying to deploy laszlo on JBOSS...
How usefull will be to use EJB, and laszlo...
I wonder if there are already projects out there to bundle
Laszlo + JBOSS + Apache + PHP + SLL + MySQL
How lovely would be something like http://www.BigApache.org or The Saint WAMP including laszlo Core on JBoss... or better...
LASZLO CORE + JBOSS/TOMCAT + PHPSERVLET all JAVA CROSSPLATFORM w/o installations ready to go.
Any suggestions?
after a long learning curve I have managed to get Laszlo core + Tomcat + Apache + PHP + MySQL to sing together .. see earlier threads .. but I've not tried JBoss - just another servlet engine
so yes .. the entire orchestra is possible ..
edgar.tooley
11-07-2004, 09:22 PM
I'm having the same problem here. Trying to run Laszlo on JBOSS on SUSE 9.1.
Can you be more clear about what component is generating this error? Should I try a different version of JBOSS or is it some other library JBOSS is using?
I would really like to get this going so I can play some. I would prefer not to change all the component files to only have two hyphens. It makes upgrades and compatibility with other users problematic.
Thanks.
dobleerre
11-07-2004, 09:31 PM
Same problem with JBOSS, in Mac OS X, Win32 and Suse 9.1.
EJB and laszlo seem to me like a good team, would it be possible?
edgar.tooley
11-08-2004, 05:58 AM
Originally posted by msheimhu
I observe the same behaviour (using JBoss 3.2.3). I think it's a bug in the used XML parser. The XML spec says about comments:
Comment::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'
So a comment starting with "<---" should be ok. I will try if upgrading the parser libs helps (one day)...
Where is this parser located? Is it part of Laszlo, JBOSS or some other component?
msheimhu
11-08-2004, 06:40 AM
Originally posted by edgar.tooley
Where is this parser located? Is it part of Laszlo, JBOSS or some other component?
The Laszlo-WAR contains a Xerces.jar, but I guess, that this jar is not used if deployed in JBoss. My JBoss-Distri contains a xerces.jar in path_to_jboss/lib, which is probably used. And the JRE itself contains a parser lib.
Which one is used...? I don't know.
If I had time right now, I would try the following:
* Remove all xerces and crimson jars from all directories
* Create a new directory somewhere else and put the xerces.jar from the lps war in it
* Start the JBoss inside a JVM with parameter "-djava.endorsed.dirs=path_to_newly_created_dir"
Maybe this (or a variation) works...
perion
12-30-2004, 03:31 PM
I was able to fix this problem by copying the file, $LASZLO_HOME/lps-2.2.1/WEB-INF/lib/jdom.jar, to $JBOSS_HOME/lib; thereby overwriting the version of JDOM used by JBoss. WARNING: I haven't done extensive testing, so I can't guarantee that this doesn't break something in JBoss. Oh, and I'm currently using JBoss 3.2.3 on Windows XP Pro.
:Paul
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.