[jboss-user] [JBoss Tools (users)] - How does -test project reference dependent libraries?
So after many hours, I'm finally grokking how the four projects work together, and I like it :) But I don't understand how the -test project is supposed to pick up its jar dependencies for things that live in .ear/lib. The -ejb and -war projects get the "Ear Libraries" magic library that picks up anything referenced in MANIFEST.MF's Class-path, because the -ear project references them as J2EE Module Dependencies...but not so the -test project. So do I have to add those jars to the -test project's lib/ dir, i.e. do I have to manage two identical sets of jars? Thanks! -Clint View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136876#4136876 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136876 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: growableArray.cpp. Out of swap space?
One additional answer. Swap space is 2GB. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136875#4136875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136875 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - a little prombel about using EJB3.0
i met a promble when i was using EJB3.0. i'd like to search a part of values from the table, so i used em.createNativeQuery() and the sql statement is "select cifno,cifname,idnum from cr_personinfo where rownum <50". but it can not run properly .here is the error message: "can not read column value from result set" so i change the sql statement "select * cr_personinfo where rownum <50" it can run properly . why ? thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136874#4136874 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136874 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: question about JobExecutor and Threads
"jbarrez" wrote : | The JobExecutor which you can find in the distribution is a normal Java thread, which is checking the database for available Jobs and executing them at regular time intervals (configurable in config) We are evaluating jBPM for the application on application server, not a stand alone java application, such as IBM WAS. I believe that WAS doesn't like to have application components creating unmanaged threads. Does someone run this class on WAS in production? Instead I wrote MDB to execute Job table entries to utilized managed thread. Does jBPM have a plan to do the same approach? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136873#4136873 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136873 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Fork Join and Async Nodes
Our team has been evaluating jBPM as the main flow control platform, and this is literally show stopper. Some threads and doc suggested to set isolation level to READ_COMITTED, but I don't think it can solve the issue. When parallel nodes enter into Join node, Join.execute must be executed serialized fashion to check all parallel node status to decide to exit the join. The issue seems like that Hibernate is treating Token object in optimistic locking fashion even in Join.execute method. But what we need in the Join scenario is pessimistic locking, because join will be executed by multiple thread possibly in different JVM, so database level parent Token record level locking is required. Is it possible to use pessimistic locking only in Join.execute()? Here is waht I tried with limited Hibernate knowledge, but all didn't work. In execute method in Join node, when it call session.lock(parentToken, LockMode.FORCE), hibernate seems like incrementing version (why for locking???), and same operation to the same object in another thread throw StaleObjectStateException. This is basic feature we need for concurrent operation, and very easy to implement with SQL based programming with "select for update". I tried to LockMode.UPGRADE too, but the result was same. So, I tried to called "select for update" against parent Token record instead of using session.lock(), and this operation worked as I expected, but when committing transaction on JbpmContext.close(), later thread still throw StaleObjectStateException. OK, then I load object after getting lock (after select for update) by session.load(parentToken.getId(), Token.class, LockMode.UPGRADE), but surprisingly the parentToken object returned still had old version, even DB record was committed and version was incremented. Am I doing something wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136872#4136872 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136872 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: StaleObjectStateException in a Fork with states
Was this issue for the join with multi-threads fixed? I am facing same issue, too. My application server is Oracle, IBM, and Fujitsu with Oracle 10g DB. I have two parallel asynchronous nodes between fork and join, and these node are executed by different thread via MDB. Here is what I understood from code so far. In execute method in Join node, when it call session.lock(parentToken, LockMode.FORCE), hibernate seems like incrementing version (why for locking???), and same operation to the same object in another thread throw StaleObjectStateException. This is basic feature we need for concurrent operation, and very easy to implement with SQL based programming with "select for update". I tried to LockMode.UPGRADE, but it's same. So, I tried to called "select for update" against parent Token record instead of using session.lock(), and this operation worked as I expected, but when committing transaction on JbpmContext.close(), later thread still throw StaleObjectStateException. OK, then I load object after getting lock (after select for update) by session.load(parentToken.getId(), Token.class, LockMode.UPGRADE), but surprisingly the parentToken object returned still had old version, even DB record was committed and version was incremented. Does someone solve this issue? or am I doing something wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136870#4136870 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136870 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Guys, EL expression/JSTL tags just display literally on
My web.xml, element didnt have any mention of the namespace. May be the container assumed its favorite I think. I found information from this link: http://forum.java.sun.com/thread.jspa?threadID=552164&messageID=2701247 I updated my web.xml to reflect the following: | http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd" version="2.4"> | Then things started working. I mean the EL gets evaluating. I think the container goes by this namespace declaration to determine its compilation/translation/execution process. I do not know exactly what/how it works based on the namespace declarations. I had to clear the cache of JBoss App server though (jboss/server/default/work/... and jboss/server/default/tmp/...). Until then I was not able to see the change. Pretty misleading because of the App server Cache. I think any changes to JSP or XML files, it is better to stop the server, clear the App server cache, redeploy the application and restart the server to see the results of whatever we modified in the application. Thanks Guys. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136869#4136869 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136869 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: growableArray.cpp. Out of swap space?
Thanks, Peter. Definitely looks like we're leaking someplace. Just found out from admins that the startup params are: -Xms2048m -Xmx2048m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 There's 8GB on the box and two instances running with these settings. Not sure why the GCInterval was set this high and will look to tighten that up... could that cause the memory bloat over time? Your note did get us to look at the other usage on the box, as well, and so we may be able to find something there. (we were assuming that 8GB should be plenty to support 2 JBoss instances with Xmx2048m) Thanks! John View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136864#4136864 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136864 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: combination of JAAS
Hi! I was asked by a response to my blog post (http://roneiv.wordpress.com/2008/02/19/perform-a-jaas-programmatic-login-in-jboss-try-to-solve-the-empty-remote-user-problem/) to comment and maybe help on this issue. I'm no expert on these matters, but I've managed to use the WebAuthentication BOTH from servlet context and from a handler to login a user to the application. And the user is properly set also in web container, so both externalContext.getRemoteUser() AND externalContext.getUserPrincipal().toString() return the logged on username. Zilbi, it is my understanding that you have managed to log on to your application whith basic form-logon, using j_security_check etc. That's nice, because we then know that your login-config and ds works. Still, I will provide an example of the login-config I use, just in case it matters ;) This one uses a database with a user table, but the groups are static: | | | | java:/myDatasource-ds | Select password from user_table where user_name =? AND active = 'true' | Select 'user', 'Roles', 'RoleGroups' from user_table where user_name =? | md5 | hex | false | | | | | The first thing to try is that the WebAuthentication class works as it should. Create a LoginHandler or something similar, with a method login() and two helper-methods getRemoteUser and getUserPrincipal. Something like this: | public class LoginHandler | { | | public String login() | { | WebAuthentication webAuthentication = new WebAuthentication(); | | String hardcodedUserName = "[EMAIL PROTECTED]"; | String hardcodedPassword = "zilbi123"; | | if (webAuthentication.login(hardcodedUserName, hardcodedPassword)) | { |System.out.println("Logged in successfully");; | | log.debug("userPrincipal: " + getUserPrincipal()); | log.debug("remoteUser: " + getRemoteUser()); | } | else | { | log.debug("Login failed"); | } | | return ""; | } | public String getUserPrincipal() | { | FacesContext context = FacesContext.getCurrentInstance(); | ExternalContext externalContext = context.getExternalContext(); | return externalContext.getUserPrincipal() != null ? externalContext.getUserPrincipal().toString() : "null"; | } | | public String getRemoteUser() | { | FacesContext context = FacesContext.getCurrentInstance(); | ExternalContext externalContext = context.getExternalContext(); | String remoteUser = externalContext.getRemoteUser(); | return remoteUser; | } | | } | We basically hardcode the username/password, and just test if we get login to work. You should of course change these values to something that matches your login domain. Then create a simple jsp, but don't put it inside your protected folder. I see from you web.xml that you protect everything under /protected/*. Create it one level up so that you can access it without being asked to log in. In this jsp you will have a stupid commandButton, as well as two outputs that displays the remoteUser and userPrincipal: | | | | | | | | | | | | | | | | | | | | | | Now, launch your application by going to this page. You will see that userPrincipal shows "null" and remoteUser is empty. Press the Login button. When the page reloads it should display your username in both outputTexts. If you check your log or console it should say "Logged in successfully." The user is now properly set in the web container. Do you get this to work? Also, if you now try to change the url to go to one of your protected pages, you should not be redirected to any login.jsp, but the page should display properly - because you are already logged on. Then, to do the logon from a servlet there's really not a big difference. I set up my web.xml to use a FORM-based logon, like this: | | FORM | | /login.faces | /loginFailed.faces | | | I also register my LoginServlet in web.xml like this: | | LoginServlet | com.test.servlet.LoginServlet | | | | LoginServlet | /LoginServlet | | My login.jsp is 99% the same as when using j_security_check, we just point the action to the LoginServlet instead: | | | | Username: | | | Password: | | |
[jboss-user] [JBossCache] - Re: Random 1.6gb object allocation attempt when using tcppin
It's funny that a packet with "bela" in it would cause somebody's program to crash. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136855#4136855 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136855 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Replication setting per region
I don't see why you couldn't subclass the replication interceptors to simply ignore certain FQN. Unfortunately, it's not that straightforward to set up your own interceptor chain. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136854#4136854 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Guys, EL expression/JSTL tags just display literally on my p
I have JBoss 4.2.2, downloaded this Apache Taglibs standard.jar and jstl.jar and put these jars in jboss/server/default/lib directory; got past the compilation errors. Now on my rendered HTML page, EL expression just gets printed as it is in JSP, it does not get evaluated, seems like JBoss JSP compiler just does not apply tag library. However my java scriptlet prints the values correctly. Can you guys help me. Thanks for your time. Following is my JSP code | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> | <%@ page import="java.util.ArrayList" %> | <%@ page import="com.model.Friends" %> | http://www.w3.org/TR/html4/loose.dtd";> | <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> | | | ... | <% | ArrayList friendsList = (ArrayList) request.getAttribute("friendsList"); | if (friendsList != null) { | int i = 0; | for (i=0; i | <%=f.getFirstName()%> | <% | } | } | else { | %> | <%=new String("List is null")%> | <% | } | | %> | | |First name : |Last name : |Comments : | | ... | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136848#4136848 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136848 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
email me a patch (off trunk?) and I'll have a look. You should also create a unit test, along the lines of the BDBJECacheLoaderTest or JDBCCacheLoaderTest (just extend the base test class which does all the real work). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136844#4136844 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136844 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: JBoss AOP thinking
hi, ill try to answer a few of the issues/questions you have (i cant answer all of your questions so if there are others that can, please fill in :) 1. maven plugin: its true that we do not have a mavenplugin for 1.5, the one in svn is tagged against the CR release and is targeted towards the 2.0 release. note that the aopcompile weaving is compatible from 1.5 to 2.0, so you could use the plugin and still run it on jboss aop 1.5. 2. build issue. yes, regarding the dependency issue where the interceptors are located in a different module than the classes thats getting weaved i can understand your frustration. but atm i havent found any good solutions yet (if you have any suggestions please let me know, - do you know if aspectj have a way do to this?) 3. jboss aop & hibernate yes, in the current 1.5 release there were a few issues, but afaik they are all fixed in svn. 4. debugging. please elaborate. if you're thinking about debugging the weaving i personally think that the debug option is quite nice, its logging a lot, but then again you get all the info you need. 5. hot swap issue yes, from what i can understand this is the issue with aop changing the code at runtime. have you tested this using compiletime weaving? just to make sure regarding the startuptime with loadtime weaving. you minimized the target packages that was weaved to just those packages that had to be weaved? eg. if the entities were located in com.foo.bar.entity, thats the only package that you included in the weavingoption? (and you excluded everything else?) we are atm working hard on getting 2.0 out the door, we're tagging our last CR release atm (or it has already been tagged). there is a lot of nice stuff that we're very excited about and we have fixed a lot of the bugs that was reported in the 1.* version. we'll also try to add a tool to make it easier to compile and run aop programs. we would also really like to update/fix/rewrite the aopplugin for eclipse, but it dont think anything will happen before 2.0. hopefully we can help you with your issues and you'll continue using jboss aop :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136842#4136842 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136842 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Eclipse 3.3.2 + JBoss tools 2.0.0GA + JBOSS 4.2 - new
Summary: Eclipse 3.3.2 and WTP 2.0.2 break our seam apps. You should either downgrade to the supported platform or read the above-mentioned thread (and the JIRA issue) for work-around advice. JIRA http://jira.jboss.org/jira/browse/JBIDE-1862 Eclipse bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=222531 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136838#4136838 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136838 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Eclipse 3.3.2 + JBoss tools 2.0.0GA + JBOSS 4.2 - new
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=131331&postdays=0&postorder=asc&start=0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136837#4136837 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136837 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Eclipse 3.3.2 + JBoss tools 2.0.0GA + JBOSS 4.2 - new SEAM
I've built a simple shell SEAM project using Eclipse 3.3.2 + JBoss tools 2.0.0GA in accordance with the Seam Dev Tools Reference Guide at http://docs.jboss.org/tools/2.0.0.GA/seam/en/html/create_new_seam.html I didn't create anything other than what is generated by the SEAM wizard for a new SEAM project. I just tried to deploy to do a quick sanity check. Deployment fails because the EAR doesn't have the jboss-seam.jar file, even though it is in the EarContent directory generated by the Seam project wizard. Is there some setting somewhere that I can look at to see where/how the EAR file is actually generated? Thanks, Brad Details: Eclipse 3.3.2 + JBoss tools 2.0.0GA + JBOSS 4.2.2 GA. I reinstalled eclipse and jboss tools from scratch and did an update to ensure a 'clean' eclipse environment. Deploying to JBOSS 4.2 generates the following exception on the JBOSS server: Could not initialise deployment: file:/E:/servers/jboss-4.2.2.GA/server/default/deploy/GreatRides-ear.ear org.jboss.deployment.DeploymentException: Failed to find module file: jboss-seam.jar at org.jboss.deployment.EARDeployer.init(EARDeployer.java:295) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) ... I have verified that the (project)-ear\EarContent directory does in fact have jboss-seam.jar in it: (project)-ear\EarContent\ antlr-runtime.jar drools-compiler.jar drools-core.jar jboss-el.jar jboss-seam.jar jbpm-jpdl.jar mvel14.jar richfaces-api.jar When I do a jar -tvf on the generated .ear file, jboss-seam.jar (and the others) are missing: e:/servers/jboss-4.2.2.GA/server/default/deploy $ jar -tvf GreatRides-ear.ear 0 Fri Mar 14 18:15:46 EDT 2008 META-INF/ 106 Fri Mar 14 18:15:44 EDT 2008 META-INF/MANIFEST.MF 4565 Fri Mar 14 18:15:46 EDT 2008 GreatRides-ejb.jar 4240037 Fri Mar 14 18:15:46 EDT 2008 GreatRides.war 1238 Fri Mar 14 14:42:12 EDT 2008 META-INF/application.xml 290 Fri Mar 14 14:42:12 EDT 2008 META-INF/jboss-app.xml 139 Fri Mar 14 14:42:12 EDT 2008 security.drl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136836#4136836 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136836 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: upgrade to WTP 2.0.2 breaks EAR deployment in JBoss Tool
http://jira.jboss.org/jira/browse/JBIDE-1862 - a workaround exists ;) Remove the module tags for the missing jars in the application.xml. You may need to close / re-open or unpublish / republish the ear project right after making these changes. This is not a full solution, though, as it doesn't allow the module tags to remain if the user wants them there ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136833#4136833 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss and Postgres on 2 machines
If you have a profiler you can attach it to the jbossas to see what it is doing. Or you could take multiple jvm thread dumps and see what the threads are doing; that will sometime point out code hot spots. Also, have you eliminated garbage collection as being the issue? Have you gathered gc data (using -verbose_gc is usually sufficient) and analyzed it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136828#4136828 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - beginners question about MBeans
Hi I would like to have a preview in runtime, how many users are currently on site. I have session scoped bean, named SessionData, which is created for each customer that visit the site. Now I would like to see how many instances are created, I suppose I could use MBeans and JMX console for that? What I expect with this thread is an answer if I'm right, and if, please give a link if you have, to tutorial how to do it without going deeply into mbean's topics - I know it's interesting thing, but now I have enough problems with my app performance and need quick solution to measure page load :( Thanks in advance, Michal View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136826#4136826 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss and Postgres on 2 machines
I'm sorry, it's the machine with jboss, postgres is almost idle. I believe all important indexes have been set already, I have also reduced ejb usage. Earlier I had a problem with "no more connections available", but this is sorted out by replacing ejb with dao in most places. Now this. it's really amazing, one machine (4xXeon Dual Core 2,6GHz and 8GB RAM, jboss using only 1,4) can handle jboss and postgres together better, than leaving postgres on this one and moving jboss to 2 Xeon Dual Cores 3GHz with 3,75 GB RAM. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136825#4136825 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136825 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Issue with the JBoss HelloWorldIPC portlet
"linpeizhang" wrote : Thanks for your post, briandehaven! I didn't complete get your point. Do I have to add your new portlet to make the HelloWorldIPC example work? Or I can simply add the transaction attribute to the existing PortletA and PortletB instance? | | I think a lot of people like myself are still suffering this issue. I appreciate if you can share more details! | | Thanks, | Linpei Just add the element mentioned above to the configuration of any portlet that tries to traverse the PortalNode tree. My portlet was just showing that the problem only arose when you tried to reach PortalNode's outside the current portlets ancestor list. It was duplicating the HellowWorldIPC problem, just so I knew where the problem was happening. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136824#4136824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136824 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Completely confused JCA and Hibernate
My apologies. I've searched and searched. I'm confused about my current configuration for Hibernate. Basically we use Hibernate.getCurrentSession() to 'get' and 'save' information. We have CMT and an XA-datasource configured. Is Hibernate using any part of JCA for its work? (the example mysql-ds.xml was in the examples\jca directory). And if I want to use the WorkManager, what am I supposed to do? Is there some default RA to use with JBoss that already works with the WorkManager? Here is the use case: 1) stateless EJB inserts a record into table A: (get the primary key from the insert) 2) asynchronously do some 'work' that will use the PK from step 1 to insert into child table B The problem is 1) TX1 is created for the insert 2) TX2 is created by the WorkManager for the inserts into the child table B. But TX2 cannot see the changes made by TX1. I can set the isolation level to read uncommited but that is ridiculous. I think TX1 and TX2 should be able to see the changes and act as a coordinated transaction. It's just that this is trivial stuff and I can't imagine I need to write some RA just to do something this simple. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136821#4136821 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136821 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: growableArray.cpp. Out of swap space?
Looks like the JVM is attempting to allocate another 128MB of memory (probably to expand the heap) and the OS is saying that it can't allocate the memory because it has run out - even the swap space is full. How much RAM do you have? What is your swap space size? What is the non-JBossAS memory usage? What do you have the JVM heap sizes set to? I am guessing that -Xms and -Xmx are not the same. You can usually detect a memory leak by gathering gc statistics using -verbose:gc and noting the amount of heap space in use after a major collection. After about a dozen or so major collections, assuming that the work load is consistent, the heap in use after major gc should be about the same. If it goes up, there is a possible memory leak. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136815#4136815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136815 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - How to tie a web application to a specific port?
Hi, I have been trying to link a web application to a port and I haven't been successful so far. I have two web applications A and B and would like to access A from port 8443 and B from port 8444. When I add connectors for 8443 and 8444 in the server.xml file, both A & B can be accessed from both the ports. My issue is I don't want A to show up on 8444 and B to show up on 8443. How can I achieve this in jboss? Any help would be appreciated. Thanks Poornima View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136812#4136812 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136812 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Unable to use WSRP over SSL for self producer
Chris: I've updated the WSRPUseSSL wiki page - please take a look (and correct as necessary ;-) Thanks again for your help, - Dan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136805#4136805 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136805 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: growableArray.cpp. Out of swap space?
Was a resolution ever found for this problem? Different JVM options? What are the odds that we would see the exact same error with the exact same size? Exception java.lang.OutOfMemoryError: requested 131072000 bytes for GrET* in /BUILD_AREA/jdk1.5.0_14/hotspot/src/share/vm/utilities/growableArray.cpp. Out of swap space? Any chance this is a JBoss leak? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136801#4136801 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Local not bound
The PrintServer class is a servlet (it extends HTTPServlet). Yet you are declaring it to be an EJB (@Stateless) and a Seam component (@Name. @Scope). I doubt that you can do that to a servlet. You might want to ask this question in the Seam forum http://www.seamframework.org/Community/SeamUsers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136800#4136800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Local not bound
I'm working on a my first custom servlet, and I'm making progress. I've looked at the posts of people who are rendering PDFs using iText directly, and the favorite design seems to be to tie the servlet to a URL using the web:context-filter tag in components.xml to let the servlet work inside Seam. I'm getting an error that I can't track down. Something to do with the servlet lifecycle, I suspect. The error looks like: ... | Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: printServer | at org.jboss.seam.Component.newInstance(Component.java:1962) | at org.jboss.seam.Component.getInstance(Component.java:1865) | at org.jboss.seam.Component.getInstance(Component.java:1832) | at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55) | at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50) | at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166) | at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53) | at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53) | at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64) | at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) | at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34) | at org.jboss.el.parser.AstValue.invoke(AstValue.java:95) | at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) | at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) | at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77) | at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91) | at javax.faces.component.UICommand.broadcast(UICommand.java:383) | at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184) | at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162) | at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350) | at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) | ... 42 more | Caused by: javax.naming.NameNotFoundException: local not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) | at org.jnp.server.NamingServer.getObject(NamingServer.java:543) | at org.jnp.server.NamingServer.lookup(NamingServer.java:296) | at org.jnp.server.NamingServer.lookup(NamingServer.java:270) | at org.jnp.server.NamingServer.lookup(NamingServer.java:270) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at org.jboss.seam.Component.instantiateSessionBean(Component.java:1279) | at org.jboss.seam.Component.instantiate(Component.java:1265) | at org.jboss.seam.Component.newInstance(Component.java:1958) The servlet looks like: @Name("printServer") | @Stateless | @Scope(ScopeType.CONVERSATION) | public class PrintServer extends HttpServlet implements IPrintServer { | | private static final long serialVersionUID = 1278807414184735439L; | | @Logger | private static Log log; | | public String test(String message) { | log.info("Running printing test method", "Arg = " + message); | | return "Printing test message = " + message; | } | | protected void doGet(HttpServletRequest request, HttpServletResponse response) | throws ServletException, IOException | { | String path = request.getContextPath(); | log.info("Running doGet method: path: " + path); | | ServletOutputStream out = response.getOutputStream(); | out.println("Hello World! in doGet"); | } | | protected void service(HttpServletRequest request, HttpServletResponse response) | throws ServletException, IOException { | log.info("Running service method in Print Servlet"); | | try { | String path = request.getContextPath(); | log.info("Running service method: path: " + path); | | ServletOutputStream out = response.getOutputStream(); | out.println("Hello World! in service"); | } | catch( Exception ex ) | { | log.error( "PrintServer", ex.getMessage()); | } | } | } And the page that invokes
[jboss-user] [JBossWS] - Re: Call a web service
Can you make sure that the url for the wsdl is accessible? For example you can put the url in a browser location bar and make sure it shows up. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136797#4136797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Tracking Who Completes a Task
Is there any way to see in JBPM who completed a Task Instance? I have seen that the person assigned to the task does not have to be the one who completes it, so it is important to have this information. Also, will there ever be a restriction where the person completing the task must be the assignee? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136796#4136796 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Turn on clientAuth only on the web services
Thanks Thomas. Do you mean that we need to authenticate endpoints even when we access them from different ports? Is there a way to disable a web application to be accessed from a port? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136795#4136795 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - problems upgrading from 4.03 to 4.2.2GA
deployment of the same ear file works in 4.0.3 but fails in 4.2.2 Getting a NoClassDefFoundError error when deploying war file embedded inside an ear file. The class that is not found is present in one of jars in WEBINF/lib directory of the war file. I can see the jar in tmp\deploy\tmp44821css.ear-contents\css-exp.war\WEB-INF\lib deploy\jboss-web.deployer\META-INF\jboss-service.xml has following properties set Java2ClassLoadingCompliance=false UseJBossWebLoader=false jboss-app.xml in ear file has css-1.0.0:service=LoaderRepository >From the jmx-console I access the LoaderRepository, the URLs list contains >tmp\deploy\tmp44821css.ear-contents\css-exp.war displayClassInfo - returns "Not loaded in repository cache". Stack Trace. java.lang.NoClassDefFoundError: lt/monarch/chart/servlet/ChartServlet at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:682) at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:662) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200) at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131) at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399) at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527) at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.getRelevantServlets(JAXWSDeployerHookPreJSE.java:128) at org.jboss.wsf.container.jboss42.JAXWSDeployerHookPreJSE.isWebServiceDeployment(JAXWSDeployerHookPreJSE.java:101) at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:87) at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) Any assistance is appreciated. Thanks Anand Kumar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136794#4136794 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136794 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] Build failed
Hi, I tried to build various versions of JBoss, but unfortunately not successfully. I have no idea what failed. Here is what I did: 1) downloaded the respective sources (i.e., jboss-4.0.2-src.tar.gz, jboss-4.0.3SP1-src.tar.gz, jboss-4.0.5.GA-src.tar.gz, jboss-4.2.2.GA-src.tar.gz) 2) unpacked the file 3) ran ant from the build directory In all the cases I got 1 error and the build failed. BTW, I am able to compile/build successfully various other Java programs. Has anyone experienced the same problems? Thanks, Stephanie ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
Why not? :) Should i send you the three source files? Should i pay attention to something? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136790#4136790 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136790 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Inter-Porlet Communication for WSRP
"[EMAIL PROTECTED]" wrote : I have been able to have a WSRP portlet react to local events via JBoss Portal IPC. Note that IPC was not part of WSRP 1.0, nor Portlet 1.0 (JSR 168) so it had to be addressed in a proprietary way by portal vendors. JSR 286 (Portlet 2.0) and WSRP 2.0 offer a standard way to deal with IPC but at this time are not fully integrated in JBoss Portal (JSR 286 will be supported in JBoss Portal 2.7, WSRP 2.0 will follow sometime later). | May I ask what your use case is? Thanks for the prompt response, Chris! That's interesting. Is it possible for your to share the codes with me? We used to use local portlet invoking web services to integrate business functions across different business units. Recently, we are doing some research to explore the possiblity of using WSRP. So each business unit can write their own WSRP portlets and the Portal just need to integrate them. However, one of the difficulty we are facing is that there are some shared services currently implement in our local portlets like customizing view by user preferences and user privileges. We would like to figure out a way to host those services in Portal but make them available to all the WSRP portlets. One of the solution we are exploring is to make some local Portlet provding such services and WSRP portlets can use IPC to utilize those services. Essentially, we would like the WSRP portlet to pass some data object to a local portlet and be able to get some data back. We looked into the local IPC model of JBoss Portal. But not sure if the same event model will work for WSRP porlets. Your positive answer seems pretty promising. We will love to see some example codes. Thanks, Linpei View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136787#4136787 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136787 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Re: Quartz differences
Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136785#4136785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136785 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - I can't create .SAR from eclipse
Hello everyone, Fist of all, I'm quite new with eclipse and JBoss, and I've tried reading all the information I've found about them before asking you... But I've not succeed in the next problem. If any of you can help me, I'd be deeply thankfull... I'm developing a web application with eclipse-JBoss. I've created an EJB project with a service. My first problem is that I cannot create a ".sar" directly by building the project, and surfing the net I saw a trick... I change the extension ".jar" to ".sar" manually inside the ".ear" produced. I thought this was not so bad as the service seems to work in this way... But I'm sure there should be a way to get directly the file .sar The second problem (the main one) is that I can access and use properly all the web pages, BeansClients and ServerBeans if the service is not started. But when I started the service (manually from JBoss), some parts of the project stop working. Might the second problem follows the first one? Any help in any of them? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136783#4136783 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136783 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - firewall issue
I have JBoss 4.0.4 installed on a Linux box. It is running behind a firewall with NAT. It has its own private IP address non-addressable from outside - very typical. I searched and found some document regardingt to set -Djava.rmi.server.hostname to the public IP address of the server when starting JBoss server. The client, using EJB3, can create an initial context to the server without problem. But the first lookup through the context will fail. The client console indidcate that it is trying to access InvokerLocator at socket://x.x.x.x:3873. The x.x.x.x is the private IP address of the server not accessible from outside. So the call will fail. The 3873 is defined in deploy/ejb3.deploy/META-INF/jboss-service.xml with socket://${jboss.bind.address}:3873 Apparently, it is bound to the private IP address. But I can't change it to the public IP address since the public IP address is a NAT through the firewall and is not valid in the server box. What do I need to do to return the public IP address to the client and at the same time be able to start InvokerLocator using the private IP address? I have the -Djava.rmi.server.useLocalHostname=false. It does not seem to make a difference true or false. I don't think it matter in my case. Thanks in advance, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136780#4136780 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
RE: [jboss-user] [Installation, Configuration & DEPLOYMENT] Classloader problem - NoClassDefFoundError - JBossclass ServiceMBean
Some update here - I am able to move forward after we removed "jsptl-jx.tld" from all tag libs. That is very strange. Why were jboss classes were showing up as NoClassDefs.. Does somebody have an explanation. I read jboss classloader but I can not correlate. Thanks Tapan I want to instantiate my service. In my service file mbean entry is as follows - com.integral.jmsx.jndi.JmsJndiInit jboss:service=Naming jboss.ejb:service=EJBDeployer jboss.jca:service=RARDeployer I put some debugs in ServiceCreator and ServiceConfigurator files and I find that jboss files themselves are not in classpath!! (Please see the following log) What might be happening here. By the way there is no problem in the code - it is working in some other code branch. I am trying to port the code to other jboss instance. The jboss startup shows that all files from jboss.home/lib folder (and many more from my own server instance/lib folder ) have got loaded Also there are other "service files" which I see have successfully got deployed. 00:28:05,542 -DEBUG [Integral5] Watching new file: file:/E:/cvs_views/jboss-4.0.5/server/integral/deploy/sonicmq-service.xm l 00:28:05,548 -DEBUG [Integral5] create step for deployment file:/E:/cvs_views/jboss-4.0.5/server/integral/deploy/sonicmq-service.xm l 00:28:05,553 -DEBUG [Integral5] Deploying SAR, create step: url file:/E:/cvs_views/jboss-4.0.5/server/integral/deploy/sonicmq-service.xm l 00:28:05,557 -DEBUG [Integral5] Registering service UCL=jmx.loading:UCL=d647d8 MBEANS ARE [] Inside internal install Before service creator . install Code in Service Creator!!! com.integral.jmsx.jndi.jboss.JBossLoader constructor isss [EMAIL PROTECTED] 00:28:05,594 -DEBUG [Integral5] About to create bean: sonic.mq:service=JNDILoader with code: com.integral.jmsx.jndi.jboss.JBossLoader javax.management.RuntimeErrorException: instantiating com.integral.jmsx.jndi.jboss.JBossLoader failed: java.lang.NoClassDefFoundError: org/jboss/system/ServiceMBean at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBeanSer verImpl.java:1306) at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:123 7) at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286 ) at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344 ) at org.jboss.system.ServiceCreator.install(ServiceCreator.java:164) at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator .java:452) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:17 2) at org.jboss.system.ServiceController.install(ServiceController.java:226) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav a:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy4.install(Unknown Source) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher. java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav a:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy6.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentSc anner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScan ner.java:63
[jboss-user] [Clustering/JBoss] - Re: StackOverflowError when starting JBoss Cluster
"[EMAIL PROTECTED]" wrote : | | Have you tried this solution discussed on the JIRA you linked? | | How interesting... Srini must have discovered that fix after he left our offices last week (he was helping us set up the Jboss cluster)! Yes I tried that fix, and the problem has gone. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136778#4136778 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136778 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Jboss support for Webservices over REST?
Hey folks, i know this question calls for a response like: - "use the forum search!" - "Just fng google it!" - RTFM But as a matter of fact, i did all of that without any results. So, in a nutshell: Does Jboss offer any functionalities to deal with Webservices over REST? For example URL-parsing, parameter validation etc View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136776#4136776 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136776 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Inter-Porlet Communication for WSRP
I have been able to have a WSRP portlet react to local events via JBoss Portal IPC. Note that IPC was not part of WSRP 1.0, nor Portlet 1.0 (JSR 168) so it had to be addressed in a proprietary way by portal vendors. JSR 286 (Portlet 2.0) and WSRP 2.0 offer a standard way to deal with IPC but at this time are not fully integrated in JBoss Portal (JSR 286 will be supported in JBoss Portal 2.7, WSRP 2.0 will follow sometime later). May I ask what your use case is? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136775#4136775 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136775 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Error while starting server - SearchPortTypePort does no
Sorry Thomos, my bad, terrible mistake. Can you please let me know what all Jars i'll need to include in the lib to make my client work? /amol View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136773#4136773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Unable to use WSRP over SSL for self producer
"dkc" wrote : | Thanks for your help - I got it to work :-) | Glad to hear you managed to get it to work! "dkc" wrote : | - Update server/default/deploy/jboss-portal.sar/portal-wsrp.sar/default-wsrp.xml. Comment-out the "self" wsrp-producer deployment on your non-SSL port, and add the following: | | | | | | | | | https://localhost:8443/portal-wsrp/ServiceDescriptionService | | https://localhost:8443/portal-wsrp/MarkupService | | https://localhost:8443/portal-wsrp/RegistrationService | | https://localhost:8443/portal-wsrp/PortletManagementService | | | | | | | | | | | Note that you can do this modification using the WSRP admin interface as well. No need to modify the XML file if you don't want to. Thanks a lot for the detailed steps. I will update the Wiki so that it's clearer (unless you want to do it yourself to get justified credit for it ^_^). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136771#4136771 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136771 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools using Latest Seam
use the forum search on how to workaround it. (or use jboss tools 2.0.1.GA which will be announced soon) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136770#4136770 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136770 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Session being stolen / assigned to wrong person
Incorrect. We currently have just ONE JBoss server. When we had two, we used JvmRoute. But like I said, we don't use a second server anymore because we thought that might be the problem. The problem is that a user session can be transfered to a different user session. Example: 1. User logs in. 2. Adds stuff to cart. 3. Goes to checkout. 4. User becomes a different user with that person's sessionId. 5. Order is logged under wrong person. By monitoring every single request that comes to our site, we have been able to see exactly what the users are doing. One time, while the problem was happening, I went to our website and it gave me another users sessionId. I didn't have to log in. Somehow it got me confused and assigned me their sessionId. Since we have gone back to 4.0.3sp1, we haven't seen it. But it appears to exist in all the 4.2.x versions. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136763#4136763 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136763 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Configuration of application outside EAR.
I could not determine in which forum I should post. My apologies if this is not the correct forum. My application requires configuration parameters (like a props file) outside the EAR. For instance, parameters that may be different for different stages of development (dev, qa, prod). I have these right now in a props file located in the conf/ directory since I read somewhere this is on the classpath. Things work good until we get into a clustered environment where the deploy process now gets more complicated. I'm betting there are solutions more graceful than that I've just described. Custom JMX into our application? A cluster feature I've missed? tia ts. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136761#4136761 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136761 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Unable to use WSRP over SSL for self producer
Chris: Thanks for your help - I got it to work :-) My original post had a typo (my apologies) - I am actually using https://localhost:8443 in jboss-portal.sar/portal-wsrp.sar/default-wsrp.xml. I think the thing that fixed this for me was to add the following to the JAVA_OPTS in bin/run.conf: -Dorg.jboss.security.ignoreHttpsHost=true Also "[EMAIL PROTECTED]" wrote : Any reason you're not using 2.6.4 and 4.2.2? I haven't upgraded to the recommended versions due to time constraints. I have seen some of the WSRP fixes that have occurred in recent versions, and I'll recommend the upgrade to my customer. Per your recommendations (and for the benefit of others) here's what I did to configure WSRP over SSL: - Create a keystore and a server certificate. It's important that the cn matches the hostname/domain of the JBoss Portal (for me it was localhost): keytool -alias serverCert -keyalg RSA -validity 730 -keystore server.keystore -dname cn=localhost,o=org,ou=orgunit,l=location,st=state,c=country -keypass password -storepass password keytool -export -alias serverCert -keystore server.keystore -storepass password -file server.cer - Copy server.keystore and server.cer to server/default/conf - Add the following to bin/run.conf: JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.trustStore=/fully/qualified/path/to/server.keystore | -Djavax.net.ssl.trustStorePassword=password | -Dorg.jboss.security.ignoreHttpsHost=true" - Configure another SSL/TLS connector in the Tomcat config file that is used by JBoss Web (at server/default/deploy/jboss-web.deployer/server.xml) We're adding a new connector - leave the existing connector in place: - Update server/default/deploy/jboss-portal.sar/portal-wsrp.sar/default-wsrp.xml. Comment-out the "self" wsrp-producer deployment on your non-SSL port, and add the following: | | | | https://localhost:8443/portal-wsrp/ServiceDescriptionService | https://localhost:8443/portal-wsrp/MarkupService | https://localhost:8443/portal-wsrp/RegistrationService | https://localhost:8443/portal-wsrp/PortletManagementService | | | | | - If you need to turn on SSL debugging, add the following to bin/run.conf: JAVA_OPTS="$JAVA_OPTS -Djavax.net.debug=ssl,handshake" - (Re)start JBoss. You may have to save and refresh the settings for the "self" WSRP producer from the JBoss Admin WSRP tab. - Import the server.cer certificate into your browser's authorities to inform your browser that the server certificate is trusted. - You should be able to access JBoss over SSL at https://localhost:8443/portal Dan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136759#4136759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136759 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - How to get id of task
Hi. I'm trying to get the id of task. My process start and in determinate node has ActionHandler. In this action, i want to know task id. I'm be able to get node id with context.getNode().getId() and get token id with context.getToken().getId() but if I try context.getTask().getId() process thrown exception | 17:00:08,703 ERROR [GraphElement] action threw exception: null | java.lang.NullPointerException | at com.aixtelecom.actions.SaveOfferAction.execute(SaveOfferAction.java:47) | at org.jbpm.graph.def.Action.execute(Action.java:122) | at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264) | at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220) | at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190) | at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174) | at org.jbpm.graph.def.Node.leave(Node.java:382) | at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209) | 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(CGLIBLazyInitializer | .java:163) In jbpm-consel if I enter on tasks process, i can see the task with his id. How can I acces to this id? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136758#4136758 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136758 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Call a web service
Yes, you use the files generated by wsconsume in your client. As an example, say you have a hello web service (I am not sowing all the code): class Hello { | public String sayHello(String name) {...} | } wsconsume will create an interface named Hello and a class named HelloService (and possibly other classes). The code for the client is: public class Client { | public static void main(String[] args) { | HelloService svc = new HelloService(); | Hello hello = svc.getHelloPort(); | System.out.println(hello.sayHello(args[0])); | } | } Compile the client with the classes generated by wsconsume, and package the client and the wsconsume classes info a jar file. Then use wsrunclient to run it: wsrunclient -classpath client.jar Hello me View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136757#4136757 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136757 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Help with IPC
It was. The problem was that I was editing the jboss-service.xml for the portal app, instead of creating one for my own app. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136755#4136755 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Creating a servlet
I have a JBoss Seam project already in place, and I'm trying to add a service that will return a PDF from a URL request. It's my understanding that to do that I will need to modify the HTTP response, and to do that I need a component that extends HTTPServlet. I've tried to do that but I suspect that I'm missing some vital information. The code and error are below. If you read on, thank you, and prepare to be shocked by ignorance and apparently willful stupidity. But that's why I posted it in the Beginner's Corner. The component code looks like this: @Name("printServer") | @Stateless | @Scope(ScopeType.PAGE) | public class PrintServer extends HttpServlet implements IPrintServer { | | private static final long serialVersionUID = 1278807414184735439L; | | @Logger | private static Log log; | | public String test(String message) { | log.info("Running printing test method", "Arg = " + message); | | return "Printing test message = " + message; | } | } The interface code (do I even need to do that?) looks like this: @Remote | public interface IPrintServer { | public String test(String message); | } The servlet mapping in web.xml looks like this: | Print Servlet | com.mckesson.hbi.services.PrintServer | 2 | | | Print Servlet | /services/pdf/* | | The page I'm using it in looks like this: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:rich="http://richfaces.org/rich"; | template="/layout/template.xhtml"> | | | | | | | Printing test | Print: #{printServer.test("Hey Hey Kids")} | | | | The error looks like this: SEVERE: Error Rendering View[/services/pdf/print.xhtml] | javax.el.ELException: /services/pdf/print.xhtml: Could not instantiate Seam component: printServer | at com.sun.facelets.compiler.TextInstruction.write(TextInstruction.java:50) | at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39) | at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:280) | at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262) | at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:220) | at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:215) | at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121) | at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886) | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592) | 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:106) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | 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.ExceptionFilter.doFilter(ExceptionFilter.java:64) | 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.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:143) | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFil
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Teradata Configuration stop log console
I doubt that it is in the Hibernate code, having used Hibernate and Seam (which uses Hibernate), I have never experienced the logging being turned off. I suspect the Teradata JDBC driver. One way to locate the culrpit is to use AOP to instrument the Logger.shutdown() method. If you are not familiar with AOP, you could alternately modify the Logger.shutdown() method to print a stack trace when it is called. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136750#4136750 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136750 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Subdomain in jboss Portal ??
Hello, I want create 2 subdomain in portal. I add: toto.google.com |tata.google.com in the file 'portal-server.war\WEB-INF\jboss-web.xml' , and i set the conf in the apache and tomcat. when i run the jboss, i can't get reponse with "tata.google.com"?? Thanks for help!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136749#4136749 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136749 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: XAConnectionFactory not found only in Clustering
I'm running JBoss 4.0.3SP1 and I've got the exact same problem with the "XAConnectionFactory not bound" exception. Unfortunately the solution with the -b Parameter does not work in my environment. Do I have to upgrade to a newer JBoss version, or is there a way to make this work with the specified version? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136748#4136748 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136748 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss and Postgres on 2 machines
You did not say which machine goes over 80% cpu usage. Both of them? If so, I suspect that you are missing an index on one of your tables. Examining the database statistics (using a tool such as ptop) should tell you which table is the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136746#4136746 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136746 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Issue with the JBoss HelloWorldIPC portlet
"briandehaven" wrote : Found the problem. Simple fix in the end. You need to add the Required transaction attribute. The above portlet now spits out the entire deployed PortalNode structure. It should be easy to modify into a breadcrumb and/or sitemap portlet. | | jboss-portlet.xml | | | | | PageLinkPortlet | | | | Required | | | | | | | Thanks for your post, briandehaven! I didn't complete get your point. Do I have to add your new portlet to make the HelloWorldIPC example work? Or I can simply add the transaction attribute to the existing PortletA and PortletB instance? I think a lot of people like myself are still suffering this issue. I appreciate if you can share more details! Thanks, Linpei View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136742#4136742 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Install Portal 2.6.4 to existing JBoss installation?
Where did you look? Our reference guide clearly talks about this. What you are missing is datasource descriptor for portal. Depending on which bundled you downloaded, there should be a setup folder that contains sample descriptor. if you are just test it, you can try portal-hsqll-ds.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136737#4136737 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136737 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Install Portal 2.6.4 to existing JBoss installation?
Hi all- I didn't find anything in the guides about installing the Portal SAR to an existing JBoss 4.2.2 installation, but I tried to do this and get a ton of errors upon startup: ObjectName: portal:service=Hibernate,type=CMS | State: CONFIGURED | I Depend On: | jboss.jca:service=DataSourceBinding,name=PortalDS | Depends On Me: | portal:service=CMS | cms.pm.cache:service=TreeCache | portal:service=Interceptor,type=Cms,name=ACL | portal:service=Interceptor,type=Cms,name=ApprovalWorkf | | ObjectName: portal:service=CMS | State: CONFIGURED | I Depend On: | jboss.jca:service=DataSourceBinding,name=PortalDS | portal:service=JAASLoginModule | portal:service=Hibernate,type=CMS | cms.pm.cache:service=TreeCache | portal:service=AuthorizationManager,type=cms | portal:service=InterceptorStackFactory,type=Cms | Depends On Me: | portal:commandFactory=CMSObject | | ObjectName: portal:commandFactory=CMSObject | State: CONFIGURED | I Depend On: | portal:service=CMS | portal:service=ServerConfig | Depends On Me: | portal:commandFactory=Delegate,path=content | portal:service=ContentRenderer,type=cms | | ObjectName: portal:commandFactory=Delegate,path=content | State: CONFIGURED | I Depend On: | portal:commandFactory=Delegating | portal:commandFactory=CMSObject | | ObjectName: cms.pm.cache:service=TreeCache | State: CONFIGURED | I Depend On: | jboss:service=Naming | jboss:service=TransactionManager | portal:service=Hibernate,type=CMS | Depends On Me: | portal:service=CMS | | ObjectName: portal:service=InterceptorStackFactory,type=Cm | State: CONFIGURED | I Depend On: | portal:service=Interceptor,type=Cms,name=ACL | portal:service=Interceptor,type=Cms,name=ApprovalWorkf | Depends On Me: | portal:service=CMS | | ObjectName: portal:service=AuthorizationManager,type=cms | State: CONFIGURED | I Depend On: | portal:service=AuthorizationProvider,type=cms | Depends On Me: | portal:service=CMS | portal:service=Interceptor,type=Cms,name=ACL | | ObjectName: portal:service=AuthorizationProvider,type=cms | State: CONFIGURED | I Depend On: | portal:service=Module,type=IdentityServiceController | Depends On Me: | portal:service=AuthorizationManager,type=cms | | ObjectName: portal:service=Interceptor,type=Cms,name=ACL | State: CONFIGURED | I Depend On: | portal:service=AuthorizationManager,type=cms | portal:service=Hibernate,type=CMS | portal:service=Module,type=IdentityServiceController | Depends On Me: | portal:service=InterceptorStackFactory,type=Cms | | ObjectName: portal:service=Interceptor,type=Cms,name=Appro | State: CONFIGURED | I Depend On: | portal:service=Hibernate,type=CMS | Depends On Me: | portal:service=InterceptorStackFactory,type=Cms | | ObjectName: portal:service=InterceptorRegistration,type=Se | State: CONFIGURED | I Depend On: | portal:service=Interceptor,type=Server,name=CMSIdentit | portal:service=InterceptorStackFactory,type=Server | | ObjectName: portal:service=ContentRenderer,type=cms | State: CONFIGURED | I Depend On: | portal:service=ContentProviderRegistry | portal:commandFactory=CMSObject | portal:service=PortalAuthorizationManagerFactory | portal:container=Instance | | ObjectName: portal:service=ApprovePublish,type=Workflow | State: CONFIGURED | I Depend On: | portal:service=Workflow,type=WorkflowService | portal:service=Module,type=IdentityServiceController | | ObjectName: portal:commandFactory=IdentityUI | State: CONFIGURED | I Depend On: | portal:service=ValidateEmailService,type=IdentityUI | Depends On Me: | portal:commandFactory=Delegate,path=validateEmail | | ObjectName: portal:service=IdentityUIConfigurationService, | State: CONFIGURED | I Depend On: | portal:service=Module,type=IdentityServiceController | Depends On Me: | portal:service=IdentityMailService,type=Mail | portal:service=RegistrationService,type=IdentityUI | portal:service=ValidateEmailService,type=IdentityUI | portal:service=WorkflowSoftDependency | | ObjectName: portal:service=IdentityMailService,type=Mail | State: CONFIGURED | I Depend On: | portal:service=Module,type=Mail | portal:service=IdentityUIConfigurationService,type=Ide | | ObjectName: portal:service=IdentityUserManagementService,t | State: CONFIGURED | I Depend On: | portal:service=Module,type=IdentityServiceController | Depends On Me: | portal:service=RegistrationService,type=IdentityUI | portal:service=ValidateEmailService,type=IdentityUI | | ObjectName: portal:service=Registratio
[jboss-user] [EJB/JBoss] - Re: Too many open files exception JBOSS 4.2
Hi, I had the same problem with the "close_wait" connections. I managed to solve the problem with the workaround of using the jbossnative 2.0.3 library Georges View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136730#4136730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Unable to read large BLOB values from MySQL db
The getObject method returns data in the format specified by the column in the database. Because the database column type is BLOB, getObject returns byte[]. If that data is a serialized Java object, you will have to unserialize it yourself in code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136724#4136724 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136724 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: WAR deployment problem
The missing class file is located in the server/default/deploy/console-mgr.sar/web-console.war/applet.jar file. You need to include that jar in your web-inf/lib directory. Actually, because you need this jar, I suspect that your code is not written correctly because you can lookup the MBean Server without using that class. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136722#4136722 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136722 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Sharing object with READ_COMMITED?
Thanks for the reply manik. What if I wanted to have the shared objects as POJOs? Can I use JBoss Cache or other frameworks to share them and coordinate their access? Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136715#4136715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Inter-Porlet Communication for WSRP
We are trying to achieve Inter-Portlet Communication between WSRP porlets. However, we cannot find any documents for that in Jboss 2.6.4 reference guide. The best I found is this note: "Note: The portlet 2.0 specification (JSR 286) will cover Inter Portlet Communication so that portlets using it can work with different portal vendors." Can any of you please verify that whether IPC for WSRP portlets is implemented in JBoss Portal 2.6.4? If so, would you please kindly pointing me to some documents? Thanks, Linpei Zhang View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136711#4136711 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136711 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JbpmException: couldn't delete timers for process instan
please use [ c o d e ] tags (without the spaces while posting View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136705#4136705 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136705 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: TreeMap
That's because we just created it yesterday. :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136703#4136703 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136703 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Call a web service
Hello! I'm new in JbossWS. I have been looking into the documentation but... I'm a bit lost. I've generated a web service that I can see at http://localhost:8080/jbossws/services. My problem is how I can access form a client application ... and if I have to produce something with wstools. I notice that wsdl file is automaticaly created in data folder of Jboss 4.2.2. But what happens with wsconsume tools? I've executed and this created me several files. I have to use them to call my web service? or ... I have to do something similar to | String urlstr = "http://127.0.0.1:8080/proyecto/JbpmService?wsdl";; | | URL url = new URL(urlstr); | | QName qname = new QName("http://ws/";, | "JbpmService"); | | | ServiceFactory factory = ServiceFactory.newInstance(); | Serviceservice = factory.createService(url, qname); | | This second option doesn't works for me because the following exception is thrown: | Exception in thread "main" java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://ws/}JbpmService | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172) | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:134) | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86) | at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111) | at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) | at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128) | at client.JbpmWSClient.main(JbpmWSClient.java:61) | how I could solucionate this problem? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136702#4136702 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136702 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Email from the ejb layer
Sorry for the vagueness of this post. I think I was throwing the hook in the water with no bait on it to see what would appear showing my frustration. It occurred to me after this post that the request that comes in via the web service is persisted to the database (postgres) via EntityManager, then the information is pushed to a mainframe, then the response from the mainframe is updated to the database and returned to the client. So this whole transactional flow was disrupted when I tried to email (some alert because who knows how that legacy system is going to respond). Hibernate had its grip on the request object and threw all sorts of transaction errors when I tried to send and email. So I put the alert on a JMS queue spawning an asynchronous thread to take care of the notification. Response time is a huge requirement from the client and this pulled it out of the "flow". Again sorry for the lack of information. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136693#4136693 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136693 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Performance Issue with large chunk of data retreival.
OK, I am posting this as just me, not who I work for. :) First, tell me who the person is that will actually ready that huge report? Must be one of the fastest speed readers in the world. OK, So first, reports like these should be run over-night, not as ad-hoc. 2. There are products out there that generate reports like these, not necessarily in Java (did I just say that). Anyway they are products designed specifically for these types of reports, and therefore are "the right tool for the job" and not trying to pound a square peg into a round hole with a straw. 3. You might want to handle the data in batches, only bring down enough records at a time to do one page, then release that data to free up memory, and get the next page, and build up the report like that to stay away from out of memory issues. Now this will slow it down, but then again at this point you don't even get the report done. Personally, I'd look for a product that does huge reports, that that is what they were built for, rather than forcing a bad solution. Thanks Mark View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136692#4136692 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136692 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jsf for jboss 4.2
Today I had the same problem. To avoid this exception you have to add to your web.xml following lines: | org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL | true | This will disable the built-in jsf implementation (just read server output) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136689#4136689 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136689 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: StackOverflowError when starting JBoss Cluster
Sure, binding to an address is valid. If you don't specify an address, for security reasons all services bind to localhost, which is pretty useless for a production system. BTW, setting -Djboss.bind.address with the same value is redundant if you use -b. Have you tried this solution discussed on the JIRA you linked? "Srinivasu Nidadavolu" wrote : | I also got this issue. I got this error when I am binding my server to a particular IP address. | | I found a place to cause the issue. | | all\deploy\jbossesb.sar\esb.juddi.xml, java.naming.provider.url is pointing to localhost in the following way. | | jnp://localhost:1099 | | If we are binding our server to some IPaddress while starting the server, then we have to change this localhost to corresponding IP | address. I modified in the following way. | | key="java.naming.provider.url">jnp://${jboss.bind.address}:1099 | | and started the server with IPaddress. This issue is not appearing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136686#4136686 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136686 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - JbpmException: couldn't delete timers for process instance
I have a very straightforward jBPM prototype where I am using hibernate,and tomcat abd SQL Server database. I get this error sometimes on the second invocation of the same ActionHandler within a graph. I'm just prototyping now. My action handler just makes an update to a text field in the database depending on the object that is passed into the aciton handler. I'm reading about timers and right now I am not using a timer in the prototype. I'd almost like to disable them or do something within the action handler to make sure they are not causing this exception do I can continue with the developmetn of my prototype. The exception comes after the third processInstance.signal() that would take the process to transition to the thrird node in the graph (counting the start node). The graph is below: public static ProcessDefinition getTaskProcessDefinition() { JbpmConfiguration jbpmConfiguration = null; ProcessDefinition processDefinition = null; try{ processDefinition = ProcessDefinition.parseXmlString("" + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + " " + ""); } catch(Exception e) {e.printStackTrace(); } try{ HttpSession sess = FrameworkServices.instance().getSession(); JbpmContext jbpmContext = (JbpmContext) sess.getAttribute("jbpmctx"); if (jbpmContext == null) { jbpmConfiguration = JbpmConfiguration.getInstance(); jbpmContext = jbpmConfiguration.createJbpmContext(); sess.setAttribute("jbpmctx", jbpmContext); } System.out.println("saving process instance"); ProcessDefinition definition = processDefinition.createNewProcessDefinition(); ProcessInstance processInstance = definition.createProcessInstance(); jbpmContext.save(processInstance); Session session = (Session) sess.getAttribute("hibsess"); session.flush(); System.out.println("process instance saved"); }catch(Exception e) {e.printStackTrace(); } return processDefinition; } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136684#4136684 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: TreeMap
Sorry, I haven't seen the pojo cache forum. But strangely, there is no post on it ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136679#4136679 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136679 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Need Urgent help!!!! JDBC Driver class not found: com.my
anonymous wrote : is it better performance, because some services are deactivated, or is it just lower memory consumption, because some jar files are not loaded? | It depends on which service you deactivate. The "default" profile is the most commonly used. However, if you want to slim down some services which are not required in your application, then you usually create a copy of the default folder and start removing the services. See the http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossASTuningSliming especially the Slimming section for more details. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136675#4136675 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136675 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Writting cleanup script in JBOSS3.2.6 to delete list of
check out the sheduler service in our documentation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136672#4136672 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136672 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: question about JobExecutor and Threads
or in the Enterprise version, it is based on EJB Timers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136671#4136671 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136671 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Need some architectural suggestion about JBoss cache
Are you using something like Hibernate to store entities and run search queries? JBoss Cache, as a 2nd level cache in Hibernate, will ensure that cached objects are up-to-date cluster-wide. But basically, you're looking for Invalidation as a cache mode - so that changes in the cache aren't replicated; instead, stale data is invalidated. Have a look at the JBC user guide on this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136667#4136667 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136667 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Generate Form not load variables from Controller
please read the previous post by me it is *not implemented* View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136669#4136669 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136669 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: newbie question - ReplicationException
Related to what you have been saying - http://www.jboss.com/index.html?module=bb&op=viewtopic&t=131474 But yes, specific to your problem, I have created a JIRA task: JBCACHE-1307 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136668#4136668 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136668 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
If you have written a db4o Cache Loader and think it may be generally useful, do you feel like contributing it to JBoss Cache? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=413#413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=413 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Teradata Configuration stop log console
Hi Peter, You're alright, I forced the turn off code called Logger.shutdown() method in my code of application... But in my application I don't call this method or other to force stop of logging, now I have no idea where this call occour, have you? Hibernate code? Maybe... Thank you, Fabio. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136665#4136665 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136665 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] Re: deploy/integrate Alfresco Content management in JBoss portal
See Thread at: http://www.techienuggets.com/Detail?tx=21646 Posted on behalf of a User How can i see content of alfresco in JBoss In Response To: Hi, Can anybody please tell me How to deploy/integrate Alfresco Content management in JBoss portal. I want to integrate Alfresco Content Management( alfresco2.0 war or more version) with Jboss portal 4.2.1 (or more version). And iam successfully integated Alfresco 2.0 with Jboss4.2.1GA. thanks in advance. somi. ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Sharing object with READ_COMMITED?
There are many tradeoffs that you need to consider, which are specific to your app's requirements. If the objects are EJB3 entities, they will already be cached in the 2nd-level cache. JBoss's EJB3 JPA implementation uses Hibernate, which in turn uses JBoss Cache. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136664#4136664 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136664 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: FetchInMemoryState && InitialStateRetrievalTimeout
Thanks, It seems to make sense. I`ll do some test to fully understand it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136653#4136653 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Web Traffic Logging
Hi Thanks for the reply. I was kind of hoping to avoid front ending it with apache ( resource are kind of limited) but it seems its the only way out. Regards Stefan. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136651#4136651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136651 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Sharing object with READ_COMMITED?
Hi Manik, I'm still in the design phase, so I don't know exactly what this objects I want to share will end up being. I know their general structure and the information they will hold. >From some search around it seems like making them entities would allow some >good results, but I'm concerned about the performance issues. Anyway, as I'm still designing, I'm very open to any inputs you might have. Is making them entities preferable over, say, having them serializable and managed by JBoss Cache or similar frameworks? What about using the JNDI to expose them? (but then there are all the synchronization issues that arise...) Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136649#4136649 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136649 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: UserProfileModule.setProperty() not saved
Sorry for the post, I found that I had a typo in my code. My apologies again. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136647#4136647 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136647 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - blog portlet in jboss portal 2.6.3
hai to all, i need war file or source code for blog portlet in jboss portal 2.6.3.i am going to add this portlet in my application.I tried the preview version of blog portal of jboss but it is showing the deployment failure in jboss portal 2.6.3.please it is very urgent the code for that portlet .can anybody send me the war file or source code for the blog portlet. Thanks to all in advance, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136645#4136645 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136645 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Replication setting per region
Hmm, that is a bit more tricky. Are you suggesting that some entities need to be replicated while others not? If that is the case, perhaps you could use different hibernate configurations, perhaps using shards? Disclaimer: I haven't investigated or thought about this too much, I could be talking rubbish! :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136643#4136643 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136643 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Message faults not signed
We have a project running on JBoss 4.2.0 (JBossWS 1.2.1.GA) which exposes an EJB3 web service like: | @Stateless | @WebService(wsdlLocation="META-INF/wsdl/LovWS.wsdl", targetNamespace = "http://rep.oio.dk/wmdata.dk/as2007/schemas/2006/11/20/";) | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT) | @HandlerChain(file = "resource://META-INF/ServerHandlers.xml", name = "SecureHandlerChain") | @WebContext(contextRoot="/as2007/facade") | public class LovWS extends WSBean { | . | . | . | @WebMethod() | @WebResult(name="resultat") | public LovType hentLov(@WebParam(name="Kode") String kode) throws WSException{ | if ("".equals(kode)){ | throw new WSException(165,"Kode argumentet er tomt"); | } | . | . | . | } | } | Now if the request to the web service is successful, the response is singed as expected. However, if any exception is thrown and a SOAP fault is returned, then the SOAP body is not signed. Is this expected behavior? Is there any way to get JBossWS to also sign the SOAP faults? Best regards Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136642#4136642 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136642 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: FetchInMemoryState && InitialStateRetrievalTimeout
Preload specifies which Fqns to preload from a cache loader, regardless of whether you are refereing to a ClusteredCacheLoader or a local persistence engine such as a JDBCCacheLoader. Also, preload allows you to be more fine-grained with what is preloaded, e.g., | /catalog, /users, /countryCodes | fetchPersistentState, on the other hand, is a flag that is only used with fetchImMemoryState. If the latter is true and you are retrieving all the state from a neighbouring cache in startup, state in any cache loader marked with fetchPersistentState set to true will be retrieved as well. So, it's not mutually exclusive, and in fact pertains to different functions altogether. Hope this makes sense... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136636#4136636 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136636 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: question about JobExecutor and Threads
The JobExecutor is there to, like it's name says, execute Jobs. Such a Job is for example a Timer (Timer is a subclass of Job). If you look into the code of the JobExecutor, you will see that it queries the database for jobs whow duedate is passed, which means that this job should be executed. The JobExecutor will then delegate to the execution of the Job. The JobExecutor which you can find in the distrubution is a normal Java thread, which is checking the database for available Jobs and executing them at regular time intervals (configurable in config) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136633#4136633 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136633 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Exception in thread
We've created a new forum for POJO Cache specific questions - I suggest you post this question there. http://jboss.org/index.html?module=bb&op=viewforum&f=277 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136632#4136632 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136632 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
You need to build a WS wrapper yourself and expose whatever you need to expose. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136626#4136626 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136626 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBoss cache syncronization with Database
How does the data in your "DATABASE" get into the cache in the first place? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136623#4136623 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136623 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - PortletRequest.USER_INFO returns nothing
Hi, I'm trying to retrieve user information from the PortletRequest.USER_INFO attribute, however it returns nothing all the time. The complete snippet is: protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException { | | Map userInfo = (Map)rRequest.getAttribute(PortletRequest.USER_INFO); | Set keys = null; | if (userInfo!=null) { | keys = userInfo.keySet(); | logger.info("userInfo.size()=" + userInfo.size() ); | } else { | logger.info("user info is null"); | } | if (keys!=null){ | for (String key : keys) { | logger.info("These are the keys: " + key ); | } | for (String key : keys) { | String[] arr = (String[])userInfo.get(key); | for(int i=0;ihttp://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136620#4136620 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136620 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Problem with Timer execution. process classloader can't find
Hi, I have a problem with the execution of an action for my timers. I am using JBPM 3.2.2 with Tomcat and try to execute a process with a timer on 2 tasks in a fork. The part of the process which give me troubles is the following : | | | | | | | | | | | | | | | | | | | | | | | | The class DueDateHandler i try to execute in both timer is in the sources of the web application executing the process and do nothing but displaying a message. When i try to execute this process and the duedate for the timers expire, i get the following Error : | ERROR - def.AbstractFlushingEventListener - 301 - Could not synchronize database state with session | org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.job.Timer#21383] | at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1765) | at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2407) | at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2307) | at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2607) | at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:92) | at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:142) | at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298) | at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) | at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) | at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) | at org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:256) | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:214) | at org.jbpm.svc.Services.close(Services.java:225) | at org.jbpm.JbpmContext.close(JbpmContext.java:139) | at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:144) | at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58) | INFO - db.DbPersistenceService - 258 - optimistic locking failed | INFO - svc.Services - 229 - problem closing service 'persistence': optimistic locking failed | WARN - StatefulPersistenceContext.ProxyWarnLog - 615 - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == | WARN - StatefulPersistenceContext.ProxyWarnLog - 615 - Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == | ERROR - instantiation.Delegation - 142 - couldn't load delegation class 'common.processhandlers.DueDateHandler' | java.lang.ClassNotFoundException: class 'common.processhandlers.DueDateHandler' could not be found by the process classloader | at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:118) | at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:140) | at org.jbpm.instantiation.Delegation.getInstance(Delegation.java:125) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157) | at org.jbpm.instantiation.Delegation$$EnhancerByCGLIB$$87bad03b.getInstance() | at org.jbpm.graph.def.Action.execute(Action.java:121) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157) | at org.jbpm.graph.def.Action$$EnhancerByCGLIB$$322143d.execute() | at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264) |
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: java.lang.NoSuchMethodException: org.jboss.resource.adap
Hi Jaikiran, Please find code for debuggable statement class below, And I think i didn't change any jar file. Please do the needful. | | package com.work.net; | | import java.io.InputStream; | import java.io.Reader; | import java.lang.reflect.InvocationTargetException; | import java.lang.reflect.Method; | import java.math.BigDecimal; | import java.net.URL; | import java.sql.Blob; | import java.sql.Clob; | import java.sql.Connection; | import java.sql.ParameterMetaData; | import java.sql.PreparedStatement; | import java.sql.Ref; | import java.sql.ResultSet; | import java.sql.ResultSetMetaData; | import java.sql.SQLException; | import java.sql.SQLWarning; | import java.sql.Time; | import java.sql.Timestamp; | import java.util.Calendar; | import java.util.StringTokenizer; | | | public class DebuggableStatement implements PreparedStatement { | | private PreparedStatement ps; //preparedStatement being proxied for. | private String sql; //original statement going to database. | private String filteredSql; | //statement filtered for rogue '?' that are not bind variables. | private DebugObject[] variables; //array of bind variables | private SqlFormatter formatter; //format for dates | private long startTime; //time that statement began execution | private long executeTime; //time elapsed while executing statement | private DebugLevel debugLevel; //level of debug | | | protected DebuggableStatement( | Connection con, | String sqlStatement, | SqlFormatter formatter, | DebugLevel debugLevel) | throws SQLException { | //set values for member variables | this.ps = con.prepareStatement(sqlStatement); | this.sql = sqlStatement; | this.debugLevel = debugLevel; | this.formatter = formatter; | | //see if there are any '?' in the statement that are not bind variables | //and filter them out. | boolean isString = false; | char[] sqlString = sqlStatement.toCharArray(); | for (int i = 0; i < sqlString.length; i++) { | if (sqlString == '\'') | isString = !isString; | //substitute the ? with an unprintable character if the ? is in a | //string. | if (sqlString == '?' && isString) | sqlString = '\u0007'; | } | filteredSql = new String(sqlString); | | //find out how many variables are present in statement. | int count = 0; | int index = -1; | while ((index = filteredSql.indexOf("?", index + 1)) != -1) { | count++; | } | | //show how many bind variables found | if (debugLevel == DebugLevel.VERBOSE) | System.out.println("count= " + count); | | //create array for bind variables | variables = new DebugObject[count]; | | } | | /** | * Facade for PreparedStatement | */ | public void addBatch() throws SQLException { | ps.addBatch(); | } | | /** | * Facade for PreparedStatement | */ | public void addBatch(String sql) throws SQLException { | ps.addBatch(); | } | | /** | * Facade for PreparedStatement | */ | public void cancel() throws SQLException { | ps.cancel(); | } | | /** | * Facade for PreparedStatement | */ | public void clearBatch() throws SQLException { | ps.clearBatch(); | } | | /** | * Facade for PreparedStatement | */ | public void clearParameters() throws SQLException { | ps.clearParameters(); | } | | /** | * Facade for PreparedStatement | */ | public void clearWarnings() throws SQLException { | ps.clearWarnings(); | } | | /** | * Facade for PreparedStatement | */ | public void close() throws SQLException { | ps.close(); | } | | /** | * Executes query and Calculates query execution time if DebugLevel = VERBOSE | * @return results of query | */ | public boolean execute() throws SQLException { | //execute query | Boolean results = null; | try { | results = (Boolean) executeVerboseQuery("execute", null); | } | catch (SQLException sqle) { | throw sqle; | } | catch (Exception e) { | e.printStackTrac
[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss and Postgres on 2 machines
Hi I have performance problem I can't solve myself. I have two servers, quite good. Now, I run JBoss and Postgres on one machine - works fine - but I expect it can be not enough in near future. That's why I try to move JBoss to separate machine - Xeon 3GHZ (2x2 core) with 3.75 GB RAM. But as soon as I do this, and there is any traffic on my site, CPU goes to over 80% making page almost inaccessible. What can cause the problem? I have set datasource correctly, using internal ip, network config is also ok i believe. Maybe I should set something more? Thanks in advance for any clues, Michal View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4136613#4136613 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4136613 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user