[Management, JMX/JBoss] - Jboss-4.0.3SP1 shutting down itself without any explicit shu
by harsh.nsit
Hi,
I am using Jboss-4.0.3SP1 and tomcat5.5 running on same machine. Tomcat is running on 8080 port and jboss on 8180. It happen that after running some time say 5 hr or so (in some case even more than 30 hrs) jboss server is going down. The log says
-----------------------------------Log--------------------------------
05:10:00,965 INFO [Server] Runtime shutdown hook called, forceHalt: true
05:10:00,965 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
05:10:00,966 INFO [TomcatDeployer] undeploy, ctxPath=/wagonwheels, warUrl=.../deploy/wagonwheels.war/
05:10:00,980 INFO [TomcatDeployer] undeploy, ctxPath=/vcricket, warUrl=.../deploy/vcricket.war/
05:10:00,986 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
05:10:00,995 INFO [TomcatDeployer] undeploy, ctxPath=/cricketapp-1.0, warUrl=.../tmp/deploy/tmp13878cricketapp-1.0.war/
05:10:00,999 INFO [0]] Closing Spring root WebApplicationContext
---------------------------------------------------------------------------
I read one of the forum solution and it says set the parameter -Xrs (to reduce OS signals) to the jboss' run.conf file.
I did the same server is up and running but I dont know when it will go down. Is there any other solution available.
Thanks
Harsh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008771#4008771
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008771
19 years, 2 months
[Security & JAAS/JBoss] - Have problem about "org.jboss.security.ClientLoginModule "
by changemylife
Hi all !
On the client, I write:
String path = Test.class.getProtectionDomain().getCodeSource().getLocation().getPath();
if (path.endsWith(".jar"))
path = path.substring(0, path.lastIndexOf("\\"));
System.getProperties().setProperty("java.security.auth.login.config", path + "user.conf");
System.getProperties().setProperty("java.security.policy", path + "user.policy");
System.setSecurityManager(new SecurityManager());
LoginContext lc = new LoginContext("clientTest", new MyCallbackHandler());
lc.login();
And my user.config:
userTest {
org.jboss.security.ClientLoginModule required;
};
And my user.policy:
grant codebase "file:/-" {
permission javax.security.auth.AuthPermission "createLoginContext.clientTest";
permission java.util.PropertyPermission "*", "read";
permission java.security.AllPermission;
};
After I enter username and password. I receive some messages:
--------
Exception in thread "main" javax.security.auth.login.LoginException: Security Exception
at javax.security.auth.login.LoginContext.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.access$000(Unknown Source)
at javax.security.auth.login.LoginContext$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
at javax.security.auth.login.LoginContext.login(Unknown Source)
at client.test.Test.main(Test.java:34)
Caused by: java.lang.SecurityException
... 7 more
Have any idea ? Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008770#4008770
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008770
19 years, 2 months
[JBoss Seam] - Re: How to use si:selectItems with an object that has a Stri
by lawrieg
CustomerType class:
@Entity
| @Table(name = "CUSTOMER_TYPE", catalog = "CustomerBuilder")
| public class CustomerType implements java.io.Serializable {
|
| private String id;
| private String name;
| private Set<Script> scripts = new HashSet<Script>(0);
|
| public CustomerType() {
| }
|
| public CustomerType(String id, String name) {
| this.id = id;
| this.name = name;
| }
| public CustomerType(String id, String name, Set<Script> scripts) {
| this.id = id;
| this.name = name;
| this.scripts = scripts;
| }
|
| @Id @GeneratedValue
| @Column(name = "ID", unique = true, nullable = false, length = 1)
| @NotNull
| @Length(max = 1)
| public String getId() {
| return this.id;
| }
|
| public void setId(String id) {
| this.id = id;
| }
|
| @Column(name = "NAME", nullable = false, length = 50)
| @NotNull
| @Length(max = 50)
| public String getName() {
| return this.name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
| @ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
| @JoinTable(name = "CUSTOMER_TYPE_SCRIPT",
| joinColumns={@JoinColumn(name = "CUSTOMER_TYPE_ID")},
| inverseJoinColumns={@JoinColumn(name = "SCRIPT_ID")})
| public Set<Script> getScripts() {
| return this.scripts;
| }
|
| public void setScripts(Set<Script> scripts) {
| this.scripts = scripts;
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008763#4008763
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008763
19 years, 2 months