[Remoting] - what does this mean?
by kuvera
Could somebody please explain to me this exception I get on the client side?
| org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for locator - InvokerLocator [socket://127.0.0.1:3873/]
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:319)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:116)
| at org.jboss.remoting.Client.invoke(Client.java:612)
| [several more omitted for brevity]
| Caused by: java.net.ConnectException: Connection refused: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(Unknown Source)
| at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
| [several more omitted for brevity]
|
I use EJB3. Does it mean I also need to open port 3873 on the server? (currently 1098,1099,4444 are open). And why does it refer to localhost, when I did set java.rmi.server.hostname to the server external IP? (The server is bound to 0.0.0.0 because binding it to the external IP causes many exceptions) (4.2.0 CR2)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045205#4045205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045205
19 years, 1 month
[JBoss Seam] - not redirecting to security_error.xhtml
by efabiano
HI,
I´ve started using seam security in advanced mode.
In fact I´m using dynamic role as you can see at
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045165#4045165
I´ve configured my pages.xml with this exceptions
<exception class="org.jboss.seam.security.NotLoggedInException">
| <redirect view-id="/login.xhtml">
| <message>You must be logged in to perform this action</message>
| </redirect>
| </exception>
|
| <exception class="org.jboss.seam.security.AuthorizationException">
| <end-conversation/>
| <redirect view-id="/security_error.xhtml">
| <message>You do not have the necessary security privileges to perform this action.</message>
| </redirect>
| </exception>
Then, i´ve configured my components.xml with this events
<event type="org.jboss.seam.notLoggedIn">
| <action expression="#{redirect.captureCurrentView}"/>
| </event>
|
| <event type="org.jboss.seam.postAuthenticate">
| <action expression="#{redirect.returnToCapturedView}"/>
| </event>
Finally, i´ve annotated a method (corcontroller seam component) with @Restrict.
When I do a simple test calling this method in a view (denying authorization) I got an authorization check failed(AuthorizationException). According to pages.xml, it should be redirected to view security_error.xhtml, but what really appears is an error with a stack trace. Looking at the console we can see this message:
SERV ERROR RENDERING VIEW COR.XTML
and after,
Authorization check failed
seam version: 1.2.1
jboss version: 4.0.5
operational system: windows 2003
tks in advance
emerson fabiano
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045200#4045200
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045200
19 years, 1 month