[JBoss jBPM] - Deploy Hello World BPEL Example
by lilyprincess
After deploying the Hello World BPEL example in the application server (JBoss 4.0.4.GA with JDK 1.5_06), I tried to go to
http://WDLLL3BNRV8:8080/hello/greeter
on the browswer, I am getting error in JBoss console
16:35:17,257 ERROR [[greeterServlet]] Servlet.service() for servlet greeterServl
et threw exception
org.jboss.util.NotImplementedException: HTTP GET not supported
at org.jboss.ws.server.ServiceEndpointServlet.doGet(ServiceEndpointServl
et.java:95)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
So I went up one level to http://WDLLL3BNRV8:8080/hello and there is no file name is the directory listing. Does that mean the hello service is not deployed?
Your help is appreciate! Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040784#4040784
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040784
18 years, 12 months
[JBoss Seam] - Clustering Best Practicies
by rjstanford
This may be better suited for one of the other forums, but it doesn't quite fit there, so...
These days, its a reasonable assumption that most commercial applications are going to be deployed into a clustered environment - for failover if nothing else, but most of them benefit from increased scalability as well. I'd love to get some feedback about best practicies for Seam applications.
By that, I mean - assuming that you're deploying on JBoss AS, how do you set your clusters up? What's your load balancing strategy? Are you replicating the entire session (probably, but...)? Any issues with conversational failover?
Basically, some kind of message that says, "The team at JBoss has thought about it, and assuming that money is not a problem, here's how we would set up a deployment cluster to run a large-scale Seam app, assuming that you're using Seam, JMS, EJB3 entities, statefull and stateless beans, et cetera. If I'm wishing, it would include a "minimum," setup, and then a "to scale, add ___ and change ___ setting appropriately" section.
Even something saying, "Wait until JBoss AS 5.0 is released because then its all integrated and you do X" would be cool, too.
Thanks! If such recommendations exist out there, my google-fu is inadequate to find them and I'd appreciate a pointer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040780#4040780
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040780
18 years, 12 months
[JBoss Seam] - Remote Java App calling into Seam app - No active session co
by PatrickMadden
Hi, I have a seam web application and a java application that can communicate with web app via servlets and web services. It used to work on 4.0.5.GA but now that I'm on 4.2.0.CR2 its not.
On the java client app, I get a reference to the web service using a JNDI lookup using my RemoteBinding defined on the webservice as follows:
On the Server define the web service as follows:
@WebService(name="DBServiceEndpointInterface",
| targetNamespace="http://com.clooster/web/services",
| serviceName="DBService")
| /*
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| */
| @Remote(DBService.class)
| @RemoteBinding(jndiBinding = "/ejb3/EJB3DBService")
| @Stateless
| @WebContext(transportGuarantee="NONE",
| contextRoot = "/Clooster",
| urlPattern="/services/DBService")
| public class EJB3RemoteDBServiceBean implements DBService
| {
| @WebMethod
| public String doLogin(java.lang.String encryptedUID,
| java.lang.String encryptedPWD)
| {
| String cloosterID = crypto.decrypt(encryptedUID);
| String pwdString = crypto.decrypt(encryptedPWD);
|
| Identity identity = Identity.instance();
|
| identity.setUsername(cloosterID);
| identity.setPassword(pwdString);
|
| if (identity.login() != null)
| // .....
| }
| }
|
On the client side do something like this:
| InitialContext initContext = JndiUtils.getInstance().getInitialContext();
| DBService connection = (DBService) initContext.lookup("ejb3/EJB3DBService");
|
| connection.doLogin("foo", "bar");
|
The connection works to the backend but I get a exception stating that ther e is no active session context. I did add a web context-filter in my component.xml as follows:
<web:context-filter url-pattern="/services/*"/>
I also have a seam servlet filter defined in web.xml
The full exception is as follows - Any help is greatly appreciated.
| SEVERE: java.lang.IllegalStateException: No active session context
| javax.ejb.EJBException: java.lang.IllegalStateException: No active session context
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| 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:105)
| 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.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:278)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:999)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:848)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:454)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:527)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:261)
| Caused by: java.lang.IllegalStateException: No active session context
| at org.jboss.seam.security.Identity.instance(Identity.java:106)
| at com.clooster.web.services.db.EJB3RemoteDBServiceBean.doLogin(EJB3RemoteDBServiceBean.java:132)
| 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:585)
| 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:73)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:98)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
| 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:585)
| 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.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.invokeInOurTx(TxPolicy.java:79)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| 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:105)
| 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.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:278)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
| at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:999)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:848)
| at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:454)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:527)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:261)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:163)
| at org.jboss.remoting.Client.invoke(Client.java:612)
| at org.jboss.remoting.Client.invoke(Client.java:604)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:103)
| at $Proxy1.doLogin(Unknown Source)
| at com.clooster.metasearchExt.model.ClientDBService.login(ClientDBService.java:206)
| at com.clooster.graphsearch.dialogs.LoginDialog.onLogin(LoginDialog.java:355)
| at com.clooster.graphsearch.dialogs.LoginDialog.XDialog_Ok(LoginDialog.java:405)
| at com.clooster.xjava.swing.XDialog$1.actionPerformed(XDialog.java:152)
| at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
| at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
| at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
| at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
| at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
| at java.awt.Component.processMouseEvent(Unknown Source)
| at javax.swing.JComponent.processMouseEvent(Unknown Source)
| at java.awt.Component.processEvent(Unknown Source)
| at java.awt.Container.processEvent(Unknown Source)
| at java.awt.Component.dispatchEventImpl(Unknown Source)
| at java.awt.Container.dispatchEventImpl(Unknown Source)
| at java.awt.Component.dispatchEvent(Unknown Source)
| at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
| at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
| at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
| at java.awt.Container.dispatchEventImpl(Unknown Source)
| at java.awt.Window.dispatchEventImpl(Unknown Source)
| at java.awt.Component.dispatchEvent(Unknown Source)
| at java.awt.EventQueue.dispatchEvent(Unknown Source)
| at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
| at java.awt.Dialog$1.run(Unknown Source)
| at java.awt.Dialog$2.run(Unknown Source)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.awt.Dialog.show(Unknown Source)
| at java.awt.Component.show(Unknown Source)
| at java.awt.Component.setVisible(Unknown Source)
| at com.clooster.xjava.swing.XDialog.showDialog(XDialog.java:242)
| at com.clooster.graphsearch.actions.LoginAction.doAction(LoginAction.java:80)
| at com.clooster.xjava.util.threads.XActionManager$1$1.run(XActionManager.java:175)
| at java.awt.event.InvocationEvent.dispatch(Unknown Source)
| at java.awt.EventQueue.dispatchEvent(Unknown Source)
| at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
| at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
| at java.awt.EventDispatchThread.run(Unknown Source)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:103)
| at $Proxy1.doLogin(Unknown Source)
| at com.clooster.metasearchExt.model.ClientDBService.login(ClientDBService.java:206)
| at com.clooster.graphsearch.dialogs.LoginDialog.onLogin(LoginDialog.java:355)
| at com.clooster.graphsearch.dialogs.LoginDialog.XDialog_Ok(LoginDialog.java:405)
| at com.clooster.xjava.swing.XDialog$1.actionPerformed(XDialog.java:152)
| at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
| at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
| at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
| at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
| at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
| at java.awt.Component.processMouseEvent(Unknown Source)
| at javax.swing.JComponent.processMouseEvent(Unknown Source)
| at java.awt.Component.processEvent(Unknown Source)
| at java.awt.Container.processEvent(Unknown Source)
| at java.awt.Component.dispatchEventImpl(Unknown Source)
| at java.awt.Container.dispatchEventImpl(Unknown Source)
| at java.awt.Component.dispatchEvent(Unknown Source)
| at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
| at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
| at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
| at java.awt.Container.dispatchEventImpl(Unknown Source)
| at java.awt.Window.dispatchEventImpl(Unknown Source)
| at java.awt.Component.dispatchEvent(Unknown Source)
| at java.awt.EventQueue.dispatchEvent(Unknown Source)
| at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
| at java.awt.Dialog$1.run(Unknown Source)
| at java.awt.Dialog$2.run(Unknown Source)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.awt.Dialog.show(Unknown Source)
| at java.awt.Component.show(Unknown Source)
| at java.awt.Component.setVisible(Unknown Source)
| at com.clooster.xjava.swing.XDialog.showDialog(XDialog.java:242)
| at com.clooster.graphsearch.actions.LoginAction.doAction(LoginAction.java:80)
| at com.clooster.xjava.util.threads.XActionManager$1$1.run(XActionManager.java:175)
| at java.awt.event.InvocationEvent.dispatch(Unknown Source)
| at java.awt.EventQueue.dispatchEvent(Unknown Source)
| at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
| at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
| at java.awt.EventDispatchThread.run(Unknown Source)
|
Again, any help is greatly appreciated.
Thanks,
PVM
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040773#4040773
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040773
18 years, 12 months
[JBoss Seam] - Re: ELSupport exception on javasisst-proxies (coerceToType)
by gena777
Hello,
i'm using the freshest CVS Seam on JBoss4.2.0CR2 with trinidad, ajax4jsf and jsf 1.2ri (all jars from AS or Seam-dist).
Stack trace:
| SCHWERWIEGEND: Error Rendering View[/offer/step1.xhtml]
| java.lang.IllegalArgumentException: Cannot convert (id=1868 token=REPAIRED title=repaired) of type class de.intermobil.model.feature.AccidentState to class de.intermobil.model.feature.AccidentState_$$_javassist_33
| at org.jboss.el.lang.ELSupport.coerceToType(ELSupport.java:358)
| at org.jboss.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:46)
| at com.sun.faces.renderkit.html_basic.RadioRenderer.renderOption(RadioRenderer.java:87)
| at com.sun.faces.renderkit.html_basic.SelectManyCheckboxListRenderer.encodeEnd(SelectManyCheckboxListRenderer.java:146)
| at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:286)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
| at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:79)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:282)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
| at org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:79)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571)
| at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
| at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:174)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| 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.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:209)
| at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:166)
| at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
| at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at de.intermobil.util.CommonFilter.doFilter(CommonFilter.java:33)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:43)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at de.intermobil.util.PrimeFilter.doFilter(PrimeFilter.java:33)
| 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:228)
| 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:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
| at java.lang.Thread.run(Thread.java:619)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040772#4040772
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040772
18 years, 12 months
[JBoss Seam] - Re: EntityManager in custom validator
by shakenbrain
Turns out that's exactly the way you do it. I had to make my validator class implement Serializable. For reference, here's the code:
@Name("prefixValidator")
| @Validator
| public class PrefixValidator implements javax.faces.validator.Validator, Serializable {
|
| @In
| EntityManager entityManager;
|
| @Transactional
| public void validate(FacesContext context, UIComponent component, Object value)
| throws ValidatorException {
|
| entityManager.joinTransaction();
|
| String prefix = (String) value;
|
| Query q = entityManager.createQuery("from Organization o where o.prefix = :prefix");
| q.setParameter("prefix", prefix.toUpperCase());
| if (q.getResultList().size() > 0) {
| throw new ValidatorException(makeMessage("Prefix is being used already"));
| }
| }
|
| private FacesMessage makeMessage(String s) {
| FacesMessage message = new FacesMessage();
| message.setDetail(s);
| message.setSummary(s);
| message.setSeverity(FacesMessage.SEVERITY_ERROR);
| return message;
| }
| }
<s:decorate id="prefixDecorator" template="decorateField.xhtml">
| <ui:define name="label">Prefix</ui:define>
| <h:inputText id="prefix" size="4" value="#{organizationEditor.instance.prefix}" required="true" disabled="#{!organizationEditor.new}">
| <f:validator validatorId="prefixValidator"/>
| <a:support event="onblur" reRender="prefixDecorator"/>
| </h:inputText>
| </s:decorate>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040763#4040763
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040763
18 years, 12 months
[JBoss Seam] - entityConverter problem
by emsa
I'm trying out the entityConverter, and I have a control like:
| <h:selectManyListbox value="#{tagSearch.selected}">
| <s:selectItems value="#{tagSearch.tags}" var="tag" label="#{tag.value}" />
| <s:convertEntity />
| </h:selectManyListbox>
|
displaying this works fine but when I submit the form I get:
| java.lang.NullPointerException:
| at org.jboss.seam.framework.EntityIdentifier.find(EntityIdentifier.java:21)
| at org.jboss.seam.ui.EntityConverterStore.get(EntityConverterStore.java:44)
| at org.jboss.seam.ui.EntityConverter.getAsObject(EntityConverter.java:74)
| at org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.getConvertedUISelectManyValue(_SharedRendererUtils.java:176)
|
|
I have tried putting my components in different scopes but that doesn't help.
What can be amiss?
/Magnus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040758#4040758
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040758
18 years, 12 months