[JBoss Seam] - Good usage of propagation
by limousyf
One thing I read from the doc is not really clear to me.
I generated a project with seam-gen and it uses the conversations in the objects extending EntityHome and it actually works great (very good job guys BTW).
But I don't understand one thing.
The doc says that SFSB are used for long term conversations.
The others objects are using temporary conversations.
But the (bla)Home objects generated are SLSB right ? As they're juste declared with @Name annotation ...
So, as I can understand now, (bla)Home objects uses temporary conversations artificially made longer using propagation ?
Is that it ?
Did I just haven't understood a single word from the reference and should go back to my labs immediatly ?
Well If I can summarize the different questions:
Is propagation used to extend temporary conversations in SLSB ?
What is the default State for a bean declared with just @Name ? (SL ?)
What is the default ScopeType ? (event ? conversation ?)
Am I just stupid ?
(btw, answering this one is not mandatory)
Thanks for the help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052213#4052213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052213
18Â years, 10Â months
[JBoss AOP] - Re: Enable AOP while running jboss in eclipse IDE
by rob.strykerï¼ jboss.com
you're correct in your observation that launching jboss from eclipse does *not* use the run.bat or run.sh scripts.
Therefore, you'll need to add the command line args directly to the launch configuration (as you tried). If you run into memory issues, you'll want to try starting eclipse or jboss with the -Xms and -Xmx command line parameters to increase the allocated heap memory.
It could also turn out to be an issue with using too much permgen memory, which (I think) is the case when lots and lots of classes are loaded. If that turns out to be the answer, you'll want to try to start eclipse or jboss with the -XX:MaxPermSize=256m argument, replacing 256m with a suitable amount for your needs.
First try using those arguments from the launch configuration for launching jboss. If that doesn't work, try starting eclipse with those arguments.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052212#4052212
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052212
18Â years, 10Â months
[JBossWS] - jbossws 1.2.1 /jboss 4.0.5 : how do i bypass MessageFactor
by swaminathan.ramaswamy
Hi ,
I have been encountering the following exception over the last couple of days .
I am aware that the reason for this issue is because of using a different SOAPFactory class, while jboss expects org.jboss.ws.core.soap.SOAPEnvelopeImpl.
I am trying to run oracle's bpel process on jboss , and the bpel engine needs it's own implementation of SOAPElement/SOAPFactory to process Webservice calls - when i try sending Jboss's SOAPElement , the bpel process fails without any error message
Is it possible for me to by pass Jboss' MessageFactory/SOAPFactory classes by setting some classloader hierarchy
java.lang.ClassCastException: oracle.j2ee.ws.saaj.soap.soap11.Element11
at org.jboss.ws.core.soap.SOAPEnvelopeImpl.(SOAPEnvelopeImpl.java:59)
at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:116)
at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:85)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:254)
at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:179)
at org.jboss.ws.core.server.ServiceEndpoint.processRequest(ServiceEndpoint.java:197)
at org.jboss.ws.core.server.ServiceEndpointManager.processRequest(ServiceEndpointManager.java:448)
at org.jboss.ws.core.server.AbstractServiceEndpointServlet.doPost(AbstractServiceEndpointServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:75)
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.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.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)
Thanks,
Swami
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052210#4052210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052210
18Â years, 10Â months
[JBoss Seam] - Re: Conversation id is already in use?
by Delphi's Ghost
Ok, now I think I know what the problem is (but not the answer).
| <conversation name="bookConv" parameter-name="bookId" parameter-value="#{book.id}" />
|
This xml lets seam detect an existing conversation for the same entity, and switches to it instead of creating a new one. It works fine when starting a new conversation (i.e. editing a book from the search list).
However, in most cases, it throws a conversation id is in use error.
I have a search page which lists books. Books are edited from the list by clicking a link with the bookId as a param. Editing books is done within a bookEdit pageflow, and involves one other page where you can pick an author from the list. Upon selection, the pageflow takes you back to the bookEdit page.
Here's a list of where and when the explicit conversation Id stuff works and raises the conversation Id in use exception.
bookSearch -> click edit link (try and start new conversation) -> ok
bookSearch -> Conv Switcher -> exception
bookEdit -> Conv Switcher -> ok
author Select -> select author (pageflow navigation)-> exception
author select -> Conv Switcher -> exception
If I remove the xml from pages.xml, everything works fine, except that I can start editing two instances of the same book at the same time which is what avoids.
As far as I can tell, the stuff is fairly new (currently undocumented in 1.2.1GA) and isn't used in any of the examples. With the possible deprecation of @begin annotations on methods in favour of this mechanism, I'm guessing this is the new Seam way.
Anyone have any experience with this mechanism and gotten it working with conversation switchers and pageflow?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052209#4052209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052209
18Â years, 10Â months
[JBoss Seam] - Problem with <s:convertEntity/> inside <h:selectOneMenu
by georges.goebel
Hi,
I have tried under jboss 4.0.5GA and JBoss 4.2 with seam 1.2.1GA and also the CVS snapshot from jboss-seam-CVS.20070607
I cannot use the tag <s:convertEntity/> inside a <h:selectOneMenu>. (selectedPaneau is a DataModel)
| <h:selectOneMenu id="tailles" value="#{cart.taille}" >
| <s:selectItems var="ta" value="#{selectedPaneau.tailles}" label="#{ta.tailleFormated}" />
| <s:convertEntity/>
| </h:selectOneMenu>
|
I always get the exception :
| org.apache.jasper.JasperException: /addCart.jsp(94,29) No tag "convertEntity" defined in tag library imported with prefix "s"
| org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
| org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
| org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
| org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1213)
| org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
| org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)
| org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
| org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)
| org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
| org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)
| org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
| org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)
| org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
| org.apache.jasper.compiler.Parser.parseBody(Parser.java:1657)
| org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1004)
| org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1272)
| org.apache.jasper.compiler.Parser.parseElements(Parser.java:1449)
| org.apache.jasper.compiler.Parser.parse(Parser.java:133)
| org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
| org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
| org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
| org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
| org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
|
I package the jboss-seam-ui.jar inside my war and the jboss-seam.jar is inside the ear. In the jsp file i include the tag lib
| <%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s" %>
|
I included the jboss-el.jar and jboss-el-api.jar in the jsf-libs from the jboss-web-depolyer
I also tried to implement my own converter but there I always get the exception
Do I have to confige something special for this tag or why can jboss not resolve this tag ?
Did I miss something with this tag ? I checked a lot of examples in the internet also the ui example, but it does not work
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052208#4052208
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052208
18Â years, 10Â months
[JBoss jBPM] - Re: async pain
by ax666
Could someone please confirm that this simple process doesn't work with more than 1 JobExecutor thread configured?
| <?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="simpletest">
| <start-state name="start-state1">
| <description>start of the process</description>
| <event type="node-enter">
| <script name="script_start">
| System.out.println("START");
| executionContext.leaveNode();
| </script>
| </event>
| <transition name="start-to-check" to="fileCheck" />
| </start-state>
|
| <node name="fileCheck" async="true">
| <script name="script_filecheck">
| System.out.println("FILE-CHECK");
| executionContext.leaveNode();
| </script>
| <transition name="check-to-fork" to="fork1"></transition>
| </node>
|
| <fork name="fork1" async="true">
| <transition name="toNode1" to="node1"></transition>
| <transition name="toNode2" to="node2"></transition>
| </fork>
|
| <node name="node1" async="true">
| <script name="script_node1">
| System.out.println("NODE1");
| executionContext.leaveNode();
| </script>
| <transition name="node1toJoin1" to="join1"></transition>
| </node>
|
| <node name="node2" async="true">
| <script name="script_node2">
| System.out.println("NODE2");
| executionContext.leaveNode();
| </script>
| <transition name="node2toJoin1" to="join1"></transition>
| </node>
|
| <join name="join1" async="true">
| <transition name="joinToEnd" to="end-state-success"></transition>
| </join>
|
| <end-state name="end-state-success">
| <description>process finished normally</description>
| <event type="node-enter">
| <script name="script_endSuccess">
| System.out.println("END-SUCCESS");
| </script>
| </event>
| </end-state>
| </process-definition>
|
thanks,
alex
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052207#4052207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052207
18Â years, 10Â months
[JBoss AOP] - Enable AOP while running jboss in eclipse IDE
by limousyf
Hello,
I managed to get AOP running on jboss using the loadTimeWeaving, as explained in the "injboss" example.
The example runs fine when I launch the server directly, using the "run.bat" script but I'd like to use the AOP during development, with the jboss AS launched from eclipse.
Tell me if I'm wrong but, while in eclipse, the jboss server doesn't use the run.bat script (or overrides the JAVA_OPTS option maybe ...).
Well it doesn't seem to be using the "-javaagent:pluggable-instrumentor.jar" switch.
My question is: how to enable this pluggable-instrumentor.jar while running jboss AS from eclipse ?
I tried to put the line in the VM arguments field in jboss AS configuration screen in eclipse but the server wouldn't run anymore.
It just take ages to initialize (about 5 minutes) and finally stopped with a :
| java.lang.OutOfMemoryError: Java heap space
|
A jconsole monitoring shows that a lot of memory is used during the process (but with this kind of error, we could have guessed this ;) )
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052201#4052201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052201
18Â years, 10Â months
[JBoss Seam] - @DataModel annotation + HTTP session replication
by radim.tlusty
I have question about usage of @DataModel annotation on attributes of session/conversation scoped Seam components (I use scoped Spring bean).
The code looks like following:
| @Name("component")
| @Scope(ScopeType.CONVERSATION)
| public class MyComponent {
|
| @DataModel
| List items;
|
| @Factory("item")
| private void loadItems() {
| ...
| }
|
| }
|
As I understand the principle of the @DataModel annotation, it does in this case following:
-- wraps the instance of items to serializable ListDataModel from Seam
-- outjects the data model instance to the same scope as the component (=conversation)
Since conversation data are stored in HTTP session, I think I have here in session the list object represented two times - once as part of my component and second as reference in outjected data model. Till to time, that the HTTP session is not replicated it's OK, because both - data model and seam component - references the same instance.
But what happens on session replication? How is session replicated e.g. in Tomcat? Is it replicated as complete serialized session object (bigger, but preserves relations of objects inside of session) or individually by attribute (which will cause, that data model and Seam component will both point to another reference)?
I found this problem, because I wrote servlet filter which checks how the system behaves with serialized/deserialized session and I work with each session attribute individually ...
TIA
Radim
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052197#4052197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052197
18Â years, 10Â months