[JBoss Seam] - NameNotFoundException in simple seam proof of concept
by jamesjoh
Hi, I'm using JBoss AS4.2.0 with Seam 1.1.0 and Facelets. I've been trying to write a very simple proof of concept app. I have a simple index.xhtml that has a form on it. The form takes in 2 inputs to a backing bean. The form submits to "#{updater.add}". I have an action bean defined as follows:
@Stateless
@Name("updater")
public class PocAction implements IPocAction{
...
public String add() { ... }
}
Whenever I try to invoke this action I get an exception:
javax.servlet.ServletException: Could not instantiate Seam component: updater
which stems from:
javax.naming.NameNotFoundException: PocAction not bound
As soon as I remove the 'Stateless' annotation everything works fine. I've checked every configuration I can think of and compared against known working examples from the seam examples directory. Everything as far as I can tell looks correct. Does anyone have any ideas as to what my problem might be? Is this an incompatibility between the newest JBoss AS and the older version of Seam?
Thanks for your time.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056589#4056589
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056589
18Â years, 10Â months
[JBoss Portal] - Re: JBP 2.6 RC2 : Pb starting service portal.wsrp:service=Co
by Antoine_h
I have retried it to check if the problem still show up.
(I had a doubt that the problem always occur a each server launch).
so : yes it show up again.
As it is a jdbc mysql problem : I use the latest version of Hibernate, ie 3.2.4sp1.
see this post : http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111530
And also : here some more information about the error, that may help you.
The "caused by" second exception is:
18:32:28,796 WARN [ServiceController] Problem starting service portal.wsrp:service=ConsumerRegistry
| org.hibernate.exception.GenericJDBCException: could not execute query using iterate
| at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
| ....
| ....
| Caused by: java.sql.SQLException: Invalid value for getLong() - 'self'
| at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
| at com.mysql.jdbc.ResultSet.getLong(ResultSet.java:2768)
| at com.mysql.jdbc.ResultSet.getLong(ResultSet.java:2666)
| at com.mysql.jdbc.ResultSet.getLong(ResultSet.java:2791)
| at org.jboss.resource.adapter.jdbc.WrappedResultSet.getLong(WrappedResultSet.java:718)
| at org.hibernate.type.LongType.get(LongType.java:28)
| at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:163)
| at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:154)
| at org.hibernate.type.ManyToOneType.hydrate(ManyToOneType.java:103)
| at org.hibernate.type.EntityType.nullSafeGet(EntityType.java:204)
| at org.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:93)
| at org.hibernate.impl.IteratorImpl.<init>(IteratorImpl.java:58)
| at org.hibernate.loader.hql.QueryLoader.iterate(QueryLoader.java:405)
| ... 132 more
| 18:32:29,828 INFO [NamingHelper] JNDI InitialContext properties:{}
| 18:32:29,843 INFO [DatasourceConnectionProvider] Using datasource: java:PortalDS
| 18:32:29,843 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.19-nt
| 18:32:29,859 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48 +02
| 00 (Thu, 19 Oct 2006) $, $Revision: 5908 $ )
| 18:32:29,859 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
| 18:32:29,875 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
| 18:32:29,875 INFO [NamingHelper] JNDI InitialContext properties:{}
| 18:32:29,875 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManag
| ....
|
and at the end of starting process :
18:33:32,656 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
| 18:33:32,859 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: portal.wsrp:service=ConsumerRegistry
| State: FAILED
| Reason: org.hibernate.exception.GenericJDBCException: could not execute query using iterate
| I Depend On:
| portal:service=Hibernate,type=WSRPConsumer
| portal:service=PortletInvoker,type=Federating
| portal:service=ListenerRegistry
| Depends On Me:
| portal.wsrp:service=WSRPDeployer
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: portal.wsrp:service=ConsumerRegistry
| State: FAILED
| Reason: org.hibernate.exception.GenericJDBCException: could not execute query using iterate
| I Depend On:
| portal:service=Hibernate,type=WSRPConsumer
| portal:service=PortletInvoker,type=Federating
| portal:service=ListenerRegistry
| Depends On Me:
| portal.wsrp:service=WSRPDeployer
|
|
| 18:33:32,984 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
| 18:33:33,093 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
| 18:33:33,109 INFO [JkMain] Jk running ID=0 time=0/63 config=null
| 18:33:33,140 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 1m:47s:812ms
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056588#4056588
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056588
18Â years, 10Â months
[JBossWS] - Re: Problem Accessing Web Service
by djayakaran
Here's the code I wrote to invoke the web service:
{
CurrencyForm form = null;
CurrencyWSService svc = null;
form = populateCurrencyForm(); // Souce, target currencies
svc = new CurrencyWSService();
CurrencyWS currencyWS = svc.getCurrencyWSPort();
System.out.println(form);
form = currencyWS.convertCurrency(form);
System.out.println(form);
}
The exception is thrown at the getCurrencyWSPort() call.
Here's my Service Endpoint Interface (SEI):
@WebService(name = "CurrencyWS", targetNamespace = "http://currencyconverter.ws/")
public interface CurrencyWS
{
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "convertCurrency", targetNamespace = "http://currencyconverter.ws/", className = "ws.currencyconverter.ConvertCurrency")
@ResponseWrapper(localName = "convertCurrencyResponse", targetNamespace = "http://currencyconverter.ws/", className = "ws.currencyconverter.ConvertCurrencyResponse")
public CurrencyForm convertCurrency(@WebParam(name = "arg0", targetNamespace = "") CurrencyForm arg0);
}
I seem to have the necessary @WebService annotation, yet the JBoss container throws the exception (see my previous posting).
Any thoughts?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056580#4056580
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056580
18Â years, 10Â months
[JBoss jBPM] - Process-States
by jgreiner
If I deploy the process definition below without deploying the sub-process definitions. The process will execute up until it tries to call a sub-process then it will throw an exception as expected.
However if I have the process definitions deployed properly (deploy subprocesses before main process) the process will stay in the Starting Gate node. I get no logging information, or any of my debug statements in the ActionHandler for the starting gate.
Does anyone have any idea, or a good push in the right direction? I am really at a loss.
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="DASMaster">
| <swimlane name="UsersGroup">
| <assignment class="com.pubco.das.common.handlers.UsersAssignmentHandler"></assignment>
| </swimlane>
| <start-state name="StartDasProcess">
| <transition name="" to="StartingGate"></transition>
| </start-state>
| <task-node name="DASMasterException">
| <task name="UserReview" swimlane="UsersGroup">
| <controller>
| <variable name="Comment"></variable>
| </controller>
| </task>
| <transition name="Try Again" to="StartingGate"></transition>
| </task-node>
| <node name="StartingGate" async="true">
| <action class="com.pubco.das.process.handlers.AsyncNode"></action>
| <transition name="" to="CreateArtMaster"></transition>
| </node>
| <node name="CreateArtMaster" async="true">
| <action class="com.pubco.das.process.handlers.CreateArtMaster"></action>
| <exception-handler exception-class="java.lang.Exception">
| <action class="com.pubco.das.process.handlers.DASMasterExceptionHandler"></action>
| </exception-handler>
| <transition name="" to="MSubmitProcess"></transition>
| </node>
| <process-state name="MSubmitProcess" async="exclusive" >
| <sub-process name="SubmitArtwork" />
| <variable name="artFileId" access="read,write" mapped-name="artFileId" />
| <variable name="artMasterId" access="read,write" mapped-name="artMasterId" />
| <transition name="" to="MProcessArtwork"></transition>
| </process-state>
| <process-state name="MProcessArtwork" async="exclusive" >
| <sub-process name="ProcessArtwork" />
| <variable name="artFileId" access="read,write" mapped-name="artFileId" />
| <variable name="artMasterId" access="read,write" mapped-name="artMasterId" />
| <transition name="" to="AllDone"></transition>
| </process-state>
| <end-state name="AllDone"></end-state>
| </process-definition>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056579#4056579
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056579
18Â years, 10Â months