[JBoss Seam] - Re: Seam 1.2 released
by Newlukai
Hi,
thanks for your answer. Here's some code:
Page:
<ice:selectOneMenu id="projectselection" value="#{projectControllingActions.selectedProject}"
| valueChangeListener="#{projectControllingActions.projectSelectionChanged}"
| partialSubmit="true" required="true">
|
| <s:selectItems value="#{projectControllingActions.projects}" var="project"
| label="#{project.name}" noSelectionLabel="#{apc_messages.please_select}"/>
| <s:convertEntity />
|
| </ice:selectOneMenu>
|
| <ice:selectOneMenu id="taskselection" value="#{projectControllingActions.selectedTask}">
| <s:selectItems value="#{projectControllingActions.tasks}" var="task"
| label="#{task.description}" noSelectionLabel="#{apc_messages.please_select}"/>
| <s:convertEntity />
| </ice:selectOneMenu>
When the page is rendered the first time both selectOneMenus show the noSelectionLabel. Then I change the value of "projectselection" and since there's a partial submit, the lifecycle is invoked. The "projectselection" value is converted correctly. But the conversion of the noSelectionLabel in "taskselection" throws an exception because "null" can't be converted to "Integer". Inspecting the HTML page source I saw that the noSelectionLabel of the selectOneMenus were represented by an empty string.
Perhaps it's a compatibility error with ICEfaces 1.5.3???
Thanks in advance
Newlukai
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039277#4039277
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039277
19 years
[Beginners Corner] - jboss 3.2.1: identity management for sql server 2005
by RCQ
hi all
our application was developed long time ago for postgres.
now we are porting it to sql server 2005.
now, in sql server, column id management is automatically done by the database.
Therefore, i found the following on
http://www.ubookcase.com/book/Sams/JBoss.4.0.The.Official.Guide/067232648...
anonymous wrote :
| mssql-fetch-key (org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCSQLServerCreateCommand) JDBCSQLServerCreateCommand for Microsoft SQL Server uses the value from an IDENTITY columns. By default, it uses SELECT SCOPE_IDENTITY() to reduce the impact of triggers. You can override it with the pk-sql attribute (for example, for version 7).
|
so i added in standardjbosscmp-jdbc.xml the following (it was not yet present there)
anonymous wrote :
| <entity-command name="mssql-fetch-key" class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCSQLServerCreateCommand"/>
|
But when i add that line in standardjbosscmp-jdbc.xml, i get the error below.
anonymous wrote : 15:26:12,638 ERROR [EntityContainer] Starting failed
| org.jboss.deployment.DeploymentException: Could not load class: org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCSQLServerCreat
| eCommand
| at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityCommandMetaData.(JDBCEntityCommandMetaData.java:61)
| at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:239)
| at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:67)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:737)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:430)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:372)
| at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:170)
| at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
| at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
| at $Proxy11.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:392)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy34.start(Unknown Source)
| at org.jboss.ejb.EjbModule.startService(EjbModule.java:329)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
| at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
| at $Proxy11.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:392)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy22.start(Unknown Source)
| at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:540)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
| at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
| at $Proxy7.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039270#4039270
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039270
19 years
[JBoss Seam] - Re: Upgrade from Seam 1.1 to 1.2.1
by m.alex
Ok, some progress.
I left the subscription registry in a single JAR file and removed the install parameter (did not work wiht install=="true" or install="false"). The application deploys fine, seam remoting is working, but it is breaking when trying to subscribe to JMS topic:
| 15:35:58,898 ERROR [Remoting] Error
| java.lang.IllegalArgumentException: Invalid token argument - token not found in Session Context.
| at org.jboss.seam.remoting.messaging.SubscriptionRegistry.getSubscription(SubscriptionRegistry.java:178)
| at org.jboss.seam.remoting.messaging.PollRequest.poll(PollRequest.java:43)
| at org.jboss.seam.remoting.PollHandler.handle(PollHandler.java:83)
| at org.jboss.seam.remoting.Remoting.getResource(Remoting.java:110)
| at org.jboss.seam.servlet.ResourceServlet.doGet(ResourceServlet.java:68)
| at org.jboss.seam.servlet.ResourceServlet.doPost(ResourceServlet.java:77)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039269#4039269
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039269
19 years