[Persistence, JBoss/CMP, Hibernate, Database] - Problem while using Inner Query
by amit.patel
Hi All,
[CDATA[SELECT OBJECT(obj) FROM UpdateWebMessageText obj WHERE obj.messageType = ?1 and obj.effectiveStartDate = (SELECT min(obj1.effectiveStartDate) FROM UpdateWebMessageText obj1
WHERE obj1.messageType = ?1 and obj1.effectiveStartDate > ?2 )]].
While using above query, jboss is giving follwing error
Problem starting service jboss.j2ee:jndiName=ejb/bean/WebMessageTextEJB,service=EJB
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'Select OBJECT(obj) FROM UpdateWebMessageText obj WHERE obj.messa
geType = ?1 and obj.effectiveStartDate = (SELECT max(obj1.effectiveStartDate) FROM UpdateWebMessageText obj1
WHERE obj1.messageType = ?1 and obj1.effectiveStartDate < ?2 )'; - nested throwabl
e: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "(" at line 1, column 109.
Was expecting one of:
<DATETIME_VALUED_PARAMETER> ...
<DATETIME_VALUED_PATH> ...
).
It seems from the message that jboss expects date value(in query, i have made that portion red) but it found '(' there.
Actually after '(' is a query which returns date, but jboss doesn't allows to write inner queries.
Please provide me help how to solve this.
Thanks in Advance,
Amit.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967198#3967198
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967198
19 years, 8 months
[JBoss Seam] - JSP insted XHTMLS (DVD store example)
by mrohad
I am trying to change and work with the DVD store example
I would like to work with JSPs instead os XHTMLs , is it possible with seam?
in the web.xml
I removed/changed:
| removed -->
| <security-constraint>
| <display-name>Restrict XHTML Documents</display-name>
| <web-resource-collection>
| <web-resource-name>XHTML</web-resource-name>
| <url-pattern>*.xhtml</url-pattern>
| </web-resource-collection>
| <auth-constraint>
| <role-name>NONE</role-name>
| </auth-constraint>
| </security-constraint>
|
| changed-->
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value> <-- I changed to .jsp
| </context-param>
|
|
|
I changed all the xhtml pages to jsp and also the links inside the pages
while loading JSP file:
| <%@ page contentType="text/html; charset=Cp1255" %>
| <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
| <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
|
| <html>
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=Cp1255"/>
| <title></title>
| </head>
| <body>
| <f:view>
| <h:form>
| hello world
| </h:form>
| </f:view>
| </body>
| </html>
|
I am getting exception:
| com.sun.facelets.FaceletException: Error Parsing /newfile.jsp: Error Traced[line: 1] The markup in the document preceding the root element must be well-formed.
| com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
| com.sun.facelets.compiler.Compiler.compile(Compiler.java:104)
| com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:192)
| com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:141)
| com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:93)
| com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:503)
| com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553)
| org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97)
| org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
| org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
is there anything else I need to change?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967197#3967197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967197
19 years, 8 months
[JBoss jBPM] - Re: How can I add forms?
by mailinator
"kukeltje" wrote : ??? Mind that branches are not stable, releases are, what is the behaviour of 3.1.2?There are only two projects available in the import dialog: The above Branch and jbpm.db
By the way, the processXMLReader method first didn't work at all until I added commons-logging-1.1.jar and dom4j-1.6.1.jar
"kukeltje" wrote : The same except...... so could there be an error in there? What do you do?Well, it basically comes down to these lines:
FileReader input;
| try {
| input = new FileReader("processes/eTravel/gpd.xml");
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlReader(input);
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
| Token token = processInstance.getRootToken();
| token.signal();
| } catch (FileNotFoundException e) {
| e.printStackTrace();
| }
"kukeltje" wrote : Is there an error? What does the debug show (do not post to much) Well, as I said, I get complains from the XmlReader for each transition:
24.08.2006 12:43:47 org.jbpm.jpdl.xml.JpdlXmlReader addWarning
WARNUNG: process xml warning: node 'Travel Finished' has a transition without a 'to'-attribute to specify its destinationNode
And at the end comes the exception:
Exception in thread "main" org.jbpm.JbpmException: token 'Token(/)' can't be signalled cause it is currently not positioned in a node
at org.jbpm.graph.exe.Token.signal(Token.java:118)
at eTravel.ETravelMain.main(ETravelMain.java:22)
Thanks for taking the time.
CU
FLo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967195#3967195
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967195
19 years, 8 months
[JBoss Seam] - DVDstore application with persistence allowing server restar
by appendix
Hi,
I'm toying with the dvdstore example application and would like to achieve a more real life szenario by getting persistence over jboss server restarts. By default the application is completely reset to its initial state after a server restart.
So I changed the property "hbm2ddl.auto" in hibernate.cfg.xml from "create-drop" to "update". The server starts up fine the first time and the scheme is created successfully. But on each subsequent (re)start the deployment of the application fails with a RuntimeException[1] stating that a process definition couldn't be deployed.
Why would seam try to put an already defined process again into the database? How do I achieve the requirement to allow persistence ocross server restarts without loosing business data?
Any pointers appreciated!
Thanks, Kurt
[1] The server log showing the exception:
anonymous wrote :
| 2006-08-24 12:08:17,390 INFO [STDOUT] Hibernate: select processdef0_.ID_ as ID1_18_, processdef0_.NAME_ as NAME2_18_, processdef0_.VERSION_ as VERSION3_18_, processdef0_.ISTERMINATIONIMPLICIT_ as ISTERMIN4_18_, processdef0_.STARTSTATE_ as STARTSTATE5_18_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc limit ?
| 2006-08-24 12:08:17,451 INFO [STDOUT] Hibernate: select nextval ('hibernate_sequence')
| 2006-08-24 12:08:17,482 ERROR [STDERR] java.lang.RuntimeException: could not deploy a process definition
| 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.core.Jbpm.installProcessDefinitions(Jbpm.java:167)
| 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.core.Jbpm.startup(Jbpm.java:58)
| 2006-08-24 12:08:17,482 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2006-08-24 12:08:17,482 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 2006-08-24 12:08:17,482 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2006-08-24 12:08:17,482 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
| 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
| 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.Component.callCreateMethod(Component.java:1322)
| 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.Component.newInstance(Component.java:1312)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1263)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1253)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:125)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:104)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.init.Initialization.init(Initialization.java:196)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:32)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at $Proxy43.start(Unknown Source)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at $Proxy44.start(Unknown Source)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at $Proxy6.deploy(Unknown Source)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at $Proxy0.start(Unknown Source)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at $Proxy4.start(Unknown Source)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:464)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 2006-08-24 12:08:17,512 ERROR [STDERR] Caused by: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [org.jbpm.graph.def.ProcessDefinition#1]
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:121)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:537)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.hibernate.impl.SessionImpl.save(SessionImpl.java:525)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.hibernate.impl.SessionImpl.save(SessionImpl.java:521)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:77)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
| 2006-08-24 12:08:17,512 ERROR [STDERR] at org.jboss.seam.core.Jbpm.installProcessDefinitions(Jbpm.java:162)
| 2006-08-24 12:08:17,512 ERROR [STDERR] ... 154 more
| 2006-08-24 12:08:17,512 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-dvd]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
| java.lang.RuntimeException: could not deploy a process definition
| at org.jboss.seam.core.Jbpm.installProcessDefinitions(Jbpm.java:167)
| at org.jboss.seam.core.Jbpm.startup(Jbpm.java:58)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967194#3967194
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967194
19 years, 8 months
[JBossWS] - compilation error when trying to build 1.0.2 samples
by heapifyman
Hello everyone.
I just installed JBossWS 1.0.2 GA and it seems to be running fine in JBoss, but I'm not able to build the samples.
I adapted ant.properties to my environment (set jboss.jdk15.home) but when running ant I get a compilation error because apparently junit libs cannot be found.
| compile:
| [javac] Compiling 14 source files to D:\Programme\Development\Java\JBossWS\samples\output\classes
| [javac] D:\Programme\Development\Java\JBossWS\samples\common\java\org\jboss\test\ws\JBossWSTest.java:35: package junit.framework does not exist
|
I can add a junit.jar to the compile.classpath in imported-build.xml and, after replacing xercesImpl.jar, the build succeeds but is this supposed to be the intended procedure?
Or did I just miss any instructions?
Thanks,
Philip
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967192#3967192
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967192
19 years, 8 months
[JBoss jBPM] - Re: How can I add forms?
by kukeltje
"mailinator" wrote : what is the best way to add customized forms to a jbpm process?
For 3.1 by building your own webapp, for 3.2 there will be some functionality (if you search the forum, you will find more info)
"mailinator" wrote :
| So far, I'm trying to build my forms as a java UI, but I've run into problems. I went along the TaskAssignment example from the jbpm.3_BRANCH_3_1 project that is included in the starters kit. The idea is that the AssignmentHandler calls my form, user enters data and the data is given back to the process.
I would not make a 'task' in the assignmenthandler, I'd make a separate task before that to fill a variable which can be used by the assignmenthandler
"mailinator" wrote :
| Since I wanted to use a diagram I built with the designer, I used the created gpd.xml file when creating the ProcessDefinition. It seems the parseXMLReader method skips the 'to' attributes of the xml file because I get a warning for each transition, although the 'to's appear correctly in the xml-file.
| ??? Mind that branches are not stable, releases are, what is the behaviour of 3.1.2?
"mailinator" wrote :
| At the end it also tells me that "token 'Token(/)' can't be signalled cause it is currently not positioned in a node". I used the same code as in the example, except the part mentioned above.
| The same except...... so could there be an error in there? What do you do? Is there an error? What does the debug show (do not post to much)
"mailinator" wrote :
|
| Unlike the example, I'm not doing it as a JUnit TestCase, but after a quick look at the definition of TestCase that shouldn't lead to the mentioned problems.
|
| Any help would be appreciated.
|
Here you are.....
CU
FLo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967191#3967191
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967191
19 years, 8 months