[JBoss Seam] - How to configure JBoss AS 4.0.5GA, JSF 1.2 Sun RI, Facelets
by tonylmai
Hello,
After 2 months spent in EJB3 "wanderland", I have a prototype for my app. I think I am now "ready" to draft up a nice web user interface for it.
With a clean JBoss 4.0.5GA and Seam 1.2.1GA and JSF 1.2 Sun RI, I created a rudimentary login page.
Well, not too long into the task I realized I have to go through a few configurations before I could get Seam to load appropriately with Sun's JSF RI + Facelets (no Ajax involved yet).
I tried to search for a posting that I found back sometimes in Feb 2007 referring to how to do such task yet I could not find it. :-(
Can someone help locating this posting or perhaps pointing me to the right location?
Thanks.
FYI, the latest error I got is this:
anonymous wrote : 14:35:24,234 ERROR [STDERR] java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.faces.application.ApplicationImpl.addELResolver(javax.el.ELResolver)
| 14:35:24,234 ERROR [STDERR] at org.jboss.seam.jsf.SeamApplication12.(SeamApplication12.java:46)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042651#4042651
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042651
17 years, 4 months
[EJB 3.0] - EJB3 trailblazer stateless session did not bind on global JN
by leonz11
I build EJB3trailblazer and deploy on jboss 4.05 GA.
in the server log file, it seems deployed successfully
| 2007-05-02 16:01:32,518 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/jboss-4.0.5.GA/server/all/deploy/EJB3Trail.ear
|
But when I checked the global JNDI tree, i did not find the ear; only have web war.
when I called the caculate.jsp, it throws the error:
| 2007-05-02 16:07:12,876 ERROR [STDERR] javax.naming.NameNotFoundException: EJB3Trail not bound
| 2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| 2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| 2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| 2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| 2007-05-02 16:07:12,876 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
|
the way I call the ejb is:
| try {
| InitialContext ctx = new InitialContext();
| cal = (Calculator) ctx.lookup(
| "EJB3Trail/Calculator");
| } catch (Exception e) {
| e.printStackTrace ();
| }
|
can sb tell where the problems are?
thanx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042643#4042643
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042643
17 years, 4 months
[EJB/JBoss] - Here is the complete error message
by sgb77
16:44:43,918 INFO [CachedConnectionManager] Closing a connection for you. Plea
se close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@3bbcfd
java.lang.Throwable: STACKTRACE
at org.jboss.resource.connectionmanager.CachedConnectionManager.register
Connection(CachedConnectionManager.java:290)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
onnection(BaseConnectionManager2.java:417)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
nManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
erDataSource.java:88)
at hd.ejb.HelpDeskBean.Login(HelpDeskBean.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
tatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
ke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
elessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
Interceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
rceptor.java:121)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
torCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:1
81)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.
java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFacto
ryFinderInterceptor.java:136)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:6
48)
at org.jboss.ejb.Container.invoke(Container.java:954)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(Loca
lInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerIntercepto
r.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav
a:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:7
0)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessi
onInterceptor.java:112)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy57.Login(Unknown Source)
at com.utils.UserBeanJSF.Login(UserBeanJSF.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
enerImpl.java:72)
at javax.faces.component.UICommand.broadcast(UICommand.java:312)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:3
81)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
ionPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConne
ctionValve.java:156)
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)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042634#4042634
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042634
17 years, 4 months