[JBoss jBPM] - Workflow without DB/Service-Invocations? Is there a simpler
by rainersimon
Hi,
I'm trying to achieve the following goal, and I don't know how to do it in a clever way yet - i.e. without creating a proprietary solution to a problem that someone else has probably solved (better) already:
I'm planning to build a servlet filter that redirects visitors of the same URL to different documents. The redirect-decision should be made based on a decision graph - similar to a workflow graph - and a bunch of parameters stored in the HttpSession context.
I could just hard-code the decision graph into the servlet filter. But I want to be able to change the graph (i.e. the decision logic) without changing the code of the Filter...
I know this should be possible with jBPM. But since there is no interaction with with databases, Web services, or human actors in the decision logic, it seems that I'm following an overly complicated route to achieve a relatively simple goal.
Is there an easier way to do this? Any comments are welcome. At the moment I don't even know what words to Google for ;-)
Thanks,
Ray
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117043#4117043
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117043
18 years, 6 months
[JBoss Seam] - FacesContext is null in Identity.initCredentialsFromCookie
by jayliu2000
Hi. I'm working on a seam application (with Seam 2.0 GA) and now I want to use the "rememberMe" feature. The application is deployed to tomcat 6.0 and I'm using myfaces 1.2.
The problem is that the "rememberMe" feature of Seam never works for me and I tried to debug into the codes and fount that when Identity.initCredentialsFromCookie() was invoked, after the first line of this method:
FacesContext ctx = FacesContext.getCurrentInstance();
|
ctx is null.
Can anybody give me some hints?
This is my components.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <components xmlns="http://jboss.com/products/seam/components"
| xmlns:core="http://jboss.com/products/seam/core"
| xmlns:persistence="http://jboss.com/products/seam/persistence"
| xmlns:transaction="http://jboss.com/products/seam/transaction"
| xmlns:security="http://jboss.com/products/seam/security"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
| http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
| http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd
| http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
| http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
|
| <core:manager conversation-timeout="120000"
| concurrent-request-timeout="500" conversation-id-parameter="cid" />
| <core:init jndi-pattern="#{ejbName}/local" debug="false" />
|
| <transaction:entity-transaction entity-manager="#{em}" />
|
| <persistence:entity-manager-factory name="myDatabase" />
|
|
| <persistence:managed-persistence-context name="em"
| auto-create="true" entity-manager-factory="#{myDatabase}" />
|
| <security:identity
| authenticate-method="#{authenticator.authenticate}" />
|
| <event type="org.jboss.seam.notLoggedIn">
| <action execute="#{redirect.captureCurrentView}" />
| </event>
|
|
| <event type="org.jboss.seam.postAuthenticate">
| <action execute="#{redirect.returnToCapturedView}" />
| </event>
|
| </components>
|
This is my faces-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
| <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
|
| <application>
|
| <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
| <locale-config>
| <default-locale>en</default-locale>
| <supported-locale>en</supported-locale>
|
| </locale-config>
| </application>
|
|
| </faces-config>
|
This is my web.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
| <!-- Seam -->
|
| <listener>
| <listener-class>
| org.jboss.seam.servlet.SeamListener
| </listener-class>
| </listener>
|
| <filter>
| <filter-name>Seam Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
| </filter>
|
| <filter>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <filter-class>
| org.apache.myfaces.webapp.filter.ExtensionsFilter
| </filter-class>
| </filter>
| <filter>
| <display-name>Ajax4jsf Filter</display-name>
| <filter-name>ajax4jsf</filter-name>
| <filter-class>org.ajax4jsf.Filter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>ajax4jsf</filter-name>
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
| <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
| <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| </filter-mapping>
|
|
|
| <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.SeamResourceServlet
| </servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <url-pattern>/seam/resource/*</url-pattern>
| </servlet-mapping>
|
| <!-- Faces Servlet -->
|
| <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>
|
| <!-- JSF parameters -->
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.jspx</param-value>
| </context-param>
| <context-param>
| <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
| <param-value>com.sun.facelets.FaceletViewHandler</param-value>
| </context-param>
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>/WEB-INF/tags/mocia.taglib.xml</param-value>
| </context-param>
| <context-param>
| <param-name>
| org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
| </param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
| <param-value>true</param-value>
|
| </context-param>
| <session-config>
| <session-timeout>10</session-timeout>
| </session-config>
| <welcome-file-list>
| <welcome-file>index.jsp</welcome-file>
| </welcome-file-list>
|
|
| </web-app>
|
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117030#4117030
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117030
18 years, 6 months
[JBoss Seam] - Re: How to control end of conversations/state of stateful be
by trouby
"pete.muir(a)jboss.org" wrote : "trouby" wrote : Well, sorry for being so annoying but I still don't get the point, If I have buttons that should start a conversation, propagation='none' is not an option
|
| Normally I find that you don't want to start a new conversation whilst another one is running. Post your use case for this.
My case? I think it's any case with buttons that always exist on the template,
Lets make an example:
I have a top menu(that is always with visible) with few options,
[my items: a, b, c, d]
Pressing on one item should start a conversation, as this item is heavily being managed later on.
I have added a 'done' button with propagation='none' but no one is using it : )
Pressing on another item(from the menu) in the middle of the current long running conversation causes the error,
I solved it by 'joining' to the current conversation just to fix the error but this is not too logical as the last selected item is not being managed by the user anymore.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117020#4117020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117020
18 years, 6 months
[JBossWS] - how to get password in handler
by jalaja
hi
i am using jax-ws handlers,i have set username and paddword property in client side
Map context = ((BindingProvider) hello).getRequestContext();
context.put(BindingProvider.USERNAME_PROPERTY, "user");
context.put(BindingProvider.PASSWORD_PROPERTY, "pass");
in the handler i want to access username and password
i am able to get username
public boolean handleMessage(MessageContext context) {
javax.servlet.http.HttpServletRequest httpServletRequest = ((javax.servlet.http.HttpServletRequest)context.get(MessageContext.SERVLET_REQUEST));
System.out.println("user name"+httpServletRequest.getRemoteUser());
System.out.println("principle"+httpServletRequest.getUserPrincipal());
return true;
}
i am getting fallowing output from the handler
user name user
user username="user" password="pass" roles="basicUser"
but i need password alone ....
how to get password alone...which property i have to use
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117016#4117016
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117016
18 years, 6 months
[JBoss Seam] - Seam transaction problem (maybe unclear)
by dreuzel
I need to do a lot of independent updates in one session.(JTA)
principaly I need multiple Begin/commit sessions
and I use a delegate session to handle the transactions.
even though (all/most) transactions are commited successfull
i suffer from the main transaction being timed out.
This apearently causes all (previously committed ??!?) transactions to be rolled back
I understand, seam handles the transactions itself using (8.2Seam manged transactions )
mentions :
use an extended persistence context that is scoped to the conversation, instead of to the transaction
use two transactions per request; the first spans the beginning of the update model values phase until the end of the invoke application phase; the second spans the render response phase
is there some solution to the problem , Whatever happens a long
operation gets terminated by a timeout
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117013#4117013
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117013
18 years, 6 months
[JBoss jBPM] - Problem sending mail in JBPM
by debnathm
Hi
I am facing a problem sending mail in JBPM. I'm using a mail node.
In the designer, in the mail info, I have mentioned:
Destination : To
Email : email in standard format e.g. abc(a)somecompany.com
Subject : test mail from JBPM
Body: test
The contents of the jbpm.cfg.xml is as follows:
<jbpm-configuration>
<string name="jbpm.mail.smtp.host" value=(standard ip address
of mail server) />
</jbpm-configuration>
I have edited the jbpm.cfg.xml in the src/main/config in the
left pane of the designer and included this file while deploying.
The process however is unable to send mail. The error is
shown in a stack trace as attached below.
If you have any ideas please let me know.
Thanks,
Debnath
16:39:52,337 ERROR [GraphElement] action threw exception: couldn't send email
org.jbpm.JbpmException: couldn't send email
at org.jbpm.mail.Mail.send(Mail.java:152)
at org.jbpm.mail.Mail.send(Mail.java:116)
at org.jbpm.mail.Mail.execute(Mail.java:63)
at org.jbpm.graph.def.Action.execute(Action.java:122)
at org.jbpm.graph.def.Action$$FastClassByCGLIB$$7876e90e.invoke(<generat
ed>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLa
zyInitializer.java:163)
at org.jbpm.graph.def.Action$$EnhancerByCGLIB$$52fea928.execute(<generat
ed>)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
at org.jbpm.graph.node.MailNode.execute(MailNode.java:29)
at org.jbpm.graph.def.Node.enter(Node.java:319)
at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLa
zyInitializer.java:163)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$5994afcc.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:394)
at org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:1
36)
at org.jbpm.graph.node.Decision.execute(Decision.java:152)
at org.jbpm.graph.def.Node.enter(Node.java:319)
at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLa
zyInitializer.java:163)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$5994afcc.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:394)
at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
at org.jbpm.graph.node.TaskNode$$FastClassByCGLIB$$923668a4.invoke(<gene
rated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLa
zyInitializer.java:163)
at org.jbpm.graph.node.TaskNode$$EnhancerByCGLIB$$95985f8a.leave(<genera
ted>)
at org.jbpm.graph.exe.Token.signal(Token.java:195)
at org.jbpm.graph.exe.Token.signal(Token.java:140)
at org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke(<generate
d>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLa
zyInitializer.java:163)
at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$88ee1d48.signal()
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:485)
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:399)
at org.jbpm.jsf.core.action.CompleteTaskActionListener.handleAction(Comp
leteTaskActionListener.java:47)
at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmAc
tionListenerWrapper.java:82)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:
758)
at javax.faces.component.UICommand.broadcast(UICommand.java:368)
at org.jbpm.jsf.taskform.ui.UITaskFormButtonBase.broadcast(UITaskFormBut
tonBase.java:56)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:7
52)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
ionPhase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: Socket is not connected: recv failed
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at org.jbpm.mail.Mail.send(Mail.java:150)
... 69 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116996#4116996
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116996
18 years, 6 months
[JBoss Seam] - Re: Developing with Seam 2 and deploying on WebSphere
by Techieexchange
Hi,
"pete.muir(a)jboss.org" wrote : Yes, Websphere comes with JSF 1.1, not 1.2.
|
| Did you follow the instructions for deploying to websphere discussed in the jpa/hibernate2 examples?
I tried to deploy JPA example (target:Websphere) build and deployed on WAS 6.1 express. I just did exactly how it was guided in read-me file of JPA example.
First i got:
| java.lang.ClassCastException:
| org.jboss.seam.jsf.SeamApplication11 incompatible with com.sun.faces.application.ApplicationImpl at com.ibm.ws.jsf.configuration.FacesConfigParser.createFacesFactories
| (FacesConfigParser.java:1019)
| at com.ibm.ws.jsf.configuration.FacesConfigParser.initializeConfiguration FacesConfigParser.java:354)
| at com.ibm.ws.jsf.util.FacesConfigUtil._parseJSFConfiguration (FacesConfigUtil.java:128)
|
then I installed latest fix pack, as recommended here:
http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg1PK47367
Again i re-deployed the same JPA example and now i'm getting:
| [04.01.08 11:46:46:281 CET] 00000021 ExceptionFilt E org.jboss.seam.log.JDKProvider error exception root cause
| [04.01.08 11:46:46:281 CET] 00000021 WebApp E [Servlet Error]-[Faces Servlet]: java.lang.NoSuchMethodError: org/jboss/seam/ui/component/UISeamCommandBase.getValueExpression(Ljava/lang/String;)Ljavax/el/ValueExpression;
| at org.jboss.seam.ui.component.UISeamCommandBase.getUrl(UISeamCommandBase.java:86)
| at org.jboss.seam.ui.renderkit.LinkRendererBase.doEncodeBegin(LinkRendererBase.java:26)
| at org.jboss.seam.ui.util.cdk.RendererBase.encodeBegin(RendererBase.java:79)
| at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:717)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:594)
| at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
| at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
| at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
| at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
| at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
| at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
| at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
| at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:766)
| at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:674)
| at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
| at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
| at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)
| at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
| at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
| at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
| at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
| at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
| at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
| at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
| at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
| at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
| at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
| at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
| at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
| at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
| at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
| at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
| at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
| at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
|
I know there was some JAR incompatibility but how can i find it?
If you say WAS has only JSF 1.1, then how could JPA example worked for you.
Eventhough i tried all tricks by replacing IBM JSF libs / el-api, impl jars etc., but no success yet.
My customers are very impressed on Seam so i have to run atleast a live Seam example as "Proof of Technology".
Please help me.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116986#4116986
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116986
18 years, 6 months
[JBoss Seam] - [Beginner] launching a non-predefined workflow. Is my approa
by jbaton
Hi all,
I'm new to Seam+Jbpm.
I have to start a simple workflow (a few nodes long), that contains a task for each user that the workflow initiator has chosen amongst a list of users.
All I have is their username. The number of selected users is variable.
I thought of generating the Jpdl definition through Freemarker.
The N tasks are after a fork.
The general form of my workflow is, (for 3 users)
| Start
| |
| Node1
| |
| fork
| | | |
| user1Task,user2Task,user3Task
| | | |
| join
| |
| node2
| |
| end
|
Then, I register the definition and create an instance.
I noticed that unfortunately, Freemarker's directives, based on the sharp #sign collide with the JSF-EL and then, it's not possible to use JSF beans methods as actions but only ActionHandlers (unless I replace the JSFEL before and after the FM processing).
Is my approach correct ? It seems a bit complicated
What is the simple way to share data between ActionHandlers ?
Thank you
Jerome
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116981#4116981
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116981
18 years, 6 months
[Security & JAAS/JBoss] - Re: Can't get Trace output from JBoss Login Modules
by juhap
I was having the same problem. After doing some changes to jboss-log4j.xml I can now see TRACE messages from login modules:
| 2008-01-04 12:48:48,977 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] initialize, instance=@7662474
| 2008-01-04 12:48:48,977 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] Security domain: my-web
| 2008-01-04 12:48:48,977 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] Saw unauthenticatedIdentity=guest
| 2008-01-04 12:48:48,977 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] DatabaseServerLoginModule, dsJndiName=java:/DefaultDS
|
My jboss-log4j.xml is:
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
|
| <!-- ===================================================================== -->
| <!-- -->
| <!-- Log4j Configuration -->
| <!-- -->
| <!-- ===================================================================== -->
|
| <!-- $Id: jboss-log4j.xml 65459 2007-09-19 00:25:51Z dimitris(a)jboss.org $ -->
|
| <!--
| | For more configuration infromation and examples see the Jakarta Log4j
| | owebsite: http://jakarta.apache.org/log4j
| -->
|
| <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
|
| <!-- ================================= -->
| <!-- Preserve messages in a local file -->
| <!-- ================================= -->
|
| <!-- A time/date based rolling appender -->
| <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.log.dir}/server.log"/>
| <param name="Append" value="false"/>
|
| <!-- Rollover at midnight each day -->
| <param name="DatePattern" value="'.'yyyy-MM-dd"/>
|
| <!-- Rollover at the top of each hour
| <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
| -->
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
|
| <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
| <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/>
| -->
| </layout>
| </appender>
|
| <!-- A size based file rolling appender
| <appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.log.dir}/server.log"/>
| <param name="Append" value="false"/>
| <param name="MaxFileSize" value="1000KB"/>
| <param name="MaxBackupIndex" value="1"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
| </layout>
| </appender>
| -->
|
| <!-- ============================== -->
| <!-- Append messages to the console -->
| <!-- ============================== -->
|
| <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Target" value="System.out"/>
| <param name="Threshold" value="DEBUG"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <!-- The default pattern: Date Priority [Category] Message\n -->
| <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
| </layout>
| </appender>
|
| <!-- ====================== -->
| <!-- More Appender examples -->
| <!-- ====================== -->
|
| <!-- Buffer events and log them asynchronously
| <appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <appender-ref ref="FILE"/>
| <appender-ref ref="CONSOLE"/>
| <appender-ref ref="SMTP"/>
| </appender>
| -->
|
| <!-- EMail events to an administrator
| <appender name="SMTP" class="org.apache.log4j.net.SMTPAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Threshold" value="ERROR"/>
| <param name="To" value="admin(a)myhost.domain.com"/>
| <param name="From" value="nobody(a)myhost.domain.com"/>
| <param name="Subject" value="JBoss Sever Errors"/>
| <param name="SMTPHost" value="localhost"/>
| <param name="BufferSize" value="10"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
| </layout>
| </appender>
| -->
|
| <!-- Syslog events
| <appender name="SYSLOG" class="org.apache.log4j.net.SyslogAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Facility" value="LOCAL7"/>
| <param name="FacilityPrinting" value="true"/>
| <param name="SyslogHost" value="localhost"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m%n"/>
| </layout>
| </appender>
| -->
|
| <!-- Log events to JMS (requires a topic to be created)
| <appender name="JMS" class="org.apache.log4j.net.JMSAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="Threshold" value="ERROR"/>
| <param name="TopicConnectionFactoryBindingName" value="java:/ConnectionFactory"/>
| <param name="TopicBindingName" value="topic/MyErrorsTopic"/>
| </appender>
| -->
|
| <!-- Log events through SNMP
| <appender name="TRAP_LOG" class="org.apache.log4j.ext.SNMPTrapAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="ImplementationClassName" value="org.apache.log4j.ext.JoeSNMPTrapSender"/>
| <param name="ManagementHost" value="127.0.0.1"/>
| <param name="ManagementHostTrapListenPort" value="162"/>
| <param name="EnterpriseOID" value="1.3.6.1.4.1.24.0"/>
| <param name="LocalIPAddress" value="127.0.0.1"/>
| <param name="LocalTrapSendPort" value="161"/>
| <param name="GenericTrapType" value="6"/>
| <param name="SpecificTrapType" value="12345678"/>
| <param name="CommunityString" value="public"/>
| <param name="ForwardStackTraceWithTrap" value="true"/>
| <param name="Threshold" value="DEBUG"/>
| <param name="ApplicationTrapOID" value="1.3.6.1.4.1.24.12.10.22.64"/>
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d,%p,[%t],[%c],%m%n"/>
| </layout>
| </appender>
| -->
|
| <!-- Emit events as JMX notifications
| <appender name="JMX" class="org.jboss.monitor.services.JMXNotificationAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
|
| <param name="Threshold" value="WARN"/>
| <param name="ObjectName" value="jboss.system:service=Logging,type=JMXNotificationAppender"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m"/>
| </layout>
| </appender>
| -->
|
| <!-- ================ -->
| <!-- Limit categories -->
| <!-- ================ -->
|
| <category name="org.jboss">
| <priority value="TRACE"/>
| </category>
|
|
| <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->
| <category name="org.apache">
| <priority value="INFO"/>
| </category>
|
| <!-- Limit the jacorb category to WARN as its INFO is verbose -->
| <category name="jacorb">
| <priority value="WARN"/>
| </category>
|
| <!-- Limit the org.jgroups category to WARN as its INFO is verbose -->
| <category name="org.jgroups">
| <priority value="WARN"/>
| </category>
|
| <!-- Limit the org.quartz category to INFO as its DEBUG is verbose -->
| <category name="org.quartz">
| <priority value="INFO"/>
| </category>
|
| <!-- Limit JBoss categories
| <category name="org.jboss">
| <priority value="INFO"/>
| </category>
| -->
|
| <!-- Limit the JSR77 categories -->
| <category name="org.jboss.management">
| <priority value="INFO"/>
| </category>
|
| <!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max]
| <category name="org.jboss.resource.connectionmanager.JBossManagedConnectionPool">
| <priority value="TRACE"/>
| </category>
| -->
|
| <!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -->
| <category name="org.jboss.serial">
| <priority value="INFO"/>
| </category>
|
| <!-- Decrease the priority threshold for the org.jboss.varia category
| <category name="org.jboss.varia">
| <priority value="DEBUG"/>
| </category>
| -->
|
| <!-- Enable JBossWS message tracing
| <category name="org.jboss.ws.core.MessageTrace">
| <priority value="TRACE"/>
| </category>
| -->
|
| <!--
| | An example of enabling the custom TRACE level priority that is used
| | by the JBoss internals to diagnose low level details. This example
| | turns on TRACE level msgs for the org.jboss.ejb.plugins package and its
| | subpackages. This will produce A LOT of logging output.
| |
| | Note: since jboss AS 4.2.x, the trace level is supported natively by
| | log4j, so although the custom org.jboss.logging.XLevel priority will
| | still work, there is no need to use it. The two examples that follow
| | will both enable trace logging.
| <category name="org.jboss.system">
| <priority value="TRACE" class="org.jboss.logging.XLevel"/>
| </category>
| <category name="org.jboss.ejb.plugins">
| <priority value="TRACE"/>
| </category>
| -->
|
| <!--
| | Logs these events to SNMP:
| - server starts/stops
| - cluster evolution (node death/startup)
| - When an EJB archive is deployed (and associated verified messages)
| - When an EAR archive is deployed
|
| <category name="org.jboss.system.server.Server">
| <priority value="INFO" />
| <appender-ref ref="TRAP_LOG"/>
| </category>
|
| <category name="org.jboss.ha.framework.interfaces.HAPartition.lifecycle">
| <priority value="INFO" />
| <appender-ref ref="TRAP_LOG"/>
| </category>
|
| <category name="org.jboss.deployment.MainDeployer">
| <priority value="ERROR" />
| <appender-ref ref="TRAP_LOG"/>
| </category>
|
| <category name="org.jboss.ejb.EJBDeployer">
| <priority value="INFO" />
| <appender-ref ref="TRAP_LOG"/>
| </category>
|
| <category name="org.jboss.deployment.EARDeployer">
| <priority value="INFO" />
| <appender-ref ref="TRAP_LOG"/>
| </category>
| -->
|
| <!-- Clustering logging -->
| <!-- Uncomment the following to redirect the org.jgroups and
| org.jboss.ha categories to a cluster.log file.
|
| <appender name="CLUSTER" class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.log.dir}/cluster.log"/>
| <param name="Append" value="false"/>
| <param name="MaxFileSize" value="500KB"/>
| <param name="MaxBackupIndex" value="1"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
| </layout>
| </appender>
| <category name="org.jgroups">
| <priority value="DEBUG" />
| <appender-ref ref="CLUSTER"/>
| </category>
| <category name="org.jboss.ha">
| <priority value="DEBUG" />
| <appender-ref ref="CLUSTER"/>
| </category>
| -->
|
| <!-- ======================= -->
| <!-- Setup the Root category -->
| <!-- ======================= -->
|
| <root>
| <appender-ref ref="CONSOLE"/>
| <appender-ref ref="FILE"/>
| </root>
|
| </log4j:configuration>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116980#4116980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116980
18 years, 6 months
[JCA/JBoss] - Re: NestedSQLException: Apparently wrong driver class specif
by lal_praveen
I am getting this same error. My ear does'nt contain any jdbc.jar files.
Configuration is:jdk1.6.0_03, jboss-4.2.2.GA, MySQL version 5.0.45, MySQL driver
C:\jboss-4.2.2.GA\server\default\lib\mysql-connector-java-5.1.5-bin.jar
Though I am seeing C:\jboss-4.2.2.GA\server\default\tmp\deploy\tmp29174jboss-local-jdbc.rar-contents\jboss-local-jdbc.jar
file in tmp folder. Probably it is used by jboss. I am deploying ear in default server config.
04:23:10,942 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
04:23:10,957 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: com.mysql.jdbc.Driver, url: jdbc:mysql//127.0.0.1:3306/Testworld)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:262)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:500)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116976#4116976
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116976
18 years, 6 months