[JBoss Seam] - Re: SeamNavigationHandler is no javax.faces.application.Navi
by jjsoft
Hi I am looking at Seam, I've got a working production JBoss404 AS running on one host. On a diferent host I followed the Seam roadmap exactly and I am getting errors trying to run the bookings example.
10:45:50,003 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
at org.jboss.seam.Component.newInstance(Component.java:735)
Caused by: javax.naming.NameNotFoundException: RegisterAction 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:267)
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(Unknown Source)
at org.jboss.seam.Component.instantiate(Component.java:774)
at org.jboss.seam.Component.newInstance(Component.java:731)
Reading the previous post I checked my components.xml and it looks OK
true
true
jboss-seam-booking/#{ejbName}/local
<!-- 120 second conversation timeout -->
120000
Any Idea? My JBoss AS install profile was clustered EJB.
Any idea? This is a new install following the Sean roadmap exactly, with hibernate 3.3
thx in advance jim
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962911#3962911
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962911
19 years, 9 months
[JCA/JBoss] - RAR - NOTYETINSTALLED error in JBOSS 4.0.4
by samprathis
Hi,
We have written a JCA adapter for Websphere MQ -
when I tried to deploy the RAR file ( jmsinvoker.jar ) jboss startsup fine.
But when I deploy the resource file - jboss-mq-ds.xml, I get the following error
Please help..
Error
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:name='jmsinvoker.rar',service=RARDeployment
State: NOTYETINSTALLED
Depends On Me:
jboss.jca:name=jca/sample,service=ManagedConnectionFactory
jboss-mq-ds.xml
<connection-factories>
<no-tx-connection-factory>
<jndi-name>jca/sample</jndi-name>
<rar-name>jmsinvoker.rar</rar-name>
<connection-definition>
javax.resource.cci.ConnectionFactory
</connection-definition>
<config-property name="queueConnectionFactoryName"
type="java.lang.String">jms/CCCQF</config-property>
<config-property name="requestQueueName"
type="java.lang.String">
jms/request
</config-property>
<config-property name="responseQueueName" type="java.lang.String">
jms/response
</config-property>
<config-property name="defaultExecutionTimeout" type="java.lang.Long">
60000
</config-property>
<config-property name="matchResponseMessageId" type="java.lang.Boolean">
false
</config-property>
</no-tx-connection-factory>
</connection-factories>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962910#3962910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962910
19 years, 9 months
[JBoss Seam] - How the setect itens example works???
by angelogalvao
i m looking this code in the select itens examples:
| package org.jboss.seam.example.selectitems;
|
| import java.io.Serializable;
| import java.util.ArrayList;
| import java.util.List;
|
| import javax.ejb.Remove;
|
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.annotations.Destroy;
| import org.jboss.seam.annotations.Factory;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Scope;
| import org.jboss.seam.annotations.selectitems.SelectItems;
|
| @Name("selector")
| @Scope(ScopeType.SESSION)
| public class SelectorAction implements Selector, Serializable
| {
| /**
| *
| */
| private static final long serialVersionUID = 1L;
| private String selected = "Mark";
|
| public String getSelected()
| {
| return selected;
| }
|
| public void setSelected(String selected)
| {
| this.selected = selected;
| }
|
| @SelectItems(valueStrategy=SelectItems.Strategy.STRING)
| public List items;
|
| @Factory("items")
| public List getItems()
| {
| items = new ArrayList();
| items.add("Jim");
| items.add("Dan");
| items.add("Mark");
| ArrayList<String> subgroup = new ArrayList<String>();
| subgroup.add("Other Developers");
| subgroup.add("Steve");
| subgroup.add("Ananda");
| items.add(subgroup);
| return items;
| }
|
| public void select()
| {
| System.out.println("You selected: "+selected);
| if("Dan".equals(selected))
| {
| System.out.println("Updating selected to Jim");
| selected = "Jim";
| }
| }
|
|
| @Remove @Destroy
| public void destroy()
| {
| // TODO Auto-generated method stub
|
| }
| }
|
and that
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
| <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
| <html>
| <head>
| <title>SelectItems Example</title>
| </head>
| <body>
| <f:view>
| Selecting Dan will automatically change selection to Jim.
| <h:form>
| <h:selectOneListbox size="10" value="<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
| <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
| <html>
| <head>
| <title>SelectItems Example</title>
| </head>
| <body>
| <f:view>
| Selecting Dan will automatically change selection to Jim.
| <h:form>
| <h:selectOneListbox size="10" value="#{selector.selected}">
| <f:selectItems value="#{items}"/>
| </h:selectOneListbox>
| <h:commandButton type="submit" value="Select" action="#{selector.select}"/>
| </h:form>
| Currently selected developer is <h:outputText value="#{selector.selected}" />
| <p/>
| <h:outputLink value="/seam-selectitems">
| <h:outputText value="Return to main menu" />
| </h:outputLink>
| </f:view>
| </body>
| </html>">
| <f:selectItems value="#{items}"/>
| </h:selectOneListbox>
| <h:commandButton type="submit" value="Select" action="#{selector.select}"/>
| </h:form>
| Currently selected developer is <h:outputText value="#{selector.selected}" />
| <p/>
| <h:outputLink value="/seam-selectitems">
| <h:outputText value="Return to main menu" />
| </h:outputLink>
| </f:view>
| </body>
| </html>
he do this #{selector.select} to insert the vaule of select in the bean, but i try something like that e a have a property not found exception, from jsf el..
how do i do this???
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962906#3962906
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962906
19 years, 9 months