[JBoss JIRA] Created: (JBAS-9106) In domain mode, prevent end-user access to and visibility of most configuration write operations
by Brian Stansberry (JIRA)
In domain mode, prevent end-user access to and visibility of most configuration write operations
------------------------------------------------------------------------------------------------
Key: JBAS-9106
URL: https://issues.jboss.org/browse/JBAS-9106
Project: JBoss Application Server
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Domain Management
Reporter: Brian Stansberry
Fix For: 7.0.0.Beta4
In domain mode most (almost certainly all) server level operations that update the persistent configuration should not be directly accessible by the end user and should not appear in the results of the read-resource-description, read-operation-names or read-operation-description operations if executed against a server-level resource. They can only be invoked by the host controller that is responsible for the server.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] (AS7-2960) When using JMS via JNDI in an OSGi bundle, the AS does not shut down cleanly.
by Aaron Whiteside (Created) (JIRA)
When using JMS via JNDI in an OSGi bundle, the AS does not shut down cleanly.
-----------------------------------------------------------------------------
Key: AS7-2960
URL: https://issues.jboss.org/browse/AS7-2960
Project: Application Server 7
Issue Type: Bug
Components: JMS, OSGi
Affects Versions: 7.1.0.Beta1
Reporter: Aaron Whiteside
Assignee: Clebert Suconic
It seems that the HornetQ/Messaging subsystem is shutdown before OSGi, which results in the follow errors.
The OSGi subsystem should shutdown before the HornetQ/Messaging subsystem.
{code}
7:53:03,419 ERROR [org.jboss.osgi.framework.internal.FrameworkEventsPlugin] Framework ERROR: org.osgi.framework.BundleException: Error during stop of bundle: org.apache.camel.camel-core:2.9.0.SNAPSHOT
at org.jboss.osgi.framework.internal.HostBundleState.stopInternal(HostBundleState.java:425) [jbosgi-framework-core-1.1.0.jar:]
at org.jboss.osgi.framework.internal.BundleManager.uninstallBundle(BundleManager.java:446) [jbosgi-framework-core-1.1.0.jar:]
at org.jboss.osgi.framework.internal.UserBundleInstalledService.stop(UserBundleInstalledService.java:88) [jbosgi-framework-core-1.1.0.jar:]
at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1909) [jboss-msc-1.0.1.GA.jar:]
at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1872) [jboss-msc-1.0.1.GA.jar:]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
Caused by: java.lang.IllegalStateException: Service is unregistered: ServiceState{service.id=47, objectClass=[org.apache.camel.spi.ComponentResolver], component=[Ljava.lang.String;@1858c80c}
at org.jboss.osgi.framework.internal.ServiceState.assertNotUnregistered(ServiceState.java:384) [jbosgi-framework-core-1.1.0.jar:]
at org.jboss.osgi.framework.internal.ServiceState.unregister(ServiceState.java:218) [jbosgi-framework-core-1.1.0.jar:]
at org.jboss.osgi.framework.internal.ServiceRegistrationWrapper.unregister(ServiceRegistrationWrapper.java:58) [jbosgi-framework-core-1.1.0.jar:]
at org.apache.camel.impl.osgi.Activator$BaseService.unregister(Activator.java:441)
at org.apache.camel.impl.osgi.Activator.removedBundle(Activator.java:118)
at org.apache.camel.impl.osgi.tracker.BundleTracker$Tracked.customizerRemoved(BundleTracker.java:461)
at org.apache.camel.impl.osgi.tracker.AbstractTracked.untrack(AbstractTracked.java:350)
at org.apache.camel.impl.osgi.tracker.BundleTracker.close(BundleTracker.java:208)
at org.apache.camel.impl.osgi.Activator.stop(Activator.java:92)
at org.jboss.osgi.framework.internal.HostBundleState.stopInternal(HostBundleState.java:394) [jbosgi-framework-core-1.1.0.jar:]
... 7 more
17:53:03,465 INFO [jacorb.poa] POA Naming destroyed
17:53:04,008 INFO [com.arjuna.ats.jbossatx] ARJUNA32018: Destroying TransactionManagerService
17:53:04,012 INFO [com.arjuna.ats.jbossatx] ARJUNA32014: Stopping transaction recovery manager
17:53:04,016 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: jboss-as-osgi-configadmin:7.1.0.Beta1b
17:53:04,016 INFO [org.projectodd.stilts.stomplet.bundle.StompletServerActivator] stop: BundleContext[stilts-stomplet-server-bundle:0.1.20]
17:53:04,021 INFO [org.apache.aries.jmx] Stopping JMX OSGi agent
17:53:04,022 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: jbosgi-blueprint:1.0.3
17:53:04,021 INFO [jacorb.poa] POA RootPOA destroyed
17:53:04,019 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: org.jboss.netty:3.2.5.Final
17:53:04,023 ERROR [org.jboss.osgi.framework.internal.FrameworkEventsPlugin] Framework ERROR: org.osgi.framework.BundleException: Error during stop of bundle: jbosgi-blueprint:1.0.3
at org.jboss.osgi.framework.internal.HostBundleState.stopInternal(HostBundleState.java:425) [jbosgi-framework-core-1.1.0.jar:]
at org.jboss.osgi.framework.internal.BundleManager.uninstallBundle(BundleManager.java:446) [jbosgi-framework-core-1.1.0.jar:]
at org.jboss.osgi.framework.internal.UserBundleInstalledService.stop(UserBundleInstalledService.java:88) [jbosgi-framework-core-1.1.0.jar:]
at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1909) [jboss-msc-1.0.1.GA.jar:]
at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1872) [jboss-msc-1.0.1.GA.jar:]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
Caused by: java.lang.IllegalStateException: Invalid bundle context: BundleContext[com.mm.routing.engine:1.0.0.SNAPSHOT]
at org.jboss.osgi.framework.internal.AbstractBundleContext.checkValidBundleContext(AbstractBundleContext.java:374) [jbosgi-framework-core-1.1.0.jar:]
at org.jboss.osgi.framework.internal.AbstractBundleContext.getBundle(AbstractBundleContext.java:114) [jbosgi-framework-core-1.1.0.jar:]
at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:794)
at org.jboss.osgi.blueprint.internal.BlueprintInterceptor.stop(BlueprintInterceptor.java:77)
at org.jboss.osgi.blueprint.internal.BlueprintActivator.stop(BlueprintActivator.java:78)
at org.jboss.osgi.framework.internal.HostBundleState.stopInternal(HostBundleState.java:394) [jbosgi-framework-core-1.1.0.jar:]
... 7 more
17:53:04,020 WARN [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] Connection failure has been detected: The connection was disconnected because of server shutdown [code=4]
17:53:04,020 INFO [jacorb.orb] prepare ORB for shutdown...
17:53:04,027 INFO [jacorb.orb] ORB going down...
17:53:04,033 INFO [org.apache.aries.jmx] Unregistering org.osgi.jmx.framework.FrameworkMBean to MBeanServer org.jboss.as.jmx.model.ModelControllerMBeanServer@90771a6 with name osgi.core:type=framework,version=1.5
17:53:04,033 INFO [org.apache.aries.jmx] Unregistering org.osgi.jmx.framework.PackageStateMBean to MBeanServer org.jboss.as.jmx.model.ModelControllerMBeanServer@90771a6 with name osgi.core:type=packageState,version=1.5
17:53:04,033 INFO [org.apache.aries.jmx] Unregistering org.osgi.jmx.framework.ServiceStateMBean to MBeanServer org.jboss.as.jmx.model.ModelControllerMBeanServer@90771a6 with name osgi.core:type=serviceState,version=1.5
17:53:04,034 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: org.apache.felix.eventadmin:1.2.6
17:53:04,033 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: org.apache.felix.configadmin:1.2.8
17:53:04,034 INFO [org.apache.aries.jmx] Unregistering org.osgi.jmx.framework.BundleStateMBean to MBeanServer org.jboss.as.jmx.model.ModelControllerMBeanServer@90771a6 with name osgi.core:type=bundleState,version=1.5
17:53:04,036 INFO [org.apache.aries.jmx] Unregistering org.osgi.jmx.service.cm.ConfigurationAdminMBean to MBeanServer org.jboss.as.jmx.model.ModelControllerMBeanServer@90771a6 with name osgi.compendium:service=cm,version=1.3
17:53:04,037 INFO [org.apache.aries.jmx] Unregistering MBean with ObjectName [osgi.compendium:service=cm,version=1.3] for service with service.id [12]
17:53:04,040 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: org.apache.aries.jmx:0.3.0
17:53:04,032 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: jboss-osgi-jmx:1.0.10
17:53:04,047 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: org.apache.felix.scr:1.6.0
17:53:04,046 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: jboss-osgi-xerces:2.9.1.SP7
17:53:04,057 INFO [jacorb.orb] ORB shutdown complete
17:53:04,058 INFO [jacorb.orb] ORB run, exit
17:53:04,045 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: org.apache.felix.log:1.0.0
17:53:04,045 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: org.apache.felix.metatype:1.0.4
17:53:04,059 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: jbosgi-webapp:1.0.5
17:53:04,044 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: stilts-stomplet-server-bundle:0.1.20
17:53:04,055 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: jboss-osgi-logging:1.0.0
17:53:04,067 INFO [org.eclipse.jetty.util.log] stopped HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@6eb1a0f9}
17:53:04,067 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: org.apache.felix.webconsole:3.1.6.SP1
17:53:04,068 INFO [jacorb.orb.iiop] Listener exited
17:53:04,067 WARN [org.springframework.jms.connection.CachingConnectionFactory] Encountered a JMSException - resetting the underlying JMS Connection: javax.jms.JMSException: HornetQException[errorCode=4 message=The connection was disconnected because of server shutdown]
at org.hornetq.jms.client.HornetQConnection$JMSFailureListener.connectionFailed(HornetQConnection.java:643) [hornetq-jms-2.2.7.Final.jar:]
at org.hornetq.core.client.impl.ClientSessionFactoryImpl.callFailureListeners(ClientSessionFactoryImpl.java:818) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.core.client.impl.ClientSessionFactoryImpl.failoverOrReconnect(ClientSessionFactoryImpl.java:605) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.core.client.impl.ClientSessionFactoryImpl.handleConnectionFailure(ClientSessionFactoryImpl.java:482) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.core.client.impl.ClientSessionFactoryImpl.access$800(ClientSessionFactoryImpl.java:78) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.core.client.impl.ClientSessionFactoryImpl$DelegatingFailureListener.connectionFailed(ClientSessionFactoryImpl.java:1318) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.callFailureListeners(RemotingConnectionImpl.java:528) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.fail(RemotingConnectionImpl.java:298) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.core.client.impl.ClientSessionFactoryImpl$Channel0Handler$1.run(ClientSessionFactoryImpl.java:1262) [hornetq-core-2.2.7.Final.jar:]
at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100) [hornetq-core-2.2.7.Final.jar:]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
Caused by: HornetQException[errorCode=4 message=The connection was disconnected because of server shutdown]
... 5 more
17:53:04,091 INFO [org.hornetq.core.server.impl.HornetQServerImpl] HornetQ Server version 2.2.7.Final (HQ_2_2_7_FINAL_AS7, 121) [549f8e03-21e7-11e1-b591-90e6ba75e1b1] stopped
17:53:04,097 INFO [org.jboss.as.server.deployment] Stopped deployment slf4j-log4j12-1.6.1.jar in 740ms
17:53:04,098 INFO [org.jboss.as.server.deployment] Stopped deployment spring-context-3.0.6.RELEASE.jar in 744ms
17:53:04,099 INFO [org.jboss.as.server.deployment] Stopped deployment routing-engine-1.0-SNAPSHOT.jar in 741ms
17:53:04,104 INFO [org.jboss.as.server.deployment] Stopped deployment spring-expression-3.0.6.RELEASE.jar in 746ms
17:53:04,106 INFO [org.jboss.as.server.deployment] Stopped deployment woodstox-core-asl-4.0.3.jar in 761ms
17:53:04,107 INFO [org.jboss.as.server.deployment] Stopped deployment spring-beans-3.0.6.RELEASE.jar in 752ms
17:53:04,107 INFO [org.jboss.as.server.deployment] Stopped deployment slf4j-api-1.6.1.jar in 749ms
17:53:04,107 INFO [org.jboss.osgi.framework.internal.HostBundleState] Bundle stopped: jbosgi-http:1.0.5
17:53:04,107 INFO [org.jboss.as.server.deployment] Stopped deployment camel-jms-2.9-SNAPSHOT.jar in 749ms
17:53:04,108 INFO [org.jboss.as.server.deployment] Stopped deployment spring-aop-3.0.6.RELEASE.jar in 746ms
17:53:04,108 INFO [org.jboss.as.server.deployment] Stopped deployment smq-schema-1.2-SNAPSHOT.jar in 750ms
17:53:04,109 INFO [org.jboss.as.server.deployment] Stopped deployment smq-opaque-schema-1.2-SNAPSHOT.jar in 751ms
17:53:04,110 INFO [org.jboss.as.server.deployment] Stopped deployment smq-component-1.0-SNAPSHOT.jar in 754ms
17:53:04,110 INFO [org.jboss.as.server.deployment] Stopped deployment spring-jms-3.0.6.RELEASE.jar in 757ms
17:53:04,103 INFO [org.jboss.as.server.deployment] Stopped deployment ch-commons-util-5.1.1.jar in 745ms
17:53:04,110 INFO [org.jboss.as.server.deployment] Stopped deployment stax2-api-3.0.1.jar in 752ms
17:53:04,111 INFO [org.jboss.as.server.deployment] Stopped deployment spring-context-support-3.0.6.RELEASE.jar in 753ms
17:53:04,102 INFO [org.jboss.as.server.deployment] Stopped deployment camel-blueprint-2.9-SNAPSHOT.jar in 744ms
17:53:04,111 INFO [org.jboss.as.server.deployment] Stopped deployment commons-io-2.0.1.jar in 753ms
17:53:04,111 INFO [org.jboss.as.server.deployment] Stopped deployment smq-common-codecs-1.2-SNAPSHOT.jar in 753ms
17:53:04,112 INFO [org.jboss.as.server.deployment] Stopped deployment smq-spi-1.2-SNAPSHOT.jar in 754ms
17:53:04,113 INFO [org.jboss.as.server.deployment] Stopped deployment camel-core-osgi-2.9-SNAPSHOT.jar in 755ms
17:53:04,113 INFO [org.jboss.as.server.deployment] Stopped deployment ch-smpp-4.1.1.jar in 753ms
17:53:04,113 INFO [org.jboss.as.server.deployment] Stopped deployment com.springsource.org.aopalliance-1.0.0.jar in 771ms
17:53:04,114 INFO [org.jboss.as.server.deployment] Stopped deployment camel-core-2.9-SNAPSHOT.jar in 756ms
17:53:04,100 INFO [org.jboss.as.server.deployment] Stopped deployment camel-spring-2.9-SNAPSHOT.jar in 742ms
17:53:04,115 INFO [org.jboss.as.server.deployment] Stopped deployment com.springsource.net.sf.cglib-2.1.3.jar in 760ms
17:53:04,116 INFO [org.jboss.as.server.deployment] Stopped deployment spring-tx-3.0.6.RELEASE.jar in 770ms
17:53:04,116 INFO [org.jboss.as.server.deployment] Stopped deployment spring-asm-3.0.6.RELEASE.jar in 758ms
17:53:04,117 INFO [org.jboss.as.server.deployment] Stopped deployment spring-web-3.0.6.RELEASE.jar in 759ms
17:53:04,119 INFO [org.jboss.as.server.deployment] Stopped deployment smq-fs-1.2-SNAPSHOT.jar in 760ms
17:53:04,102 INFO [org.jboss.as.server.deployment] Stopped deployment spring-core-3.0.6.RELEASE.jar in 740ms
17:53:04,101 INFO [org.jboss.as.server.deployment] Stopped deployment joda-time-1.6.2.jar in 744ms
17:53:04,101 INFO [org.jboss.as.server.deployment] Stopped deployment cloudhopper-smpp-component-1.0-SNAPSHOT.jar in 743ms
17:53:04,115 INFO [org.jboss.as.server.deployment] Stopped deployment ch-commons-charset-2.2.1.jar in 758ms
17:53:04,114 INFO [org.jboss.as.server.deployment] Stopped deployment smq-common-1.2-SNAPSHOT.jar in 759ms
17:53:04,120 INFO [org.jboss.as.osgi] JBAS011921: Stopping OSGi Framework
17:53:04,123 INFO [org.jboss.as] JBoss AS 7.1.0.Beta1b "Tesla" stopped in 767ms
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] (AS7-2993) Wrong exception RollesAllowed constraint is not fulfilled
by Jan Lanik (Created) (JIRA)
Wrong exception RollesAllowed constraint is not fulfilled
---------------------------------------------------------
Key: AS7-2993
URL: https://issues.jboss.org/browse/AS7-2993
Project: Application Server 7
Issue Type: Bug
Components: EJB
Affects Versions: 7.1.0.Beta1b
Environment: If you have a SB with a method annotated with RollesAllowed({a,b,c}) and a SFSB which injects this bean. We also have client tries to access a method which calls a restricted method on injected bean. This client does not possess a security role specified in RolesAllowed , so the call should be rejected with EJBAccessException. However, what I get is NoSuchEjbException.
Notes:
- this doesn't happen if there is only one security role in RollesAllowed
- this doesn't happen if the bean is injected to SLSB
- the NoSuchElement exception is thrown by org.jboss.as.ejb3.component.stateful.StatefulComponentInstanceInterceptor:66 snipplet follows:
ROOT_LOGGER.debug("Looking for stateful component instance with session id: " + sessionId);
StatefulSessionComponentInstance instance = component.getCache().get(sessionId);
if (instance == null) {
//This exception will be transformed into the correct exception type by the exception transforming interceptor
throw new NoSuchEJBException("Could not find SFSB " + component.getComponentName() + " with " + sessionId);
}
- I'll provide a reproducer for this, it' ll be available in my git repo (https://github.com/jlanik/jboss-as), branch EJBSecurity
classes: InjectionAnnSFSBtoSFSBTestCase, InjectionAnnSLSBtoSFSBTestCase
you can also look at InjectionAnnSFSBtoSLSBTestCase InjectionAnnSLSBtoSLSBTestCase (which work ok)
I'll create a pull request with this and some other tests, so hopefully, It'll be accessible in the main jboss-as repo soon.
Reporter: Jan Lanik
Assignee: jaikiran pai
Fix For: 7.1.0.CR1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months