[JBoss jBPM] - Deploy process by ant task
by Olivier.ch
Hi,
I use jbpm-jpdl-3.2.GA, and I works with Eclipse + Designer. I am using JBPM process with hibernate and when I deploy my process by eclipse plugin my database doesn't seams to be updated ...
So I tryed to deploy it with ant script and the task.
But when the ant task is launched I get this error
| Problem: failed to create task or type deployprocess
| Cause: The name is undefined.
| Action: Check the spelling.
| Action: Check that any custom tasks/types have been declared.
| Action: Check that any <presetdef>/<macrodef> declarations have taken place.
|
I know what does it means but I didn't find the way to add this JBoss Task on my build.xml ...
Thanks for your help
Olivier
PS :
My database works fine and my hibernate.cfg.xml is correct : When i deploy a web application with my process, i see hibernate logs and every thing is ok ... But when i try to save my instance (jbpmConstxt.save() ...) an error exception occurs an tell that foreigns keys on the jbpm_node doesn't exists ... of course my process is not deployed on my database
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089617#4089617
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089617
18 years, 6 months
[JBoss Seam] - Data separation in a multi-tenant application
by jcruise
I am trying to implement multiple db support from a single web app. This bascially involves allowing the users to select their db on login. I have an ok strategy for switching the main app db. I simply define multiple entityManagerFactories and then use an expression for the entityManager component's entityManagerFactory attribute.
However, I also need to switch the Jbpm database.
My current best idea for how to do this involves changing the seam org.jboss.seam.bpm.jbpm component to allow it to select a specific jbpm configuration at runtime, depending on the value of an expression.
The underlying JbpmConfiguration class does support multiple configuration instances (e.g. JbpmConfiguration.getInstance("myjbpm.cfg.xml")) but the Seam component is application scoped and caches a single configuration instance for it's lifetime.
Unfortunately I can't replace this component with one of my own because it's referenced directly by the org.jboss.seam.bpm.jbpmContext class. I can't just replace this as well because it is referenced directly by just about every other Seam bpm component. Sigh.
I think that my best bet is to patch the Seam Jbpm component to support multiple configs.
Would this patch likely be accepted into the main codebase?
Does anyone have a better solution?
Cheers
J
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089616#4089616
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089616
18 years, 6 months
[JBoss Tools (users)] - Error occured during initializing the apache xml security in
by ey1122@nate.com
This error occured when the client sends a XML request to the server.
The server consisted of JBoss 4.0.4.GA + JDK 1.5 on Solaris Sun OS...
It's very strange error. Because I already tested this module on WinOS.
I guess it has a collasion with JBoss...
Have you ever experieced before?
Please give me a solution...
18:25:12,668 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started i
n 9s:744ms
18:25:16,634 INFO [STDOUT] fix OK@
18:25:16,699 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NoSuchMethodError: org.apache.xpath.compiler.FunctionTable.installFunction(Ljava/lang/String;Lorg/apache/xpath
/Expression;)I
at org.apache.xml.security.Init.init(Init.java:222)
at com.wider.drm.util.xml.XMLParser.(XMLParser.java:46)
at com.wider.drm.rifront.handler.PackagingHandler.(PackagingHandler.java:70)
at org.apache.jsp.rifront.test.packaging_jsp._jspService(packaging_jsp.java:54)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089611#4089611
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089611
18 years, 6 months
[JBoss Seam] - Re: Change Database Connection at Runtime
by stephen.friedrich
We had the same problem and never really found a solution for it.
The (business/legal) requirement was to store each clients financial data in a separate DB, but have a single web application where a use can switch between different clients (depending on authorizations).
We never really found a way to solve the problem. As a workaround we
did what Ralph proposed and individually configured lots of datasources (one for each client, plus a couple spare ones) with generic names and access the entity manager programmatically.
Besides being an ugly hack and wasting resources it does not really solve the problem the original poster is having:
What do you do if the database connection details are only delivered dynamically after login?
This would be dead-easy to do with JDBC, but Hibernate/JPA/Seam makes this hard to do.
@bravefencer (?): Put code into code tags!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089606#4089606
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089606
18 years, 6 months