[jboss-user] [JBoss Seam] - About deploy of seam
kumachan
do-not-reply at jboss.com
Wed Nov 1 11:01:31 EST 2006
Hello.
I have my first simple program of ejb3 by using Seam.
The jar file and the war file cannot be moved by separately doing deploy
though the ear file is done in deploy and it was possible to move it.
Is this possible?
Is the writing of the configuration file bad though the call of the method of
ejb seems not to consist of jsp?
Only the sample that uses the ear file can be found, and it embarrasses it.
Could anyone advise?
## Environment ##
JBOSS4.0.5GA
jdk1.5.0_06
jboss-seam-1.0.1.GA
## ks.war ##
[ROOT]
| |- *.jsp
| |- META-INF
| |- WEB-INF
| |- faces-config.xml
| |- web.xml
| |- lib
| |- jboss-seam-ui.jar
## ks.jar ##
[ROOT]
| |- jboss-seam.jar
| |- META-INF
| |- ejb-jar.xml
| |- persistence.xml
| |- ks
| |- sample
| |- *.class
## components.xml ##
<components>
| <component name="org.jboss.seam.core.init">
| <property name="myFacesLifecycleBug">true</property>
| <property name="jndiPattern">ks/#{ejbName}/local</property>
| </component>
|
| <component class="org.jboss.seam.core.Ejb" installed="false"/>
| </components>
## error ##
21:02:11,838 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servl
et threw exception
javax.faces.FacesException: Error calling action method of component with id _
idJsp0:_idJsp1
at org.apache.myfaces.application.ActionListenerImpl.processAction(Act
ionListenerImpl.java:74)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java
:94)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java
:168)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(Lifecy
cleImpl.java:343)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.ja
va:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ap
plicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicatio
nFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeader
Filter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ap
plicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicatio
nFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrappe
rValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContex
tValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Secur
ityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextVa
lve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve
.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve
.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedCon
nectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineV
alve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.j
ava:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.ja
va:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler
.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEnd
point.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveW
orkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.faces.el.EvaluationException: Exception while invoking expres
sion #{register.start}
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.ja
va:165)
at org.apache.myfaces.application.ActionListenerImpl.processAction(Act
ionListenerImpl.java:63)
... 25 more
Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam c
omponent: register
at org.jboss.seam.Component.newInstance(Component.java:735)
at org.jboss.seam.Component.newInstance(Component.java:1308)
at org.jboss.seam.Component.getInstance(Component.java:1263)
at org.jboss.seam.Component.getInstance(Component.java:1246)
at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariabl
eResolver.java:44)
at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariab
le(LastVariableResolverInChain.java:42)
at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVa
riable(ValueBindingImpl.java:574)
at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
at org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(Val
ueBindingImpl.java:455)
at org.apache.myfaces.el.MethodBindingImpl.resolveToBaseAndProperty(Me
thodBindingImpl.java:180)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.ja
va:114)
... 26 more
Caused by: javax.naming.NameNotFoundException: local not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.seam.Component.instantiate(Component.java:774)
at org.jboss.seam.Component.newInstance(Component.java:731)
... 36 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982405#3982405
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982405
More information about the jboss-user
mailing list