[JBoss Tools (users)] - Deplyemnet Problems with JBPM in Eclipse
by arvindara
Hi ,
I try to deply a JBOSS JBPM sample from eclipse . I get the deplyement successful message and in the end I get a trace in the server cos of which I am not able to view my sample aplicaytion . Could anyone tell me the problem here .
01:01:26,390 ERROR [STDERR] org.apache.commons.fileupload.FileUploadException: t
he request was rejected because no multipart boundary was found
01:01:26,390 ERROR [STDERR] at org.apache.commons.fileupload.FileUploadBase.
parseRequest(FileUploadBase.java:324)
01:01:26,390 ERROR [STDERR] at org.apache.commons.fileupload.FileUploadBase.
parseRequest(FileUploadBase.java:268)
01:01:26,390 ERROR [STDERR] at org.jbpm.web.ProcessUploadServlet.handleReque
st(ProcessUploadServlet.java:72)
01:01:26,390 ERROR [STDERR] at org.jbpm.web.ProcessUploadServlet.service(Pro
cessUploadServlet.java:56)
01:01:26,390 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:810)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:252)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
01:01:26,390 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilte
r.doFilter(ReplyHeaderFilter.java:96)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:202)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:213)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:178)
01:01:26,390 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssocia
tionValve.invoke(SecurityAssociationValve.java:175)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.authenticator.Authenticat
orBase.invoke(AuthenticatorBase.java:432)
01:01:26,390 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValv
e.invoke(JaccContextValve.java:74)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.in
voke(StandardHostValve.java:126)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.i
nvoke(ErrorReportValve.java:105)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:107)
01:01:26,390 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.s
ervice(CoyoteAdapter.java:148)
01:01:26,390 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.proc
ess(Http11Processor.java:869)
01:01:26,390 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$H
ttp11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
01:01:26,390 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.pr
ocessSocket(PoolTcpEndpoint.java:527)
01:01:26,390 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerT
hread.run(MasterSlaveWorkerThread.java:112)
01:01:26,390 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080145#4080145
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080145
17Â years, 2Â months
[JBoss AOP] - Re: dynamic cflow double call
by flavia.rainoneï¼ jboss.com
anonymous wrote : 1 - As per section 10.4, by default the aop bindings are global to whole VM. What happens if aop is deployed after the deployments of ear? Would all aspectized ear be instrumented?
When using load-time weaving, if aop is deployed after the deployements of ear, it won't work. Since the weaving takes place during load-time, deploying aop before the ear file is the only way to ensure that the application will be loaded after the deployment of your aop file.
anonymous wrote : If not, can it be enfoced to do so!
I think that deploying a jboss-aop.xml to the deploy dir with prepare pointcut expressions should work. But I haven't tried it.
anonymous wrote : Should section 10.4 (below) include 'deploy-hasingleton' folder beside 'deploy' folder?
|
I think you are right, we will fix this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080138#4080138
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080138
17Â years, 2Â months
[JBoss Messaging] - Re: Messaging bridge question
by chip_schoch
I am trying CR2 but after the first time I start the server, whenever I restart I get a duplicate key exception on JBM_DUAL. It looks like it is executing the insert on startup and the insert is :
INSERT_DUAL=INSERT INTO JBM_DUAL VALUES (1)
The table creation:
CREATE_DUAL=CREATE TABLE JBM_DUAL (DUAL_DUMMY INTEGER, PRIMARY KEY (DUAL_DUMMY))
I don't know what the objective of this is so I really don't know how
INSERT_MESSAGE_CONDITIONAL=INSERT INTO JBM_MSG (MESSAGE_ID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, TYPE) SELECT ?, ?, ?, ?, ?, ? FROM JBM_DUAL WHERE NOT EXISTS (SELECT MESSAGE_ID FROM JBM_MSG WHERE MESSAGE_ID = ?)
would work.
This is from the sybase-persistenc.xml file.
I anticipate being enlightened.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080135#4080135
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080135
17Â years, 2Â months
[JBoss Seam] - Need help with <h:selectOneMenu> and valueChangeListener met
by asookazian
Using JBoss 4.0.5 and Seam 1.2.1.GA.
In the below .xhtml file, the valueChangeListener="#{userRoleSearch.processValueChange}" does not fire the public processValueChange method in my SFSB when the commented <s:div> and </s:div> tags around it are uncommented. It does execute when the tags are commented. In either case, the drop-down is rendered.
Why does this happen? I experienced the same thing with the <s:fragment> tag. Any help would be greatly appreciated...
|
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| template="layout/template.xhtml">
|
|
|
| <ui:define name="body">
|
| <h:messages globalOnly="true" styleClass="message"/>
|
| <rich:panel>
|
| <h:form>
| <h:outputText id="userRoleInfo" value="User-Role Information"/><br/>
| <h:outputText id="firstName" value="First Name:"/>
| <h:outputText id="lastName" value="Last Name:"/><br/>
| <h:inputText id="inputFirstName" value="#{userRoleSearch.searchStringFirstName}"/>
| <h:inputText id="inputLastName" value="#{userRoleSearch.searchStringLastName}"/>
|
| <h:commandButton id="searchButton" value="Search" action="#{userRoleSearch.getUsers}"/>
| <h:commandButton id="resetButton" value="Reset" type="reset"/><br/><br/>
|
| <h:outputText value="No Users Found" rendered="#{userRoleSearch.isDisplay and userRoleSearch.rowCount==0}"/>
|
| <!-- <s:div id="selectUserDD" rendered="#{userRoleSearch.isDisplay and userRoleSearch.rowCount>0}"> -->
|
| <h:outputText value="Select a user:"/>
|
| <h:selectOneMenu id="userFnameLname" valueChangeListener="#{userRoleSearch.processValueChange}" onchange="submit()">
| <f:selectItems value="#{userRoleSearch.populateUsers}"/>
| </h:selectOneMenu><br/><br/>
|
| <!-- </s:div> -->
|
|
| <s:div id="selectRoleCheckBox" rendered="#{!empty userRoleSearch.currentUserId}">
| <h:selectManyCheckbox id="userRoles">
| <f:selectItems value="#{userRoleSearch.userRoles}"/>
| </h:selectManyCheckbox>
| </s:div>
|
|
| <s:link id="viewUserRoleSummary" value="View User-Role Summary" view="/filterRoles.xhtml"/>
|
|
| </h:form>
|
| </rich:panel>
|
|
| </ui:define>
| </ui:composition>
SFSB:
package com.cox.beans.session;
|
| import java.sql.CallableStatement;
| import java.sql.Connection;
| import java.sql.DriverManager;
| import java.sql.ResultSet;
| import java.sql.SQLException;
| import java.util.ArrayList;
| import java.util.HashMap;
| import java.util.List;
|
| import javax.ejb.Remove;
| import javax.ejb.Stateful;
| import javax.faces.context.FacesContext;
| import javax.faces.event.ValueChangeEvent;
|
| import org.apache.log4j.Logger;
| import org.jboss.seam.annotations.Destroy;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Name;
|
| @Stateful
| @Name("userRoleSearch")
| public class UserRoleSearchSFSB implements UserRoleSearchSFSBLocal {
|
| private String searchStringFirstName = "";
| private String searchStringLastName = "";
| private String currentUserId = "";
| private boolean isDisplay = false;
|
| private ResultSet rs = null;
| private CallableStatement cstmt = null;
| private Connection con = null;
| private HashMap<String, String> hm = null;
| private HashMap<String, String> hm2 = null;
|
| Logger log = Logger.getLogger(this.getClass());
|
| int rowCount = 0;
|
| public void getUsers() {
|
| log.info("getUsers(): searchStringFirstName = " + searchStringFirstName);
| log.info("getUsers(): searchStringLastName = " + searchStringLastName);
|
| try {
| String url = "jdbc:sqlserver://CORG0DV01:1433;databaseName=JavaTestDB";
| con = DriverManager.getConnection(url, "_AppUser_JavaTestAcct", "JavaTestAcct");
| cstmt = con.prepareCall("{call usp_u_adm_select_UserList(?, ?)}");
| cstmt.setString(1, searchStringFirstName);
| cstmt.setString(2, searchStringLastName);
| rs = cstmt.executeQuery();
|
| log.info("rs.next() = " + rs.next());
|
| hm = new HashMap<String, String>();
|
| while(rs.next()) {
| hm.put(rs.getString("UserID"), rs.getString("Name"));
|
| String name = rs.getString("Name");
| log.info("getUsers(): name = " + name);
|
| String UserID = rs.getString("UserID");
| log.info("getUsers(): UserID = " + UserID);
|
| rowCount++;
| }
| log.debug("in getUsers: rowCount = " + rowCount);
|
| }
| catch(Exception e) {
| e.printStackTrace();
| }
| finally {
| this.cleanUp();
| }
|
| //search button clicked so set isDisplay to false so <div> in adminUserRoles.xhtml can check for display purposes
| isDisplay = true;
|
|
|
| }
|
| public HashMap getPopulateUsers() {
|
| log.info("getPopulateUsers(): searchStringFirstName = " + searchStringFirstName);
| log.info("getPopulateUsers(): searchStringLastName = " + searchStringLastName);
|
| try {
|
| String url = "jdbc:sqlserver://CORG0DV01:1433;databaseName=JavaTestDB";
| Connection con = DriverManager.getConnection(url, "_AppUser_JavaTestAcct", "JavaTestAcct");
|
| if (con == null) {
| log.debug("con is null");
| }
|
| cstmt = con.prepareCall("{call usp_u_adm_select_UserList(?, ?)}");
| cstmt.setString(1, searchStringFirstName);
| cstmt.setString(2, searchStringLastName);
| rs = cstmt.executeQuery();
|
| log.debug("rs.getRow() = " + rs.getRow());
|
| hm = new HashMap<String, String>();
|
| while(rs.next()) {
| hm.put(rs.getString("Name"), rs.getString("UserID"));
|
| String name = rs.getString("Name");
| log.info("getPopulateUsers(): name = " + name);
|
| String UserID = rs.getString("UserID");
| log.info("getPopulateUsers(): UserID = " + UserID);
|
| }
|
| }
| catch(Exception e) {
| e.printStackTrace();
| }
| finally {
| this.cleanUp();
| }
|
| return hm;
|
| }
|
| public HashMap getUserRoles() {
|
| log.info("in getUserRoles()");
|
| if(hm2==null) {
| log.info("damn thing is null");
| }
| return hm2;
|
| }
|
| public void processValueChange(ValueChangeEvent value) {
| log.info("begin processValueChange()");
|
| currentUserId = (String)value.getNewValue();
| log.info("processValueChange(): currentUserId = " + currentUserId);
|
| try {
|
| String url = "jdbc:sqlserver://CORG0DV01:1433;databaseName=JavaTestDB";
| Connection con = DriverManager.getConnection(url, "_AppUser_JavaTestAcct", "JavaTestAcct");
|
| cstmt = con.prepareCall("{call usp_u_adm_select_UserRole(?)}");
| cstmt.setString(1, currentUserId);
| rs = cstmt.executeQuery();
|
| hm2 = new HashMap<String, String>();
|
| while(rs.next()) {
| hm2.put(rs.getString("Name"), rs.getString("IsChecked"));
|
| String name = rs.getString("Name");
| log.info("getUserRoles(): name = " + name);
|
| String isChecked = rs.getString("IsChecked");
| log.info("getUserRoles(): IsChecked = " + isChecked);
|
| }
|
| log.info("processValueChange(): rowCount = " + rowCount);
|
| }
| catch(Exception e) {
| e.printStackTrace();
| }
| finally {
| this.cleanUp();
| }
|
|
| }
|
|
| public String getCurrentUserId() {
| log.info("in getCurrentUserId: currentUserId = " + currentUserId);
| return currentUserId;
| }
|
| public void setCurrentUserId(String currentUserId) {
| log.info("in setCurrentUserId: currentUserId = " + currentUserId);
| this.currentUserId = currentUserId;
| }
|
| public String getSearchStringFirstName() {
| return searchStringFirstName;
| }
|
| public void setSearchStringFirstName(String searchStringFirstName) {
| log.info("in setSearchStringFirstName");
| this.searchStringFirstName = searchStringFirstName;
| }
|
| public String getSearchStringLastName() {
| return searchStringLastName;
| }
|
| public void setSearchStringLastName(String searchStringLastName) {
| log.info("in setSearchStringLastName");
| this.searchStringLastName = searchStringLastName;
| }
|
| public boolean getIsDisplay() {
| log.info("in getIsDisplay: isDisplay = " + this.isDisplay);
| return this.isDisplay;
| }
|
| public int getRowCount() {
| log.info("in getRowCount: rowCount = " + rowCount);
|
| return rowCount;
| }
|
| private void cleanUp() {
| try {
| if (rs != null) rs.close();
| if (cstmt != null) cstmt.close();
| if (con != null) con.close();
| }
| catch(SQLException e) {
| e.printStackTrace();
| }
| }
|
|
| @Remove @Destroy
| public void destroy() {
| log.info("destroy() called");
| }
|
|
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080132#4080132
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080132
17Â years, 2Â months