Bug 307771 - JBoss EAP server couldn't be stopped properly
Summary: JBoss EAP server couldn't be stopped properly
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin Yuan CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2010-03-31 14:20 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Yuan CLA 2010-03-31 14:20:27 EDT
The following are stack trace:

jboss-stop:
     [java] shutdown: unused non-option argument: jnp://localhost:1099/
     [java] Exception in thread "main" java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
     [java]     at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:88)
     [java]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
     [java]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
     [java]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
     [java]     at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
     [java]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
     [java]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
     [java]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
     [java]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
     [java]     at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)
     [java]     at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)
Comment 1 Kevin Yuan CLA 2010-03-31 14:52:25 EDT
Fixed by passing admin_user and admin_password during stopping the server, just like the following in jboss.xml:

<arg line="-S -u ${admin.user} -p ${admin.password} ${server.url}"/>

Verified it also worked on Community JBoss.

Code reviewed: Yiping Zhao
Checked in trunk, revision#: 6916
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:03:40 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink