[jboss-user] [Installation, Configuration & DEPLOYMENT] - Purpose of IF statement in run.conf
The following statement is in run.conf # | # Specify options to pass to the Java VM. | # | if [ "x$JAVA_OPTS" = "x" ]; then |JAVA_OPTS="-Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360" | fi | Can someone tell me what is the purpose of the if statement? I assume it's trying to detect if people are passing in via the command line memory settings and therefore not use the ones configured... Is there any other purpose? J View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227660#4227660 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227660 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Help with Transaction Timeouts on Container Manager Transact
Hi, I'm looking for guidance on how we are supposed to be handling this case, because the behavior we are seeing is not what we want. Components in use: Jboss 4.2.2-GA, Windows Server 2003 , Jboss-Messaging 1.4.2. Here is the issue: We have a stateless session bean that is marked as using container managed transactions. We're have the default transaction timeout set as specified in jboss-service.xml of 180 seconds. When one of our EJB methods is entered (marked as 'required' for the transaction), we get a JDBC connection from the data-source that we have created via a *-ds.xml file in the jboss deploy directory. When we get the connection, the auto-commit flag is set to false, which is expected. We then run a bunch of sql commands (inserts, updates). Let's say the transaction timeout hits for some reason like the queries we're running are taking too long. When the timeout occurs I see the following entries in our log4j log: 2009-04-17 17:32:30,075 [Thread-3] WARN com.arjuna.ats.arjuna.logging.arjLoggerI18N : [com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of action id -53ef9ed4:e28:49e91dfb:1de invoked while multiple threads active within it. 2009-04-17 17:32:30,075 [Thread-3] WARN com.arjuna.ats.arjuna.logging.arjLoggerI18N : [com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedAction::check - atomic action -53ef9ed4:e28:49e91dfb:1de aborting with 1 threads active! At that exact time when the transaction times out, the container is rolling back the transaction, and that's fine. The problem here is that our thread keeps running, AND the connection's auto-commit flag got set back to true. The end result is that any inserts/updates we did after the timeout, get committed immediately leaving the database in a bogus state. So here are my questions: 1) Is this expected behavior to have the rollback occurring in parallel to the ejb thread continuing to run? 2) Why is the auto-commit getting set to true when the timeout occurs? 3) Shouldn't the rollback occur synchronously after our EJB method returns into the jboss ejb stub code? 4) What is the correct way we're supposed to be handling the transaction timeout so the database doesn't wind up hosed? We see this exact same behavior with jboss and mysql, and jboss and sql server. 5) The old jboss transaction manager configuration used to allow you to interrupt the thread, instead of continuing to let it run. I understand this feature has been removed for legitimate reasons as explained by this thread: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=125962 . This would have been our preferred approach to fix this problem if it were still supported. Thanks for the help, Joe View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227656#4227656 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227656 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Special case hibernate mapping problem
This probably isn't too relevant to this particular forum but the hibernate forums have been down for quite some time now I'm currently trying to map a class that uses the jscience libraries to store dimensions(using the Amount class). My class already has getter and setter methods that get and set the Amount, but the Amount class does not have complete getter and setter methods so I cannot map it. Is it possible to use some type of special type adapter or enum class to map the information and how would I go about doing this. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227654#4227654 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227654 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Components in EJB project come and go from Seam Componen
That's it! I have 3 @RoleCheck annotations defined for seam security. However, I have not yet begun using them. I commented them out and the problem (and exception) has gone away. Looking at the JIRA issue it appears to be the same problem. I haven't tried the nightly build since I don't really need the annotations at the moment. I'm happy to wait for the fix to be released. If you want me to verify this against the nightly build, please let me know. Thanks akazakov for your quick and accurate analysis. Much appreciated. /Ross. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227653#4227653 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How do I add the richfaces library to eclipse? (experien
I am using eclipse 3.4.2 btw I just found out, does that mean I need to change anything? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227652#4227652 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227652 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet
You need to listen for the correct request: | Object responseObject = FacesContext.getCurrentInstance().getExternalContext().getRequest(); |if (responseObject instanceof RenderRequest) { | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227651#4227651 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227651 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How do I add the richfaces library to eclipse? (experien
maybe it has something to do with the default file structure for projects in eclipse? I have noticed that sometimes I will download source files for a project, and sometims I cannot open it when I try to import it into eclipse. WHen I look around in the folder I notice all the files that are supposed to be there, but they are all located in different folders, the file structure is completely different from the projects I have successfully built in eclipse. could that be part of it? Im just grasping at straws at this point View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227650#4227650 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227650 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - javassist.bytecode.BadBytecode: cannot find [B
Hello, I have a problem starting up our application with the latest jboss-5.1.0.CR with enableLoadTimeWeaving=true where javassist throws the exception from the subject header during instrumentation of our classes. We don't experience this problem with jboss-5.0.1.GA. Inspecting the manifest of lib/javassist.jar for both jboss releases shows an identical version of 3.9.0.GA. Sorry if this is the wrong forum for this question Thanks, Mike View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227649#4227649 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227649 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How do I add the richfaces library to eclipse? (experien
I am obviously missing something here. I thought I could just download the richfaces binary zip file, and create a new library that had the richfaces components, and leave everything else as is. So I need to use JBoss as my target runtime? I have been using Apache Tomcat v6.0. I didn't even have the JBoss server downloaded, so I had to go ahead and do that. Got that done, and I was able to choose JBoss v5.0 for my target runtime. I then left it to server side implementation. I put those three jar files in the WEB-INF/lib file for the greeter project, refreshed the project amd restarted my servers (the JBoss and Tomcat server). I tried to open the project through both servers and still have the same problems. WHen I try to run it on the JBoss server I get HTTP Status 404 - /greeter/index.jsp type Status report message /greeter/index.jsp description The requested resource (/greeter/index.jsp) is not available. JBoss Web/2.1.2.GA and when I rn it on the tomcat server I get a slightly different version: HTTP Status 404 - type Status report message description The requested resource () is not available. Apache Tomcat/6.0.18 either way, its not working for me what am I missing I am losing it here, this is killing me View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227642#4227642 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227642 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Design Patterns
1) The log file could be a problem... thanks 2) the token does reach the join and continues on through (we though the same thing but upon testing and looking at what the database did, it worked) 3) there are two functional requirements: a) I'll skip the batch processing functional requirements because at this point they are vague. (Basically processing as files are uploaded into a directory or when a record in an external database is updated, etc. and probably the challenge here is more in deciding to write a custom action or a custom node... or because logging could get out of control don't do it in jBPM. b) User has a task but supervisor should also get a task every day task sits in processors list of tasks. All tasks as related to the initial task from a reporting standpoint. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227639#4227639 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227639 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Design Patterns
1) Yes the logfile will get large 2) on second thought, you never reach the correct join node (every node between a fork/join should be fully nested) so as I also stated, use e.g. a subprocess for this. I thank you for your description, but it is a description of a possible implementation, *not* your functional requirements. Since some things you describe do not work in jBPM(at least I think they don't in they way you describe it) it is hard to understand what you want. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227638#4227638 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227638 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Mutiple timers in a task node problem
Guys (I think), As stated many times before, it is better in these kinds of situations to not describe your problem, but to make a unit test with EVERYTHING embedded (processdefinition as a string, actionhandlers as innerclasses etc) that way we can better see what you do and try to reproduce etc... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227637#4227637 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227637 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: logincontext.login is temporary
I've been searching for an answer to this for 3 days now, and all I've found are unanswered threads, mostly from several years ago. Does anyone know a solution to this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227629#4227629 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227629 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Using VFS to create a symbolic link from WEB-INF/lib
I pinged Remy on this a few days ago. He said it's in progress but it will take some time. Stan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227630#4227630 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227630 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Problems with MDBs in JBoss 5.0
It seems you are using a transacted session. Session session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE); Try calling session.commit() before closing the session. Or you can send in false into createSession and you don't have to call session.commit() View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227625#4227625 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227625 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: GetPreferences in jboss Portal cast exception
I have no idea what the problem is! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227623#4227623 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227623 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: GetPreferences in jboss Portal cast exception
Caused by: java.lang.ClassCastException: org.jboss.seam.web.IdentityRequestWrapper cannot be cast to javax.portlet.PortletRequest at com.consulmatica.utmap.uploadfile.session.UploadActionBean.listener(UploadActionBean.java:38) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227622#4227622 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227622 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: GetPreferences in jboss Portal cast exception
the code is: PortletRequest req = (PortletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227621#4227621 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227621 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: GetPreferences in jboss Portal cast exception
17:28:17,105 ERROR [LifecyclePhase] Error execute phase APPLY_REQUEST_VALUES 2 javax.faces.el.EvaluationException: /uploadAction.xhtml @21,51 fileUploadListener="#{uploadAction.listener}": javax.ejb.EJBTransactionRolledbackException: org.jboss.seam.web.IdentityRequestWrapper cannot be cast to javax.portlet.PortletRequest at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73) at org.richfaces.component.UIFileUpload.broadcast(UIFileUpload.java:190) at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321) at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:294) at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227620#4227620 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227620 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [News & Announcements] - JBossAS 5.1.0.CR1 released
JBossAS 5.1.0.CR1 has been released and is available for download. http://www.jboss.org/jbossas/downloads/ This is the first candidate release of the JBoss 5.1 series. Along with many bug fixes and enhancements, this release includes a first cut of our new, significantly improved open-source console. We are hoping to get as much feedback as possible to ensure we have a great first version in the eventual 5.1.0.GA release. Please post your feedback to the embedded JOPR forum here. Overview * Highlights * Compatibility Issues * Configuration Issues * Other Issues * JBoss/Thirdparty Library Updates * Detailed Release Notes * Additional Docs and Help * Licenses * About JBoss Highlights * New Web Console - This release includes our new administration console. See the full release notes for the console here. * Web Beans Update - In addition, this release includes an updated tech preview of the new JSR-299 Web Beans RI. You can find out more information about Web Beans here. * Farming Returns - Due to popular demand, the farming service is back! See the following wiki page here. Compatibility Issues There are no known compatibility issues in 5.1.0.CR1. from 5.0.1.GA * This release resolves issues related to running JBossAS 5 under AIX with an IBM jdk. See JBAS-6506, JBAS-6428. * A NamingContext issue was identified when using IPv6, take a look at JBAS-6390. * If you are using HASingletons and/or depending on the BarrierController you'll find interesting the fixes in JBAS-6440, JBAS-6441, JBAS-6363. * The filtering of classes/packages of jars bundled with .wars has improved, see JBAS-6478 and the associated forum thread. from 5.0.0.GA JBossAS 5.0.0.GA can be compiled with both Java5 & Java6. The Java5 compiled binary is our primary/recommended binary distribution. It has undergone rigorous testing and can run under both a Java 5 and a Java 6 runtime. When running under Java 6 you need to manually copy the following libraries from the JBOSS_HOME/client directory to the JBOSS_HOME/lib/endorsed directory, so that the JAX-WS 2.0 apis supported by JBossWS are used: * jbossws-native-saaj.jar * jbossws-native-jaxrpc.jar * jbossws-native-jaxws.jar * jbossws-native-jaxws-ext.jar The other option is to download the jdk6 distribution (jboss-5.0.0.GA-jdk6.zip) in which case no configuration changes are required. If you still have problems using JBoss with a Sun Java 6 runtime, you may want to set -Dsun.lang.ClassLoader.allowArraySyntax=true, as described in JBAS-4491. Other potential problems under a Java 6 runtime include: * ORB getting prematurely destroyed when using Sun JDK 6 (see Sun Bug ID: 6520484) * Unimplemented methods in Hibernate for JDK6 interfaces. * When JBossAS 5 is compiled with Java 6, support for the extended JDBC 4 API is included in the binary, however this can only be used under a Java 6 runtime. In this case no manual configuration steps are necessary. It should be noted however that the Java 6 compiled distribution of JBoss AS 5 is still in experimental stage. Other compatibility issues: * JBossMQ has been removed from the distribution and is no longer supported in AS5. JBoss Messaging Service is now the default JMS provider. * All the *-beans.xml configuration files have been renamed to *-jboss-beans.xml to avoid conflicts with spring configuration files. * For mod_cluster integration you will have to use the workaround described in JBAS-5966 until the tomcat service mbean descriptor is converted to an MC bean descriptor. * JBoss VFS provides a set of different switches to control it's internal behavior. JBoss AS sets jboss.vfs.forceCopy=true by default. To see all the provided VFS flags check out the code of the VFSUtils.java class. * VFS uses an internal caching mechanism to speed up access to deployment artifacts. This means that files in deploy/ remain open as long as they are accessed and then closed by a reaper thread after a 5 seconds inactivity. On window platforms this may cause locking issues if files are re-deployed too quickly. In this case you may want to turn-off the reaper by specifying the -Djboss.vfs.forceNoReaper=true property in the command line. * Hibernate-core is now using slf4j-api as a logging facade. To properly integrate that in JBossAS we have created an slf4j-to-jboss-logging adapter (slf4j-jboss-logging.jar) that creates a static binding between sl4j and jboss-logging-spi . The jboss-logging default implementation is configured to use log4j. See JBAS-5519. * The client/jbossall-client.jar library that used to bundle the majority of jboss client libraries, is now referencing them instead through the Class-Path manifest entry. This allows swapping included libraries (e.g. jboss-javaee.jar) without having to re-package jbossall-client.jar. On the other hand, it requires
[jboss-user] [JBoss Portal] - GetPreferences in jboss Portal cast exception
Hi... Im get Preferences like PortletRequest req = (PortletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); and im get te exception in cast org.jboss.seam.web.IdentityRequestWrapper HelpMe please... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227618#4227618 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227618 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Using VFS to create a symbolic link from WEB-INF/lib
Is there anyupdate on the TLD issue? is is being tracked in jira anywhere? There are a few ways of getting around it right now, but they are a pain. - getting the actual location of where the webapp is deployed and copying the file across. Finding the actual file location is a big pain requiring many levels of hacks. - manipulating the web.xml metadata (easily done with a deployer) to redefine the JspServlet. This will override the JspServlet setting in jboss-web.deployer/web.xml (the shared web.xml file for all webapps). By setting a properly formatted for the JspServlet you can make it add any tld from any specified jar with no requirements on it existing in the WEB-INF directory of your webapp. | | JSTL standard tlds | tagLibJar2 | ../location-to-jar/jar-containing-tld.jar | | The problem here is that it does change the global JspServlet setting and all webapps will be able to find your tlds. And its probably not the safest operation to be overwriting the JspServlet like this, but it is possible. It would be a lot easier if this default global web.xml was being handled by deployers and was being exported as an attachment that other deployers could use (like the current MergedJBossWebMetaDataDeployer). View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227616#4227616 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227616 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: getPreferences with JSF portlet
Hi... Im get Preferences like PortletRequest req = (PortletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); and im get te exception in cast org.jboss.seam.web.IdentityRequestWrapper HelpMe please... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227614#4227614 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227614 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Design Patterns
1) there is a real persisted wait state (and its set from one minute to 19 days depending on the action taken by the user) but we have been getting stack overflow errors (after running 24/7 for about 2 weeks) and then timers stop working (we have to restart the application server) and this is considered the culprit. Given this, one of our developers doesn't want to use jBPM for batch processing that would require escalation (via a timer) every minute. I however would like to use jBPM because then we could leverage jBPM to create fail/retry logic with nodes and the jBPM console for visibility into the batch processing. (and yes there probably are alternatives to using the same token over in a loop but again thats why this was titled design patterns). 2) In the second part, in its simplest, its a task node to a fork with one transition from the fork going back to the task node and a second transition from the fork going to a different task node. When done manually from the first task node (user signals the transition rather then some external event or a timer) its an easy way to allow for a "Resend" A simple example would be "Supervisory Approval" where tokens comes into a "Processor" task node wHere they transition the token to "Supervisor Approval" but still want the token to remain in their task node in parallel, having the "send for approval" transition go to a fork solves this easily, the token goes back to the "Processor" task node and then also goes to the "Superviosr Approval" task node (with a join at the end of all of this of course). The processor continues to have it as an active task and so does the supervisor, then if the processor has an additional task that needs to be done by the supervisor (but again w! ants to continue to have the task as well) they simply transition the token to the supervisor task node again. In testing this all works perfectly, and all of the child tokens complete out of the join properly but it does seem that there is a limit to the number of inherited children (like maybe 1000) so if the transitions are manual no problem but if automated with timer then its a problem. The question was asked because there is concern that some "idiot" might want to click the button 1000 times an therefore cause stack overflow to occur, we can put a check in to limit this to something reasonable like 10 times but maybe we shouldn't do this at all... P.S. sorry about posting initially to the wrong forum. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227613#4227613 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227613 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: nothing persisting?
So, now that I know that the JTA persistance is not committing, can anyone give me a hint as to the why? I'll paste my config and a quick example of a MDB that starts a process that never commits to the database. | | | | | | | | | | | | | | | | | | | | | | package com.theplanet.jbpm.messagebeans; | | import javax.ejb.ActivationConfigProperty; | import javax.ejb.MessageDriven; | import javax.ejb.TransactionManagement; | import javax.ejb.TransactionManagementType; | import javax.ejb.TransactionAttribute; | import javax.ejb.TransactionAttributeType; | import javax.jms.Message; | import javax.jms.TextMessage; | import javax.jms.MessageListener; | | import org.jbpm.graph.exe.ProcessInstance; | import org.jbpm.JbpmConfiguration; | import org.jbpm.JbpmContext; | | | /** | * Message-Driven Bean implementation class for: ProcessMDB | * | */ | @MessageDriven(name = "ProcessMDB", activationConfig = { | @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), | @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/ProcessQueue"), | @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") }) | @TransactionManagement(TransactionManagementType.CONTAINER) | @TransactionAttribute(TransactionAttributeType.REQUIRED) | public class CopyOfProcessMDB implements MessageListener { | | /** | * Default constructor. | */ | public CopyOfProcessMDB() { | // TODO Auto-generated constructor stub | } | | /** | * @see MessageListener#onMessage(Message) | */ | public void onMessage(Message message) { | | JbpmConfiguration jbpmConfig = JbpmConfiguration.getInstance(); | JbpmContext jbpmContext = jbpmConfig.createJbpmContext(); | | try { | | TextMessage txt = (TextMessage) message; | ProcessInstance processInstance = jbpmContext | .newProcessInstanceForUpdate("TestProcess"); | | processInstance.signal(); | jbpmContext.save(processInstance); | | } catch (final Exception exc) { | try { | exc.printStackTrace(); | | // jbpmContext.setRollbackOnly(); old stuff when using bean managed | | } catch (final Exception e) { | | } | } finally { | // jbpmContext.close(); same on bean managed | | } | | } | | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227607#4227607 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227607 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Mutiple timers in a task node problem
Hello, I had exactly the same problem with multiple timers in the same task node, Is there a solution for that problem? is it a known bug? Thanks, Asaf. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227605#4227605 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227605 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Problem with Ejb3PropertyGetAnnotation.ftl
Yeah I know this is very strange. I even tried a clean installation of ecplispe ganymede and HTools 3.2.4.GA-N200904281128-H124 which I down loaded from the JBoss Tools update site for eclpse? Yeah I know the hibernate.org has been down for about a week or two now and its been point back to jboss.org. Can't want until it is back up so I can do a fresh build. And hopefully it will resolve this issue. Ultimately, I really don't want to have to do a fresh build. I just wish this would work. Do you have any idea to resolve or troubleshot this? Again thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227604#4227604 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227604 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: How to get the source code?
Thank for the quick reply. I was using the following URL to check out HTools 3.2.4 GA http://anonsvn.jboss.org/repos/hibernate/tags/TOOLS_3_2_4_GA. I guess this is not the correct URL. Is the HTools located here at https://anonsvn.jboss.org/repos/jbosstools/trunk/hibernatetools/ same HTools 3.2.4.GA-N200904281128-H124? Again thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227603#4227603 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227603 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Installation issue with keystore
My mistake. This should be posted in an eclipse forum. I already solved it. The problem was that i wasn't using Sun's jdk. So I installed it, and selected with update-alternatives. Then eclipse used the correct jdk, and have no troubles installing JBoss Tools. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227595#4227595 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227595 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Need Help with Deploying Application Three Time
I have an application that I want to deploy three times using a different path and a different user to log into the database. Under \jboss\server\default\deploy\ Expanding the WAR file into a folder, I have created three separate folders called V3DEMO V3TEST V3TRAINING In each folder I have modified the \WEB-INF\classes\application.xml so that the appropriate username and password is being used. IE V3DEMO users = V3DEMO, V3TEST user = V3TEST and V3TRAINING user = V3TRAIN. Other than changing the User name and password in the connection string all setting in the application.xml file remain the same. I can get to the splash screen of the application for all three apps using http://localhost:8080/V3DEMO/ http://localhost:8080/V3TEST/ http://localhost:8080/V3TRAINING/ The problem occurs once a person logs into the application. The first app logged into will work but an attempt to log into one of the other apps results in an Internal Server Error Http 500 response. I know that usernames and passwords are correct because I can log into all three applications. What do I need to do to allow all three apps to access the database. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227594#4227594 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227594 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - javassist + eclipse + j2ee 1.3 problem
Hi, I am developing a EJB project for weblogic 8.1 server, in eclipse, using hibernate for persistence. My project has a j2ee 1.3 facet, since this is the version weblogic 8.1 requires. Hibernate requires to put the javassist 3.4 jar in the project's classpath, but when I do it I get an error from eclipse: Facet version for Enterprise Application project MyProject must be 5.0 to contain Java EE 5.0 project lib javassist-3.4.GA.jar. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227591#4227591 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227591 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Javassist, j2ee 1.3, eclipse
Hi, I am developing a EJB project for weblogic 8.1 server, in eclipse, using hibernate for persistence. My project has a j2ee 1.3 facet, since this is the version weblogic 8.1 requires. Hibernate requires to put the javassist 3.4 jar in the project's classpath, but when I do it I get an error from eclipse: Facet version for Enterprise Application project MyProject must be 5.0 to contain Java EE 5.0 project lib javassist-3.4.GA.jar. Any ideas? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227581#4227581 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227581 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Bridge - Once and only once, connections failing after i
Oh, and I'm using 1.4.3.GA of messaging. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227563#4227563 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Design Patterns
First of all, thanks for taking the time to post in the correct forum. In return I should take the time to at least try to answer your question. 1) If there is a real persisted wait-state in this loop, you should not get a stackoverflow. 2) If I understand you correctly, you want to have e.g. a node in one 'leg' of a fork go back to the fork node but as a new loop? That is not advised (though it might work, you could give it a try in a unittest). Using recusive subprocesses can be done. >From what I read, both questions are related. Maybe it is better to give your >functional requirements so we can discuss those and try to find a solution >that fits. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227561#4227561 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227561 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problems starting jboss on linux when using -b
Removing our EAR fixes the issue. Now I need to figure out what is in our archive that causes jboss to cry. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227557#4227557 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227557 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Components in EJB project come and go from Seam Componen
Do you have any annotation types in your sources? Seems to be the issue which we have fixed in 3.0.1 See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=153483 and https://jira.jboss.org/jira/browse/JBIDE-4144 We are going to release 3.0.1 soon but you could try 3.0.1 nightly build or use the workaround described in http://www.jboss.org/index.html?module=bb&op=viewtopic&t=153483. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227553#4227553 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227553 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Components in EJB project come and go from Seam Componen
Okay, I should have looked at the log... (see below) JBoss Tools: 3.0.0.GA-R200903141626-H5 Seam: 2.1.1.GA Eclipse 3.4.2 JDK 6 update 13 The following exception appeared in the eclipse log after performing a clean of all projects. | !ENTRY org.eclipse.core.resources 4 566 2009-04-30 01:58:52.552 | !MESSAGE An error occurred while traversing resources. | !STACK 0 | java.lang.NullPointerException | at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90) | at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161) | at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478) | at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548) | at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239) | at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478) | at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548) | at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214) | at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478) | at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner$ASTRequestorImpl.acceptAST(JavaScanner.java:167) | at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721) | at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474) | at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736) | at org.jboss.tools.seam.internal.core.scanner.java.JavaScanner.parse(JavaScanner.java:105) | at org.jboss.tools.seam.internal.core.SeamResourceVisitor.visit(SeamResourceVisitor.java:94) | at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106) | at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58) | at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81) | at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) | at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) | at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) | at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) | at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) | at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85) | at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126) | at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68) | at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104) | at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88) | at org.jboss.tools.seam.core.SeamCoreBuilder.fullBuild(SeamCoreBuilder.java:129) | at org.jboss.tools.seam.core.SeamCoreBuilder.build(SeamCoreBuilder.java:100) | at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633) | at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) | at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170) | at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201) | at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253) | at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) | at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256) | at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309) | at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341) | at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140) | at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238) | at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) | | !ENTRY org.jboss.tools.seam.core 4 0 2009-04-30 01:58:52.552 | !MESSAGE An error occurred while traversing resources. | !STACK 1 | org.eclipse.core.internal.resources.ResourceException(/temptrack-ejb)[566]: java.lang.NullPointerException | at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90) | at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161) | at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478) | at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548) | at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239) | at org.eclipse.jdt.core.dom.ASTNode
[jboss-user] [JBoss jBPM] - Design Patterns
Hi I new to the forum but have been using jBPM for a bit now (and loving it). I have a couple "design pattern" questions to ask. 1) Should jBPM be used as a "fancy" server side batch processor/scheduler where the token recurses from one processing node to a decision node and then, based on the decision, back to the processing node using a timer thats set at some interval like 1 minute? Will this cause stack overflow problems eventually? Will this cause the log file to get ridiculously large? 2) What is the practical limit of child token hierarchy levels? In other works if a fork is used to send a token back to the node it came from and parallel another token to a different node (resend algorithm), what limit should be put on the resend (or should this algorithm simply not be used), before the child tokens get to be too many and stack over flow occurs? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227546#4227546 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227546 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - EJB QL Bulk update: Reset manyToMany-Relation
Hi all, I have two enties having a many to many relation with each other. Let's call them A and B. The relation is defined via a join table A_B, defined in B. Now I want to remove all B's from the database with a bulk update with a named Query DELETE FROM B But the database tells me that this is not possible because of foreign constraints. These apply to the relation table, of course. My question is: is there a way to reset the relation / clear the relation table from within EJB? And: I googled for the EJB specification, but I have not yet found it. Any hints? Thanks in advance, Jochen View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227531#4227531 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227531 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user