[JBoss Seam] - Re: restricting access using pages.xml
by cavani
I am trying use page restriction with #{identity.loggedIn} but I am getting this (from CVS version):
| 10:36:00,554 ERROR [AbstractSeamPhaseListener] Swallowing exception thrown by page action
| org.jboss.seam.security.NotLoggedInException
| at org.jboss.seam.security.Identity.checkRestriction(Identity.java:160)
| at org.jboss.seam.pages.Page.enter(Page.java:186)
| at org.jboss.seam.core.Pages.enterPage(Pages.java:239)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:241)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:192)
| at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:53)
|
Because this in AbstractSeamPhaseListener.beforeRender:
| try
| {
| actionsWereCalled = Pages.instance().enterPage( event.getFacesContext() );
| return actionsWereCalled;
| }
| catch (RuntimeException re)
| {
| //we have to handle exceptions here because of
| //how JSF defines exception handling from
| //PhaseListener.beforePhase()
| log.error("Swallowing exception thrown by page action", re);
| return actionsWereCalled;
| }
| finally
| {
| Lifecycle.setPhaseId( PhaseId.RENDER_RESPONSE );
| if (actionsWereCalled)
| {
| FacesMessages.afterPhase();
| handleTransactionsAfterPageActions(event); //TODO: does it really belong in the finally?
| }
| }
|
Then, exceptions.xml seems to be ignored here....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009990#4009990
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009990
19Â years, 2Â months
[JBossCache] - Problems while using JBoss Cache Replication in Cluster
by nirajal
I have the following requirement in Clustering.
A. We have 2 machines A & B
B. Machines A & B are in default partition.
C. On Machine A I insert Object X into cache.
D. Object X should be Replicated to Cache B.
I was able to add 2 machines in a Default Partition. I configured Buddy Replication for the cluster. When it tries to do State Transfer it expected a ClassLoader. I tried using the ClusterClassLoader. But still the application was not working. It was throwing an error like no such method error for JBC Method Call. The error is given below
17:50:17,564 INFO [TxInterceptor] There was a problem handling this request
java.lang.RuntimeException: java.lang.NoSuchMethodError: org.jboss.cache.marshall.JBCMethodCall.getId()S
I have been trying to resolve the problem since yesterday but could not solve it. Any help in regard to the solution of the problem would be appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009981#4009981
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009981
19Â years, 2Â months
[JBoss Messaging] - Running messaging server on one instance and want to invoke
by phanisekhar
I am using jboss As 4.0 . initially we used jboss mq , but now we shifted to messaging.
As specifed in jboss messaginig users guide i uninstalled my mq and installed new messaging. now it created a seperate node named as messaging . i have deployed my ear it is working fine.
but now i want to run my messaging and default instances individually .
can any one tell me how to connect to messaging instance (jms server) from my default server.
following is code which i am using
| Context ctx = new InitialContext();
| ResourceBundle bundle = ResourceBundle.getBundle("ApplicationResources");
| QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory) ctx.lookup(bundle.getString("jmsConnection"));
|
|
my properties file contains
|
| jmsConnection = ConnectionFactory
|
my default server is running at port 8080 and my jms server at 8084.
can anyone let me know the solution for this.
i need it urgent
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009980#4009980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009980
19Â years, 2Â months
[JBoss Seam] - ClassCastException org.jboss.seam.ui.HtmlLink
by laxu
Hi,
I am new to seam. I am even new to ejb3, jsf and facelets but i wish to use them in my next project. I thought seam may be solving a number of things before i even run into them so I could jump over some learning curve, however it turns out unlikely.
Here, I try to develop a sample application of my own and it is even simpler than hotel booking example. No database yet. In the booking example the hotels are listed and upon clicking the link it starts a new conversation while opening the hotel in another page. Here I display a number of "organizations" in a table and upon clicking the organization's name I expect it to start the conversation likewise. Though everything is pretty much similar I run into the following exception. It breaks while trying to render the page.
My page includes the s:link like that:
| <h:column>
| <f:facet name="header"><h:outputText value="Ad"/></f:facet>
| <s:link value="#{item.name}" action="#{organizationList.selectOrganization(item)}" />
| </h:column>
|
If I omit the action property the page renders ok but of course it does not do what I wanted to do.
I must be missing something probably obvious and perhaps it is something to do with JSF or Facelets and not Seam but I don't know which direction to go.
Best regards,
Levent
| Error Rendering View[/organizationsList.xhtml]
| java.lang.ClassCastException: org.jboss.seam.ui.HtmlLink
| at com.sun.facelets.tag.jsf.ActionSourceRule$ActionMapper2.applyMetadata(ActionSourceRule.java:65)
| at com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
| at com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:140)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:164)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:164)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
| at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
| at com.sun.facelets.impl.DefaultFaceletContext$1.apply(DefaultFaceletContext.java:253)
| at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:263)
| at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:63)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
| at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
| at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
| at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:136)
| at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
| at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
| at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
| at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:408)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:442)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
| at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
| at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
| at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
| at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
| at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
| at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
| at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
| at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
| at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
| at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
| at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
| at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
| at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
| at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009974#4009974
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009974
19Â years, 2Â months