[workaround] component without template and servlet-deployment
[workaround] component without template and servlet-deployment
- Subject: [workaround] component without template and servlet-deployment
- From: "Ruenagel, Frank" <email@hidden>
- Date: Fri, 6 Jul 2007 16:47:40 +0200
- Thread-topic: component without template and servlet-deployment
Following a hint which reached me by private mail I subclassed
WODynamicElement instead of WOComponent. This works. Thank you.
But why is the exception thrown? Interestingly it is
even thrown, when the parent component (TBAdressen) should be shown
in a mode, where the problematic template-less children are not shown...
> -----Original Message-----
> From: webobjects-dev-bounces+webobjects=email@hidden
> [mailto:webobjects-dev-bounces+webobjects=symposion.de@lists.a
> pple.com]O
> n Behalf Of Ruenagel, Frank
> Sent: Friday, July 06, 2007 12:59 PM
> To: email@hidden
> Subject: component without template and servlet-deployment
>
>
> Hi,
>
> I tried to use some components without template. Their
> template-method is overwritten and
> returns null, appendToResponse does not call super(). Their
> .wo-Folder does not exist.
> With direct-connect deployment this runs well.
>
> Testing with tomcat I get an " Unable to find framework named
> "tb"" Error thrown by the
> parent of the template-less components We have no framework "tb".
> The name of the application is "tb" (Wo 5.2.4).
> If I create the '.wo' Folder and put empty files into it, it
> works well.
>
> Any clues?
>
> java.lang.IllegalStateException: Unable to find framework named "tb".
> at
> com.webobjects.appserver._private.WOComponentDefinition.<init>
> (WOComponentDefinition.java:179)
> at
> com.webobjects.appserver.WOApplication._componentDefinitionFro
> mClassNamed(WOApplication.java:2353)
> at
> com.webobjects.appserver.WOApplication._componentDefinition(WO
> Application.java:2448)
> at
> com.webobjects.appserver._private.WOHTMLWebObjectTag._componen
> tReferenceWithClassNameDeclarationAndTemplate(WOHTMLWebObjectT
> ag.java:129)
> at
> com.webobjects.appserver._private.WOHTMLWebObjectTag._elementW
> ithDeclaration(WOHTMLWebObjectTag.java:196)
> at
> com.webobjects.appserver._private.WOHTMLWebObjectTag.dynamicEl
> ement(WOHTMLWebObjectTag.java:122)
> at
> com.webobjects.appserver._private.WOHTMLTemplateParser.didPars
> eClosingWebObjectTag(WOHTMLTemplateParser.java:52)
> at
> com.webobjects.appserver._private.WOHTMLParser.didParseClosing
> WebObjectTag(WOHTMLParser.java:183)
> at
> com.webobjects.appserver._private.WOHTMLParser.endOfWebObjectT
> ag(WOHTMLParser.java:150)
> at
> com.webobjects.appserver._private.WOHTMLParser.parseHTML(WOHTM
> LParser.java:67)
> at
> com.webobjects.appserver._private.WOHTMLTemplateParser.parseHT
> ML(WOHTMLTemplateParser.java:81)
> at
> com.webobjects.appserver._private.WOHTMLTemplateParser.parse(W
> OHTMLTemplateParser.java:95)
> at
> com.webobjects.appserver._private.WOParser.templateWithHTMLAnd
> Declaration(WOParser.java:71)
> at
> com.webobjects.appserver._private.WOComponentDefinition.templa
> te(WOComponentDefinition.java:288)
> at
> com.webobjects.appserver.WOComponent.templateWithName(WOCompon
> ent.java:597)
> at
> com.webobjects.appserver.WOComponent.template(WOComponent.java:507)
> at
> com.webobjects.appserver.WOComponent.appendToResponse(WOCompon
> ent.java:982)
> at TBComponente.appendToResponse(TBComponente.java:1768)
> at TBAdressen.appendToResponse(TBAdressen.java:1276)
> at
> com.webobjects.appserver.WOSession.appendToResponse(WOSession.
> java:1198)
> at
> com.webobjects.appserver.WOApplication.appendToResponse(WOAppl
> ication.java:1418)
> at Application.appendToResponse(Application.java:473)
> at
> com.webobjects.appserver._private.WOComponentRequestHandler._d
> ispatchWithPreparedPage(WOComponentRequestHandler.java:230)
> at
> com.webobjects.appserver._private.WOComponentRequestHandler._d
> ispatchWithPreparedSession(WOComponentRequestHandler.java:287)
> at
> com.webobjects.appserver._private.WOComponentRequestHandler._d
> ispatchWithPreparedApplication(WOComponentRequestHandler.java:322)
> at
> com.webobjects.appserver._private.WOComponentRequestHandler._h
> andleRequest(WOComponentRequestHandler.java:358)
> at
> com.webobjects.appserver._private.WOComponentRequestHandler.ha
> ndleRequest(WOComponentRequestHandler.java:435)
> at
> com.webobjects.appserver.WOApplication.dispatchRequest(WOAppli
> cation.java:1306)
> at Application.dispatchRequest(Application.java:1080)
> at
> com.webobjects.jspservlet._WOApplicationWrapper.servletDispatc
> hRequest(_WOApplicationWrapper.java:118)
> at
> com.webobjects.jspservlet.WOServletAdaptor._handleRequest(WOSe
> rvletAdaptor.java:678)
> at
> com.webobjects.jspservlet.WOServletAdaptor.doPost(WOServletAda
> ptor.java:645)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:178)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdap
> ter.java:148)
> at
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
> at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
> at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSo
> cket.java:678)
> at
> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:595)
>
> Thank you.
>
> Frank Rünagel
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
email@hidden
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