[JBoss JIRA] Resolved: (EJBTHREE-630) EJB timers not persisted upon undeployment
by Carlo de Wolf (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-630?page=all ]
Carlo de Wolf resolved EJBTHREE-630.
------------------------------------
Resolution: Done
Default the EJB3 timer service factory will use the JBoss timer service and restore it's timer upon deployment.
> EJB timers not persisted upon undeployment
> ------------------------------------------
>
> Key: EJBTHREE-630
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-630
> Project: EJB 3.0
> Issue Type: Task
> Reporter: Dimitris Andreadis
> Assigned To: Carlo de Wolf
> Fix For: EJB 3.0 RC9 - FD
>
>
> Since jboss 4.0.4.GA (see JBAS-1091) ejb timers can be persisted at undeployment time.
> However, this was a feature added to the org.jboss.ejb.txtimer.EJBTimerService API with a second removeTimerService method:
> /**
> * Remove the TimerService for a given containerId.
> *
> * This should be used to remove the timer service and timers for
> * any type of container (session, entity, message) at the time of
> * undeployment.
> *
> * @param containerId The string identifier for a class of TimedObjects
> * @param keepState Flag indicating whether timer persistent state should be kept or removed
> */
> void removeTimerService(ObjectName containerId, boolean keepState) throws IllegalStateException;
> EJB3 uses the old removeTimerService() method that has the legacy behaviour of removing the timers at undeployment time.
> void removeTimerService(ObjectName containerId, Object pKey) throws IllegalStateException;
> So, call the new method instead. However, this will mean the EJB3 bundle will only run on JBoss4.0.4+
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 11 months
[JBoss JIRA] Created: (JBAS-3555) LdapExtLoginModule fails if no initial bind credentials are supplied but anonymous login would be possible
by Felix Hofeld (JIRA)
LdapExtLoginModule fails if no initial bind credentials are supplied but anonymous login would be possible
----------------------------------------------------------------------------------------------------------
Key: JBAS-3555
URL: http://jira.jboss.com/jira/browse/JBAS-3555
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Security
Affects Versions: JBossAS-4.0.4.GA
Environment: 1.) LdapExtModule on JBoss 4.0.4.GA
2.) Novell eDirectory, possibly other LDAP-Server configuration, too
Reporter: Felix Hofeld
Assigned To: Scott M Stark
Priority: Trivial
Fix For: JBossAS-4.0.5.CR1
If an anonymous bind to the LDAP-Server is allowed no bindDN and bindCredential is supplied in login-context.xml. This causes the LoginModule to fail due to an NPE. The responsible lines are around 485:
env.setProperty(Context.SECURITY_PRINCIPAL, dn);
env.put(Context.SECURITY_CREDENTIALS, credential);
The HashMap.put fails if dn or credetials are null. The obvious solution is to change the lines to:
if (dn != null)
env.setProperty(Context.SECURITY_PRINCIPAL, dn);
if (credential != null)
env.put(Context.SECURITY_CREDENTIALS, credential);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 11 months
[JBoss JIRA] Created: (EJBTHREE-693) ResourceHandler fails to parse valid jboss-web.xml conforming to jboss-web_4_0.dtd
by Scott M Stark (JIRA)
ResourceHandler fails to parse valid jboss-web.xml conforming to jboss-web_4_0.dtd
----------------------------------------------------------------------------------
Key: EJBTHREE-693
URL: http://jira.jboss.com/jira/browse/EJBTHREE-693
Project: EJB 3.0
Issue Type: Bug
Environment: org.jboss.test.web.test.WebIntegrationUnitTestCase
Reporter: Scott M Stark
Assigned To: Scott M Stark
Deployment of a valid jboss-web_4_0.dtd jboss-web.xml fails to parse with the following exception:
17:29:09,626 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../tmp/deploy/tmp30208jbosstest-web.ear-contents/root-web-exp.war/
17:29:09,756 INFO [TomcatDeployer] deploy, ctxPath=/jbosstest, warUrl=.../tmp/deploy/tmp30208jbosstest-web.ear-contents/jbosstest-web-exp.war/
17:29:10,011 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-local-ref> of interface org.jboss.test.web.interfaces.StatelessSessionLocal and ejbLink of SecuredEJB in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,012 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-local-ref> of interface org.jboss.test.web.interfaces.StatelessSessionLocal and ejbLink of ENCBean0 in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,012 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-local-ref> of interface org.jboss.test.web.interfaces.RunAsTargetLocal and ejbLink of UnsecureRunAsServletWithPrincipalNameAndRolesTarget in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,015 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-local-ref> from interface only org.jboss.test.web.interfaces.StatelessSessionLocal in web.xml of jbosstest-web.warnot used by any EJBs
17:29:10,016 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-local-ref> of interface org.jboss.test.web.interfaces.StatelessSessionLocal and ejbLink of websubdir/relative.jar#SessionBean in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,016 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-local-ref> of interface org.jboss.test.web.interfaces.StatelessSessionLocal and ejbLink of jbosstest-web-ejbs.jar#OptimizedEJB in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,016 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-local-ref> of interface org.jboss.test.web.interfaces.RunAsTargetLocal and ejbLink of UnsecureRunAsServletWithPrincipalNameTarget in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,016 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-local-ref> of interface org.jboss.test.web.interfaces.StatelessSessionLocal and ejbLink of ENCBean1 in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,016 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.StatelessSession and ejbLink of OptimizedEJB in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,017 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.StatelessSession and ejbLink of ENCBean1 in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,017 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.StatelessSession and ejbLink of ENCBean0 in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,017 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.StatelessSession and ejbLink of SecuredEJB in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,017 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.StatelessSession and ejbLink of StatefulEJB in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,017 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.StatelessSession and ejbLink of ENCBean1 in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,017 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.cts.interfaces.CtsBmp and ejbLink of BMPBean in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,017 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.StatelessSession and ejbLink of websubdir/relative.jar#SessionBean in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,018 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> from interface only org.jboss.test.web.interfaces.StatelessSession in web.xml of jbosstest-web.warnot used by any EJBs
17:29:10,018 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.StatelessSession and ejbLink of UnsecuredEJB in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,018 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.Entity and ejbLink of Entity in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,018 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.EntityFacade and ejbLink of EntityFacade in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,018 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find <ejb-ref> of interface org.jboss.test.web.interfaces.StatelessSession and ejbLink of NotOptimizedEJB in web.xml of jbosstest-web.war it might not be deployed yet
17:29:10,019 ERROR [BaseModelMBean] Exception invoking method addChild
java.lang.RuntimeException: mapped-name is required for mdr/ProducesLink of deployment jbosstest-web.war
at org.jboss.injection.ResourceHandler.loadXmlMessageDestinationRefs(ResourceHandler.java:116)
at org.jboss.injection.ResourceHandler.loadXml(ResourceHandler.java:126) at org.jboss.web.tomcat.tc6.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:338)
at org.jboss.web.tomcat.tc6.WebAppLoader.start(WebAppLoader.java:75)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4204)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava.lang.Object;(Unknown Source)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5269)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;J)Ljava.lang.Object;(Unknown Source)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.web.tomcat.tc6.TomcatDeployer.performDeployInternal(TomcatDeployer.java:305)
at org.jboss.web.tomcat.tc6.TomcatDeployer.performDeploy(TomcatDeployer.java:130)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:388) at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
The schema for the jboss-web.xml descriptor either needs to handle both servlet 2.4/2.5 constructs, or be conditional on the descriptor version.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 11 months