[JBoss-user] [JBoss Portal] - Re: portlet taglib actionURL
when I use | <%@ taglib uri="http://java.sun.com/portlet"; prefix="portlet"%> | Now I don't get an error in in eclipse or on execution but, I don't get the URL My URL looks like: anonymous wrote : | http://localhost:8080/portal/portal/gameadmin/${menuLinkURL} | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922701#3922701 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922701 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: portlet taglib actionURL
when I run this I get the following error at runtime The absolute uri: http://java.sun.com/portlet.tld cannot be resolved in either web.xml or the jar files deployed with this application View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922690#3922690 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922690 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: portlet taglib actionURL (Need additional Help)
Please see my last message in the thread, Thanks, Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922680#3922680 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922680 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: portlet taglib actionURL
Ok I did that: | | <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%> | <%@ taglib uri="http://java.sun.com/portlet"; prefix="portlet"%> | | | | | | | | | | function postMenuForm(id){ | document.postMenu.id.value = id; | document.postMenu.submit(); | } | | | But now I get three errors listed in eclipse: anonymous wrote : | File "http://java.sun.com/portlet"; not found. | | and | | The absolute uri: http://java.sun.com/portlet cannot be resolved in either web.xml or the jar files deployed with this application. | | and | | No tag "defineObjects" defined in tag library imported with prefix "portlet" | | I changed the line to this: | <%@ taglib uri="http://java.sun.com/portlet.tld"; prefix="portlet"%> | so it now looks like this: | <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%> | <%@ taglib uri="http://java.sun.com/portlet.tld"; prefix="portlet"%> | | | | | | | | | | function postMenuForm(id){ | document.postMenu.id.value = id; | document.postMenu.submit(); | } | | | | | | Note the TLD suffix. the errors went away in one file, my menu file but I have the same thing in another file for sub menus and I get the same erros mentioned above only this time ther portlet text is changed to portlet.tld. So why does it work on one page and not the other. Here is the code for the second. | <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%> | <%@ taglib uri="http://java.sun.com/portlet.tld"; prefix="portlet"%> | | | | | | | | | | function postSubMenuForm(id){ | document.postSubMenu.id.value = id; | document.postSubMenu.submit(); | } | | | | | | Thanks for your help, michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922645#3922645 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922645 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - portlet taglib actionURL
I'm using JBoss Portal 2.2.0 on Jboss AS 4.0.3SP1 I'm trying to post tothe actionURL of a portlet. I'm doing the following in my JSP: | <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%> | <%@ taglib uri="http://java.sun.com/portlet"; prefix="portlet"%> | | | | | | | | | function postMenuForm(id){ | document.postMenu.id.value = id; | document.postMenu.submit(); | } | | | | | | | | User | | | Game | | | Table | | | Messaging | | | DB Lists | | | | I've got an error in Eclipse that reads: anonymous wrote : | No tag "actionURL" defined in tag library imported with prefix "portlet" | When I run the application the and click on the User menu item I get the following URL in the address bar: anonymous wrote : | http://localhost:8080/portal/portal/gameadmin/${menuLinkURL} | What boggles my ind to no end is that I did the same thing in a proof of concept and it worked. so obviously i've configured something wrong in this new applicaton. I do notice that the portal-lib.tld in my Web-inf directory doesn't have an actionURL tag defined. | | | 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-jsptaglibrary_2_0.xsd" | version="2.0"> | |1.1 |2.0 |JBoss Portal tags |JBoss Portal tags |http://java.sun.com/portlet | | | i18n | org.jboss.portal.core.servlet.jsp.taglib.PortalLib | java.lang.String getMessage(java.lang.String) | | | | out | org.jboss.portal.core.servlet.jsp.taglib.PortalLib | java.lang.String out(java.lang.String) | | | | i18nout | org.jboss.portal.core.servlet.jsp.taglib.PortalLib | java.lang.String i18nOut(java.lang.String) | | | | if | org.jboss.portal.core.servlet.jsp.taglib.IfTag | | ctx | true | true | | | | | iterate | org.jboss.portal.core.servlet.jsp.taglib.IterateTag | | ctx | true | true | | | | | include | org.jboss.portal.core.servlet.jsp.taglib.IncludeTag | | page | true | true | | | | | error | org.jboss.portal.core.servlet.jsp.taglib.ErrorTag | | key | true | true | | | | | errors | org.jboss.portal.core.servlet.jsp.taglib.ErrorsTag | | | | success | org.jboss.portal.core.servlet.jsp.taglib.SuccessTag | | | I added the URI line bcuase when its not there the JSP flags an error that it caould not find a library with the URI. I mention that becuse that may well be at the root of my problem, and I don;t know how to fix that one either. Thanks, -Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922622#3922622 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922622 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Can we change the name of default page 'default'?
Yes. I used my search page as my default. the key is that you must define at least one page for the portal. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915831#3915831 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915831 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Posting to ActionURL
Well there may be errors on the JSP page, but ti does work. NOTE that in the example above there was a bug | | function postPersonForm(id){ | document.viewPersonForm.id.value = id; | document.viewPersonForm.submit(); | } | | Just thought i'd note that for the record. It didn;t impact the issue at hand. So the only question i have is how do I fix the errors tha Eclipse is reporting? -Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915588#3915588 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915588 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Posting to ActionURL
Thanks for the quick response. Here's what I did: | <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%> | <%@ taglib uri="http://java.sun.com/portlet"; prefix="portlet"%> | | | | | | | | | function postPersonForm(id){ | document.viewPersonForm.value = id; | document.viewPersonForm.submit(); | } | | | | | | | | | | Lastname, Firstname | | | | | | | | | , | | | | | | | | | I got an error att he top of my JSP in regards to the portlet tag lib, the error doesn't say anything useful but it is related tothe taglib entry. Also I have an erro next to the tag which indicates that it cannot find the actionURL tag in the portlet TLD. Thanks, Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915586#3915586 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915586 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Posting to ActionURL
I've been looking through the documentation, searching with Google and looking at the poral wiki, but I cannot find an anwser to this simple question. JB Portal 2.2, JBAS 4.0.3SP1 I have a form on a JSP what do I do to post to the ActionURL of a portlet? I have a page /portal/portal/ppoc/list when the user selects a column in the personList portlet I want to post to the action url for that portlet. In the processAction() routine for that portlet I will do something. I've been reading the book by APress, "Building Portals with the JavaPortlet API". It refers to a portlet.tld which provides a number of JSP tags that do some of this for you. I believe they are using Pluto. Does anything like this exists for JBoss Portal? Thanks, Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915578#3915578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915578 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Server Log "Skipping aggresive-release..."
What is this message for in the Server log? Skipping aggresive-release due to open resources on batcher The number of them appear to be growing with each new server boot. I'm running AS 4.0.3SP1 Portal 2.2 MySQL 4.0.25 anonymous wrote : | ... | 17:55:27,511 WARN [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/S:/jboss-4.0.3SP1/server/ppoc/tmp/deploy/tmp41209ehcache.jar!/ehcache-failsafe.xml | 17:55:27,620 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.security.store.SecurityPolicy]; using defaults. | 17:55:27,979 WARN [EhCacheProvider] Could not find configuration [org.jboss.portal.core.security.store.HbmSecurityConstraint]; using defaults. | 17:55:28,136 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured | 17:55:28,136 INFO [NamingHelper] JNDI InitialContext properties:{} | 17:55:28,151 INFO [UpdateTimestampsCache] starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache | 17:55:28,151 WARN [EhCacheProvider] Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults. | 17:55:28,151 INFO [StandardQueryCache] starting query cache at region: org.hibernate.cache.StandardQueryCache | 17:55:28,151 WARN [EhCacheProvider] Could not find configuration [org.hibernate.cache.StandardQueryCache]; using defaults. | 17:55:28,151 INFO [SessionFactoryImpl] Checking 0 named queries | 17:55:28,745 INFO [TreeCache] interceptor chain is: | class org.jboss.cache.interceptors.CallInterceptor | class org.jboss.cache.interceptors.LockInterceptor | class org.jboss.cache.interceptors.CacheStoreInterceptor | class org.jboss.cache.interceptors.CacheLoaderInterceptor | class org.jboss.cache.interceptors.UnlockInterceptor | 17:55:28,745 INFO [TreeCache] cache mode is local, will not create the channel | 17:55:28,745 INFO [TreeCache] preloading transient state from cache loader | 17:55:28,854 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:28,901 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,042 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,058 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,058 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,058 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,058 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,058 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,073 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,073 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,073 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,089 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,089 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,089 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,104 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,104 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,120 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,120 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,120 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,120 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,136 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,151 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,151 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,167 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,167 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,167 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,167 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,183 INFO [ConnectionManager] Skipping aggresive-release due to open resources on batcher | 17:55:29,183 INFO [ConnectionManager] Ski
[JBoss-user] [JBoss Portal] - Re: Portal 2.2 - XML file - *-object.xml
*-objects is used with 2.2.0 and it replaces *-pages.xml and *-instances.xml used in 2.0. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915101#3915101 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915101 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Navigating from one page (Login) to another page (Home)
I found that the following works: /portal/portal/ppoc/pageName where ppoc is my portal name and the page name. The name come from the *-objects.xml file. I haven't figured out why I need to put portal twice. -Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915100#3915100 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915100 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Having problems gettting the portal bundle up and runnin
Can you post your XML files that you use? Or look through them. There seems to be an error in them. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915099#3915099 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915099 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Packaging issue
I have two EJB jars and a War. I have the two EJBs in an ear along with the dependent jar files. The EJBs deploy fine. I have the war file depolyed seperately and I can access the portlets and my portal is accessible. If I include the war in the ear then my portal is accessible, but the portlets are not showing up on the page. All I see is the theme. I get no errors. I really need the war in the ear becuase I'm getting a java.lang.LinkageError when passing a custom object to the EJB from the web container. Whats odd is that I get the theme, which is purposely different than the default. Seems like the war is there I'm using JBoss Portal 2.20 and JBoss 4.0.3SP1. When I look at the jmx-console i can see that the war is deployed. Why when the war is deployed seperately do I have access to my portlets but when I deploy in the ear i don't? Any help is much appericated. Thanks, Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915067#3915067 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915067 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Software caused connection abort: recv failed
I have an application running on JBoss 4.0.2 using Hibernate 3.0 and MySQL Connector 3.1.10 all using the 1.5_04 JDK. I'm seeing this on Windows XP with MySQL 4.0.26 and RedHat Linux 7.1 with MySQL 3.23.58. I'm getting the following stack trace: | | java.net.SocketException: Software caused connection abort: recv failed | at java.net.SocketInputStream.socketRead0( | 01:21:46,709 INFO [STDOUT] Native Method) | at java.net.SocketInputStream.read(SocketInputStream.java:129) | at com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:105) | at com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:148) | at com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:176) | at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1899) | at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2348) | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2858) | at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1570) | at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665) | at com.mysql.jdbc.Connection.execSQL(Connection.java:2978) | at com.mysql.jdbc.Connection.execSQL(Connection.java:2902) | at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:930) | at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1024) | at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:120) | at org.hibernate.loader.Loader.getResultSet(Loader.java:1272) | at org.hibernate.loader.Loader.doQuery(Loader.java:391) | at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218) | at org.hibernate.loader.Loader.doList(Loader.java:1593) | at org.hibernate.loader.Loader.list(Loader.java:1577) | at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395) | at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271) | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844) | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74) | at com.caughey.gameman.db.GameDB.getGameList(GameDB.java:79) | Here's the configuration I'm using to configure my Datasource: | | | GameManagerDS | jdbc:mysql://localhost:3306/gameman?autoReconnect=true | com.mysql.jdbc.Driver | myuser | mypassword | 5 | 20 | 5 | com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter | com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker | select count(*) from Game | select count(*) from Game | | | MySQL Time out variables are set accordingly: | connect_timeout = 5 | interactive_timeout = 28800 | wait_timeout = 28800 | I've googled, I've search these forums, reviewed the books Mastering MySQL 4 and JBoss 4.0 Official Guide to no avail. It only happens after a night of the application sitting idle. So I suspect one of the two 8 hour (28800) settings are kicking in. How ever, according to everything I've read the autoReconnect=true and setting the idle-timeout-minutes should do the trick. Well it hasn't. Is there something i'm missing. I did see that I should set the 28800 settings to 5. Setting longer isn't going to help. I may even want to set them shorter in which case I could expect the connections to go away faster. Any help will be appericiated. Thanks, Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904271#3904271 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904271 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - ObjectNotFoundException - But I know it might not be there
I've got a problem that I expect is not unusual. I may simply be approaching this the worng way. I'm doing a look up in a table where the primary key may not exists. I'm using session.load( class, Integer ) to find my object. | Person person = (Person)session.load( Person.class, new Integer(personId) ); | person == null is always false. So I do the following: | try{ | if(person.getPersonId() > 0); | }catch(ObjectNotFoundException e){ | // do nothing | } | | // code continues | | If the person object was not loaded the when I do the getPersonId() the ObjectNotFoundException is thrown. Well what I found out was there is a callback event listener handling the exceptions thrown in the concrete class of my Person Object. I cannot catch the exception it is being thrown to and handled by a class called DefaultLoadEventListener. My code works fine, but my log files are filling up with stack traces everytime one of these are thrown, and I don't care that they are being thrown. They are logged as Errors in log4J so I cannot even adjust the log level with out potentianly missing other important logging info coming from that class. Is there a better way? Is there something I can do to turn off thoose nasty stacktraces for this senerio? Thanks, Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893875#3893875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893875 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: You cannot set autocommit during a managed transaction!
If your running in an EJB the container is managing your transaction. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893874#3893874 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893874 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Three problems maybe related maybe not - Durable Topic S
Thank you for the response. What seems to you obvious to others may not. And yes I did ask for it, thank you. I looked at the Wiki about the ping/pong issue. I had ONE thread connecting to a server. and it's running on the same computer as the server, for now. the Messages are around 500 bytes to 1 K in size. they are placed on the topic every 5 seconds. This early test ran i a seperate JVM becuase eventually i will move it to a seperate client computer, where subscription will not be able to made from the same JVM. Didn't do the test in process exactly to uncover issues like this. So I'm using two JVMs. Hence the need for UIL2. In everything I was sorting through I did miss the setExceptionListener(). I knew i was missing something if this is it thank you. Obviously if i had everything configured correctly i would not be having difficulties. I am still tracking down valuable resources to use to troubleshoot these things myself. trust me i don;t want to have to wait for you or someone else to reply to get my problem fixed. i'd rather fix it myself. The only thing i see to do is add an ExceptionListner and close and reopen the connection when I get an exception. However if there was only a single connection and both JVMs were o nthe same computer why might the connection fail? Again thank you for responding, Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887363#3887363 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887363 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JBossMQ & Login Module Configuration
It helps if you send along the configuration files you modified. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887348#3887348 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887348 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: HAJMS with multiple Standalone JBossMQ ?
You should be able to go through the configuration files and trim down the configuration to only run HAJMS. The three configurations are just starting points. This does mean you need to do some research. Check out the bok JBoss 4.0 The offical Guide, you'll find it useful. To the extent that you can trim it down, I don;t know. -Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887347#3887347 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887347 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Is this forum moniter by JBoss??
I gues the frustrating part for me is that i'm not an expert, so the problems I'm having don;t seem so trivial. I only come tot he forum after revien the following two books JBoss 4.0 The offical Guide and an older manual, JBoss 3.0 Deployment and Administration, I have reviewed the FAQ and took away what i could. I have spent countless hours googleing for the anwsers and reviewed as much of the forum as i can for the anwser. I'd rather not post and wait for a response. I find it more effiecient to look first then ask. I'm coding about 16 hours a day right now, so my pace is quite fast. I am new to JBoss, but come with experince from WebLogic which I've been using since about 1999. I applogize if my questions appear to that of a newby or a lazy developer, i'm anyting but. That said why do these forums exist if you don;t care to help users out? After all it is a user forum and i think some of the unanwsered questions are anything but trivial. I hope to hear from you in some of my oter thread. thanks for the response, Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887346#3887346 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887346 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Is this forum moniter by JBoss??
It appears this forum is rarely monitored by anyone other people asking for help. The only response I've gotten on any of my postings over te past few weeks is one inwhich someontold me I posted ot the wrong group. Does anyone know of a group which i monitored and where you can actually get some help? thanks, Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887328#3887328 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887328 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Three problems maybe related maybe not - Durable Topic S
Actually I mistated one fact, there are five other Subscribers to a seperate Topic. They are not durable and subscribe with no timeout. In retro spec the last error could be coming from them, if the underlying connection is timing out. If this is the case I can just create a durable subscription and time them out and check back if the method comes back null. this is a topic subscriber in an MBean ehich is running in the same server instance as the topic is created in. -Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887248#3887248 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887248 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Three problems maybe related maybe not - Durable Topic Subsc
I have a Durable Subscription to a topic. Every now and then I notice the JBoss Server throws: [SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.AcknowledgementRequest from the Here's the full Trace: | 04:32:32,097 ERROR [SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.AcknowledgementRequestMsg8251436[msgType: m_acknowledge, msgID: 232, error: null] | java.lang.NullPointerException | at org.jboss.mq.server.JMSTopic.acknowledge(JMSTopic.java:291) | at org.jboss.mq.server.ClientConsumer.acknowledge(ClientConsumer.java:328) | at org.jboss.mq.server.JMSDestinationManager.acknowledge(JMSDestinationManager.java:519) | at org.jboss.mq.server.JMSDestinationManager.acknowledge(JMSDestinationManager.java:503) | at org.jboss.mq.server.JMSServerInterceptorSupport.acknowledge(JMSServerInterceptorSupport.java:198) | at org.jboss.mq.server.JMSServerInterceptorSupport.acknowledge(JMSServerInterceptorSupport.java:198) | at org.jboss.mq.server.TracingInterceptor.acknowledge(TracingInterceptor.java:481) | at org.jboss.mq.server.JMSServerInvoker.acknowledge(JMSServerInvoker.java:198) | at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:87) | at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:369) | at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743) | at java.lang.Thread.run(Thread.java:595) | I'm running JBoss 4.0.2. My topic is still presisting to the HyperSonic DB. I notice that the message associated with this problem never makes it to my client nor nor does the one after it. I can tell this becuase the time stamp of when I sent it and when I recieve it matches on all the ones recieved. I do a System out just before i sent it and just after I recv it. There is only one subscriber and its on the same computer as JBoss. The client is running in a seperate JVM. | 04:32:26,706 INFO [GetInformationJDBCTask] Publishing - 1122625946706 | 04:32:32,050 INFO [GetInformationJDBCTask] Publishing - 1122625952050 | ERROR Occurred Here | 04:32:37,113 INFO [GetInformationJDBCTask] Publishing - 1122625957113 | 04:32:42,128 INFO [GetInformationJDBCTask] Publishing - 1122625962128 | 04:32:47,175 INFO [GetInformationJDBCTask] Publishing - 1122625967175 | 04:32:52,191 INFO [GetInformationJDBCTask] Publishing - 1122625972191 | 04:32:57,238 INFO [GetInformationJDBCTask] Publishing - 1122625977238 | | Here are the time stamps of the recv'd | | 1122625946738 - 0 1,1, | 1122625962175 - 1 1,1, | 1122625967175 - 2 1,1, | 112262597 - 3 1,1, | 1122625977253 - 4 1,1, | You can see that two messages were never recieved. How can this happen with a durable topic? I do have a quick time out of 50 ms. I need it to check the topic and bug out if nothing is there, I return almost instantly. I have to do this becuase of how a plugin (Moka) works with Director, so every second we check again. In my test application I tried two things one is to simply return imediately: | for (int i = 0; i < 5; i++) { |msg = m.retrieveInfo(); |if(msg == null){ | i--; | }else{ | System.out.println(" "+ System.currentTimeMillis()+" - " + i + " " + msg); | } | } | | That produces the condition above. I mention this becuase I don't know if the short timeout is the cause the problem or not. I did see it once with a 5000 ms time out. I also mention this becuase I'm seeing another weird thing. If I add a sleep each time the msg comes back null like this: | for (int i = 0; i < 5; i++) { | msg = m.retrieveInfo(); | if(msg == null){ | i--; | try { | Thread.sleep(750); | } catch (InterruptedException e) { | } | }else{ | System.out.println(" "+ System.currentTimeMillis()+" - " + i + " " + msg); | } | } | I can go a minute with no response from the topic, but all the while the publisher on the server is publishing a new message every 5 seconds. Here's how i'm establishing my Topic, | public void init() throws JMSException, NamingException { | Properties props = new Properties(); | props.setProperty(Context.INITIAL_CONTEXT_FACTORY, | "org.jnp.interfaces.NamingContextFactory"); | props.setProperty(Context.URL_PKG_PREFIXES, | "org.jboss.naming:org.jnp.interfaces"); | props.setProperty(Context.PROVIDER_URL, serverUrl); | InitialContext ctx = new InitialContext(props); | Object o = ctx.lookup("ConnectionFactory"); | TopicConnectionFactory tcf = (TopicConnectionFact
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Security issue with Topic created at runtime
I figured it out. My Secuirty Manager was missing the the two roles i needed. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886227#3886227 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886227 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Adding SecurityConf to TopicMBean
I figured it out. My SecurityManager configuration was missing the two roles that I needed. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886226#3886226 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886226 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Security issue with Topic created at runtime
I changed how I am creating my topics at runtime. see listing below. Now when I log in with a user and an incorrect password, I get the error that that user was nt authenticated. If I use the correct password i get the following: | javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: topic/table1 | at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:141) | at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:816) | at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:297) | at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:166) | at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:369) | at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748) | at java.lang.Thread.run(Thread.java:595) | So obvioulsy it is using my security manager. I've tried giving the user guest, durpublisher and publisher. I really want durpublisher. Here's my topic creation code: | | serverName = InetAddress.getLocalHost().getHostName(); | RMIAdaptor server = (RMIAdaptor) ctx | .lookup("jmx/invoker/RMIAdaptor"); | ObjectName dm = new ObjectName( | "jboss.mq:service=DestinationManager"); | server.invoke(dm, "createTopic", new Object[] { topicJndiName, | topicJndiName }, new String[] { String.class.getName(), | String.class.getName() }); | How do i get the security right? I've now trie two different ways to create topics, the other is listed in a previous posting here. I had the same authentication problems. Can someone please help me out. I'm in a real JAM. I need this to work and I suspect it is supposed to work. What have I done wrong? Thanks, Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886144#3886144 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886144 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Adding SecurityConf to TopicMBean
I'm not possitive this is what I need to do but it makes sense. I'm dynamically creating a topic at runtime. It shows up in the jmx-console and is started however when I try to connect to it I get an Exception that states its unable to authenticate. So I added some additonal code that I thought should work, since i cannot find any examples. But now I get and Exception at creation time that states "no protocol : " The code is listed below that I used trying to attempt the adding of the SecurityConf Element attribute. i'm adding the code for the complete creation of the topic as well. | private void registerTopic(String topicname) | throws MalformedObjectNameException, Exception { | createDestination("org.jboss.mq.server.jmx.Topic", | getTopicObjectName(topicname), "topic/" + topicname); | } | | private ObjectName getTopicObjectName(String name) | throws MalformedObjectNameException { | | return new ObjectName("jboss.mq.destination:service=Topic,name=" + name); | } | | protected void createDestination(String type, ObjectName name, | String jndiName) throws Exception { | | if (logger.isDebugEnabled()) { | logger.debug("Attempting to create destination: " + name | + "; type=" + type); | } | MBeanServer server = MBeanServerLocator.locateJBoss(); | server.createMBean(type, name); | server.setAttribute(name, new Attribute("DestinationManager", | new ObjectName("jboss.mq:service=DestinationManager"))); | | server.setAttribute(name, new Attribute("SecurityManager", | new ObjectName("jboss.mq:service=SecurityManager"))); | | server.setAttribute(name, new Attribute("SecurityConf", getSecurityconf())); | server.setAttribute(name, new Attribute("JNDIName", jndiName)); | | TopicMBean tmb = (TopicMBean)MBeanServerInvocationHandler.newProxyInstance(server, name,TopicMBean.class,false); | tmb.start(); | } | | | private Element getSecurityconf() throws SAXException, IOException{ | Element el = null; | StringBuffer securityConfStr = new StringBuffer(); | securityConfStr.append(""); | securityConfStr.append(" "); | securityConfStr.append(" "); | securityConfStr.append(""); | | DOMParser parser = new DOMParser(); | parser.parse(securityConfStr.toString()); | Document doc = parser.getDocument(); | el = doc.getDocumentElement(); | return el; | } | | Thanks in advance, Michael PS I am aware I have a similar post in JMS forum, I realized that I should have probably posted it here. sorry for the cross post. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885976#3885976 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885976 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Scheduler Jboss
For the record it doesn't have to be a Session bean that implements a Schedulable. It can be a POJO. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885955#3885955 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885955 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How to create mbeans on runtime.
Here's the code I'm using: | private void registerTopic(String topicname) | throws MalformedObjectNameException, Exception { | createDestination("org.jboss.mq.server.jmx.Topic", | getTopicObjectName(topicname), "topic/" + topicname); | } | | private ObjectName getTopicObjectName(String name) | throws MalformedObjectNameException { | | return new ObjectName("jboss.mq.destination:service=Topic,name=" + name); | } | | protected void createDestination(String type, ObjectName name, | String jndiName) throws Exception { | | if (logger.isDebugEnabled()) { | logger.debug("Attempting to create destination: " + name | + "; type=" + type); | } | MBeanServer server = MBeanServerLocator.locateJBoss(); | server.createMBean(type, name); | server.setAttribute(name, new Attribute("DestinationManager", | new ObjectName("jboss.mq:service=DestinationManager"))); | | server.setAttribute(name, new Attribute("SecurityManager", | new ObjectName("jboss.mq:service=SecurityManager"))); | | server.setAttribute(name, new Attribute("SecurityConf", getSecurityconf())); | server.setAttribute(name, new Attribute("JNDIName", jndiName)); | | TopicMBean tmb = (TopicMBean)MBeanServerInvocationHandler.newProxyInstance(server, name,TopicMBean.class,false); | tmb.start(); | } | | | private Element getSecurityconf() throws SAXException, IOException{ | Element el = null; | StringBuffer securityConfStr = new StringBuffer(); | securityConfStr.append(""); | securityConfStr.append(" "); | securityConfStr.append(" "); | securityConfStr.append(""); | | DOMParser parser = new DOMParser(); | parser.parse(securityConfStr.toString()); | Document doc = parser.getDocument(); | el = doc.getDocumentElement(); | return el; | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885953#3885953 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885953 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How to create mbeans on runtime.
Have you been able to get a securityConf Associated with this Queue? I'm trying to do the same thing with a Topic. But I haven I cannot authenticate. -Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885952#3885952 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885952 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Adding SecurityConf to Dynamically created topic
I have been able to create a TopicMBean in code but i haven ot been able to get access to it becuase I can not authenticate against it. I would imagine that is becuase it doesn't have a SecurityConf. Here's what I did. | private void registerTopic(String topicname) | throws MalformedObjectNameException, Exception { | createDestination("org.jboss.mq.server.jmx.Topic", | getTopicObjectName(topicname), "topic/" + topicname); | } | | private ObjectName getTopicObjectName(String name) | throws MalformedObjectNameException { | | return new ObjectName("jboss.mq.destination:service=Topic,name=" + name); | } | | protected void createDestination(String type, ObjectName name, | String jndiName) throws Exception { | | if (logger.isDebugEnabled()) { | logger.debug("Attempting to create destination: " + name | + "; type=" + type); | } | MBeanServer server = MBeanServerLocator.locateJBoss(); | server.createMBean(type, name); | server.setAttribute(name, new Attribute("DestinationManager", | new ObjectName("jboss.mq:service=DestinationManager"))); | | server.setAttribute(name, new Attribute("SecurityManager", | new ObjectName("jboss.mq:service=SecurityManager"))); | | server.setAttribute(name, new Attribute("SecurityConf", getSecurityconf())); | server.setAttribute(name, new Attribute("JNDIName", jndiName)); | | TopicMBean tmb = (TopicMBean)MBeanServerInvocationHandler.newProxyInstance(server, name,TopicMBean.class,false); | tmb.start(); | } | | | private Element getSecurityconf() throws SAXException, IOException{ | Element el = null; | StringBuffer securityConfStr = new StringBuffer(); | securityConfStr.append(""); | securityConfStr.append(" "); | securityConfStr.append(" "); | securityConfStr.append(""); | | DOMParser parser = new DOMParser(); | parser.parse(securityConfStr.toString()); | Document doc = parser.getDocument(); | el = doc.getDocumentElement(); | return el; | } | How ever I get the following Exception, no protocol [then is spits out the XML I put in the Element]. Any help? Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885950#3885950 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885950 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Durable Subscription Authentication
Look at the login-config.xml in the conf directory. I set it up in a matter of minutes. I used tables in MySQL and it worked great. | | | | | guest | java:/MyDS | SELECT pwd as PASSWD FROM Player WHERE username=? | SELECT ROLEID, 'Roles' FROM Player_ROLES WHERE username=? | | | | -Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885949#3885949 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885949 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Dynamic Topic Creation
My Appologies. thanks for the direction. -Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885745#3885745 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885745 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Schedular Help - Server Starting cannont find Schedular
I figured it out, I'm a bad speller. I had Schedular rather than Scheduler. Note the A and the E. I ended up deploying this as a SAR. I also left out the InitialStartDate attribute on accident, all i got was a NullPointerException at line 318 of the Scheduler class. I figured that out by looking at the JBOSS source. It does now work. -Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885233#3885233 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885233 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Schedular Help - Server Starting cannont find Schedular
Here's the class | public class CheckForTablesTask implements Schedulable { | private static Logger logger = null; | private int serverId = 0; | | public CheckForTablesTask(int serverId) { | this.serverId = serverId; | } | | public void perform(Date date, long param) { | if (logger == null) { | logger = Logger.getLogger(CheckForTablesTask.class); | } | | logger.debug("Server ["+serverId+"] checking for new tables"); | | StringBuffer queryStr = new StringBuffer(); | queryStr.append("from Table as t where t.serverId = "); | queryStr.append(serverId); | queryStr.append("and t.topicCreated = 0"); | | try { | Session session = SessionManager.currentSession(); | Iterator itt = session.createQuery(queryStr.toString()).iterate(); | | Table table; | while(itt.hasNext()){ | table = (Table)itt.next(); | logger.debug("Server ["+serverId+"] new table, name = "+ table.getName()); | | // Create topic | | // Change Status | table.setTopiccreated(new Byte((byte)1)); | table.setStatus(Tablestatus.REGISTERING); | } | session.flush(); | } catch (HibernateException he) { | logger.error(CheckForTablesTask.class.getName() + ": server[" | + serverId + "] threw HibernateException : ", he); | } finally { | try { | SessionManager.closeSession(); | } catch (HibernateException he) { | // do nothing | } | } | } | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885227#3885227 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885227 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Schedular Help - Server Starting cannont find Schedular
| | true | com.tables.events.CheckForTablesTask | 101 | int | 1 | -1 | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885226#3885226 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885226 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Schedular Help - Server Starting cannont find Schedular
Here's the MBEAN again since I forgot to disable HTML true com.tables.events.CheckForTablesTask 101 int 1 -1 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885225#3885225 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885225 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Schedular Help - Server Starting cannont find Schedular
I have a Class which implements Schedulable, it uses Hibernate to check some tables. It's real simple at this point. The problem however occurs when the Server starts up it cannot find the Scheduler. The class is in the scheduler-plugin.jar in the lib directory. Its a standard jar with JBoss 4.0.2. Here's what I put in the jboss-service.xml true com.tables.events.CheckForTablesTask 101 int 1 -1 Here's the error I'm getting: 00:38:46,718 ERROR [MainDeployer] could not create deployment: file:/S:/jboss-4.0.2/server/default/conf/jboss-service.xml org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.varia.schedular.Schedular; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.varia.schedular.Schedular) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:143) at org.jboss.system.ServiceController.install(ServiceController.java:202) 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:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy4.install(Unknown Source) ... there more, but i cut it out. Here's my Scheduled Event Class, for what it's worth: public class CheckForTablesTask implements Schedulable { private static Logger logger = null; private int serverId = 0; public CheckForTablesTask(int serverId) { this.serverId = serverId; } public void perform(Date date, long param) { if (logger == null) { logger = Logger.getLogger(CheckForTablesTask.class); } logger.debug("Server ["+serverId+"] checking for new tables"); StringBuffer queryStr = new StringBuffer(); queryStr.append("from Table as t where t.serverId = "); queryStr.append(serverId); queryStr.append("and t.topicCreated = 0"); try { Session session = SessionManager.currentSession(); Iterator itt = session.createQuery(queryStr.toString()).iterate(); Table table; while(itt.hasNext()){ table = (Table)itt.next(); logger.debug("Server ["+serverId+"] new table, name = "+ table.getName()); // Create topic // Change Status table.setTopiccreated(new Byte((byte)1)); table.setStatus(Tablestatus.REGISTERING); } session.flush(); } catch (HibernateException he) { logger.error(CheckForTablesTask.class.getName() + ": server[" + serverId + "] threw HibernateException : ", he); } finally { try { SessionManager.closeSession(); } catch (HibernateException he) { // do nothing } } } } I have in my jar file, this class, the classes required for Hibernate distribution and my hibernate classes and mappings. I placed this file in the lib directory under the server/default/lib directory. The scheduler-plugin.jar is there as well. Why doesn't the server see the scheduler-plugin.jar? Am I placing the mbean definition in the right place, by placing it in the jboss-service.xml? Am I doing the right thing by placing the CheckTablesTask, the Hibernate Dist and my hibernate classes in the server/defalut/lib directory as a jar file? Thanks, Michael View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885224#3885224 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885224 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user