[Installation, Configuration & DEPLOYMENT] - Re: web.xml
by hAck3d
Actually, that does not work either. After three login attempts, it basically change the URL to http://localhost:8080/something/index.faces
rather it should change it to
http://localhost:8080/something/error/error401.html
If I manually try to access this URL, it works. This sort of error could be the redirection that is not taking place. Any thoughts ?
The modified code is pasted below
<security-role>
<role-name>BackofficeUser</role-name>
</security-role>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>backoffice</realm-name>
</login-config>
<!-- static error HTML pages -->
<!-- HTML errors: 400,401,403,404,408,500,503,505,508 -->
<!-- start here -->
<error-page>
<error-code>404</error-code>
/error/error404.html
</error-page>
<error-page>
<error-code>401</error-code>
/error/error401.html
</error-page>
<error-page>
<error-code>400</error-code>
/error/error400.html
</error-page>
<error-page>
<error-code>403</error-code>
/error/error403.html
</error-page>
<error-page>
<error-code>408</error-code>
/error/error408.html
</error-page>
<error-page>
<error-code>503</error-code>
/error/error503.html
</error-page>
<error-page>
<error-code>500</error-code>
/error/error500.html
</error-page>
<error-page>
<error-code>505</error-code>
/error/error505.html
</error-page>
<!-- end here -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134685#4134685
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134685
18 years, 1 month
[EJB/JBoss] - Hot-deploy of an EJB loses my JAXBContext
by kvbisme
I have an application that uses a war to accept web service requests, the requests are authenticated, and if authenticated the request is routed to an EJB to perform whatever task is requested.
The problem is that when I bring up JBoss (4.0.5.GA) the application behaves as advertised, but if I make a change and hot deploy, it fails. I know that isn't very helpful so let me elaborate.
The web service call has a SOAP header containing an XML Object from some client, we have a couple of forms this credential can take, but the jest of it is that I reconstitute the credential object using JAXB. To do this I first examine the annotations of the base Credential class to determine the actual implementation being sent my matching the xsi:type of the XML to the QName of the JAXB Class to use. I mention this because I can manually follow the annotations to find the correct class (and it does). Once I hot deploy the application (including just touching the ear to cause it to redeploy with no changes) I still can traverse the annotations but I get the JAXBException about the class not found in the context.
I am sure it is some kind of classloading issue, but I have checked and re-checked and none of my classes are duplicated in other jar/wars.
How about a clue as where to begin this search as I am out of ideas.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134679#4134679
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134679
18 years, 1 month
[Beginners Corner] - Re: application clients in JBOSS 4.2.2
by PeterJ
You can only use @Local if you call the ejb from a web application or another ejb. You are not doing that, you are calling it from a standalone client. And the IDE is hiding that fact from you, including setting the classpath. (This is one reason why every time I have to break in a new developer I have him, or her, do everything by hand with a basic text editor. Only after I am convinced that they know what they are doing and how things work and why they work that way will I let them use an IDE.)
The @EJB annotation is used to inject an EJB reference into the code. It is designed to work in both standalone clients and clients deployed to an app server. But as I pointed out earlier, it might not work in standalone clients in 4.2.x.
What tutorial or book are you using to learn EJB3?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134671#4134671
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134671
18 years, 1 month
[Installation, Configuration & DEPLOYMENT] - web.xml
by hAck3d
Version: JBoss4.0.5GA
I'm using static HTML error pages for redirecting any errors to a customized error page. For some reason, the JBoss is not redirecting to the static pages, rather showing the default HTTP error message. Also, I'm using BASIC authentication, instead of FORM based authentication.
The following code is part of my web.xml file.
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>backoffice</realm-name>
</login-config>
<!-- static error HTML pages -->
<!-- HTML errors: 400,401,403,404,408,500,503,505,508 -->
<!-- start here -->
<error-page>
<error-code> 404 </error-code>
/error/error404.html
</error-page>
<error-page>
<error-code> 401 </error-code>
/error/error401.jsp
</error-page>
<error-page>
<error-code> 400 </error-code>
/error/error400.html
</error-page>
<error-code> 500 </error-code>
/error/error500.html
</error-page>
<error-page>
<error-code> 505 </error-code>
/error/error505.html
</error-page>
<!-- end here -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134668#4134668
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134668
18 years, 1 month