[JBoss jBPM] - Problems with deploying on the jbpm-server (Starterskit)
by janripke
I downloaded the JBPM Eclipse called JBossIDE-2.0.0.Beta1-Bundle-win32 and the jbpm-starters-kit-3.1.2.
So far so good.
The JBPM Eclipse version works fine. Through the getting started guide i created the example proces flow and deployed it on the jbpm-server included in the jbpm-starters-kit-3.1.2.
After that i started the webclient and executed the proces flow. It works fine. But then...
I created a simple flow, a start-state, node and end-state. The node calls an self written actionhandler which implements the ActionHandler() class.
In the self written handler i connect to oracle database and execute a package procedure.
Within eclipse there is a testcase class, when executing this one everthing works fine. A connection is made and the package procedure is executed. After execution the procesflow steps to end-state and finishes the flow. Everthing works properly.
But now, i deploy it to the jbpm-server (starterskit). I can initialize the process button after the start-state node is finished it crashes with the following error.
javax.servlet.ServletException: Error calling action method of component with id taskform:transitionButton
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
root cause
javax.faces.FacesException: Error calling action method of component with id taskform:transitionButton
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
javax.faces.component.UICommand.broadcast(UICommand.java:106)
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
What is going here, can anyone help me out. What i'll do nothing seems to help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977182#3977182
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977182
19 years, 7 months
[EJB 3.0] - Re: NullPointerException in jboss calculator example
by haplo_3
i manage to isolate the problem
when i'm trying to run my jsp jboss says
18:06:37,901 ERROR [STDERR] javax.naming.NameNotFoundException: EJB3Trail not bound
18:06:37,903 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
18:06:37,904 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
18:06:37,905 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
18:06:37,907 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
18:06:37,908 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
18:06:37,909 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
18:06:37,911 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
18:06:37,912 ERROR [STDERR] at org.apache.jsp.my_002dapps.C_jsp._jspService(C_jsp.java:67)
18:06:37,913 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
18:06:37,915 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
18:06:37,916 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
18:06:37,917 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
18:06:37,919 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
18:06:37,920 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
18:06:37,921 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:06:37,921 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:06:37,922 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18:06:37,923 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
18:06:37,924 ERROR [STDERR] at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
18:06:37,924 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
18:06:37,926 ERROR [STDERR] at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
18:06:37,926 ERROR [STDERR] at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
18:06:37,927 ERROR [STDERR] at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
18:06:37,928 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
18:06:37,929 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
18:06:37,929 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
18:06:37,929 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
18:06:37,931 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
18:06:37,932 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
18:06:37,932 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:06:37,932 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:06:37,933 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18:06:37,935 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
18:06:37,935 ERROR [STDERR] at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
18:06:37,935 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
18:06:37,936 ERROR [STDERR] at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
18:06:37,936 ERROR [STDERR] at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
18:06:37,936 ERROR [STDERR] at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
18:06:37,938 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
18:06:37,939 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
18:06:37,939 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
18:06:37,939 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
18:06:37,940 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
18:06:37,940 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
18:06:37,940 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
18:06:37,943 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
18:06:37,943 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
18:06:37,943 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
18:06:37,944 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
18:06:37,944 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
18:06:37,944 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
18:06:37,947 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
18:06:37,947 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
18:06:37,947 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
18:06:37,948 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
18:06:37,948 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
im not crazy jboss deploy EJB3Trail
-------------------------------------------------
18:04:27,103 INFO [EARDeployer] Init J2EE application: file:/usr/jboss-4.0.4.GA/server/default/deploy/EJB3Trail.ear
18:04:28,422 INFO [TomcatDeployer] deploy, ctxPath=/EJB3Trail, warUrl=.../tmp/deploy/tmp5401EJB3Trail.ear-contents/web-exp.war/
18:04:29,659 INFO [EARDeployer] Started J2EE application: file:/usr/jboss-4.0.4.GA/server/default/deploy/EJB3Trail.ear
--------------------------------------------------------------------------
my jsp code is
-----------------------
<%@ page import="trail.sfsb.*,
javax.naming.*,
java.text.*,
java.util.ArrayList"%>
<%!
private NumberFormat nf = null;
public void jspInit () {
nf = NumberFormat.getInstance();
nf.setMaximumFractionDigits(2);
}
%>
<%
Calculator cal =
(Calculator) session.getAttribute("sfsb_cal");
if (cal == null) {
System.out.println(cal);
try {
InitialContext ctx = new InitialContext();
cal = (Calculator) ctx.lookup("EJB3Trail/StatefulCalculator/local");
session.setAttribute ("sfsb_cal", cal);
} catch (Exception e) {
e.printStackTrace ();
}
}
%>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977181#3977181
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977181
19 years, 7 months
[JBossCache] - Problem with inherited fields using the load-time instrument
by nogator
Hi
I am using PojoCache version 1.4.0 "Jalapeno".
I run with java JDK 5.0.
The Object I insert into the Cache is of class: "User".
"User" is a sub-class of class"Person".
Class Person has 2 fields "FirstName" and "LastName".
For preparing the objects to instrumentation I use the Annotation method (possible with JDK 5.0).
For the weaving stage, I have tried both the compile-time and load-time methods.
The compile-time method worked fine and all fields (including inherited "FirstName" and "LastName" fields) were passed to other members in the cluster.
However, when I tried using the load-time weaving, I encountered the following problem: All attributes from class "User" have been sent successfully to other members in the cluster but inherited fields ("FirstName" and "LastName") were not sent.
To make sure, I checked this using ethereal. My checks confirmed this.
I have seen updates sent to the cluster on all fields of "User" and no inherited "Person" fields.
Does anyone know what can cause this problem? is this a known bug?
I would appreciate any information on the subject.
Thanks
Noga
Btw, i tried all possible Annotations combination on classes "User" and "Person". no combination changed the situation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977172#3977172
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977172
19 years, 7 months