[JBoss Seam] - Re: cant figure out why my transaction is null : same code w
by wiggy
okay can any one help on this.
I've imported the same code base onto my pc at home - think i have the same config but it works fine
at home i stall have the persistence.xml as
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
|
| <persistence-unit name="WillsSeamProject">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>WillsSeamProjectDatasource</jta-data-source>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
| <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="hibernate.format_sql" value="true"/>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/WillsSeamProjectEntityManagerFactory"/>
| </properties>
| </persistence-unit>
|
and the nodeHome java is - which is still a POJO component -
|
| @Name("nodeHome")
| public class NodeHome extends EntityHome<Node>
| {
|
| @RequestParameter
| Long nodeId;
|
| @RequestParameter
| String reasonForLink;
|
| @Factory("node")
| public Node initNode() {return getInstance();}
|
| @Override
| public Object getId()
| {
| if (nodeId==null)
| {
| return super.getId();
| }
| else
| {
| return nodeId;
| }
| }
|
| @Override @Begin
| public void create() {
| super.create();
| }
|
| /*
| * action to link two nodes
| *
| */
| public Link addLinkToNode (Node otherNode)
| {
| Link newLink ;
|
| newLink = this.getInstance().addLinkTo(otherNode);
| if (reasonForLink != null)
| {
| newLink.setDescription(reasonForLink);
| newLink.setLastUpdated();
| }
| this.getInstance().setLastUpdated();
| this.update();
|
| return newLink;
|
| }
| }
|
with .html client as
|
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:rich="http://richfaces.org/rich"
| template="layout/template.xhtml">
|
| <ui:define name="body">
|
| <h:messages globalOnly="true" styleClass="message"/>
|
| <h:form id="nodeForm">
|
| <rich:panel>
| <f:facet name="header">node</f:facet>
|
| <s:decorate id="nameDecoration" template="layout/edit.xhtml">
| <ui:define name="label">Name</ui:define>
| <h:inputText id="name" required="true"
| value="#{node.name}"/>
| </s:decorate>
|
| <div style="clear:both"/>
|
| </rich:panel>
|
| <div class="actionButtons">
| <h:commandButton id="save"
| value="Save"
| action="#{nodeHome.persist}"
| rendered="#{!nodeHome.managed}"/>
| <h:commandButton id="update"
| value="Update"
| action="#{nodeHome.update}"
| rendered="#{nodeHome.managed}"/>
| <h:commandButton id="delete"
| value="Delete"
| action="#{nodeHome.remove}"
| rendered="#{nodeHome.managed}"/>
| <s:button propagation="end"
| id="done"
| value="Done"
| view="/nodeList.xhtml"/>
| </div>
|
| </h:form>
|
| </ui:define>
|
| </ui:composition>
|
|
but somehow this config works - and my works one doesnt !
i'd swear i cant see the difference but the error code at work shows differently - has any one got a clue from the trace error on the first post as to what might be going on?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128024#4128024
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128024
18 years, 2 months
[JBoss Seam] - Using @Begin action method together with view
by alllle
After many tries and errors, I feel method annotated with @Begin is very confusing to use.
First of all, JavaDoc of @Begin says:
- If method is void type, a new conversation always starts, even a "join" is specified.
- If method is not void type, @Begin only triggers if the method returns a Not Null value and no exception.
Sounds okay so far. But when I use it with a view specified, such as in
<s:link view="/myView.seam" action="#{myComponent.beginAnnotatedAction()}"/>
(or in the pages.xml file with similar code)
The seam doc says:
If action returns a not null value, it will be used to determine the actual view to render. The view specified is only used when action returns Null or of void type.
Put the above two together, I got a dilemma. In order to be able to join a conversation with the annotated action method, the action needs to return a not null value, which means I need to hard code my navigation into the action method. Further more, since it is forced to return a non-null value to start the conversation, it won't seem to make sense to use it with a view in the pages.xml file:
| <page view-id="/myView.xhtml" action="#{myComp.annotatedAction()}">
| <navigation from-action="#{myComp.annotatedAction()}">
| <rule if-outcome="success">
| <redirect view-id="/myView.xhtml"/>
| </rule>
| </navigation>
| </page>
|
Will this lead to a infinite loop?
In summary, I am not sure how to correctly use the @Begin annotated action with view specification in <s:link> and in the pages.xml file. My common scenario is when a view is loaded, a conversation usually needs to begin if non exists, or join the existing one. Meanwhile, some data needs to be fetched from the DB so the view can be rendered. And and @Begin annotated action with a view specified has caused lots of problems so far due to the above mentioned reasons.
Any comments are welcomed. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128023#4128023
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128023
18 years, 2 months
[JBoss Seam] - Correct way to start conversation
by alllle
Given the many options I can use to start a new conversation, I am still not sure what is the correct way for my situation.
I have a page that shows the summary info, no long-running conversation. It contains a <s:link> to a editing page that should starts a long-running conversation. In addition, when this page is created, it needs to perform an action to load the object from the database for editing. I have tried the following ways but they all have some problem:
Method 1: in the <s:link>, besides specifying view ID, I also specify an action that is annotated with @Begin to start a conversation, which loads the data from the DB. <s:link> propagation set to "join".
Problem:
Refreshing the resulting page causes a new conversation been created instead of reusing the one just created.
Method 2: in the pages.xml file for the view, I specify the <start-conversation> tag. I also specify an action="" attribute to trigger loading of the data from the DB. propagation set to "join".
Problem: :
Each time the view is accessed, it reloads the data from DB , even for ajax calls.
Refreshing page causes new conversation to start, ajax calls are fine.
What I want is when the view is access the first time, create the conversation, load the data from the DB. However, using the existing conversation when the page is refreshed. What is the proper way to achieve this in seam?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128018#4128018
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128018
18 years, 2 months
[JBoss Seam] - Re: How do I fetch the HTML source of a page programatically
by JakeC
OK, with the help of the SeamlessViewHandler at http://www.ilikespam.com/blog/faking-a-postback-with-jsf-facelets (with the addition of a call to initialize(context) at the beginning of buildView()), I have gotten much further. I believe I am actually getting to the page now, but I am getting lots of taglib exceptions.
14:14:30,578 ERROR [STDERR] Feb 8, 2008 2:14:30 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
| SEVERE: Error Loading Library: jar:file:/C:/DevTools/jboss-4.2.2.GA/server/default/deploy/myApp.ear/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
| java.io.IOException: Error parsing [jar:file:/C:/DevTools/jboss-4.2.2.GA/server/default/deploy/myApp.ear/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml]:
| at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:410)
| at com.sun.facelets.compiler.TagLibraryConfig.loadImplicit(TagLibraryConfig.java:431)
| at com.sun.facelets.compiler.Compiler.initialize(Compiler.java:87)
| at com.sun.facelets.compiler.Compiler.compile(Compiler.java:104)
| at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197)
| at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
| at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95)
| at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:517)
| at com.medorder.myApp.ControllerBean$SeamlessViewHandler.buildView(ControllerBean.java:1172)
| at com.medorder.myApp.ControllerBean$SeamlessViewHandler.restoreView(ControllerBean.java:1153)
| at com.medorder.myApp.ControllerBean.getPageSource(ControllerBean.java:1086)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:48)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:65)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.ConversationalInterceptor.aroundInvoke(ConversationalInterceptor.java:43)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
| at sun.reflect.GeneratedMethodAccessor416.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:206)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:119)
| at $Proxy192.editSpecialist(Unknown Source)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
| at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
| at org.javassist.tmp.java.lang.Object_$$_javassist_3.editSpecialist(Object_$$_javassist_3.java)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
| at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
| at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
| at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
| at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:173)
| at org.jboss.seam.navigation.Pages.callAction(Pages.java:636)
| 14:14:30,593 ERROR [STDERR]
| at org.jboss.seam.navigation.Pages.preRender(Pages.java:289)
| at org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:549)
| at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:460)
| at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:144)
| at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: org.xml.sax.SAXException: Error Handling [jar:file:/C:/DevTools/jboss-4.2.2.GA/server/default/deploy/myApp.ear/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml@25,74] <library-class>
| at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.endElement(TagLibraryConfig.java:271)
| at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
| at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source)
| at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
| at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
| at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
| at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:407)
| ... 134 more
| Caused by: java.lang.Exception: com.sun.facelets.tag.jsf.core.CoreLibrary must be an instance of com.sun.facelets.tag.TagLibrary
| at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.createClass(TagLibraryConfig.java:293)
| at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.processLibraryClass(TagLibraryConfig.java:339)
| at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.endElement(TagLibraryConfig.java:171)
| ... 149 more
Then there was another one for the jsf-facelets.jar file in myApp.ear/myApp.war/WEB-INF/lib/jsf-facelets.jar.
Then there was a pair of those for jsf-html.taglib.xml, jsf-ui.taglib.xml, jstl-core.taglib.xml, and jstl-fn.taglib.xml.
seam-mail.taglib.xml and seam-pdf.taglib.xml loaded Ok from war/WEB-INF/lib/jboss-seam-mail.jar and war/WEB-INF/lib/jboss-seam-pdf.jar, respectively, but s.taglib.xml failed to load from jboss-seam-ui.jar because:
Caused by: java.lang.Exception: org.jboss.seam.ui.handler.CommandButtonParameterComponentHandler must be an instance of com.sun.facelets.tag.TagHandler
| at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.createClass(TagLibraryConfig.java:293)
| at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.endElement(TagLibraryConfig.java:210)
| ... 149 more
The following also failed for similar "must be an instance of com.sun.facelets.tag.TagHandler" reasons:
a4j.taglib.xml on org.ajax4jsf.taglib.html.facelets.AjaxListenerHandler
| ajax4jsf.taglib.xml on org.ajax4jsf.taglib.html.facelets.AjaxListenerHandler
| rich.taglib.xml on org.richfaces.taglib.DragSupportHandler
| richfaces.taglib.xml on org.richfaces.taglib.DragSupportHandler
Am I barking up the wrong tree? Shouldn't all this stuff already be initialized? When I first hit my web app, my log spits out a bunch of "loadImplicit" errors about each one of these taglibs, but no stackdump. Do I need to somehow change the classloader I'm working under?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128014#4128014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128014
18 years, 2 months