[JBoss Seam] - Re: Problems with extended EL syntax.
by fernando_jmt
Actually, you should have this in your component:
|
| @DataModel
| List<String> strings;
|
| @Factory("strings")
| public void makeStrings() {
| strings = new List<String>();
| strings.add("Name1");
| strings.add("Name2");
| }
|
|
And this in your page:
| <h:dataTable var="string" value="#{strings}>
| <h:column>
| <s:link value="#{string}" action="#{bean.test(string)}" />
| </h:column>
| </h:dataTable>
|
Remember @Factory definition:
"@Factory specifies that the method of the component is used to initialize the value of the named context variable, when the context variable has no value.". So if you should use a @Factory for a context variable, and that context variable is defined in this case using @DataModel.
HTH.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037427#4037427
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037427
19 years
[JBoss jBPM] - Workflow process example
by hungphan2
I've tried to define a simple workflow process. I have Spring, Hibernate and jbpm 3.1.5. While doing some prototypes, I've encountered 2 problems that I am not sure what are wrong. Any help is really appreciated.
Thanks.
1) Using Hsqldb as a datasource, I can see some insert statements to the database when executing a statement like:
ProcessInstance processInstance = new ProcessInstance(processDefinition);
If I switch to Oracle 9.2.0 (by changing some xml file config), I don't see any update/insert statements. I can see some select statements for something like:
ProcessDefinition processDefinition = context.getGraphSession().loadProcessDefinition(processDefintionId);
2) If I use Hsqldb so that I can do some insert/update to the database, but I get an exception if I do something like this:
TaskInstance taskInstance = processInstance.getTaskMgmtInstance().createStartTaskInstance();
taskInstance.setActorId(actorId);
// Save the process instance along with the task instance
jbpmTemplate.saveProcessInstance(processInstance);
The stack trace is:
0:117 PDT] 00000023 SystemOut O Hibernate: call identity()
[4/15/07 10:02:10:117 PDT] 00000023 SystemOut O 2007-04-15 10:02:10,117 ERROR org.jbpm.db.GraphSession - org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.context.exe.VariableInstance
[4/15/07 10:02:10:117 PDT] 00000023 SystemErr R org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.context.exe.VariableInstance
at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3301)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1311)
at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180)
at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:460)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:502)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:494)
at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:134)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:213)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:157)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:290)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:185)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:160)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
at org.hibernate.engine.Cascade.cascade(Cascade.java:248)
at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:130)
at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:121)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35)
at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:954)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1099)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.jbpm.db.GraphSession.findLatestProcessDefinitions(GraphSession.java:184)
at springweb.controller.IndexController.handleRequestInternal(IndexController.java)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037426#4037426
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037426
19 years
[JBossWS] - java.sql.SQLException: File input/output error: Unexpected
by bittu.arvind
Hi all,
i am new in this area. i have installed netbeans ide 5.5 daily bundled with jboss-4.0.4, when i am strting the jboss server using netbeans "run time tab", i am geeting following error.
===============================================================================
.
JBoss Bootstrap Environment
.
JBOSS_HOME: C:\jboss-4.0.4.GA\bin\\..
.
JAVA: C:\Program Files\Java\jdk1.5.0_11\bin\java
.
JAVA_OPTS: -Dhttp.proxyHost=199.63.1.0 -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts="*.honeywell.com|*|localhost|127.0.0.1|ie10dtxp6b3zl1s|ie10dtxp6b3zl1s.global.ds.honeywell.com" -Dhttps.proxyHost=199.63.1.0 -Dhttps.proxyPort=80 -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
.
CLASSPATH: C:\Program Files\Java\jdk1.5.0_11\lib\tools.jar;C:\jboss-4.0.4.GA\bin\\run.jar
.
===============================================================================
.
09:49:38,578 INFO [Server] Starting JBoss (MX MicroKernel)...
09:49:38,578 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
09:49:38,593 INFO [Server] Home Dir: C:\jboss-4.0.4.GA
09:49:38,593 INFO [Server] Home URL: file:/C:/jboss-4.0.4.GA/
09:49:38,593 INFO [Server] Patch URL: null
09:49:38,593 INFO [Server] Server Name: default
09:49:38,593 INFO [Server] Server Home Dir: C:\jboss-4.0.4.GA\server\default
09:49:38,593 INFO [Server] Server Home URL: file:/C:/jboss-4.0.4.GA/server/default/
09:49:38,703 INFO [Server] Server Log Dir: C:\jboss-4.0.4.GA\server\default\log
09:49:38,703 INFO [Server] Server Temp Dir: C:\jboss-4.0.4.GA\server\default\tmp
09:49:38,703 INFO [Server] Root Deployment Filename: jboss-service.xml
09:49:39,046 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc.
09:49:39,046 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_11-b03,Sun Microsystems Inc.
09:49:39,046 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
09:49:39,703 INFO [Server] Core system initialized
09:49:41,000 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
09:49:46,453 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://199.63.66.250:3873/]
09:49:47,765 INFO [AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4.GA/server/default/deploy/ejb3-interceptors-aop.xml
09:50:00,609 INFO [WebService] Using RMI server codebase: http://ie10dtxp6b3zl1s:8083/
09:50:02,609 INFO [MailService] Mail Service bound to java:/Mail
09:50:02,937 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
09:50:02,937 WARN [NamingService] Context.PROVIDER_URL in server jndi.properties, url=localhost:1099
09:50:03,015 INFO [SubscriptionManager] Bound event dispatcher to java:/EventDispatcher
09:50:03,796 INFO [Embedded] Catalina naming disabled
09:50:03,859 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
09:50:03,859 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
09:50:04,203 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
09:50:04,203 INFO [Catalina] Initialization processed in 344 ms
09:50:04,203 INFO [StandardService] Starting service jboss.web
09:50:04,203 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.17
09:50:04,250 INFO [StandardHost] XML validation disabled
09:50:04,265 INFO [Catalina] Server startup in 62 ms
09:50:04,406 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
09:50:04,890 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
09:50:05,484 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp17170jbossws-exp.war/
09:50:05,656 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
09:50:06,781 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
09:50:07,203 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
09:50:07,312 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
09:50:07,328 INFO [QuartzResourceAdapter] start quartz!!!
09:50:07,406 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
09:50:07,437 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
09:50:07,437 INFO [RAMJobStore] RAMJobStore initialized.
09:50:07,546 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
09:50:07,546 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
09:50:07,546 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
09:50:08,218 WARN [ServiceController] Problem starting service jboss:service=Hypersonic,database=localDB
java.sql.SQLException: File input/output error: Unexpected token:
why this error is coming?? and how i can solve this???
please give reply as soon as possible.
thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037424#4037424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037424
19 years