[JBoss Seam] - Re: or in RESTRICTIONS
by dan.j.allen
This is indeed possible, just not in the obvious way. Let me present you with an example.
| <framework:entity-query
| name="contactQuery"
| ejbql="select from Contact">
| <framework:restrictions>
| <value>(lastName = #{nameFilter} or firstName = :el1)</value>
| </framework:restrictions>
| </framework:entity-query>
|
Seam generates named parameters in the pattern "el" + 1-based index of the restriction. So you can repeat the value expression by using this name. I am not 100% sure that it starts at 1, because the code seems to leave room for earlier positional parameters, but in all my tests, it always starts with :el1. Of course, you continue on in the same manner. If you had another restriction, you would use :e2 in that value.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058421#4058421
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058421
18Â years, 10Â months
[Installation, Configuration & Deployment] - Re: Application Demployment Question
by bluzeppelin
Here is what I found:
2007-06-27 12:44:05,610 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@97140af7 { url=file:/C:/hyperic/server-3.0.4/hq-engine/server/default/deploy/HypericAlert.war/ }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: URL file:/C:/hyperic/server-3.0.4/hq-engine/server/default/deploy/HypericAlert.war/ deployment failed
state: FAILED
watch: file:/C:/hyperic/server-3.0.4/hq-engine/server/default/deploy/HypericAlert.war/WEB-INF/web.xml
altDD: null
lastDeployed: 1182973423421
lastModified: 1182973217059
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:id=-1760294153,war=HypericAlert.war
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/hyperic/server-3.0.4/hq-engine/server/default/deploy/HypericAlert.war/ deployment failed
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:id=-1760294153,war=HypericAlert.war
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/hyperic/server-3.0.4/hq-engine/server/default/deploy/HypericAlert.war/ deployment failed
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058416#4058416
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058416
18Â years, 10Â months