• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Failed to setup EJB remote context using jboss 7.1.1

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


jboss-ejb-client.properties
remote.connections=default
endpoint.name=client-endpoint
remote.connection.default.port = 4447
remote.connection.default.host=localhost
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false




 
Saloon Keeper
Posts: 28663
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This has absolutely nothing to do with JavaServer Faces. So I'm moving it to the JBoss forum.
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exactly failed? Do you have a stacktrace?
 
Doan Long
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
File .war



File .ear


File jboss-ejb-client.properties

remote.connections=default
endpoint.name=client-endpoint
remote.connection.default.port = 4447
remote.connection.default.host=localhost
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false

standalone.xml



<module-option name="principalsQuery" value="Select password_usr From im_users_usr Where blocked_usr = 0 And id_usr = ?"/>
pass DB = Security.calculateRFC2104HMAC("123",Security.HMAC_KEY);

Run app click button Test Lookup error


13:33:51,021 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.RuntimeException: Failed to setup EJB remote context]

13:33:51,032 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil.java:36)

13:33:51,033 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:121)

13:33:51,034 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)

13:33:51,035 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)

13:33:51,036 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at javax.naming.InitialContext.init(InitialContext.java:223)

13:33:51,037 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at javax.naming.InitialContext.<init>(InitialContext.java:197)

13:33:51,038 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at com.evnit.fmis.managedbean.appweb.LoginBean.testLookup(LoginBean.java:169)

13:33:51,039 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at com.evnit.fmis.managedbean.appweb.LoginBean.checkLogin(LoginBean.java:192)

13:33:51,040 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

13:33:51,040 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

13:33:51,041 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

13:33:51,042 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at java.lang.reflect.Method.invoke(Method.java:597)

13:33:51,043 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.el.parser.AstValue.invoke(AstValue.java:262)

13:33:51,044 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)

13:33:51,046 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

13:33:51,047 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)

13:33:51,048 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

13:33:51,049 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at javax.faces.component.UICommand.broadcast(UICommand.java:315)

13:33:51,050 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)

13:33:51,051 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)

13:33:51,052 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)

13:33:51,053 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

13:33:51,053 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

13:33:51,054 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)

13:33:51,056 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

13:33:51,057 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

13:33:51,058 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

13:33:51,059 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

13:33:51,060 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

13:33:51,061 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

13:33:51,062 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

13:33:51,063 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

13:33:51,064 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

13:33:51,064 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

13:33:51,065 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

13:33:51,066 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

13:33:51,067 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at java.lang.Thread.run(Thread.java:662)

13:33:51,068 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) Caused by: java.lang.RuntimeException: Failed to setup EJB remote context

13:33:51,069 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.jboss.naming.remote.client.InitialContextFactory.setupEjbContext(InitialContextFactory.java:438)

13:33:51,070 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:115)

13:33:51,071 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) ... 35 more

13:33:51,071 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) Caused by: java.lang.reflect.InvocationTargetException

13:33:51,072 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

13:33:51,073 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

13:33:51,074 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

13:33:51,075 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at java.lang.reflect.Method.invoke(Method.java:597)

13:33:51,076 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.jboss.naming.remote.client.InitialContextFactory.setupEjbContext(InitialContextFactory.java:420)

13:33:51,077 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) ... 36 more

13:33:51,077 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) Caused by: java.lang.SecurityException: EJB client context selector may not be changed

13:33:51,078 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.jboss.ejb.client.EJBClientContext.setSelector(EJBClientContext.java:181)

13:33:51,079 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) at org.jboss.naming.remote.client.ejb.RemoteNamingEjbClientContextSelector.setupSelector(RemoteNamingEjbClientContextSelector.java:18)

13:33:51,080 ERROR [stderr] (http-LOCALHOST-127.0.0.1-8080-4) ... 41 more
 
Tim Holloway
Saloon Keeper
Posts: 28663
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The following is not good JSF:


JSF Views are data templates, not programs and their EL expressions should be backing bean resource references, not logic. The proper syntax is:

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic