[JBoss Getting Started Documentation] - Section 2.2.3: Security Service. A documentation bug.
by berliita
Buggy sentence: "If you've configured everything correctly and re-deployed the application, the next time you try to access the JMX Console, JBoss will ask you for a name and password."
Bug: Even if the reader follows meticulously the steps enumerated in the section, JBoss does not ask for a name and password. Instead, an error message is displayed: "HTTP Status 403 - Access to the requested resource has been denied".
Reason for the bug: The deploy/jmx-cosole.war/WEB-INF/web.xml file doesn't contain a "login-config" element. In order that an authentication dialog pops up, a "login-config" element must be present as a child of the root element (i.e. "web-app"). It must take the following form:
<login-config>
| <auth-method>XXX</auth-method>
| <realm-name>YYY</realm-name>
| </login-config>
where XXX is one of "BASIC", "DIGEST", "FORM", and "CLIENT-CERT", and YYY is a string to be displayed on the authentication dialog.
Bug fix: Add to the section instructions to add to the web.xml file a proper "login-config" element, as described above.
References: http://wiki.jboss.org/wiki/Wiki.jsp?page=SecureAWebApplicationInJBoss (point 1).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064728#4064728
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064728
18Â years, 12Â months
[Beginners Corner] - Re: Lookup ejb by its COMP_NAME
by lafr
I think you misunderstood something.
You'll have to add the ejb-local-ref to the bean where you want to lookup LicenseVerfifierFrom from by COMP_NAME.
Just one example from my code base.
In SalesOrderImportMDB I have this for XDoclet to generate the deployment descriptor entries:
| * @ejb.ejb-external-ref view-type="local" type="Session"
| * ref-name="ejb/MailServiceLocal"
| * home="ejb.session.core.MailServiceLocalHome"
| * business="ejb.session.core.MailServiceLocal"
| * jndi-name="test/MailServiceLocal"
|
ejb-jar.xml:
| <message-driven>
| <display-name>SalesOrderImportMDB</display-name>
| ...
| <ejb-local-ref >
| <ejb-ref-name>ejb/MailServiceLocal</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home>ejb.session.core.MailServiceLocalHome</local-home>
| <local>ejb.session.core.MailServiceLocal</local>
| </ejb-local-ref>
| ...
| </message-driven >
|
jboss.xml:
| <message-driven>
| <ejb-name>SalesOrderImportMDB</ejb-name>
| ...
| <ejb-local-ref>
| <ejb-ref-name>ejb/MailServiceLocal</ejb-ref-name>
| <local-jndi-name>test/MailServiceLocal</local-jndi-name>
| </ejb-local-ref>
| ...
| </message-driven>
|
jmx-console, JNDI-view:
| java:comp namespace of the SalesOrderImportMDB bean:
| +- env (class: org.jnp.interfaces.NamingContext)
| | +- ejb (class: org.jnp.interfaces.NamingContext)
| | | +- MailServiceLocal[link -> test/MailServiceLocal] (class: javax.naming.LinkRef)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064724#4064724
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064724
18Â years, 12Â months
[EJB 3.0] - Problems with Reference Injection for @EJB-Annotation
by markusschmitt
Hi,
I'm using the latest JEMS installer for my EJB3 project (no SEAM). I have trouble with the @EJB Annotation. To validate my problem I copied the Calculator und ShoppingCart bean to my workspace and added a @EJB Annotation to a new private Calculator field in the ShoppingCartBean class.
Exception:
anonymous wrote : [exec] 18:00:22,859 INFO [JmxKernelAbstraction] installing MBean:
| jboss.j2ee:jar=ejb.jar,name=ShoppingCartBean,service=EJB3 with
| dependencies:
| [exec] 18:00:22,890 WARN [ServiceController] Problem starting service jboss.j2ee:jar=ejb.jar,name=ShoppingCartBean,service=EJB3
| [exec] java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container ShoppingCartBean: reference class:
| de.inno.rep.test.Calculator ejbLink: not used by any EJBs
| [exec] at
| org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:88)
| [exec] at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:466)
| [exec] at
| org.jboss.ejb3.SessionContainer.start(SessionContainer.java:121)
| [exec] at
| org.jboss.ejb3.stateful.StatefulContainer.start(StatefulContainer.java:9
| 1)
| [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
| Method)
|
Thanks in advance!
Markus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064719#4064719
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064719
18Â years, 12Â months