[JBoss Seam] - Re: Seam 1.1.0 - Injecting EJB's - Not Working
by bsmithjj
how confusing!
First, I'm told to set create=true, next, someone says that I don't need to set create=true, finally, I am not sure the last reply tells me anything I didn't know. I (think I) understand pretty well what is going on with @In and @Out, I've built a few apps already with Seam and made extensive use of Bijection. What I don't understand is why, after I thought I had set up Seam correctly to find my EJB's in JNDI, that it didn't seem to (until I set create = true)...
So, my question still stands...what's the fine print on using @In to inject a session bean, A, into another session bean, B?
Thanks,
Brad Smith
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999434#3999434
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999434
19 years, 3 months
[JBoss jBPM] - Transaction demarcation, callculation of the next process st
by asmo
Hello all!
I want to use asynchron process execution.
Therefore, i have an action in a node, in which the thread waits 10 seconds to simulate a long calculation.
Without the asynchron execution, i call the signal method on a state, the processinstance enters the node and after 10 seconds, the processinstance leaves the node and the processinstance is in the next state element.
As far as i understand the tutorial, with asynchron execution, the processinstance should at once enter the state after the asynchron node, without waiting for the execution of the action.
anonymous wrote :
| Note that the jbpm client code can now commit the transaction. The sending of the message should be done in the same transaction as the process updates. So the net result of the transaction is that the token has moved to the next node (which has not yet been executed) and a org.jbpm.command.ExecuteNodeCommand-message has been sent on the asynchronous messaging system to the jBPM Command Executor.
But i have the situtation, that the client thread doesn't wait for the callculation but regardless the processinstance is in the tooken has not moved to the next state. the tooken still is in the asynchron node.
here is the code i used ( which runs without problems, if i use synchron execution and also if i use asynchron execution, there are no errors. i just wonder, why the token does not move...) :
|
| //get the processinstance and so on....
|
| processInstance.signal("created");
|
| jbpmContext.save(processInstance);
| processInstance = null;
|
| newTransaction();
|
| processInstance = jbpmContext.loadProcessInstance(processId.longValue());
|
|
| //at this point i thougt, by asynchron execution the tooken has to
| //be in the state element after the asynchron node, but the
| //tooken is still in the node.
|
| logger.info("the processinstance is in : " + processInstance.getRootToken().getNode().getName());
|
| //doing stuff like close the context....
|
|
|
| protected void newTransaction() {
| try {
| commitAndCloseSession();
| beginSessionTransaction();
| } catch (Throwable t) {
| throw new RuntimeException("couldn't commit and start new transaction", t);
| }
| }
| public void commitAndCloseSession() {
| jbpmContext.close();
| resetMembers();
| }
|
| protected void initializeMembers() {
| session = jbpmContext.getSession();
| graphSession = jbpmContext.getGraphSession();
| taskMgmtSession = jbpmContext.getTaskMgmtSession();
| loggingSession = jbpmContext.getLoggingSession();
| schedulerSession = jbpmContext.getSchedulerSession();
| contextSession = jbpmContext.getContextSession();
| messagingSession = jbpmContext.getMessagingSession();
| }
|
| protected void resetMembers() {
| session = null;
| graphSession = null;
| taskMgmtSession = null;
| loggingSession = null;
| schedulerSession = null;
| contextSession = null;
| messagingSession = null;
| }
| public void beginSessionTransaction() {
| jbpmContext = MyJbpmConfigurationLoader.getConfiguration().createJbpmContext();
| initializeMembers();
| logger.info("--- starting new transaction -------------------------------------------------");
| }
|
| }
|
Is there something wrong with my code or does the asynchron execution behave in that way like i thought? I am using the starterkit 3.1.1 and jpdl 3.1.
Thanks,
asmo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999425#3999425
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999425
19 years, 3 months
[JBoss Portal] - Re: How to hide __unchecked__ pages for authenticated users
by bvogt
The goal is to have a public landing page to show some general information about the portal features the users will have after logging in to the portal.
This(these) page(s) are not needed for an authenticated user, because the features (i.e. pages) are displayed instead.
The SAP Netweaver portals solution is to use so-called 'anonymous users', which are normal portal users (they have a portal session) with the exception that they can access anonymous content only.
The disadvantage here is, that the anonymous users session has to be invalidated before the session for the authenticated user can be created.
jBoss doesn't have a session for 'guest' users, right?
So, to have them access content it requires the 'Unchecked' role?
In general I think a solution may be to set a (boolean) 'declaredProperty' on the page within our content generator portlet and suppress rendering of the 'Unchecked' pages within our custom navigation portlet.
A better solution would be to detect the 'Unchecked' Role of a page within our custom login module.
Thanks for time you spent on this, Thomas.
Burkhard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999424#3999424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999424
19 years, 3 months
[JBoss Seam] - Re: Seam doesn't play with ICEFaces
by hispeedsurfer
Hi Jerome,
thank you for reply. I have tried to modify the PersistentFacesServlet.java as descriped. But in the icefaces.src.core package ELSetPropertiesRule.java is an error that getExpressionFactory() is undefined for type Application.
When I try to export this package as jar file to my ice-application the following exception is thrown:
java.lang.UnsupportedOperationException: Cannot set ServletRequest Parameter
| at org.apache.myfaces.context.servlet.RequestParameterMap.setAttribute(RequestParameterMap.java:44)
| at org.apache.myfaces.context.servlet.AbstractAttributeMap.put(AbstractAttributeMap.java:104)
| at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:341)
| 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.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.HttpServletRequestResponseValve.invoke(HttpServletRequestResponseValve.java:70)
| 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 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:619)
| 13:34:11,577 ERROR [[Persistent Faces Servlet]] Servlet.service() for servlet Persistent Faces Servlet threw exception
| java.lang.UnsupportedOperationException: Cannot set ServletRequest Parameter
| at org.apache.myfaces.context.servlet.RequestParameterMap.setAttribute(RequestParameterMap.java:44)
| at org.apache.myfaces.context.servlet.AbstractAttributeMap.put(AbstractAttributeMap.java:104)
| at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:341)
| 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.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.HttpServletRequestResponseValve.invoke(HttpServletRequestResponseValve.java:70)
| 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| 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:619)
|
What I have ToDo to solve this problem.
Thanks
andreas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999422#3999422
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999422
19 years, 3 months
[JBoss Portal] - Urgent: How To Deploy An Application As A Portlet On JBoss P
by hussain_rangwala
hey thomas
can u please elaborate the complete procedure on How To Deploy An Struts Application As A Portlet On JBoss Portal 2.4.0.Also all the necessary changes to be done in the deployment descriptors.My application is a Banking Application that uses beans,utils ,jsp's etc.Also when i try to deploy the war i get the following error on the console.
)
state: FAILED
watch: file:/C:/jboss-portal-2.4.0/server/default/deploy/jboss-portal.sar/port
al-wsrp.sar/portal-wsrp.jse
altDD: null
lastDeployed: 1168244412274
lastModified: 1168244388384
mbeans:
org.jboss.deployment.DeploymentInfo@695ebde7 { url=file:/C:/jboss-portal-2.4.0/s
erver/default/deploy/jms/jbossmq-destinations-service.xml }
deployer: org.jboss.deployment.SARDeployer@ca470
status: null
state: FAILED
watch: file:/C:/jboss-portal-2.4.0/server/default/deploy/jms/jbossmq-destinati
ons-service.xml
altDD: null
lastDeployed: 1168244427607
lastModified: 1168244427576
mbeans:
org.jboss.deployment.DeploymentInfo@236fde98 { url=file:/C:/jboss-portal-2.4.0/s
erver/default/deploy/DataEntities.jar }
deployer: MBeanProxyExt[jboss.ejb:service=EJBDeployer]
status: Deployment FAILED reason: Verification of Enterprise Beans failed, see
above for error messages.
state: FAILED
watch: file:/C:/jboss-portal-2.4.0/server/default/deploy/DataEntities.jar
altDD: null
lastDeployed: 1168244484663
lastModified: 1168244484241
mbeans:
org.jboss.deployment.DeploymentInfo@3f2818c7 { url=file:/C:/jboss-portal-2.4.0/s
erver/default/deploy/SETLStruts.war }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: Error during deploy; - nested throwable: (ja
vax.naming.NamingException: ejb-local-ref: 'ejb/AccountDetailsEJB', with web.xml
ejb-link: 'AccountDetails' failed to resolve to an ejb with a LocalHome)
state: FAILED
watch: file:/C:/jboss-portal-2.4.0/server/default/deploy/SETLStruts.war
altDD: null
lastDeployed: 1168244490737
lastModified: 1168244490659
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:id=1059592391,war=SETLStruts.war
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/AccountDetailsEJ
B', with web.xml ejb-link: 'AccountDetails' failed to resolve to an ejb with a L
ocalHome)
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:id=1059592391,war=SETLStruts.war
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - neste
d throwable: (javax.naming.NamingException: ejb-local-ref: 'ejb/AccountDetailsEJ
B', with web.xml ejb-link: 'AccountDetails' failed to resolve to an ejb with a L
ocalHome)
13:51:33,672 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080
13:51:34,031 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
13:51:34,094 INFO [JkMain] Jk running ID=0 time=0/203 config=null
13:51:34,109 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos
s_4_0_4_GA date=200605151000)] Started in 2m:684ms
Kindly reply as soon as possible
Thanks & Regards
Hussain
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999421#3999421
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999421
19 years, 3 months
[Installation, Configuration & Deployment] - JBoss EAR Deployment issue
by vaibhav_5979
I am using JBoss with MySQL for my application development. I have created the EAR file (with myapp.jar, webapp.jar and application.xml) as per the documentation. I am not getting any errors while deploying the EAR file.
But upon accessing the application through browser, I am getting following exceptions.
17:23:34,671 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAdd
Resource
17:23:34,671 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
17:23:34,671 ERROR [STDERR] javax.servlet.ServletException
17:23:34,671 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:156)
17:23:34,671 ERROR [STDERR] at com.razorsight.web.jsf.CustomerFaceServlet.service(CustomerFaceServlet.java:41)
17:23:34,671 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
17:23:34,671 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
17:23:34,671 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
17:23:34,671 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
17:23:34,671 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
17:23:34,671 ERROR [STDERR] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
17:23:34,671 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
17:23:34,687 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
17:23:34,687 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
17:23:34,687 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
17:23:34,687 ERROR [STDERR] at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
17:23:34,687 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
17:23:34,687 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
17:23:34,687 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
17:23:34,687 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
17:23:34,687 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
17:23:34,687 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
17:23:34,687 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
17:23:34,687 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.ClassCastException: java.lang.ExceptionInInitializerError
at com.razorsight.web.jsf.CustomerFaceServlet.service(CustomerFaceServlet.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
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)
17:23:34,687 ERROR [[localhost]] Exception Processing ErrorPage[errorCode=404, location=/error-page/error404.jsf]
java.lang.ClassCastException: java.lang.ExceptionInInitializerError
at com.razorsight.web.jsf.CustomerFaceServlet.service(CustomerFaceServlet.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
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)
anonymous wrote : This issue is really critical for me and needs to be fixed as really as posssible.
|
| Please do revert back if you can help me resolving itThanks n Regards
-Vaibhav
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999420#3999420
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999420
19 years, 3 months