[jboss-user] [JBoss Portal] - How to share the libs between WARs?
Hello, I've got several portlets, deployed as WAR files to /server/default/deploy, and they all have a plenty of same jars, which I have to keep in WEB-INF/lib/ of every WAR individually. Is there a way to put these jars into one common place so that all my portlets could use it? I tried to place all portlets to a SAR directory and to put jars into myapp.sar/lib/, but that didn't work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985452#3985452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - JBoss with IIS 6, cannot get client certificate
Hi, We have an application where user can authenticate himself with Client certificate. SSL and certificate authentication is done by IIS 6. The problem is that after auth is successful I don't get client certificate in servlet. request.getAttribute("javax.servlet.request.X509Certificate") returns null The same application with same configuration works ok on IIS 5(old production box) and IIS 5.1 (development) I have tried with various versions of JK and JK2 and same result, doesn't work in IIS 6. I have tried to run IIS in IIS 5 isolation mode and without, and results are same. Everything else seems to work but getting certificate. version of Jboss is 4.0.3SP1 Does anyone else has problem with this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985457#3985457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985457 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Cannot join @OneToOne on non-PK fields?
use the referencedColumnName( ) attribute of @JoinColumn if you want to map a field other than a primary-key column, but this field must be unique View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985455#3985455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985455 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Ajax4jsf does no work
Hi, i'm using seam, facelets, ajax4jsf and myfaces - all in latest versions. Following Code does NOT work in my Seam-Application - that means that the page appears but does nothing (asynchronously!) when triggering an event. | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core";> | | | | | | Ajax Test | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a non-seam application all works fine. Do you have an idea? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985458#3985458 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985458 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Singleton persistence archive, datasource?
First of all, thanks alot for the prompt replies! And in response to: 1) Thanks, I'll make sure I do that. 2) The jboss-service.xml is just a stub (empty server tag), as we rely exclusively on annotations. Here are the annotations, though: @Management(DatabaseManager.class) | @Service(objectName = "my.domain:service=DatabaseManager") | @RemoteBinding(jndiBinding = DatabaseManager.JNDI_NAME) | @Depends("jboss.ha:service=HASingletonDeployer,type=Barrier") | The create method, for now, just logs that it is being called. The start method finds the MainDeployer (MBeanServerLocator.locateJBoss, MBeanServerInvocationHandler.newProxyInstance, objectName="jboss.system:service=MainDeployer", etc), and calls deploy on it, passing the directory's url (file://server/default/deploy-db/). The stop method is the same as start, except, of course, it calls undeploy. 3) Changing the dependency works. Everything seems to come up without incident. Given your comment in 2) about it being odd that it worked differently, I presume that even if I go the barrier-controller route, it'd be wise to keep this dependency, yes? I'd like to go with the barrier-controller as it gives me more precise control over the timing of the replication management tasks relative to shutting down or starting up the db services. 4) It definitely does not call create until the subsequent switch-over. Here's the stack trace at the point at which my create method is called: Thread "AsynchKeyChangeHandler Thread"@4,007 in group "jboss" status: RUNNING | create():49, my.domain.databasemanager.DatabaseManagerMBean | invoke0():-1, sun.reflect.NativeMethodAccessorImpl | invoke():39, sun.reflect.NativeMethodAccessorImpl | invoke():25, sun.reflect.DelegatingMethodAccessorImpl | invoke():585, java.lang.reflect.Method | invokeNext():109, org.jboss.aop.joinpoint.MethodInvocation | invoke():54, org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor | invokeNext():98, org.jboss.aop.joinpoint.MethodInvocation | invoke():47, org.jboss.ejb3.AllowedOperationsInterceptor | invokeNext():98, org.jboss.aop.joinpoint.MethodInvocation | invokeInOurTx():79, org.jboss.aspects.tx.TxPolicy | invoke():192, org.jboss.aspects.tx.TxInterceptor$Required | invokeNext():98, org.jboss.aop.joinpoint.MethodInvocation | invoke():76, org.jboss.aspects.tx.TxPropagationInterceptor | invokeNext():98, org.jboss.aop.joinpoint.MethodInvocation | invoke():78, org.jboss.aspects.security.AuthenticationInterceptor | invokeNext():98, org.jboss.aop.joinpoint.MethodInvocation | invoke():47, org.jboss.ejb3.ENCPropagationInterceptor | invokeNext():98, org.jboss.aop.joinpoint.MethodInvocation | invoke():106, org.jboss.ejb3.asynchronous.AsynchronousInterceptor | invokeNext():98, org.jboss.aop.joinpoint.MethodInvocation | localInvoke():181, org.jboss.ejb3.service.ServiceContainer | localInvoke():142, org.jboss.ejb3.service.ServiceContainer | invoke():168, org.jboss.ejb3.service.ServiceMBeanDelegate | invoke():164, org.jboss.mx.server.RawDynamicInvoker | invoke():659, org.jboss.mx.server.MBeanServerImpl | invoke():995, org.jboss.system.ServiceController$ServiceProxy | create():-1, $Proxy0 | create():330, org.jboss.system.ServiceController | invoke0():-1, sun.reflect.NativeMethodAccessorImpl | invoke():39, sun.reflect.NativeMethodAccessorImpl | invoke():25, sun.reflect.DelegatingMethodAccessorImpl | invoke():585, java.lang.reflect.Method | invoke():155, org.jboss.mx.interceptor.ReflectedDispatcher | dispatch():94, org.jboss.mx.server.Invocation | invoke():86, org.jboss.mx.server.Invocation | invoke():264, org.jboss.mx.server.AbstractMBeanInvoker | invoke():659, org.jboss.mx.server.MBeanServerImpl | invoke():210, org.jboss.mx.util.MBeanProxyExt | create():-1, $Proxy128 | installMBean():109, org.jboss.ejb3.JmxKernelAbstraction | registerManagementInterface():352, org.jboss.ejb3.service.ServiceContainer | start():92, org.jboss.ejb3.service.ServiceContainer | invoke0():-1, sun.reflect.NativeMethodAccessorImpl | invoke():39, sun.reflect.NativeMethodAccessorImpl | invoke():25, sun.reflect.DelegatingMethodAccessorImpl | invoke():585, java.lang.reflect.Method | startService():99, org.jboss.ejb3.ServiceDelegateWrapper | jbossInternalStart():289, org.jboss.system.ServiceMBeanSupport | jbossInternalLifecycle():245, org.jboss.system.ServiceMBeanSupport | invoke():-1, sun.reflect.GeneratedMethodAccessor2 | invoke():25, sun.reflect.DelegatingMethodAccessorImpl | invoke():585, java.lang.reflect.Method | invoke():155, org.jboss.mx.interceptor.ReflectedDispatcher | dispatch():94, org.jboss.mx.server.Invocation | invoke():86, org.jboss.mx.server.Invocation | invoke():264, org.jboss.mx.server.AbstractMBeanInvoker | invoke():659, org.jboss.mx.server.MBeanServerImpl | invoke():978, org.jboss.system.ServiceController$ServiceProxy | start():-1, $Proxy0 | start():417, or
[jboss-user] [JBoss Portal] - Re: JBoss Portal Stress Results
"walbar" wrote : Besides, I have activated a higher level of logging and found that for rendering '/portal' page it makes extensive use of hibernate, many times going beyond the cache and making actual queries to the database (even without the CMS portlet). | Depends where in the DB its accessing. Remember, that Hib does not allow cacheing Blobs. Im not sure about others parts of the DB schema, but the CMS (I realize you removed it) does makes extensive use of Blobs (stupid jackrabbit architecture!), so we were forced to add another level cache. Sohil should be able to jprofile things a bit better than my random shots in the dark posts here, and Ill have him post here. ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985461#3985461 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985461 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Re: Cannot start JBoss4 Server from IDE2
Add: It works well with JBoss 4.0.4 (even without the timeout-trick). So maybe the configuration is wrong for 3.2.6. I can't move on to 4.0.4 so maybe there is a fix? best regards, sidewinder View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985459#3985459 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985459 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)
Hello Peter, I'm having a few troubles using your component, could you please help me out? I'm using the 1.1.1beta1 release, and my problem arises from using the following jsf structure (I'll filter out everything unimportant): | | | | | | | | | | | | | | I understand if this code appears a bit unusual, the point is to have both viewing and editing on the same table. The 'edit' method will, among a few other things, set the seam context variable 'index' to the position in the list of the selected item, as to have the second clause 'rendered' return true so to show the selectbox. I've been working with such pattern, and it behaved nicely using f:selectItems and binding the values to strings. Upon switching to si:selectItems, however, I now get the following error as soon as entering the page: | javax.faces.el.PropertyNotFoundException: /WEB-INF/test.xhtml @50,118 value="#{ current.somefield }": Target Unreachable, identifier 'current' resolved to null | at com.sun.facelets.el.LegacyValueBinding.getType(LegacyValueBinding.java:96) | at org.jboss.seam.selectitems.jsf.SelectItemsComponentHandler.addConverters(SelectItemsComponentHandler.java:64) | at org.jboss.seam.selectitems.jsf.SelectItemsComponentHandler.onComponentCreated(SelectItemsComponentHandler.java:237) | at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:161) | at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295) | at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165) | at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47) | at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295) | at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165) | at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.j | ... | The outjected object 'current' is set only after the 'edit' method is invoked. So it makes sense that such error would occur if I was trying to show the combo upon first entering the page. Note, though, that the 'rendered' clause will return false in this occasion - i only want to see the combo after calling 'edit'. It seems si:selectItems attempts to evaluate the value of my h:selectOneMenu, whether or not it should be rendered, and it ends up breaking the code. Is there any way to achieve the behavior I want? Much obliged, Luis View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985462#3985462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985462 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF Form Authentication using JAAS DatabaseServerLoginMo
It looks to me like you named your bundle "LoginBundle" but are trying to access it as "messages". View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985463#3985463 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985463 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Getting Started Tutorial Needs Updating
As far as I can tell, the only problem with Duke's Bank on 4.0.5 is the the back-slash dollar-sign character combo that appears in the atmAck.jsp and accountList.jsp files. That character combination is being interpreted as an ESC character. See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=93866 Other than that, Duke's Bank runs just fine. I went through the tutorial from scratch just last week. Was there a problem with other parts of the Getting Started Guide other than Duke's Bank? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985464#3985464 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985464 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ajax4jsf does no work
The web.xml: | | http://java.sun.com/xml/ns/javaee"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";> | | !-- other faces configuration files --> | | javax.faces.CONFIG_FILES | /WEB-INF/navigation.xml | | | | org.ajax4jsf.VIEW_HANDLERS | com.sun.facelets.FaceletViewHandler | | | facelets.REFRESH_PERIOD | 2 | | | facelets.DEVELOPMENT | true | | | javax.faces.STATE_SAVING_METHOD | client | | | javax.faces.DEFAULT_SUFFIX | .xhtml | | | com.sun.faces.validateXml | true | | | com.sun.faces.verifyObjects | true | | | org.jboss.seam.core.init.debug | | false | | | Seam Redirect Filter | | org.jboss.seam.servlet.SeamRedirectFilter | | | | Seam Exception Filter | | org.jboss.seam.servlet.SeamExceptionFilter | | | | | | Ajax4jsf Filter | ajax4jsf | org.ajax4jsf.Filter | | | | ajax4jsf | Faces Servlet | REQUEST | FORWARD | INCLUDE | | | | org.jboss.seam.servlet.SeamListener | | | | | org.apache.myfaces.webapp.StartupServletContextListener | | | | | | Faces Servlet | javax.faces.webapp.FacesServlet | 1 | | | | | Faces Servlet | *.jsf | | | | | index.html | | | BASIC | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985465#3985465 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985465 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Is there an RSS/Atom Feed for this forum?
No. You can, however, subscribe to a forum and have new posts sent by email. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985466#3985466 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985466 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - not able to get the prompt asking for user password
trying to test for secure a web application in JBoss AS. added given entry in the following files 1. web.xml (under mywebapp/WEB-INF) - Hello HelloServlet user user Hello /hello BASIC tw-app /hello /* user NONE user 401 /error/401.html 2. jboss-web.xml(under mywebapp/WEB-INF) --- java:/jaas/tw-app 3. login-config.xml (under servername\conf\login-config.xml) -- props/tw-appUsers.properties props/tw-appRoles.properties my problem is that, while invoking the hello servlet, I am not being prompt for the user name and password as expecting to be. I am given error 404 , page not found. but when I comment all these things, I am getting the hello msg by the hello servlet. could any one please tell me, if I am still missing anything in any config file to get browser prompt for user name and password. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985467#3985467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985467 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Building errors with script language
The problem is fairly obvious and the error message tells you so: Could not create task or type of type: script. This means that < script > is not a valid Ant task. You cannot simply insert a beanshell script into the middle of an Ant script, because Ant does not know what to do with the < script > tag. What you need is an Ant plug-in that knows how to run beanshell scripts. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985468#3985468 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985468 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - StandardMBean's implementation of the DynamicMBean interface
Hi. Hope someone can share a little light on this: In JBoss 3.2.8, all implementations of the DynamicMBean interface in the class javax.management.StandardMBean except for getMBeanInfo() throw IllegalStateException("Do not invoke directly"). In JBoss 4.0.5 on the other hand, StandardMBean provides a DynamicMBean implementation as expected, so this is only a 3.x issue. My application runs on several platforms and I need to put a dyanmic proxy (with DynamicMBean as proxy interface) in front of the MBeans (including StandardMBeans) to ensure that all invokes use the correct context classloader. But this of course fails on 3.2.8 since all DynamicMBean methods will throw IllegalStateExceptions. Which class actually implements the DynamicMBean methods if StandardMBean does not. And how does JBoss avoid invoking the DynamicMBean methods internally? Special handling for "instanceof StandardMBean", or what? Regards, Jörgen Rydenius View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985469#3985469 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985469 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - FacesMessage propagation issue
Hi, I am struggling a bit to propagate my FacesMessage over redirects when used in conjunction with @End(beforeRedirect=true). When not ending the conversation, my faces message is displayed on the desired page. However, the moment I try to force an end using the above annotation, the message is gone. Any suggestions ? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985472#3985472 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985472 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: log out when client crashes?
i have the same problem do u got answer View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985471#3985471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985471 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Monitor the active authenticated user sessions
is there is any facility to monitor the authenticated user session in jboss as iam using eclipse rcp as the client for the jboss thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985476#3985476 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985476 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Slow DataSouce Failover
I am experiencing a slow failover when simulating a network failure. My setup consists of the following: Two servers, each with an instance of JBoss and MySQL running on them. I will refer to the servers as a "primary" and "backup". Both the primary and backup have their DataSources set to point to the MySQL instance running on the primary server. They are HA DataSources, so they also point to the backup server. I simulate a network failure by unplugging the primary from a network hub. Then the following happens: 1) The backup server/node detects the failure. 2) Several minutes go by after the cluster failure, and then our app is deployed. After playing with Log4j settings and some more testing, I have narrowed the issue down to a set of failures: 2006-10-26 15:50:34,843 INFO [org.hibernate.connection.DatasourceConnectionProvider] Using datasource: java:/DefaultDS | | 2006-10-26 15:51:06,343 WARN [org.jboss.resource.adapter.jdbc.local.HALocalManagedConnectionFactory] Destroying connection that is not valid | | 2006-10-26 15:51:50,484 WARN [org.jboss.resource.adapter.jdbc.local.HALocalManagedConnectionFactory] Destroying connection that is not valid | | 006-10-26 15:52:28,437 WARN [org.jboss.resource.adapter.jdbc.local.HALocalManagedConnectionFactory] Destroying connection that is not valid | | 2006-10-26 15:52:49,578 WARN [org.jboss.resource.adapter.jdbc.local.HALocalManagedConnectionFactory] | Failed to create connection for jdbc:mysql://nscluster-3:4589/netsight: Communications link failure Since the DataSouce connection pool size is set to a minimum of three, it seems that a database connection is not considered dead until all thread pool connections are timed out. The timeouts take a little over two minutes to complete, and if the minimum thread pool size was larger, the failover time would be protracted even more. Is there any way to reduce the duration of the timeouts and/or speed up this process? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985475#3985475 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985475 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Login /logout Audit
is there any facility in jboss as to audit the login /logout info View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985473#3985473 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985473 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Bug or not ? (request attributes lost)
Hello, I use a custom "faces-context-factory" in my faces-config.xml : | com.labosun.portal.myfaces.context.PortletFacesContextFactory | FacesContextImpl : package com.labosun.portal.myfaces.context; | | import java.util.Iterator; | import java.util.Set; | | import javax.faces.context.ExternalContext; | import javax.portlet.PortletContext; | import javax.portlet.PortletRequest; | import javax.portlet.PortletResponse; | | import org.apache.commons.logging.Log; | import org.apache.commons.logging.LogFactory; | import org.apache.myfaces.context.ReleaseableExternalContext; | import org.apache.myfaces.context.servlet.ServletFacesContextImpl; | | public class PortletFacesContextImpl extends ServletFacesContextImpl { | | private final static Log logger = LogFactory | .getLog(PortletFacesContextImpl.class); | | public PortletFacesContextImpl(PortletContext ctx, PortletRequest request, | PortletResponse response) { | super(ctx, request, response); | } | | public void setExternalContext(ReleaseableExternalContext context) { | ExternalContext extNew = (ExternalContext) context; | | // update new external context | Set keySet = getExternalContext().getRequestMap().keySet(); | Iterator keySetIt = keySet.iterator(); | while (keySetIt.hasNext()) { | String att = (String) keySetIt.next(); | if (extNew.getRequestMap().get(att) == null) { | extNew.getRequestMap().put(att, | getExternalContext().getRequestMap().get(att)); | } | } | super.setExternalContext(context); | } | } | package com.labosun.portal.myfaces.context; | | import javax.faces.FacesException; | import javax.faces.context.FacesContext; | import javax.faces.context.FacesContextFactory; | import javax.faces.lifecycle.Lifecycle; | import javax.portlet.PortletContext; | import javax.portlet.PortletRequest; | import javax.portlet.PortletResponse; | | public class PortletFacesContextFactoryImpl extends FacesContextFactory { | | public FacesContext getFacesContext(Object context, Object request, | Object response, Lifecycle lifecycle) throws FacesException { | | if (context == null) { | throw new NullPointerException("context"); | } | if (request == null) { | throw new NullPointerException("request"); | } | if (response == null) { | throw new NullPointerException("response"); | } | if (lifecycle == null) { | throw new NullPointerException("lifecycle"); | } | | return new PortletFacesContextImpl((PortletContext) context, | (PortletRequest) request, (PortletResponse) response); | } | | } | It works .it! but it may have some troubles if you have many portlets which uses MyFaces in one page ... (maybe ... I have no problem but I didn't test a lot ! Good luck ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985477#3985477 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985477 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - Re: File persistence
Try deploying your application as an exploded directory. See http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment. Then you WEB-INF directory will not be removed (it also will not be under tmp) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985478#3985478 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985478 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Cannot join @OneToOne on non-PK fields?
"sisepago" wrote : use the referencedColumnName( ) attribute of @JoinColumn if you want to map a field other than a primary-key column, but this field must be unique I'm guessing you didn't actually read my post. I *am* doing that and it doesn't work correctly. Have a look at the entities I showed in my original post. Thanks anyhow. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985479#3985479 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985479 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Get remote client IP address in the ejb3 exposed web ser
Any one? I saw some reponses saying to write a handler. But that requires deployment descriptors like webservices.xml to be packaged right? I was thinking in ejb3 web service, you can not package deployment descriptors. Please advise.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985480#3985480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Testimonials] - View a file using JBOSS
In my application i have to upload a file and view the same. I am uploading a file presently at a different location from the server. While trying to open that file using window.open, it throws a javascript error "Access is denied". I was suggested to upload under ROOT so that I can view from the same location. But I am using JBOSS. where I am unable to locate the root folder. Kindly suggest me where to upload the file and how to view the file with some examples. Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985481#3985481 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985481 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - log4j RepositorySelector - log4j.jar missing RootLogger
Hi, I'm putting together a log4j RepositorySelector using this http://www.qos.ch/logging/sc.jsp as a guide to provide a consistent logging approach for my webapp across different app servers. However, the log4j.jar included with JBoss (4.0.4.GA) does not include the RootLogger class. Has this been removed for a reason in the JBoss log4j build? i.e. to prevent webapps from accessing the RootLogger? I'm fairly sure that with the RepositorySelector approach I should only have a single log4j.jar in the app server (i.e. not a separate jar included in every webapp). And anyway, multiple log4j.jars seem to cause errors on startup. How can I get around this while avoiding changing the default JBoss configuration (after all, you would not want customers to have to change their app server config, just to deploy an additional webapp). Thanks Nick View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985482#3985482 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985482 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - a problem about jboss
a example to demonstrate this problem: two jsp pages: hello.jsp: | <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> | <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> | | | Input Name Page | | | | | | | | | | sayhello.jsp | <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> | <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> | | | | | | | faces-config.xml: | | http://java.sun.com/dtd/web-facesconfig_1_0.dtd";> | | | | /test/hello.jsp | | sayhello | /test/sayhello.jsp | | | | | | | web.xml: | | | org.apache.myfaces.webapp.StartupServletContextListener | | | | FacesServlet | javax.faces.webapp.FacesServlet | 1 | | | FacesServlet | /faces/* | | | | | LogFilter | com.recency.XY0631.filter.LogFilter | | | LogFilter | *.jsp | | | then i did the following steps: 1, i visit hello.jsp in my internet explorer, the logger print "request url=.../hello.jsp" in console. 2,i click "Say hello" link , the page direct to sayhello.jsp , the logger print "request url=.../sayhello.jsp" in console. 3,i push "back" button on internet explorer, the page return to .../hello.jsp,the logger didn't print anything. 4,i click "Say hello" link , page didn't direct to sayhello.jsp ,the logger printed "request url=.../hello.jsp", (they acted as what they did in step 1) 5,i clicked "Say hello" link again, the page direct to sayhello.jsp ,the logger printed "request url=.../sayhello.jsp". why i hava to click "Say hello" link twice?(i have used tomcat instead, it don't hava this problem) is this a jboss's bug ?(i found the jbpm-starters-kit-3.1.2's default jboss server also have this problem) thanks for any help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985483#3985483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - java.io.IOException: Client is not connected
Hello members, I am getting the following exception during following scenarios: 1. If the date/time on the JBOSS server machine changes (example during day light saving time changes) 2.When network connection abrubtly disconnects and reconnects. I am using 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023). In the error message it is mentioned ""use javax.jms.Connection.setExceptionListener() to handle this error and reconnect". I wrote the ExceptionListener, but what does it mean "reconnect" ? How it can be done programatically. Exception as follows: [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Setting up the UILClientIL Connection org.jboss.mq.Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error and reconnect org.jboss.mq.SpyJMSException: Cannot ping the JMS server; - nested throwable: (java.io.IOException: Client is not connected) at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:66) at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:51) at org.jboss.mq.Connection.pingServer(Connection.java:887) at org.jboss.mq.Connection$PingTask.run(Connection.java:1327) at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364) at java.lang.Thread.run(Thread.java:534) Caused by: java.io.IOException: Client is not connected at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:238) at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:224) at org.jboss.mq.il.uil2.UILServerIL.ping(UILServerIL.java:462) at org.jboss.mq.Connection.pingServer(Connection.java:883) Thanks and Regards, Shahsi Kiran View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985484#3985484 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985484 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Register Datasource Programmatically
Is it possible to have an MBean register a JBoss Datasource programmatically? I am currently using ?ds.xml files to configure (and register) my data sources. However, I would love to use an application-specific file to hold this data as I have several other non-jboss utilities that require the same information. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985487#3985487 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985487 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Register Datasource Programmatically
Is it possible to have an MBean register a JBoss Datasource programmatically? I am currently using ?ds.xml files to configure (and register) my data sources. However, I would love to use an application-specific file to hold this data as I have several other non-jboss utilities that require the same information. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985489#3985489 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985489 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JBoss Unified ClassLoader Hell? even with EJB3 ?
There's only a few other things I can think of... The jboss-web.xml also allows loader-repository entries. I can't remember if I use this also, or I just use the wrapper ear to accomplish it. It's worth a try. The second item is, did you configure the UseJbossWebLoader entry in the Tomcat service.xml file? I believe that also plays a role in how classes get loaded for web applications. I left my laptop at home (the machine that has this configured), so I don't have the specifics right here with me. I feel your pain, I spent a lot of time getting my stuff working. And, I found a lot of posts in the forums that are just plain wrong IMO. Good luck, gary. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985490#3985490 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985490 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Personalized portal general question
Gentlepeople, I have the following requirements to implement and for which I think a combined portal/cms system like jboss portal would be very useful The system has three groups of users and three types of content The users are - Administrators - create user groups, users and user (or user group) specific portal pages - Content providers - create the content and decide which of the users or user groups can see the created information - Normal users - login in and "consume" the information The content types are - Global content, available to all users - Group content available to a given user group - Private content, avaiable to a specific user I would like to implement this using a portal/cms system. I did an initial attempt using Liferay, and while I have it working I did run into a lot of problems (technical problems , missing features and lack of documentation and especially lack of any feedback on the mailing list). So - simple generic questions really 1/ Has anyone done something similar and how difficult/easy was it using jboss portal and/or 2/ Anyone any high level guidelines as to how I could translate my requirements to jboss portal concepts. I understand these are very high level questions but before I dive into learning the details of jboss portal it would be nice to have some feed-back. *Anytype* of feedback would be warmly welcomed Peter Coppens View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985491#3985491 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985491 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Slow remote database connection
What I'd suggest doing is increasing the verbosity of logging from Hibernate to the point you can get it to log the SQL queries it is doing in check to make sure that the *number* of queries it is doing is reasonable. One possible reason that a large query might be slow remotely is that it is doing one query to fetch the set of rows and then an addititional query per-row. The per-query latency will be greater with a remote database, and even a millisecond or two per row can add up to a lot. (If you do find thousands of queries, it may be that some relationships on your entities need to be made lazy) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985492#3985492 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985492 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Accessing the entitymanager outside a transaction
To answer myself, it is described in section 3.1.1 of the ejb 3 persistence spec. Regards, Milan Wölke View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985495#3985495 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985495 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - connecting to portal hypersonic database in database manager
I am running jboss portal using the default hypersonic database. I have been trying to connect to the portal database using the jboss database manager but have been unable to do so. Can I do this by editing the hsqldb.ds file, or can I start the default database manager from the jboss MBean inspector page and then connect from there? In either case what exactly is the connection URL I should use, assuming I installed Jboss in the default way? thanks Paul View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985494#3985494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985494 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WS4EEDOCClientStepByStep problem
I've solve the warning about the non-jar deployer. It was a error in a class path. I now have no error message during the launch of the app server but i still have the w4ee-client not bound problem when i try to reach the web service. The jar I was describing in my first post is included in a more complete ear file containing a lot of other jars and ejbs... Please, I've no ideas whats going wrong. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985498#3985498 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985498 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: UPDATED: SelectItems (the one with the EntityConverter)
Hi Luis Thanks for the feedback. I discovered a similar problem when putting a si:selectitems in a datatable [1]. As I mentioned above I've been further refactoring the code to support JSP as well as facelets - a side of effect of this refactoring is that it (for me) solves the problem [2]. I hope to put out the new code in a couple of days time. [1] In beta1 the handler executes the parent's value binding so that it can try to guess which converter to attach. I put this code in onComponentCreated, which, if you are using a dataTable/ui:repeat is before the iteration variable is available. [2] In the refactored version the work is done when the value binding is executed hence the problem does not arise. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985496#3985496 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985496 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF Form Authentication using JAAS DatabaseServerLoginMo
I was assuming the use of the Seam message bundle set up as in the examples/ref doc not the use of JSF f:loadBundle. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985499#3985499 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985499 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Personalized portal general question
"Peter.Coppens" wrote : I would like to implement this using a portal/cms system. I did an initial attempt using Liferay, and while I have it working I did run into a lot of problems (technical problems , missing features and lack of documentation and especially lack of any feedback on the mailing list). | Would it be impolite to laugh? ;-) "Peter.Coppens" wrote : | 1/ Has anyone done something similar and how difficult/easy was it using jboss portal | | and/or | | 2/ Anyone any high level guidelines as to how I could translate my requirements to jboss portal concepts. | Fine-grained security over CMS nodes (folders/files) will be included in 2.6. Thats probably the one thing we're missing, that you need, in 2.4. With 2.6, you will be able to assign security restrictions on folder/file for any Role or even User. Note, the CMS in 2.6 will also contain jBPM workflow integration. So I would have to say at this point in time, we don't have this feature. We have an Alpha of 2.6 scheduled for December, that should have alphaversions of this included within. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985500#3985500 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985500 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: address CMP beans from session bean in other JAR but sam
So, die Lösung ist gefunden: -Man benötigt nur einen persistence.xml - Eintrag in dem JAR mit den Entities, die andere kann leer bleiben. -Als Verweis benutzt man dann | @PersistenceContext(unitName="../NAMEDESANDERENJARS.jar#PERSISTENCEUNITNAME") private EntityManager em; | Also z.B. | @PersistenceContext(unitName="../teec-ios-persistence-ejb.jar#ios") private EntityManager em; | Das ganze ist dann in der JSR 220: Enterprise JavaBeansTM,Version 3.0 beschrieben und zwar in Abschnitt 16.10.2 (einfach suchen nach "#"). - UPS, just noticed I was qwriting in german - so again in english :-) So, die Lösung ist gefunden: -You only need a single persistence.xml - entry in the entity JAR, the other persitence.xml can stay empty. -The reference works as follows | @PersistenceContext(unitName="../NAMEDESANDERENJARS.jar#PERSISTENCEUNITNAME") private EntityManager em; | For example: | @PersistenceContext(unitName="../teec-ios-persistence-ejb.jar#ios") private EntityManager em; | You can find more information here: JSR 220: Enterprise JavaBeansTM,Version 3.0 Paragraph 16.10.2 (just search for "#"). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985502#3985502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985502 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Database connection
Hi again, after some tests i discovered the true reason of the problem, but not a solution for it. If anybody know why it happens, tell me please: | Exception in thread "JbpmCommandExecutor" java.lang.NoClassDefFoundError: org/hibernate/Session | at org.jbpm.persistence.db.DbPersistenceServiceFactory.openService(DbPersistenceServiceFactory.java:55) | at org.jbpm.svc.Services.getService(Services.java:136) | at org.jbpm.svc.Services.getPersistenceService(Services.java:175) | at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:594) | at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:519) | at org.jbpm.msg.db.DbMessageService.(DbMessageService.java:49) | at org.jbpm.msg.db.DbMessageServiceFactory.openService(DbMessageServiceFactory.java:32) | at org.jbpm.svc.Services.getService(Services.java:136) | at org.jbpm.svc.Services.getMessageService(Services.java:172) | at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:112) | at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79) | Thanks for help. Regards, Jeferson Zanim View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985503#3985503 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985503 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - JBPM(BPEL) conflicts (hibernate settings) with my app.
Hi! Help me , please! I try to deploy JBPM(BPEL) and my app and run both. My app is web app(war) that consists of several web services and hibernate connection to MSSQL2005 DB, using net.sourceforge.jtds.jdbc.Driver. My app brings hibernate-1.3.1 jar inside war and connects to db. It is ok without JBPM. But, when I deploy BPEL service to JBoss(with default connection settins from jbpm-bpel.sar), my app failed to use right hibernate settings(it seems so), and (it seems so) uses BPEL engine hibernate settings instead. I have errors. How to separate them? Thanks a lot!! I need your help!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985505#3985505 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985505 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Personalized portal general question
Wowa reply in less than 15 minutes! That for a start is a big difference compared with my previous experiences in the open source portal world (event the Liferay sales mailing address which I eventually tried...after becoming really very desparate did no reply the first time I tried) ...and it's ok to laugh, although I have to admit I am still laughing a little green after 2 weeks of liferay frustration. Anyway...so first of all thanks for the answer. Now, assume I want to throw in some development efforts of my own and that security by "obscurity" is sufficient (to start with). Would that be feasible in a reasonable amount of time - reasonable meaning 2 weeks for someone with Java expertise but no portal/jboss knowledge? Thanks, Peter View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985507#3985507 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985507 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Slow remote database connection
I think you hit it on the nail. I've looked at the logs and there are a couple of hundred ones, but definitely not thousands, of 1-row queries. Also this issue has gone away with time, without me touching anything. That must be caching in action. I'll investigate further, add laziness and do a fresh start to see if this will improve things. This tip is very much appreciated! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985510#3985510 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985510 ___ 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: Does setMaxResults() has effects on the query?
Hi, I'm experiencing the same effect with DB2 using JBoss-4.0.4.GA. Did anybody find a solution and/or explanation? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985513#3985513 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985513 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Is this a viable scenario?
"apill" wrote : We have an EJB 3 application running in Jboss that is designed to track inventory. Our data model is persisted with hibernate and according to the EJB3 spec and we're using stateless session beans to execute business logic from the client application. | | I would like design a workflow to manage which actions can be performed upon an item of inventory at any point during it's life. For example, if it is in a repair state it can either be repaired or scrapped. | | From the client app it would be nice to ask the server... | what are the current available actions for this inventory? | then... | 1. user selects an action | 2. client app collects necessary data from the user for the action | 3. client invokes the action in the workflow to move the inventory to its next state | | Is this a valid scenario that could be integrated with jBPM? How might i go about this? Can someone point me to some documentation that might help? | | The tutorial/getting started docs are fine, but they give me no clue as to how to begin integrating a workflow with my system. | | Adrian Yes, it is a viable scenario to implement with jBPM. If you already read the tutorial/getting started, then you need to study the API and the manual, all the info is there. Regarding the "user selects an action" you have two ways to implement conditions: anonymous wrote : | 9.3.4. Nodetype decision | | Actually there are 2 ways to model a decision. The distinction between the two is based on *who* is making the decision. Should the decision made by the process (read: specified in the process definition). Or should an external entity provide the result of the decision. | | When the decision is to be taken by the process, a decision node should be used. There are basically 2 ways to specify the decision criteria. Simplest is by adding condition elements on the transitions. Conditions are beanshell script expressions that return a boolean. At runtime the decision node will loop over its leaving transitions (in the order as specified in the xml), and evaluate each condition. The first transition for which the conditions resolves to 'true' will be taken. Alternatively, an implementation of the DecisionHandler can be specified. Then the decision is calculated in a java class and the selected leaving transition is returned by the decide-method of the DecisionHandler implementation. | | When the decision is taken by an external party (meaning: not part of the process definition), you should use multiple transitions leaving a state or wait state node. Then the leaving transition can be provided in the external trigger that resumes execution after the wait state is finished. E.g. Token.signal(String transitionName) and TaskInstance.end(String transitionName). As you may see from this quote, what you're asking is in the docs. Read chapters 3, 4, 6, 7, 9 (at least these regarding integration, however it is strongly recomended that you read the remaining chapters). If you still have doubts, then I ask you: if you have a full API (jBPM API), what can YOU do to integrate it with your application if you already know Java Regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985508#3985508 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985508 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: FacesMessage propagation issue
I have looked a bit at the FacesMessages.java. I think I understand why I loose my messages when I have @End(beforeRedirect=true). facesMessages is conversation scoped: @Scope(ScopeType.CONVERSATION) | @Name("facesMessages") | @Intercept(NEVER) | public class FacesMessages implements Serializable | { I assume it gets destroyed as part of the conversation end, with the resulting loss of the messages before it could be rendered. Am I correct? Is there a way around it ? Thanks L View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985512#3985512 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985512 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - JMS JNDI Names
I ve written a simple Chat Programm, which uses the old JBossMQ JMS Provider. In this Programm i am using subcontexts to build up a hierarchical structure of Chatrooms. My old Service Descriptor looked like this: | | http://www.jboss.org/j2ee/dtd/jboss-service_3_2.dtd";> | | | | jboss.mq:service=DestinationManager | | | | I ve realized that you developed a new "JBoss Messaging" and therefore i want to rewrite the Chat for the new Provider. I added the Classloader entry and changed the Class-Names of the Topic's and Queue's. | | http://www.jboss.org/j2ee/dtd/jboss-service_3_2.dtd";> | | | jboss.messaging:loader=ScopedLoaderRepository | java2ParentDelegation=false | | | | jboss.messaging:service=ServerPeer | | | | | | | | | But when i deploy the Service Descriptor, i get the following exception. :( | 17:42:49,765 ERROR [ExceptionUtil] Topic[null, name=jmschat/room/Lounge] startService | javax.naming.NameNotFoundException: jmschat 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.rebind(NamingServer.java:165) | at org.jnp.server.NamingServer.rebind(NamingServer.java:168) | at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:510) | at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:477) | at org.jboss.jms.server.DestinationJNDIMapper.registerDestination(DestinationJNDIMapper.java:124) | at org.jboss.jms.server.destination.DestinationServiceSupport.startService(DestinationServiceSupport.java:129) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196) | at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) | 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:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) | 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: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.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy4.start(Unknown Source) | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source) | 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:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBean
[jboss-user] [Beginners Corner] - Singleton or Application Scope
Hi, I need to build an EJB that collects data during the Servers Lifetime. This EJB will be invoked each time a client is invoking a Webservice so that I can collect some Statistics. So there shall only be one Instance in the pool for the reason that EJB forbids to use static fields. (is this definition by the way?) Next Problem is, that this EJB shall be timed. There is a method that measures the heap each minute. Now having 5 Beans in the pool, the heap will be measured 5 times. This is not what i want. Which would be the best way to set up such an EJB? Thanks, Alexander View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985516#3985516 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985516 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Database connection
If you have read the docs, then you should be aware that jBPM uses Hibernate to handle DB, hence the jars needed. Regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985519#3985519 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985519 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Database connection
It looks like you're missing the Hibernate JAR's in your JBoss AS. Regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985518#3985518 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985518 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM(BPEL) conflicts (hibernate settings) with my app.
This is not a jBPM question, but an Hibernate question; wrong forum... However, here is the answer: | import org.hibernate.Session; | import org.hibernate.cfg.Configuration; | ... | | Configuration configuration = new Configuration(); | configuration.configure("anotherDB.cfg.xml"); | SessionFactory sessionFactory = configuration.buildSessionFactory(); | For more info, read your Hibernate docs (section 3.8). Regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985522#3985522 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985522 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: FacesMessage propagation issue
Have you tried adding a FacesMessage the old way - directly to the facesContext? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985523#3985523 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985523 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: auto redeploy dynamic mbean on JBoss restart
Hi, I couldn't find anything in JIRA for this ... so I don't know if it's a bug, or a 'to do' (or if I misunderstood how it is supposed to work). It's easy to reproduce, just by editing the persistence service sar file's jboss-service.xml file and adding one [value] XML tag. Chris View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985524#3985524 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985524 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Is it possible to execute Petstore demo in cluster mode?
1. What was the reason for moving jndi.properties file from "conf" to "lib" directory? 2. Is node1 and node2 joined in JBoss Cluster or they are just two independent nodes under RoundRobin controll of mod_jk? Seem to me you do not have JBoss Cluster estalished and node1 and node2 are independent nodes where only node1 running JBossMQ. Is that correct? 3. Node1 and node2 derived from "all" configuration or "default"? With default JBoss behavior when running in the cluster you wouldn't even have to specify provider url, since JGroups auto-discovery is enabled by default and your "Master" (the one that running JBossMQ singleton) node would be discovered before NameNotFound exception is thrown. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985525#3985525 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985525 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: extended attributes
Hi: I don't understand why do you need to have variables attached to a process definition. Could you please explain this in more detail?. Regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985527#3985527 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985527 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Personalized portal general question
"Peter.Coppens" wrote : Now, assume I want to throw in some development efforts of my own and that security by "obscurity" is sufficient (to start with). | | Would that be feasible in a reasonable amount of time - reasonable meaning 2 weeks for someone with Java expertise but no portal/jboss knowledge? | Maybe... aside from Java, a good understanding of the portlet spec will likely help here. Also, since we are dealing with a JCR CMS, a basic understanding of JCR will help too. Our code isn't rocket science, so any adept programmer can likely follow the logic quite easily. I am currently (today) stubbing out the security functionality in the CMSAdminPortlet/jsps and will check them in to SVN by the end of day. After that, you are welcome to look at the skeleton pages and suggest changes. It may be a week or two before the team circles back to finish it up, so if you think you can get something done in the meantime, it would certainly help. The issue for me, is where to set the role informatioon... not sure we've decided yet on setting it in the cms as a node property or some other place. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985526#3985526 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985526 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: how can i extend ?
Why do you need the tag? How are you going to use it?. Please explain further. Regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985528#3985528 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985528 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Deploying JSP in JBoss without creating a WAR?
So, I'm a newbie to all of this, but I'm just wondering if I can run JSP code on JBoss without creating a WAR file. In Tomcat, I think I remember being able to place the JSP files in the root directory or something. If not, can anyone point me in the direction of step-by-step "creating a WAR" guide? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985529#3985529 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985529 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ajax4jsf does no work
I'm having a similar issue. only reRenders if I set ajaxRendered="true" Just tried a seam example from CVS and it looks to work so I'm a little lost for a reason for my app not working. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985530#3985530 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985530 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Database connection
Hi one more time, the last problem was a mistake with 'jbpm.cfg.xml' location. But, after solve it i got a new exception: | org.jbpm.JbpmException: couldn't parse jbpm configuration from resource 'jbpm.cfg.xml' | at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:284) | at | ... | at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) | Caused by: org.jbpm.JbpmException: no ObjectInfo class specified for element 'service' | at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:280) | ... 28 more | Any idea of how can i solve it? Thank you again. Regards, Jeferson Zanim View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985532#3985532 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985532 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: FacesMessage propagation issue
Exactly, the whole *reason* for propagating conversations across redirects is so that we can remember stuff like FacesMessages. Pete, JSF most certainly does not propagate a FacesMessage across a redirect, so that won't work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985531#3985531 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985531 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Gotchas (so far)
anonymous wrote : Outside of the \ If I have a command button then it wont let me have it outide the form; Just put it in a different form. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985535#3985535 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985535 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Database connection
Additional comments: I'm using Tomcat 5, MySQL 5 and jBPM 3.1.2 Regards, Jeferson Zanim View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985534#3985534 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985534 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF Form Authentication using JAAS DatabaseServerLoginMo
Don't use f:loadBundle with Seam, its really ugly, and MUCH less powerful. Use the Seam resource bundle. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985536#3985536 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985536 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JSF Form Authentication using JAAS DatabaseServerLoginMo
Thnx All for your tips ..And any idea why the page template I am using is not being correctly rendered ?? My idea behind using JSF/Facelet was to have validations associated with the username and password controls itself as i dont want error messages on a seperate error page ... but i guess i would have to use it !! The only problem with my approach for now is the template problemI cannot figure out why it is not rendred properly !! Otherwise Seam does a wonderful job. Regards, Jankee Yogesh http://www.m-itc.net View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985540#3985540 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985540 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Simple but complete Maven or ant example project needed
It's posted! The URL for the repository is http://labs.lunarlogic.com/proximity/repository/. The group id is "com.lunarlogic.maven.archetypes" and the artifact id is "maven-archetype-jee-seam". In order to use this without installing the artifact manually you need to add the following entry to ~/.m2/settings.xml | | ... | | ... | | lunarlogic-repository-profile | | | lunarlogic | http://labs.lunarlogic.com/proximity/repository/lunarlogic | | | | ... | | ... | | ... | lunarlogic-repository-profile | ... | | ... | | Usage instructions have been posted at http://www.lunarlogic.com/blog/show/maven_archetype_for_jboss_seam. Phillip Singer http://www.lunarlogic.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985541#3985541 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985541 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1 beta1&2 (dis?)injecting issue
This looks like a bug in Seam, and I kinda "half" see what is going on (and I think I know the fix), but I don't quite see everything. Can you please submit a cut-down testcase to JIRA so I can reproduce this? TIA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985542#3985542 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985542 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Base is null Error.
That would only work if the user was to package his classes into jboss-seam.jar. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985543#3985543 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985543 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Session expires @ every request with IE.... ; -(
OK, I've just found the problem !! But don't ask me why :-)) my url was like that http://home_www.test.me and I just removed the underscore "_", modifying my dns to http://homewww.test.me ! and it works fine now ! and you ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985544#3985544 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985544 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Base is null Error.
I mean, seriously guys, think it through. You all complain about the empty seam.properties file in your jar. But think for just a second about how much more painful it would be if I made you list all your classes in some XML file somewhere, like you have to do with JSF or Spring or Struts or WebWork! Isn't this a lot easier? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985546#3985546 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985546 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Bug/Missing feature in JBossWS build.xml
Instructions on http://wiki.jboss.org/wiki/Wiki.jsp?page=JBWSFAQBuildAndInstall have a step for svn checkout for JBossWS src. The "main" ant target depends on thirdparty jars and the build.xml doesnt looks like taking care of proxy.host and proxy.port properties. How can one use proxy settings for thirdparty.get to work? Thanks, -Shrinivas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985549#3985549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985549 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Injection and remoting
"sbryzak2" wrote : Injection should work just fine. Can you post a code sample? Here is the Session Bean | package org.seam.ejemplo.login.session; | | import java.util.List; | | import javax.ejb.Stateless; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.core.FacesMessages; | import org.jboss.seam.log.Log; | import org.seam.ejemplo.login.beans.Cliente; | | /** | * @author gllambi | * | */ | @Stateless | @Name("login") | public class LoginAction implements Login { | | @In | private Cliente cliente; | | @PersistenceContext | private EntityManager em; | | @Logger | private Log log; | | public String login() { | List existing = em.createQuery( | "select usuario from Cliente where usuario=:usuarioParam") | .setParameter("usuarioParam", cliente.getUsuario()) | .getResultList(); | if (!existing.isEmpty()) { | log.info("Se logueo el client #{cliente.usuario}"); | return "exito"; | } else { | log.info("No existe el cliente"); | FacesMessages.instance().add("El cliente #{cliente.usuario} no fue registrado. Regístrese"); | return null; | } | } | } | Here is the interface | package org.seam.ejemplo.login.session; | | import javax.ejb.Local; | | import org.jboss.seam.annotations.WebRemote; | | /** | * @author gllambi | * | */ | @Local | public interface Login { | | | /** | * Se valida el cliente y su contraseña | * @return | */ | @WebRemote | public String login(); | | } | Here is the page | <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%> | <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%> | <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax"; prefix="a4j"%> | | | | | | Login | | | | | | | | // | | | | | | | | | | | | | | | | | | | | | And here is the web.xml | 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 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> | Login | | javax.faces.STATE_SAVING_METHOD | client | | | | This parameter tells MyFaces if javascript code should be | allowed in the rendered HTML output. If javascript is | allowed, command_link anchors will have javascript code that | submits the corresponding form. If javascript is not | allowed, the state saving info and nested parameters will be | added as url parameters. Default: "true" | | org.apache.myfaces.ALLOW_JAVASCRIPT | true | | | | This parameter tells MyFaces if javascript code should be | allowed in the rendered HTML output. If javascript is | allowed, command_link anchors will have javascript code that | submits the corresponding form. If javascript is not | allowed, the state saving info and nested parameters will be | added as url parameters. Default: "false" | | Setting this param to true should be combined with | STATE_SAVING_METHOD "server" for best results. | | This is an EXPERIMENTAL feature. You also have to enable the | detector filter/filter mapping below to get JavaScript | detection working. | | org.apa
[jboss-user] [EJB/JBoss] - JBoss EJB proxy class
Is it true that, JBoss EJB proxy class contains bytecode that is created at run-time. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985550#3985550 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985550 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Deploying JSP in JBoss without creating a WAR?
You can find a lot information about JSPs and servlets at http://pdf.moreservlets.com/. Check out chapter 4, Using and Deploying Web Applications. But for serious WAR file building, look into Ant or Maven 2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985551#3985551 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985551 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trinidad example uploaded to wiki
If someone tells me exactly what is the name of their UIInput class, I can workaround this problem in Seam ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985552#3985552 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985552 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Bug/Missing feature in JBossWS build.xml
Add these bellow your Replace with appropriate settings View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985553#3985553 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985553 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Bug/Missing feature in JBossWS build.xml
Forgot to say, in build.xml of course ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=398#398 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=398 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Logger in page-scoped component, NPE in post-back.
LogImpl has the following method: void readObject(ObjectInputStream ois) | throws ClassNotFoundException, IOException |{ | ois.defaultReadObject(); | log = LogFactory.getLog(category); |} Are you trying to tell me that Java serialization is broken? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985556#3985556 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985556 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Creating custom deployer
I have a requirement to create my own custom deployer implementation. Should I have to subclass the SubDeployerSupport class to enable automatic registration to MainDeployer, or is there any other way. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985554#3985554 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985554 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Implementing our own Client side interceptors
Thanks a lot for the information. By the same way, if I have to implement and deploy my own server side JBOSSMQ interceptors, should I have to implement org.jboss.mq.server.JMSServerInterceptor or extend org.jboss.mq.server.JMSServerInterceptorSupport, that are deployed as a JBoss service and added to the interceptor chain declaration in jbossmq-service.xml. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985558#3985558 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985558 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Session expires @ every request with IE.... ; -(
We have noticed that the URI.getHost() method returns a null if the hostname contains an underscore, which completely screws things up because the JBoss code does not expect a null to be returned. That is probably the same problem that bit you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985557#3985557 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985557 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Subdeployer implementation
Does Subdeployer implementation extending SubDeployerSupport class supports nested deployments via superclass implementation or must explicitly register itself to the main deployer via accepts() method. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985559#3985559 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985559 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - To participate in the service lifecycle of JBoss application
I have to make one of my service to participate in the service lifecycle of JBoss AS. For this, should my service must implement the org.jboss.system.Service interface or one of its subinterfaces, or implement matching operations. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985560#3985560 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985560 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Bug/Missing feature in JBossWS build.xml
Thank you Romeu for your quick reply. It works. -Shrinivas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985561#3985561 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985561 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - setting up debugger
On both OS X and Ubuntu with Eclipse 3.2: I used the Eclipse software update utility to install the JBoss IDE per the directions. When I try to set up the debugger (as per the instructions on the download page), I right click the JBoss 4.0.x icon and select "new" nothing happens. According to the documents, I should get a configuration screen, but nothing appears. I tried going thru the Window | Preferences, but don't see a way to set it up there either. I am trying to configure local debugging, if that makes a difference. Any ideas on how to setup the debugger on Linux and Mac? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985562#3985562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985562 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1 beta1&2 (dis?)injecting issue
What I don't get is exactly *why* is the reloadableResource component getting instantiated when it is - what causes it to get instantiated right *then*. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985564#3985564 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985564 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal Stress Results
Thanks a lot for your answers, we will be looking forward to see Sohil news :-) Anyway, let's assume we don't care about the CMS Portlet. What about Portal Core performance? Shall we assume that it is difficult to get more than 13 p/s with this configuration? Shall we assume that the database is going to be hit even when the page doesn't have the CMS Portlet? Is there some cache technology that is still to be included? Regards, Waldemar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985563#3985563 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1 beta1&2 (dis?)injecting issue
I committed a change to CVS that probably fixes this issue, but I still need to understand why it was needed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985565#3985565 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985565 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Exception with Booking Example + JSF RI
I'm trying to reproduce a problem I'm experiencing with Ajax4JSF and Seam so I've started by trying to convert the Booking example to the JSF RI 1.2.03. web.xml -- I switched from: org.apache.myfaces.webapp.StartupServletContextListener to: com.sun.faces.config.ConfigureListener Then i switched out the myfaces-imp and api jars for Sun's versions. Then I deployed on a jboss 4.0.5 configuration that has the jsf jars instead of the myfaces jars (neither of which are deployed with the example). While everything works as expected with myfaces, doing the above switch to the RI gives the following exception. Any ideas what's wrong? com.sun.facelets.FaceletException: Could not instantiate feature[compiler.ExpressionFactory]: org.jboss.seam.ui.facelet.SeamExpressionFactory at com.sun.facelets.compiler.Compiler.featureInstance(Compiler.java:153) at com.sun.facelets.compiler.Compiler.createExpressionFactory(Compiler.java:127) at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:193) at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:141) at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:93) at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:503) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553) at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101) at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:197) at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248) 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:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67) at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985566#3985566 Reply to the post : h
[jboss-user] [JBossWS] - Encryption and Signature from .Net client
Hi, I'm in urgent need of some help. I'm having the biggest problems in the world creating just a simple HelloWorld webservice. I've seen every possible exception and I've tried every possible configuration. The only conclusion I can take at the moment is that ws-security in JBoss is completely not interoperable with .Net clients using WSE 3.0. I'm afraid that I don't get this fixed I'm gonna have to transfer our complete system to another application server or throw the complete ws-security stack of jboss overboard and implement the security handler myself from scratch tailored to what the .Net client is sending out. What I'm trying to do is realy simple I'm looking for a way to do ws-encryption of the data being transfered and have somekind of authentication on the server. I need to know who send me the data, and I want it encrypted over the wire. I'm not gonna post here all the things I've tried over the last few weeks because this mail would be way to long. My question is simple: Has anyone on this globe ever done this before? And how did he do it? Thanks alot! Kristof. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985567#3985567 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985567 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Single Signon - Where do I start
Kosmi, Thanks for the help. I think, as it turns out, the error described: 13:58:50,015 ERROR [UsersRolesLoginModule] was due to my login-config.xml being deployed in my application war WAS NOT CORRECT. I had to remove that file and place the application-policy definition inside of the containers login-config.xml at $JBOSS_HOME/server/default/conf/login-config.xml. Can anyone on the jboss team confirm that for me. I am 99% sure, but it may be a bug as the documentation says to put login-config.xml in your web.xml. Now back to the problem. I'm very close now, I think. I've got it calling my database. It fails every time but there are two scenarios: 1. I enter a bad UID and password on purpose and get this in the logs on DEBUG level" | 12:56:09,375 DEBUG [[localhost]] Process request for '/myauth/' | 12:56:09,375 DEBUG [[localhost]] Checking for SSO cookie | 12:56:09,375 DEBUG [[localhost]] SSO cookie is not present | 12:56:09,390 DEBUG [AuthenticatorBase] Security checking request GET /teenfit/ | 12:56:09,390 DEBUG [RealmBase] Checking constraint 'SecurityConstraint[myauth]' against GET / --> true | 12:56:09,390 DEBUG [RealmBase] Checking constraint 'SecurityConstraint[myauth]' against GET / --> true | 12:56:09,390 DEBUG [AuthenticatorBase] Calling hasUserDataPermission() | 12:56:09,390 DEBUG [RealmBase] User data constraint has no restrictions | 12:56:09,390 DEBUG [AuthenticatorBase] Calling authenticate() | 12:56:09,390 DEBUG [DatabaseServerLoginModule] Bad password for username=user | 12:56:09,390 DEBUG [AuthenticatorBase] Failed authenticate() test | 2. I enter a good UID and password and still don't get logged in, but the bad password message is no longer in the logs. Any ideas? | 12:56:01,062 DEBUG [[localhost]] Process request for '/myauth/' | 12:56:01,062 DEBUG [[localhost]] Checking for SSO cookie | 12:56:01,062 DEBUG [[localhost]] SSO cookie is not present | 12:56:01,062 DEBUG [AuthenticatorBase] Security checking request GET /teenfit/ | 12:56:01,062 DEBUG [RealmBase] Checking constraint 'SecurityConstraint[myauth]' against GET / --> true | 12:56:01,062 DEBUG [RealmBase] Checking constraint 'SecurityConstraint[myauth]' against GET / --> true | 12:56:01,062 DEBUG [AuthenticatorBase] Calling hasUserDataPermission() | 12:56:01,062 DEBUG [RealmBase] User data constraint has no restrictions | 12:56:01,078 DEBUG [AuthenticatorBase] Calling authenticate() | 12:56:01,078 DEBUG [AuthenticatorBase] Failed authenticate() test | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985568#3985568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985568 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1 beta1&2 (dis?)injecting issue
Thanks for the prompt response. Perhaps what I'm doing is a little unusual. I've created a simple way to update resource bundle messages that is intended to be a stop-gap until java 6 sorts out ResourceBundles. My application also has a login component that takes a username and password. But the username textbox is pre-populated with a prompt for a user name, and it gets that from the reloadable resource. So when the loginAction is created, it needs to access/ create the reloadable resource. See the code extracts below. I'll checkout cvs head and give it a go. Did you still want a test-case for this issue? Let me know if you need any more info. Cheers, Pete. LoginAction.java extract: | @Stateful | @Scope(CONVERSATION) | @Name ( "login" ) | @TransactionAttribute(NOT_SUPPORTED) | @Intercept(ALWAYS) | public class LoginAction implements Login, Serializable { | | private static final long serialVersionUID = -3794420136503008665L; | | private static final Logger LOG = Logger.getLogger( LoginAction.class ); | | public static final String LOGIN_USER_KEY = "loggedInUser"; | public static final String LOGIN_USER_ID_KEY = "loggedInUserId"; | | @PersistenceContext(type=EXTENDED) | private EntityManager em; | | @In(create=true, required=false, value=LOGIN_USER_KEY) | private User loggedInUser ; | | @In (create=true) | private Context sessionContext; | | @In(create = true) | private transient FacesMessages facesMessages; | | @In ( create = true ) | private Actor actor; | | private String username ; | private String password ; | private String newPassword = "" ; | private String repeatPassword ="" ; | | public LoginAction() { | resetInfo() ; | } | | private void resetInfo() { | // default to the username prompt... | setUserName( Utils.getBundleMessage("username") ); | setPassword( "" ); | setNewPassword("") ; | setRepeatPassword("") ; | } | ... | Utils.java extract: | ... | public static String getBundleMessage(String messageId) { | | FacesContext facesContext = FacesContext.getCurrentInstance(); | String bundleName = facesContext.getApplication().getMessageBundle(); | Locale locale = facesContext.getViewRoot().getLocale(); | | String message = "?" + messageId + "?"; | if ( bundleName != null ) { | try { | message = getResourceBundle(bundleName, locale).getProperty(messageId) ; | | if ( params != null ) { | MessageFormat mf = new MessageFormat( message, locale ); | message = mf.format( params ).toString(); | } | | } catch (MissingResourceException e ) { | LOG.debug("Cannot find message for bundle " + bundleName + " message Id = " + messageId); | } | } | return message; | } | | public static Properties getResourceBundle(String bundleName, Locale locale) { | return ReloadableResource.instance().getResourceBundle(bundleName, locale) ; | } | ... | ReloadableResource.java extract: | ... | public static ReloadableResource instance() { | if (Contexts.isSessionContextActive()) { | return (ReloadableResource) Component.getInstance( "reloadableResource", true ) ; | } else { | LOG.debug("ResourceBundle is being accessed outside of web context.") ; | return new ReloadableResource() ; | } | } | ... | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985575#3985575 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985575 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Database connection
"J.E.Z" wrote : Hi, | | im a begginer at using jBPM. I copied the jbpm.war from the Starters Kit to my Tomcat/webapps. | Look at this: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74781. According to this, you need to deploy the jbpm.sar, not the jbpm.war; follow the instructions in the thread above to build the jbpm.sar connecting to your new DB. Hope this helps. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985577#3985577 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985577 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: ClassCastException with PortableRemoteObject.narrow call
Are you trying to access the EJB from a stand-alone client or is your client running as an app deployed to JBoss? Since removing the provider URL makes things suddenly work, I suspect your client is deployed to JBoss. In which case the probable cause for the class cast exception has to do with class loaders. But your goal is to call a remote EJB, what problems do you encounter when you try that? Also, how is your application packaged? Is it a war or an ear, and have you included the EJB client jar? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985578#3985578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985578 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal Stress Results
After talking with Julien, he is telling me that 2.6DR has not been fine-tuned. Some tables will likely change... WSRP and CMS security come to mind, so he chose to left the Hibernate level in a development state. I would expect our Beta (not this coming Alpha) to be fine-tuned. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985579#3985579 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985579 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Multiple Deploy of Seam
Hi All, We have a fairly large application that is broken out into many web apps and many ejb3 apps in a single ear. Seam is in the classpath of many of these applications. When the app is deployed and the classpath is read from each component(from the MANIFEST.MF) file, seam is redeployed every time it is seen in a classpath. This makes for a very long startup time. Is there anything I can do to work around this or to keep it fro mdeploying multiple times? I get "Found non-jar deployer" for jobss-seam.jar many times. Here is our general structure our-eneterprise.ear - admin.war - admin-ejb.jar - reporting.war (App web front end) - reporting-ejb.jar (App specific logic) - enterprise-ejb.jar (Common to all apps) - lib (All common libs including seam) etc. There are many more apps than the ones above but you get the idea. Any thoughts Thanks, Jake View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985580#3985580 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985580 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - relationship entity beans in two different jar files
I have one jar with all entity beans, but I need break it in two jars. When I duplicate the relationship entity classes on the two jars, at deployment moment of the second jar the application server try to redeploy the duplicated relationship entity beans. How I can to resolve this problem, or which the best way to proceed??? Thank's View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985581#3985581 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985581 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Adding/Persisting A Record Problem...
I am with the same problem, somebody obtained some new thing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985582#3985582 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985582 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Implementing our own Client side interceptors
If I understand your question correctly, you somewhat answered it yourself. As far as basic java rule of thumb, if you can reuse some of the functionality, then "extend", otherwise "re-implement". However, since you are providing another interceptor your inharitance comes from adding (before, in-between or after) to already existing interceptor stack. So I would say write your own interceptor, deside where you want to stick it and that is all you have to do. As far as making it as Jboss service is entirely up to you. In other words if you want it to be managed then yes make an MBean out of it, if not, then jaring your interceptor class and throwing it in the lib directory will do (providing you specify implementation in the server interceptor stack) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985583#3985583 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985583 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user