[JNDI/Naming/Network] - Problem with NameNotFoundException after the local interface
by heineson
Hi,
I have a problem with an application using a stateless EJB 2.1 session bean. The problem occurs during deploying and initializing.
First I get a message like this:
2007-02-28 17:20:46,380 DEBUG [org.jboss.ejb.StatelessSessionContainer] End java:comp/env for EJB: EJBSingletonInvoker
2007-02-28 17:20:46,394 INFO [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] Bound EJB LocalHome 'EJBSingletonInvoker' to jndi 'EJBSingletonInvoker_local'
Then an error like this during init of the app when trying to create the bean:
2007-02-28 17:21:47,645 DEBUG [com.computas.mt.jboss.server.startup.StartupService] Starting failed mt.computas.com:service=Startup
com.computas.cx.exception.BeansException: Could not create session bean of class interface com.computas.cx.invocation.ejb.EJBSingletonInvoker
.......
Caused by: javax.naming.NameNotFoundException: EJBSingletonInvoker_local not bound
I can't figure out what is causing this? I must add that we are using a clustered environment with two servers (JBoss 4.0.4GA) and the problem occurs when both servers are started before the deployment. If only the server we deploy to is up all seems to be fine. Both servers know of each other and forms a cluster perfectly.
Thanks in advance!
/Jonas Heineson
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025363#4025363
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025363
19Â years, 1Â month
[JBoss Portal] - Re: Flexing JBoss Portal - Q1
by johanwasserman
Thanks Thomas, Antoine
Your answers gave me a good idea of what to do, but now I have a stupid question, where is the origin of j_security_check?
See, with Flex you can use Remote Objects, you write an action script and declare your remote object, with parameters, and then I would be able to use j_security_check much like in the jsp.
Example:
I have a bean (using himernate)
package pah.to
public class User {
private String username;
public User();
public User(String username) { this.username = username; }
public String getUsername() { return this.username; }
public void setUsername(String username) { this.username = username; }
}
In Flex I decalre an Action Script
package com.blah {
[Managed]
[RemoteClass(alias="path.to.User")]
public class User {
public function User() {}
public function setUsername(username:String);
public var username:String;
}
(note, mistakes above are accidental, the code above is just provided for quick and dirty illustrative purpose and might not be 100% correct)
Get the idea so far? Ok, no I can call setUsername in my flex app.
I know that was a quick and dirty, and hope it helps you to see what I am looking for. I need a package to make an ActionScript Class off so I can call j_security_check.... or am I missing the ball tragically?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025361#4025361
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025361
19Â years, 1Â month
[JBoss Seam] - Re: How can i popup a browser window?
by fhh
I do it in a project but I'm not sure if it is the best way to do it. Here it goes:
You have a event-scoped Seam component:
|
| @Name("jspopup")
| public class JsPopup {
|
| private String name;
| private String url;
| private int height;
| private int width;
| // etc.
|
|
| /* Getters and Setters */
|
|
| }
|
In your action method you create the popup component and outject it. Now
add some javascript at he beginning of the page:
| <c:if test"! empty popup">
|
| <script language="javascsript>
| var vWinUsers = window.open('
| #{jspopup.url}', #{jspopup.name},'width=#{jspopup.width},width=#{jspopup.height});
| vWinUsers.opener = self;
| vWinUsers.focus()
| </script>
|
| </c:if>
|
If you find a better way to do it please let me know.
Regards
Felix
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025359#4025359
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025359
19Â years, 1Â month
[JCA/JBoss] - Spontaneous undeployment under stress load
by ktorn
I'm unsure where to post this, but as this issue manifested itself whilst stress loading a Resource Adapter I though I'd post it here.
As anyone ever witnessed the spontaneous undeployment of farmed applications (in a JBoss cluster) when an application is under stress?
We're managing this feat when flooding a custom built TCP listening Resource Adapter with concurrent requests (TCP packets). The RA works well with between 50 and 100 concurrent requests, but as soon as we increase the load to 500+ concurrent requests the cluster starts undeploying a number of applications, most totally unrelated to the RA.
I've so far been unable to replicate this on my dev machine (stress test client, JBoss and DB all running locally) but it keeps happening on our test setup (stress test client, JBoss and DB on 3 separate machines). We've tried ruling out the cluster, by only running one JBoss instance, and it also undeployed most applications under stress on its own.
I'm trying to replicate this on my machine so that I can get some more details, but I thought I'd ask here for any hints in case it rings any bells with anyone.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025352#4025352
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025352
19Â years, 1Â month