• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[5.4 Component Parser]Re: Problem with Leopard - WO 5.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[5.4 Component Parser]Re: Problem with Leopard - WO 5.4


  • Subject: [5.4 Component Parser]Re: Problem with Leopard - WO 5.4
  • From: "Mr. Pierre Frisch" <email@hidden>
  • Date: Wed, 31 Oct 2007 08:37:54 -0700

The new parser is only used for the all in one syntax. The old parser is used for the traditional bundle. The switch is made automatically when the component loader detect a non existent or empty wod file. A world of caution about the structure of the templates if you use the new syntax. The new parser uses SAX and therefore expects the template to be syntactically xml compliant code. Of course if you use the traditional parser this does not matter.

Cheers

Pierre
--
Pierre Frisch
email@hidden


On Oct 31, 2007, at 8:04, Chuck Hill wrote:

com.webobjects.appserver._private.WOHTMLTemplateParser

Is that what you are thinking of?

Chuck

On Oct 31, 2007, at 6:02 AM, Mike Schrag wrote:

Maybe one of the Apple guys can comment on how to switch back to the old parser -- I'm almost positive it's still in there. I believe you can set the system property WOHTMLParserClassName to point to the one you want, but you need to know the class name of the old one first.

ms

On Oct 31, 2007, at 8:57 AM, Amedeo Mantica wrote:

ok, but I'm not using Project Wonder...
any suggestion?
Thanks
Amed

On 31/ott/07, at 12:45, Mike Schrag wrote:

If you want to use Apple's new parser, your templates need to be well-formed XML. I believe you can actually switch back to the old style parser (or use Project Wonder's when the 5.4 build goes up on the build server), but I don't recall the classname of the old parser offhand -- anyone?

ms

On Oct 31, 2007, at 7:34 AM, Amedeo Mantica wrote:

I opened an "old" WebObject project and I have this problem ...

The ploblem is clear... but there is a method to bypass the html validation??

one more thing,... my HTML... is HTML and not XTML, and i use doctype, why parser is raising these exceptions?

Thank You
Regards
Amedeo


Re-enter
apellSite Exception Description
Application: apellSite
com .webobjects.appserver.parser.woml.WOMLTemplateParserException: Main: 5:7: The element type "meta" must be terminated by the matching end-tag "</meta>".
File Line# Method Package
WOMLTemplateParser.java 345 process com.webobjects.appserver.parser.woml
WOMLTemplateParser.java 504 parse com.webobjects.appserver.parser.woml
WOHTMLTemplateParser.java 40 parse com.webobjects.appserver.parser
WOComponentTemplateParser.java 239 templateWithHTMLAndDeclaration com.webobjects.appserver.parser
WOComponentDefinition.java 386 template com.webobjects.appserver._private
WOComponent.java 501 template com.webobjects.appserver
WOComponent.java 1111 appendToResponse com.webobjects.appserver
Main.java 21 appendToResponse it.apell.pages
WOSession.java 1381 appendToResponse com.webobjects.appserver
WOApplication.java 1785 appendToResponse com.webobjects.appserver
Application.java 46 appendToResponse it.apell.pages
WOComponentRequestHandler.java 242 _dispatchWithPreparedPage com.webobjects.appserver._private
WOComponentRequestHandler.java 298 _dispatchWithPreparedSession com.webobjects.appserver._private
WOComponentRequestHandler.java 332 _dispatchWithPreparedApplication com.webobjects.appserver._private
WOComponentRequestHandler.java 369 _handleRequest com.webobjects.appserver._private
WOComponentRequestHandler.java 442 handleRequest com.webobjects.appserver._private
WOApplication.java 1678 dispatchRequest com.webobjects.appserver
Application.java 34 dispatchRequest it.apell.pages
WOWorkerThread.java 144 runOnce com.webobjects.appserver._private
WOWorkerThread.java 226 run com.webobjects.appserver._private
Thread.java 613 run java.lang
Caused by: org.xml.sax.SAXParseException: The element type "meta" must be terminated by the matching end-tag "</meta>".


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Problem with Leopard - WO 5.4 (From: Amedeo Mantica <email@hidden>)
 >Re: Problem with Leopard - WO 5.4 (From: Mike Schrag <email@hidden>)
 >Re: Problem with Leopard - WO 5.4 (From: Mike Schrag <email@hidden>)
 >Re: Problem with Leopard - WO 5.4 (From: Chuck Hill <email@hidden>)

  • Prev by Date: WO54 install missing WOLaunchURL?
  • Next by Date: Re: Problem with Leopard - WO 5.4
  • Previous by thread: Re: Problem with Leopard - WO 5.4
  • Next by thread: Re: Problem with Leopard - WO 5.4
  • Index(es):
    • Date
    • Thread