[jboss-user] [Management, JMX/JBoss] - Re: JConsole remote not working with JBoss4.2.2GA
kpandey, what exactly did you change? We are having trouble to connect to the JBoss JVM running on Linux. I investigated http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6209663 but changes to /etc/hosts didn't help. I tried to set in run.conf JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=LOCALIP" and JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=HOSTNAME" but this didn't help either. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139006#4139006 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139006 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Could not instantiate Seam component
I get the same exception. I suppose it has a root cause, which is a cycle in page-redirection. But I wonder why the root-cause is not logged. As you can draw from the stacktrace, we are using Icefaces (1.6.1). Btw., the ApplicationUser-class is not the problem. 2008-01-18 09:51:02,984 ERROR [com.icesoft.faces.facelets.D2DFaceletViewHandler] Problem in renderResponse: Could not instantiate Seam component: applicationUser | org.jboss.seam.InstantiationException: Could not instantiate Seam component: applicationUser | at org.jboss.seam.Component.newInstance(Component.java:1962) | at org.jboss.seam.Component.getInstance(Component.java:1865) | at org.jboss.seam.Component.getInstance(Component.java:1832) | at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55) | at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50) | at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166) | at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53) | at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53) | at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64) | at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44) | at org.jboss.el.parser.AstValue.getValue(AstValue.java:63) | at org.jboss.el.parser.AstDeferredExpression.getValue(AstDeferredExpression.java:26) | at org.jboss.el.parser.AstCompositeExpression.getValue(AstCompositeExpression.java:31) | at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) | at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) | at javax.faces.component.UIOutput.getValue(UIOutput.java:173) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicInputRenderer.getValue(DomBasicInputRenderer.java:60) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.getValue(DomBasicRenderer.java:153) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeEnd(DomBasicRenderer.java:125) | at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:361) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:357) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:357) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:357) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:357) | at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92) | at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:351) | at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:92) | at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:585) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:589) | at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:322) | at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153) | at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) | at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:26) | at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:147) | at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36) | at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31) | at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:46) | at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50) | at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19) | a
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: sar inside EAR not starting up
But why does this not work for a WAR-archive? I can successfully query the war-deployment on JMX via JMX Agent View. However, when I add this to the depends-list like | jboss.management.local:J2EEApplication=app.ear,J2EEServer=Local,j2eeType=WebModule,name=web.war | then the SAR is never being started up! What is the probllem here? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118739#4118739 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118739 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - LDAP-binding via ExternalContext: how to auto-reconnect ?
We are binding an LDAP-server into the JNDI-context. It works properly until redeployment. After redeployment the connection is lost and no new connection is being established. How to specify to auto-reconnect after connection was lost?? | | external/ldap/acme | | java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory | java.naming.provider.url=ldap://server:389/o=acme | java.naming.security.principal=cn=ReadOnlyAdmin,o=swm | java.naming.security.authentication=simple | java.naming.security.credentials=password | com.sun.jndi.ldap.connect.pool=true | com.sun.jndi.ldap.connect.timeout=5000 | | javax.naming.ldap.InitialLdapContext | false | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118542#4118542 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118542 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: sar inside EAR not starting up
"jaikiran" wrote : See this http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanAnMBeanDependOnASessionBean Excellent! Ty. That's much better than starting a thread in the MBean to wait for the EJB-archive to finish deployment! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118387#4118387 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118387 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: sar inside EAR not starting up
I fixed it and the sar is deployed successfully. Now how can I change the order the archives are deployed without modifying the global URLDeploymentScanner defined in conf/jboss-server.xml ? The problem is that the SAR depends on the deployed EJB-archive. I suppose I need some declaration, but what is the syntax to specify an archive withing the same EAR ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118368#4118368 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118368 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: sar inside EAR not starting up
Now I get a CNF, even thou the class is existing the sar-archive: Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: pkg.ImportStartupService | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306) | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514) | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1204) | at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286) | at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344) | at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157) | at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449) | at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) | Any idea what's going on here? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118338#4118338 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118338 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: sar inside EAR not starting up
ty, that's not mentioned in the JBoss-docs and neither in the HelloWorld-example. My MBean definition looks like this: so what exactly is required in the tag ? both "importStartupService" and "myservice.sar" (name of the folder of the exploded sar directly under the ear-folder) appear not to work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118302#4118302 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118302 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - sar inside EAR not starting up
I have a simple service.sar residing redirectly in myapp.ear. The sar is not being deployed and I don't understand why. I cannot even find an exception in log-file. Any hint? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118238#4118238 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118238 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @RequestParameter: annotated method is called 22 times
"[EMAIL PROTECTED]" wrote : 22 times over what period? Where is it defined it should be called once? over the period of one HTTP-request. I have no idea what might be the purpose of injecting a static value (like a request parameter) more than once into the component. Maybe there is something wrong with my application-design, but there is really nothing special involved. It's based on Seam 2.0 and Icefaces 1.6.1. I mention this because I have also observed other redundant method calls (but did not yet analyze it systematically). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109792#4109792 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109792 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - @RequestParameter: annotated method is called 22 times
hello Seam architects I have a session-scoped SFSB with a method annotated like this: @RequestParameter("orderNumber") The method is being called properly. But why is it called 22 times? What is the purpose of calling it multiple times? According to its defined purpose, it should be called once and only once. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109751#4109751 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109751 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - how setting initial value for @DataModelSelection
| @DataModelSelection | Item item | | @Create | init() { |item = new Item(1); | } The item-variable appears to get overwritten by Seam with the first item of the @DataModel-annotated list. How to define a particular initial item? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109239#4109239 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109239 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: trouble getting correct SFSB-instance in WAR-deployment
ty for this insight View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103563#4103563 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - using SFSB on a web-deployment with Seam
cross-post from http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103434 Has anybody successfully retrieved SFSB-instances on a web-deployment via JNDI? We fail with this (see above thread for details) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103494#4103494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103494 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: trouble getting correct SFSB-instance in WAR-deployment
"ALRubinger" wrote : | Try again with doing one lookup, placing that stub in the HttpSession, and paste your code if you're still having problems? | | S, | ALR I followed your advise and implemented a filter to retrieve the SFSB-proxy once the HTTP-session is created: public void doFilter(ServletRequest request, ServletResponse response, | FilterChain chain) throws IOException, ServletException { | | HttpSession session = ((HttpServletRequest)request).getSession(); | ShopTree shopTree; | if (session.isNew()) { | try { | Context context = new InitialContext(); | shopTree = (ShopTree) context.lookup("app/ShopTreeBean/local"); | } catch (NamingException e) { | throw new ServletException(e); | } | session.setAttribute("shopTreeBean", shopTree); | } | chain.doFilter(request, response); | } I verified that the filter is working as expected. But the result of the endeavor is just as before. Not surprisingly I can pick up the proxy (local IF) from the session in my ImageServlet successfully. But once I try to access a method, at the first time Seam is complaining like this: Caused by: org.jboss.seam.RequiredException: @In attribute requires non-null value: shopTree.applicationUser | However, I have verified that the field applicationUser is available in the Seam context. Moreover, I have debugged the Seam action-method which is implemented in the same SFSB and verified that the field has already been populated on a previous request. At the second request to the ImageServlet, I am getting javax.ejb.NoSuchEJBException: Could not find stateful bean: a4i810-vbn2mr-f8u25ljn-1-f8u49lh5-12 My only explanation is that JBoss' JNDI-implementation delivers a serialized instance (copy) of the original instance that is available in the EJB-container. However, AFAIK, this would not fit with the JBoss' specification, which says that JNDI-lookups for local IF's (in the same VM) result in a reference to the instance, not in a serialized copy. Anymore hint for me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103416#4103416 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103416 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: trouble getting correct SFSB-instance in WAR-deployment
"waynebaylor" wrote : when you save the sfsb are you using the same attribute name for all clients? yes, I used the same string for saving the SFSB-instance in the HTTP-session. This is the job of the web-container to seperate web-sessions against each other and should not be involved in this problem. Also, like I pointed out before, even when the web-client is requesting the SFSB-instance (using JNDI-lookup) for the FIRST time, this instance is not the correct one. I think I am missing some basic point here but I wonder which one ;-) I did not find anything in the Wiki and neither in the AS Guide. I still suspect that the JNDI configuration/mapping is bad. Can somebody have a look, pls. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103302#4103302 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103302 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: trouble getting correct SFSB-instance in WAR-deployment
ty for your input. yes, now I look up the SFSB with every HTTP-request. Before I tried looking it up once and and then having save the instance in HTTP-session, just like you suggest. However, the result does not differ as in both cases the instance acquired on the web-tier/WAR-deployment is not the one that is assigned to this client-session on the EJB-tier. Seam makes available the correct instance to the JSF-context. I wonder if this problem is due to wrong JDNI-configuration. Is Session valid for both SLSB and SFSB? Regarding attaching the EJB to a client, SLSB and SFSB are completely different things. A SLSB can be assigned to any client. A SFSB needs to be clearly assigned to one client-session. There must be some clear architecture to ensure that the WAR-deployment is defininately getting the correct SFSB-instance, and not maybe another one. Anybody has a hint for me at this point? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103287#4103287 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103287 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - trouble getting correct SFSB-instance in WAR-deployment
We continue having trouble to acquire correct SFLB-instance to the web-deployment (in an EAR on JBoss 4.2.1). It appears the web-session is not identical with the client-session on the EJB-tier, hence JNDI delivers a new instance of that SFLB instead of the one already assigned to this user. bean-class: @Stateful | @Name("shopTree") | @Scope(ScopeType.SESSION) | @CacheConfig(idleTimeoutSeconds=3600) | public class ShopTreeBean implements ShopTree { | | @PersistenceContext | private EntityManager em; | | @Logger | private Log log; | | @In | private ApplicationUser applicationUser; In the facelet, the correct instance can be addressed via #{shopTree.xxx} Now this bean is published to the WEB-deployment by the following code: jboss-web.xml: | | ejb/ShopTree | app/ShopTreeBean/local | | web.xml: | ejb/ShopTree | Session | java.lang.Object | pkg.ShopTree | app/ShopTreeBean | If we lookup this EJB using context "app/ShopTreeBean/local" , we get ANOTHER (new) instance. What additional configuration is needed in order to make JBoss EJB deliver the correct SFSB-instance that is already assigned to that user? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103171#4103171 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103171 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam + Hibernate-Validator validation problem
ty. yes, Icefaces also supports the requiredMessage attribute. Practically, this means that the error-message needs to be specified twice, once in the bean-annotation, and second in the JSF-component requiredMessage attribute. How to sell this as an effective and innovative software design? ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100318#4100318 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100318 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam + Hibernate-Validator validation problem
Following the Seam-manual we are experiencing trouble to get validation running with Seam 2.0.CR2/Icefaces 1.6.1 JSF: | | | Bean-class: @NotNull | @Pattern(regex="^[a-zA-Z.-]+", message="Fehlender oder ungültiger Nachname") | @Override | public String getFirstName() { | return firstName; | } With this code, leaving the field _blank_ results in "value is required"-message, coming from the JSF-implementation. The custom message "Fehlender..." is ignored. If an _invalid_ value is entered, the correct error-message appears Replacing with doesnt change anything. Obviously, using required="true" prevents Seam from handling the validation. Any solution for this available, or better to use standard-JSF validation? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100272#4100272 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100272 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @In gets not injected thou it exists
"nickarls" wrote : Could there be a non-required outjection somewhere that could overwrite it before the call? The applicationUser is @Out-jected only once, that is in the authenticator class, which has EVENT-scope and should not be called. @Name("authenticator") | @Scope(ScopeType.EVENT) | public class Authenticator implements Serializable { | | @Out(scope=ScopeType.SESSION) | private ApplicationUser applicationUser; | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098225#4098225 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @In gets not injected thou it exists
a few debug lines before the error occurs, Seam logs DEBUG [org.jboss.seam.Component] trying to inject with hierarchical context search: applicationUser | DEBUG [org.jboss.seam.contexts.Contexts] found in session context: applicationUser Unfortunely the message doesn't refer to the component to which it is injecting. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098190#4098190 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098190 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @In gets not injected thou it exists
thanks for your input. the component declaration surely doesn't need to be an interface. I added @Name("applicationUser") to my ApplicationUser class, but still it is not being injected. And anyway, the component "applicationUser" IS in fact existing in the Seam session-ctx (according to Seam debug-page). Secondly, and even more strange, the injection for applicationUser works well in another SFSB: | @Stateful | @Name("orderManagement") | @Scope(ScopeType.SESSION) | public class OrderManagementBean implements OrderManagement { | | @In | private ApplicationUser applicationUser; <-- gets injected properly! | | | @Stateful | @Name("shopTree") | @Scope(ScopeType.SESSION) | public class ShopTreeBean implements ShopTree { | | @In | private ApplicationUser applicationUser; <-- NOT injected ! yes, both EJBs run in the same application. By the way, the applicationUser component is put into session-ctx by the authentication class via @Out-jection. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098169#4098169 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098169 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - @In gets not injected thou it exists
in one particular case the @In annotation is not working here. | @Stateful | @Name("shopTree") | @Scope(ScopeType.SESSION) | public class ShopTreeBean implements ShopTree { | @In | private ApplicationUser applicationUser; <-- ALWAYS NULL | I have verified that ApplicationUser applicationUser IS existing in the Seam session-context, and it is not null. No exception (such as In-property required) is occuring. Anyone has any idea why Seam (2.0CR1) is not injecting this session-property? It is rather annoying if this injection-mechanism works sometimes, and sometimes not. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098138#4098138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098138 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - custom servlet independent from Seam
We need a custom servlet that is completely independent from the application. The problem ist that the Seam-filter is configured to intervene in every request: | | Seam Filter | /* | What is best practise to make the Seam-filter ignoring a certain pattern? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097460#4097460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097460 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - automatically reconnecting to LDAP-server using MBean Extern
We get an exception after not using the JNDI-connection for a few minutes: javax.naming.CommunicationException: connection closed [Root exception is java.io.IOException: connection closed]; | How can I instruct the MBean to reconnect automatically? | | external/ldap/swm | | java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory | java.naming.provider.url=ldap://svmetaprod01:389/o=SWM | java.naming.security.principal=cn=ReadOnlyAdmin,o=swm | java.naming.security.authentication=simple | java.naming.security.credentials=Ca024334 | com.sun.jndi.ldap.connect.timeout=5000 | | javax.naming.ldap.InitialLdapContext | false | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097455#4097455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097455 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: ejbTimeout called when Timer.cancel is called
"icruz" wrote : Hello, | | ... and when I try to create the timer it fails with a "duplicate key" exception from MySQL driver | | Thanks in advance, | Isaac I wonder where in the JMX-console could you cancel the timer?? I was unable to find it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096914#4096914 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096914 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - how to cancel EJB3 Timer using web-console or twiddle
Since I did not yet figure out how to change the Timer persistencePolicy, all (frequent) Timer's ever started on this AS-instance continue to run again and again. How is possible to cancel Timers using web-console or twiddle-tool? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096892#4096892 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096892 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: making custom user-object available to Seam context
ty, it was the SCOPE indeed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095891#4095891 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095891 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - making custom user-object available to Seam context
I am struggling a little bit with the logic of the Seam context. Currently we get "RequiredException: @In attribute requires non-null value" messages after the user has logged in. Requirement: on authentication, an ApplicationUser object should be made available to Seam-context for later usage. Current solution: our authenticator-class is supposed to outject a property to the Seam-context: @Out private ApplicationUser applicationUser; or, alternatively, make itself available : @Name("authenticator") public class Authenticator { However, none of both is available in the Seam-context after the user has logged in! I suppose, the reason is that once Authenticator.authenticate() returns true indicating successfull authentication, Seams Identity-class expires the current context and creates a new context. Hence, both objects, applicationUser and authenticator, are LOST. So, what is best practise to make our custom user-object available to the session? org.jboss.seam.security.Identity doesn't offer something like "setAttribute". View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095507#4095507 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095507 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - logging problem
We simply want JBoss/logj to use WARNING as the threshold. This is the default config in conf/jboss-log4j.xml and we did not even touched it. (see below) Yet we get countless DEBUG-messages from all kinds of categories in the server.log ! How comes? We don't have any additional logging-config-files deployed. Is Seam interfering maybe? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095209#4095209 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095209 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - how to set TimerService persistencePolicy
AS 4.2.1 appears to not use TimerServiceImpl anymore, but org.jboss.ejb3.timerservice.jboss.TimerServiceFacade instead, which doesn't offer any setters for the persistencePolicy. Chapter 10.8 from the Guide also doesn't mention the persistencePolicy. Is it possible to configure the MBean org.jboss.ejb.txtimer.EJBTimerServiceImpl programmatically in the application? Or is it only possible via jboss-service.xml ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094468#4094468 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094468 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Context
YES, it is a classical classloader problem. I was putting the class mypgk.ImportManager not only in the ejb.jar, but also in mywar.war/WEB-INF/lib. After removing the class from WEB-INF/lib, no ClassCastException anymore. I am fully aware of the type-incompatibility when loaded from different class-loaders. But I don't understand one thing. JBoss is based on a hierarchical class-loader, right? classes in app.ear are also available in deployment-units inside of the EAR, but not in "sibling-deployment-units". The scenario: mypkg.ImportManager.class is available in ejb-package.jar ONLY. How can this class be loaded in webapp.war deployment-unit without being deployed ?? I'd expect a ClassNotFoundException ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093965#4093965 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093965 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Context
"jaikiran" wrote : | Try this: | | context.lookup("java:comp/env/ejb/ImportManagerBean"); thanks for the hint. using the absolute JNDI-path "java:comp/env/ejb/ImportManager" I am getting the same proxy-instance like with "kportal/ImportManagerBean/local" This proxy is not type-compatible! java.lang.ClassCastException: $Proxy356 This is really interesting, because the JNDIView reports this: kportal | | +- ImportManagerBean (class: org.jnp.interfaces.NamingContext) | | | +- local (proxy: $Proxy356 implements interface mypkg.ImportManager,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) According to this JNDI-report the proxy is implementing the home-IF properly, but this obviously not the case. Anymore idea on this matter? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093953#4093953 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093953 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Context
there was a typo in web.xml. It should look like this: ejb/ImportManagerBean Session mypkg.ImportManager mypkg.ImportManager ImportManager View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093914#4093914 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093914 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Context
I am still having trouble to resolve the SLSB on the web-client (running on the same VM inside the same EAR on AS 4.2.1): jboss-web.xml ejb/ImportManagerBean ImportManager web.xml ejb/ImportManagerBean Session mypackage.ImportManager mypackage.ImportManager ImportManager --> the Bean/local IF should now be available in JNDI-ctx "ImportManager" context.lookup("ImportManager"); but it IS NOT ! The ear is deployed successfully (not complaining about the config). I understand that this trouble is due to a "conflict" between JEE5 (EJB3) and JEE1.4 (Servlet 2.4). But there should be some solution to this. Any hint to solve this is appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093897#4093897 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093897 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Can persistence.xml be deployed outside the jar?
The location of persistence.xml is specified by the JPA standard, so - AFAIK - it is impossible to specify another location. However, you are always free to deploy your archives in exploded form. Then you can easily edit the persistence.xml and redeploy the corresponding jar. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093439#4093439 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093439 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Context "java:comp/env/ejb" empty
We have an EAR deployed on AS 4.2.1 In the webapp (war-archive), we need to access an SLSB (EJB3). MyBeanLocal bean = (MyBeanLocal) context.lookup("java:comp/env/ejb"); But this context is not existing! How comes? We can access the Bean-proxy using JNDI-path "myapp/MyBean/local", but this object is not type-compatible with the local interface (MyBeanLocal). Any hint why "java:comp/env/ejb" is not existing, and how to obtain the type-compatile object? Marc View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093431#4093431 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093431 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Configure Jboss to hot deploy when class files are chang
I understand that due to JBoss' sophisticated class-loading system it's not possible to hot-deploy single classes like it is possible e. g. in tomcat. However, even when I touch the ejb-jar.xml, the EJB-archive is not reployed. touch jboss-4.2.1.GA/server/default/deploy/kportal.ear/kportal.jar/META-INF/ejb-jar.xml --> no re-deployment! why is this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089363#4089363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089363 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Auto-Login Question
I have no idea how you happen to have the NT-Login-name available in the session. In our configuration the NT-Login is passed as an attribute of the HTTP-request (and availble via request.getRemoteUser()). I am using Seam 2 and I have added the authentication logic in my annotaded authentication class. In components.xml I have configured | In pages.xml I have the following config: | | | | | | | | | | The login.xml page is not existing. It is just a stub. The method identity.login() should be called and itself calling authenticator.authenticate() but it isn't. Any idea why? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089313#4089313 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089313 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security Auto-Login Question
We need also NTLM authentication and the configuration is quite apparent. However to me is not clear how to obtain the HTTP-request-headers from my authenticator.autenthicate() EJB3 bean-method in order to call request.getRemoteUser(). Seam provides Annotation for @RequestParameter, but I don't see anything like @HttpRequest to inject to javax.servlet.HttpServletRequest any suggestion is appeciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088785#4088785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088785 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - 2.0 whitepaper - DIGEST authentication
I could not find any architecture whitepaper explaining how JBossWS 2.0 is built. Anybody has a link? I am trying to figure out whether HTTP 1.1 DIGEST authentication is supported by JBossWS 2.0 on the client side. I could not find any hint in the user manual nor in the Wiki. The FAQ has one link to JBoss Remoting project, but does not explain how this integrates with JBoss WS. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085379#4085379 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085379 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: generate-entities in Seam 2.0 doesent work ...
I tried now to run generate-entities using Seam 1.2.1. Surprisingly here is the same result. connection pool is initialized and immediately destroyed without having any code generated. I see from Ant-debug-output that the JDBC-driver is delivering some result-set, but either it doesnt find anything or it's not starting to generate the code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079075#4079075 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: generate-entities in Seam 2.0 doesent work ...
I am experiencing the same problem with 2.0.0.beta1. seam generate-entities runs thru without any exception but is not generating anything. The driver is loaded and hbm2java is being configured, but the actual code generation is not being triggered. Anybody has found out the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079036#4079036 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079036 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - 'generate-entities' not generating anything
'seam generate-entities' is not generating anything using Seam 2.0.0.BETA1. The task is running thru without any exceptions, the JDBC driver is recognized, build.properties is read properly. But it seems the database (MSSQL) is not even being connected. Anybody having an idea? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078763#4078763 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078763 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Building tomcat6.sar
Where can I find instructions how to build the sar that contains a tomcat6 distrubution? thanks. Marc View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077264#4077264 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077264 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user