[JBoss jBPM] - Re: Beginner: invoce web services from process: Hello, ATM,
by meghanai_99
I am little bit confused about providing the endpoint for the external webservice. The userguide says -
anonymous wrote :
| Note
| The endpoint address comes from the port element in the WSDL file, not from the URL in the catalog. To
| invoke a partner service, jBPM BPEL requires the full WSDL definition, not the endpoint URL alone.
|
Does that mean the endpoint address comes from the actual live wsdl file /wsdl bundled in the project? Is there a way to override that setting and provide new endpoint address like this thread shows in bpel-application.xml? It will be nice to have that feature. I tried providing the 'wsa' addressing in my bpel-application file but JBPM didn't like it - I got following exception -
| 17:45:19,183 ERROR [[/hello]] Exception sending context initialized event to lis
| tener instance of class org.jbpm.bpel.integration.server.IntegrationConfigurator
|
| org.jbpm.bpel.graph.exe.BpelFaultException: org.jbpm.bpel.graph.exe.FaultInstanc
| e@1f6a763[name={http://schemas.xmlsoap.org/ws/2004/03/business-process/}unsuppor
| tedReference,id=0]
| at org.jbpm.bpel.endpointref.EndpointReference.readServiceRef(EndpointRe
| ference.java:85)
| at org.jbpm.bpel.xml.AppDescriptorReader.readPartnerRole(AppDescriptorRe
| ader.java:192)
| at org.jbpm.bpel.xml.AppDescriptorReader.readPartnerLink(AppDescriptorRe
| ader.java:169)
| at org.jbpm.bpel.xml.AppDescriptorReader.readPartnerLinks(AppDescriptorR
| eader.java:150)
| at org.jbpm.bpel.xml.AppDescriptorReader.readScope(AppDescriptorReader.j
|
If someone can clarify this for me, it will be very useful.
Thanks,
Meghana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024514#4024514
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024514
17Â years, 10Â months
[EJB 3.0] - ejbql query-path of derived entity
by gnulp
I tried to drill down the problem to following simple example:
Address has a simple relation to Person which is derived from Employee ...
| @javax.persistence.Entity
| public class Address {
| String street;
| Long id;
| Person person;
| public String getStreet() {
| return street;
| }
| public void setStreet(String value) {
| street = value;
| }
| @javax.persistence.Id
| public Long getId() {
| return id;
| }
| @javax.persistence.ManyToOne
| public Person getPerson() {
| return this.person;
| }
| public void setPerson(Person person) {
| this.person = person;
| }
| }
|
| @javax.persistence.Entity
| @javax.persistence.Inheritance(strategy = javax.persistence.InheritanceType.JOINED)
| public class Person {
| String name;
| Long id;
| private java.util.Set<Address> address;
| public String getName() {
| return name;
| }
| public void setName(String value) {
| name = value;
| }
| @javax.persistence.Id
| public Long getId() {
| return id;
| }
| public void setId(Long value) {
| id = value;
| }
| @javax.persistence.OneToMany(mappedBy = "person")
| public java.util.Set<Address> getAddress() {
| return this.address;
| }
| public void setAddress(java.util.Set<Address> address) {
| this.address = address;
| }
| }
|
| @javax.persistence.Entity
| public class Employee extends Person {
| Double salary;
| public Double getSalary() {
| return salary;
| }
| public void setSalary(java.lang.Double value) {
| salary = value;
| }
| }
|
Now I would like to write a simple EJBQL to query for addresses named "streetName" and employees that earn more then "2000" ...
| SELECT A FROM Address A WHERE (A.street=streetName) AND (A.employee.salary>2000)
|
==> now to my question:
As we can see, the bean path A.employee.salary is wrong and i will get a
anonymous wrote : could not resolve property: employee
but writing
| SELECT A FROM Address A WHERE (A.street=streetName) AND (A.person.salary>2000)
|
is also wrong, because there is no salary attribute in the person entity ...
So how can I select in EJBQL using the path notation ?
Thx for any help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024513#4024513
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024513
17Â years, 10Â months
[JBoss Seam] - Setting up an ajax4jsf + trinidad project
by dustismo
I am trying to set up a new project using ajax4jsf+trinidad and having problems. I have followed this doc: http://wiki.apache.org/myfaces/TrinidadSeamAjax4JsfFaceletDetail
I am getting this error:
| 17:12:13,846 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
| 17:12:13,878 ERROR [STDERR] Mar 1, 2007 5:12:13 PM org.apache.myfaces.trinidad.webapp.TrinidadFilter init
| SEVERE: null
| java.lang.ClassNotFoundException: org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl
| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
| at org.apache.myfaces.trinidad.webapp.TrinidadFilter.init(TrinidadFilter.java:52)
| at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
| at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
| at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
|
I added the trinidad and a4j-trinidad jar to WEB-INF/lib (and added them to the build.xml to be added to the ear) -- Is that right???
this is my web.xml:
| <?xml version="1.0" ?>
| <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
| version="2.4">
|
| <!-- Ajax4jsf (must come first!) -->
| <!-- ************************ AJAX4JSF Filter **************************** -->
| <!-- If you have other filters declared in the web.xml, be sure that Ajax4jsf Filter is declared before the others. -->
| <filter>
| <display-name>Ajax4jsf Filter</display-name>
| <filter-name>ajax4jsf</filter-name>
| <filter-class>org.ajax4jsf.Filter</filter-class>
| <init-param>
| <param-name>forceparser</param-name>
| <param-value>false</param-value>
| </init-param>
| </filter>
|
| <filter-mapping>
| <filter-name>ajax4jsf</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
| <context-param>
| <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
| <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
| </context-param>
|
| <!-- ************************ Trinidad Filter **************************** -->
| <filter>
| <filter-name>Trinidad</filter-name>
| <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Trinidad</filter-name>
| <!--<servlet-name>Faces Servlet</servlet-name>-->
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
|
| <!-- Seam -->
|
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <filter>
| <filter-name>Seam Filter</filter-name>
| <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
| <servlet>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <url-pattern>/seam/resource/*</url-pattern>
| </servlet-mapping>
|
| <!-- MyFaces -->
|
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
|
| <!-- Facelets development mode (disable in production) -->
|
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <!-- JSF -->
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
|
| <!-- ************************ Trinidad resources servlet **************************** -->
| <servlet>
| <servlet-name>Trinidad Resources</servlet-name>
| <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
| </servlet>
|
| <!-- This cannot be configured currently -->
| <servlet-mapping>
| <servlet-name>Trinidad Resources</servlet-name>
| <url-pattern>/adf/*</url-pattern>
| </servlet-mapping>
|
| <security-constraint>
| <display-name>Restrict raw 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>
|
| </web-app>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024512#4024512
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024512
17Â years, 10Â months