[JBoss jBPM] - Not able to login as a different user
by danya
hi all,
I was doing the example given in the ebook "business process management with jboss jbpm" .I added new users to the hsql database but i am not able to login as those newly added users.
I am getting the following error:
HTTP Status 403 - Access to the requested resource has been denied
--------------------------------------------------------------------------------
type Status report
message Access to the requested resource has been denied
description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
--------------------------------------------------------------------------------
JBossWeb/2.0.1.GA
My process definition is <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2"
| name="simple">
| <swimlane name="hr">
| <assignment actor-id="hr" />
| </swimlane>
| <swimlane name="manager">
| <assignment actor-id="manager" />
| </swimlane>
| <swimlane name="Jobseeker">
| <assignment actor-id="Jobseeker" />
| </swimlane>
|
| <swimlane name="user">
| <assignment actor-id="user"></assignment>
| </swimlane>
|
| <start-state name="Apply for the Job">
| <task name="Applyforjob" swimlane="user">
| <controller>
| <variable access="read,write,required" name="Name" mapped-name="Name"></variable>
| <variable access="read,write,required" name="Marks" mapped-name="Marks"></variable>
| </controller>
| </task>
| <transition to="Resume evaluation" name="sendforEvaluation"></transition>
| <event type="node-enter"></event>
| </start-state>
| <task-node name="Resume evaluation">
| <task name="Resume Evaluation" swimlane="manager">
| <controller>
| <variable access="read,write,required" name="Name" mapped-name="Name"></variable>
| <variable access="read,write" name="Marks" mapped-name="Marks"></variable>
| </controller>
| </task>
| <transition to="Test Evaluation" name="Approved"></transition>
| <transition to="end" name="Rejected"></transition>
| <transition to="validate resume" name="to evaluate"></transition>
| </task-node>
|
| <task-node name="Test Evaluation">
| <task name="valuation" swimlane="manager">
| <controller></controller>
| </task>
| <transition to="end" name="Failed"></transition>
| <transition to="Interview" name="Pass"></transition>
| </task-node>
|
| <task-node name="Interview">
| <task name="interview result" swimlane="manager">
| <controller></controller>
| </task>
| <transition to="Selected " name="interview-cleared"></transition>
| <transition to="end" name="InterviewFailed"></transition>
| </task-node>
|
| <node name="Selected ">
| <transition to="end" name="to end"></transition>
| </node>
|
| <process-state name="validate resume">
| <sub-process name="Validate Mark"/>
| <transition to="end" name="to end"></transition>
| </process-state>
| <end-state name="end"></end-state>
| </process-definition>
I dont know where i have to edit to login as the new user...
Please help me
Thanks,
danya
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179509#4179509
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179509
16 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Can't start up JBoss
by senderj
Downloaded 4.2.3.GA. Set up jboss_home and included the bin in the path variable. After run.bat, the start up process stopped in the middle. Last message in the boot.log is
| 17:00:22,165 DEBUG [Server] Starting General Purpose Architecture (GPA)...
| 17:00:22,275 WARN [BasicMBeanRegistry] preRegister() failed for JMImplementation:type=MBeanServerDelegate:
| java.lang.NoSuchFieldError: TRACE
| at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:85) ........
|
and further down
| 17:00:22,275 DEBUG [Server] Failed to start
| java.lang.RuntimeException: Cannot create MBeanServer
| at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:239) .......
|
The installation was a clean one. So I think the problem is something outside the package. Can anybody help me on this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179507#4179507
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179507
16 years, 3 months
[JBoss Portal] - deploy portlet to display applets failure
by hubery
What I want to do is try to deploy a portlet to display applets, I used the example "helloworldjspportlet" downloaded from jboss portletswap.
My jboss portal version: GA2.6.6
I both changed helloworldjspportlet.java and porlet.xml file as following:
1, helloworldjspportlet.java
package org.jboss.portlet.hello;
import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
import javax.portlet.PortletRequestDispatcher;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.portlet.UnavailableException;
import java.io.IOException;
import java.applet.*;
import java.awt.*;
public class HelloWorldJSPPortlet extends GenericPortlet
{
protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException
{
rResponse.setContentType("text/html");
String sYourName = (String) rRequest.getParameter("yourname");
if(sYourName != null)
{
rRequest.setAttribute("yourname", sYourName);
PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/view2.jsp");
prd.include(rRequest, rResponse);
}
else
{
PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/view.jsp");
prd.include(rRequest, rResponse);
}
}
public void processAction(ActionRequest aRequest, ActionResponse aResponse) throws PortletException, IOException, UnavailableException
{
String sYourname = (String) aRequest.getParameter("yourname");
// do something
aResponse.setRenderParameter("yourname", sYourname);
}
protected void doHelp(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException
{
rResponse.setContentType("application/x-java-serialized-object");
PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/help.jsp");
prd.include(rRequest, rResponse);
}
protected void doEdit(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException
{
rResponse.setContentType("text/html");
PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/edit.jsp");
prd.include(rRequest, rResponse);
}
}
accoring to the setContextType ,I have tried "application/x-java-applet" "application/x-java-serialized-object" ,both failed.
2. portlet.xml file
<portlet-name>HelloWorldJSPPortlet</portlet-name>
<portlet-class>org.jboss.portlet.hello.HelloWorldJSPPortlet</portlet-class>
<mime-type>application/x-java-applet</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>EDIT</portlet-mode>
<portlet-mode>HELP</portlet-mode>
<portlet-info>
HelloWorld JSP Portlet
</portlet-info>
</portlet-app>
I have to say, the help.jsp in first file is a jsp which has applet inside.
When I use ant deploy and ant explode to re-deploy this example portlet and put it under /default/deploy directory, it gave me this error:
ERROR
Cause: java.lang.IllegalArgumentException: Content type not accepted
Message: Content type not accepted
StackTrace:
java.lang.IllegalArgumentException: Content type not accepted
at org.jboss.portal.portlet.impl.jsr168.api.RenderResponseImpl.setContentType(RenderResponseImpl.java:110)
at org.jboss.portlet.hello.HelloWorldJSPPortlet.doHelp(Unknown Source)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:137)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:306)
at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.invokeRender(PortletContainerImpl.java:483)
at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:405)
at org.jboss.portal.portlet.container.PortletContainerInvoker$1.invoke(PortletContainerInvoker.java:86)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:86)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N4547270787964792031.invokeNext(TransactionInterceptor$invokeNotSupported_N4547270787964792031.java)
at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:112)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N4547270787964792031.invokeNext(TransactionInterceptor$invokeNotSupported_N4547270787964792031.java)
at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N4547270787964792031.invokeNext(TransactionInterceptor$invokeNotSupported_N4547270787964792031.java)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
------ just a piece , from the error, it is not difficult to understand it is the
context type problem, but how to fix it ,anybody can give me a hand?
Thanks!
Hubery
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179497#4179497
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179497
16 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Cannot find FacesContext - Runtime Exception
by supiz85
Hi all ,
I am new to richfaces and am trying to deploy my app in jboss. It deploys complelty , but while i try to open the page , it gives me runtime exception.
here are my web.xml, faces-config.xml and the jspx page.
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" 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">
<display-name>a4jEchoText</display-name>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
REQUEST
FORWARD
INCLUDE
</filter-mapping>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
FORWARD
REQUEST
INCLUDE
</filter-mapping>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
<!-- Faces Servlet -->
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<!-- Welcome files -->
<welcome-file-list>
<welcome-file>echo.jspx</welcome-file>
</welcome-file-list>
</web-app>
faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>userBean</managed-bean-name>
<managed-bean-class>com.richfacedemo.beans.UserBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<to-view-id>echo.jspx</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
echo.jspx
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:form>
<rich:panel bodyClass="rich-laguna-panel-no-header">
<a4j:commandButton value="Set Name to Alex" reRender="rep" >
<a4j:actionparam name="username" value="Alex" assignTo="#{userBean.name}"/>
</a4j:commandButton>
<rich:spacer width="20" />
<a4j:commandButton value="Set Name to John" reRender="rep" >
<a4j:actionparam name="username" value="John" assignTo="#{userBean.name}"/>
</a4j:commandButton>
</rich:panel>
<rich:spacer height="1" />
<rich:panel bodyClass="rich-laguna-panel-no-header">
<h:outputText id="rep" value="Selected Name:#{userBean.name}"/>
</rich:panel>
</h:form>
</ui:composition>
------------------
can anyone please help me to know about the exact problem?
Thanks in advance
Supriya
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179487#4179487
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179487
16 years, 3 months