[JBoss JIRA] Created: (JBAS-9032) @EJB injection with same "name" on two different fields leads to DuplicateServiceException
by jaikiran pai (JIRA)
@EJB injection with same "name" on two different fields leads to DuplicateServiceException
------------------------------------------------------------------------------------------
Key: JBAS-9032
URL: https://issues.jboss.org/browse/JBAS-9032
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 7.0.0.Beta1
Environment: JBoss AS7 master, JBoss AS 7.0 Beta1
Reporter: jaikiran pai
Consider this servlet (or any other component):
{code}
public class MyServlet extends HttpServlet {
@EJB (name="simpleName", beanName="SomeEJB")
private SomeEJB bean;
@EJB (name="simpleName", beanName="SomeEJB")
private SomeEJB beanAgain;
...
}
{code}
Notice that both the @EJB injection points expect the bean to be injected from bean in ENC at java:comp/env/simpleName. This however, leads to exception during deployment with the following message:
{code}
16:06:43,846 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."myejbapp.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."myejbapp.war".INSTALL: Failed to process phase INSTALL of deployment "myejbapp.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:108)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1344)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_21]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.module.myejbapp.myejbapp.env/simpleName is already registered
at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:143)
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[JBoss JIRA] Closed: (JBBUILD-655) Wrong checksum on jboss maven repository
by Paul Gier (JIRA)
[ https://issues.jboss.org/browse/JBBUILD-655?page=com.atlassian.jira.plugi... ]
Paul Gier closed JBBUILD-655.
-----------------------------
Assignee: Paul Gier
Fix Version/s: Repository Support 2010
Resolution: Done
The Nexus routing rules are configured now so that everything under "org/jboss" must come from the jboss repositories.
> Wrong checksum on jboss maven repository
> ----------------------------------------
>
> Key: JBBUILD-655
> URL: https://issues.jboss.org/browse/JBBUILD-655
> Project: JBoss Build System
> Issue Type: Bug
> Components: Artifact Repositories
> Reporter: Fabricio Lemos
> Assignee: Paul Gier
> Fix For: Repository Support 2010
>
>
> Some POMs are with the wrong checksum on Jboss Maven Repository, which causes artifactory to reject those POMs if validation is on.
> Here a few examples of artifactory output:
> jboss: Downloaded 'http://repository.jboss.org/nexus/content/groups/public/org/jboss/weld/we...' with return code: 200.
> (o.a.r.v.i.PomInterceptor:78) - Failed to transform pom file
> java.io.IOException: Checksum policy 'GEN_IF_ABSENT' rejected the artifact 'weld-api-bom-1.0-SP1.pom'. Checksums info: [ChecksumInfo{type=SHA-1, original='11c59ba0129c15a2966adf7b993552ac0e38f5db', actual='a682982a8c581b327c79b6ef5dd239005cf4d30b'}, ChecksumInfo{type=MD5, original='645ce7c04f2650ec80b54ace02b4c1b9', actual='1f00ec3b8241348739fbb1544b53aef5'}]
> (o.a.r.HttpRepo :196) - jboss: Downloaded 'http://repository.jboss.org/nexus/content/groups/public/org/jboss/weld/we...' with return code: 200.
> [ERROR] (o.a.r.v.i.PomInterceptor:78) - Failed to transform pom file
> java.io.IOException: Checksum policy 'GEN_IF_ABSENT' rejected the artifact 'weld-core-bom-1.0.1-Final.pom'. Checksums info: [ChecksumInfo{type=SHA-1, original='05c018953796d43baaec6b7b526883116fb4ba4c', actual='9c1d4f3ba941405a2717081d29e2b542934a69d7'}, ChecksumInfo{type=MD5, original='98167a84f872b7d2ab07c4826269cff5', actual='de063cceee5e38a7b0b9b8d82930aebb'}]
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[JBoss JIRA] Created: (JBAS-7427) AS won't boot with sun jmx enabled
by Jonathan Halliday (JIRA)
AS won't boot with sun jmx enabled
----------------------------------
Key: JBAS-7427
URL: https://jira.jboss.org/jira/browse/JBAS-7427
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Logging
Environment: sun jdk6, fedora, AS trunk r96005
Reporter: Jonathan Halliday
Assignee: David Lloyd
Fix For: JBossAS-6.0.0.Alpha1
[jhalli jboss-6.0.0-SNAPSHOT]$ export JAVA_OPTS="-Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
[jhalli jboss-6.0.0-SNAPSHOT]$ bin/run.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/jhalli/IdeaProjects/jboss/jbossas_trunk/build/output/jboss-6.0.0-SNAPSHOT
JAVA: /usr/local/jdk1.6.0_16/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.net.preferIPv4Stack=true
CLASSPATH: /home/jhalli/IdeaProjects/jboss/jbossas_trunk/build/output/jboss-6.0.0-SNAPSHOT/bin/run.jar:/usr/local/jdk1.6.0_16/lib/tools.jar
=========================================================================
Failed to initalize plugin: org.jboss.logging.logmanager.LoggerPluginImpl@214a55f2, cause: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
...
Failed to initalize plugin: org.jboss.aop.util.logging.SystemOutLoggerPlugin@5c1ae90c, cause: java.lang.AbstractMethodError
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month