• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CDATA problem???

 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic