[JBoss Seam] - Re: SFSB - NotSerializableException
by gavin.king@jboss.com
anonymous wrote : For now, I've learned that it's not clear to me what the 'proper' way is to build an application using the latest MyFaces + Tomahawk + Facelets and deploy in JBoss (er..tomcat). I would appreciate any pointers on where particular jars should be developing .ear-style apps using these frameworks/components. Currently, I have Facelets + Tomahawk in my .ear / MyFaces 1.1.4 has been installed in the JBoss-tomcat sar (in jsf-libs).
This is the correct way to do it.
The only thing you might need to do differently is either:
(a) put Tomahawk in jsf-libs or
(b) make sure you hack the tomahawk jar to remove any classes that are duplicated between myfaces-impl.jar and tomahawk.jar
But perhaps they already fixed the problem of duplicated classes in their latest releases. But you had better check.
Or you could just not use Tomahawk, and find a different JSF component library.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978252#3978252
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978252
19 years, 8 months
[JBossCache] - Buddy Replication
by FredrikJ
I am currently developing a system using the regular treecache. In the cache we store stateful objects. The nodes in the system all have a designated set of objects that the manipulate. In essence, the cache is mostly for fail-over reasons. Therefore I find that using buddy replication together with data gravitation proves to be a very good match (we are using 1.4).
However, I would like to add a new type of node to the system, this node has a monitor-like role and needs to get periodical snapshots of all objects (and their state) in the cache. The monitor node will only perform read operations towards the cache.
Now, my question is if anyone has any suggestion of the best way to set this up... Is it possible to 'mix' cache configurations so that the monitor node will not use buddy replication but rather get the complete cache or would this be a completely backward solution?
Any input is welcome!
/ Fredrik Johansson
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979019#3979019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979019
19 years, 8 months
[JNDI/Naming/Network] - Re: Make SSL connection to JNDI
by alex_55
"alex_55" wrote : ...
After remade certificates I'm able to connect, but now I see this error:
| Exception in thread "main" javax.naming.NamingException: Failed to retrieve Naming interface [Root exception is java.io.IOException: Invalid reply content seen: class org.jboss.invocation.InvocationException]
| at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:84)
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| at javax.naming.InitialContext.init(InitialContext.java:223)
| at javax.naming.InitialContext.<init>(InitialContext.java:197)
| at jmx.jboss.JMXBrowser.makeConnection(JMXBrowser.java:63)
| at jmx.jboss.JMXBrowser.main(JMXBrowser.java:75)
| Caused by: java.io.IOException: Invalid reply content seen: class org.jboss.invocation.InvocationException
| at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:153)
| at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:80)
| ... 6 more
|
My conf is :
| env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.HttpNamingContextFactory");
| env.setProperty(Context.PROVIDER_URL, "https://localhost:8443/invoker/JMXInvokerServlet");
| env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); or
| env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming");
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979018#3979018
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979018
19 years, 8 months
[Security & JAAS/JBoss] - from login.jsp -->HTTP Status 400 - Invalid direct reference
by shankaran
Hi all,
I want to know how to forward to next page after the j_security_check , in case if i invoke login page directly.
My problem is:
My web app work fine for following steps:
1)hitting the url in IE : http://localhost:8080/Myapp
2) login.jsp page shown then i entered valid username,pwd then click submit button, "jsecuritycheck" execute then redirect to correct page and every think work fine.
but in special case :ie)
1) I type the url in IE: http://localhost:8080/Myapp/login.jsp -- i shown login.jsp i entered valid username,pwd then i click submit button i got following error :
HTTP Status 400 - Invalid direct reference to form login page
The request sent by the client was syntactically incorrect (Invalid direct reference to form login page).
So i wnat to know how to redirect the page after execution of "j security check". is possible?
my app is j2ee+jboss+jaas under form auth.
My web.xml is :
<web-app >
<welcome-file-list>
<welcome-file>welcome.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<display-name>global access</display-name>
<web-resource-collection>
<web-resource-name>everyone</web-resource-name>
<url-pattern>/welcome.jsp</url-pattern>
<url-pattern>/login.jsp</url-pattern>
<url-pattern>/loginErr.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>sample1</role-name>
<role-name>myGroup</role-name>
<role-name>myAdminGroup</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<display-name>movies list</display-name>
<web-resource-collection>
<web-resource-name>MoviesMaint</web-resource-name>
<url-pattern>/movies/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>sample2</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>MoviesRealm</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/loginErr.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>sample1</role-name>
</security-role>
<security-role>
<role-name>sample2</role-name>
</security-role>
</web-app>
-------------------------------------------------------------------------------
from login.jsp url i didn't get login this is my problem, please any one give suggesstion to solve this.
Thanks In Advance,
Shankaran.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979012#3979012
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979012
19 years, 8 months