This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes CDATA problem??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "CDATA problem???" Watch "CDATA problem???" New topic
Author

CDATA problem???

Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
I am trying to follow a Jboss Tutorial

I am stuck in the section 4.1.8. Deploying the Application.

When I click the link "Account List" (see picture), I get the following errors:



I suspect the problem is with the file C:\jboss\jboss-4.0.5.GA\server\default\deploy\hsqldb-ds.xml

I changed it according to the instructions appearing in the tutorial:

4.1.7.1. Enabling the HSQL MBean and TCP/IP Connections

But I am not sure I did it correctly.....

Here is my file after the changes:



Any idea what is wrong???
[ March 13, 2007: Message edited by: Joseph Sweet ]

We must know, we will know. -- David Hilbert
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Looks more likely to be something in your jsp page and nothing to do with the Datasource.

An invalid XML character (Unicode: 0x1b) was found in the CDATA section.
Validation error messages from TagLibraryValidator for fmt in /accountList.jsp

Says to me that in some tag there is either a missing closing tag or a ">" or "<" somewhere.

What happens if you open the jsp page in some xml editor that can show errors.

CData means between tags, so it something like that.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
Thanks.. I don't have an XML editor... can I check it out in Eclipse?

Anyway, here is the file accountList.jsp:



Is there any problem? I did not write this code, it was downloaded from the http://java.sun.com J2EE tutorial.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The character mentioned in the error message is an Ascii ESC character. That's a control character and as such some text editors might display it as a blank. So looking at things in a text editor might not be helpful. A hex editor would be more useful.

However I can't tell from the messages what file you should be looking at. Your JSP isn't an XML file, so nothing should be running it through an XML validator. You are getting one message for each tag library prefix -- maybe it's the tag library declarations that are a problem? If so then something is really messed up in your setup if you have control characters in those files.
Joseph Sweet
Ranch Hand

Joined: Jan 29, 2005
Posts: 327
It says

Validation error messages from TagLibraryValidator for c in /accountList.jsp

Doesn't it mean that the error is in accountList.jsp ???
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

It does say that the message is coming from a TagLibraryValidator. And your JSP isn't a tag library, although it does contain references to some tag libraries. So my opinion is that the error is not in the JSP, but in the referenced tag libraries.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Originally posted by Paul Clapham:
It does say that the message is coming from a TagLibraryValidator. And your JSP isn't a tag library, although it does contain references to some tag libraries. So my opinion is that the error is not in the JSP, but in the referenced tag libraries.


I just suggested the XML editor because it can still show if you have a missing closed tag or something like that. But you are also right in that it most likely is the tag library stuff. But I didn't want to jump tot hat first since it might be a simple missing closing tag.

Mark
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CDATA problem???