[Security & JAAS/JBoss] - Federated SSO on 4.0.2?
by mheidt
Hi,
I really like the idea of Federated SSO.
Unfortunately I can't make it run.
I took a fresh installation of 4.0.2 and copied the files into the deploy directory:
jboss-sso.sar
jboss-federation-server.ear
But when starting jboss I get the ERROR:
2006-11-30 11:03:36,847 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
org.jboss.deployment.DeploymentException: url file:/C:/jboss-4.0.2-clean/jboss-4.0.2/server/default/deploy/jboss-sso.sar/log4j.jar could not be opened, does it exist?
After putting log4j into the default/lib directory, it asks for log4j-core...which i don't have.
But renaming a log4j to log4j-core and putting it into default/lib as well, solves that issue.
nevertheless the .ear failes as well:
2006-11-30 11:03:52,221 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/C:/jboss-4.0.2-clean/jboss-4.0.2/server/default/tmp/deploy/tmp62926jboss-federation-server.ear-contents/jboss-federation-server.sar
org.jboss.deployment.DeploymentException: Error parsing the XML file: ; - nested throwable: (org.jboss.mx.util.JBossNotCompliantMBeanException: Error parsing the XML file: )
I want to use your framework for a JBoss 4.0.2 without EJB, because I cannot change the existing JBoss server.
Furthermore I need to write my own LoginProvider.
Are those conditions supported?
BTW. the current jboss-identity-management.jar within /bin/jboss-sso.sar doesn't provide the interface LoginContext, although the source-files would say so.
regards,
Markus Heidt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989983#3989983
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989983
18Â years, 1Â month
[JBoss Seam] - IllegalStateException on AJAX request
by sradford
Hi,
I've been happily using A4J on 1 page of my application for about a week now, but for some reason today it is not working... On every AJAX request I get a java.lang.IllegalStateException. I haven't changed any configuration files, so cannot work out why this is just started to happen. Any ideas?
(I was using JBoss-4.0.4.GA with Seam-1.1.0.BETA2 and have upgraded to JBoss-4.0.5.GA with Seam-1.1.0.CR1 on the off-chance that would help, but no luck).
Any ideas?
Here's the Stack Trace
10:25:18,877 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) afterPhase
java.lang.IllegalStateException: No application context active
at org.jboss.seam.Component.forName(Component.java:1534)
at org.jboss.seam.Component.getInstance(Component.java:1584)
at org.jboss.seam.Component.getInstance(Component.java:1567)
at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:45)
at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
at javax.faces.component.UIData.getValue(UIData.java:1019)
at org.apache.myfaces.component.html.ext.HtmlDataTableHack.createDataModel(HtmlDataTableHack.java:433)
at org.apache.myfaces.component.html.ext.HtmlDataTable.createDataModel(HtmlDataTable.java:741)
at org.apache.myfaces.component.html.ext.HtmlDataTableHack.getDataModel(HtmlDataTableHack.java:410)
at org.apache.myfaces.component.html.ext.HtmlDataTable.getDataModel(HtmlDataTable.java:734)
at org.apache.myfaces.component.html.ext.HtmlDataTableHack.getRowCount(HtmlDataTableHack.java:84)
at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:210)
at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:123)
at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java:171)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:245)
at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:225)
at org.ajax4jsf.renderers.ajax.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:78)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:245)
at org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjaxChild(AjaxContainerRenderer.java:197)
at org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjaxChild(AjaxContainerRenderer.java:190)
at org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjaxChild(AjaxContainerRenderer.java:190)
at org.ajax4jsf.framework.renderer.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:126)
at org.ajax4jsf.framework.ajax.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:570)
at org.ajax4jsf.framework.ajax.AjaxContext.renderAjaxRegion(AjaxContext.java:260)
at org.ajax4jsf.framework.renderer.AjaxPhaseListener.afterPhase(AjaxPhaseListener.java:96)
at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:67)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:223)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989982#3989982
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989982
18Â years, 1Â month
[JBoss Seam] - Seam 1.1CR1 + IceFaces & Tomahawk problem!
by sherkan777
Hi!
I'm trying to use together Seam 1.1CR1 with IceFaces and Tomahawk components.
Previous I used Seam 1.1Beta with Tomahawk, and it worked fine.After migration to Seam 1.1CR1 and made changes in web.xml and faces-config.xml to support IceFaces, copomnents like <t:inputHtml rendering but doesn't work!
I also get an WARN:
11:23:24,796 WARN [DefaultAddResource] MyFaces special javascript could not be retrieved from request-map.
Problem is component not submit field, question why?
Here is a sample of my code:
| <h:form id="newQuestion">
| <t:inputHtml id="formularz" value="#{newQuestionAction.question}"
| fallback="false"
| allowExternalLinks="true"
| addKupuLogo="false"
| showAllToolBoxes="false"
| allowEditSource="false"
| showPropertiesToolBox="false"
| showLinksToolBox="false"
| showImagesToolBox="false"
| showTablesToolBox="false"
| showDebugToolBox="false"
| showCleanupExpressionsToolBox="false"/>
| <h:commandButton action="#{newQuestionAction.cancel}" value="#{messages['newQuestionAction.cancel']}"/>
|
web.xml
| <?xml version="1.0" encoding="UTF-8"?>
|
| <web-app version="2.5"
| xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
| <!-- Seam -->
|
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <!-- Propagate conversations across redirects -->
| <!--
| <filter>
| <filter-name>Seam Redirect Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Redirect Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
| -->
|
| <!-- Tomahawk -->
| <filter>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
| <init-param>
| <param-name>maxFileSize</param-name>
| <param-value>20m</param-value>
| </init-param>
| </filter>
|
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| </filter-mapping>
|
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| </filter-mapping>
| <!-- /Tomahawk -->
|
| <filter>
| <filter-name>Seam Exception Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Exception Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
| <!-- JSF -->
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <context-param>
| <param-name>com.icesoft.faces.actionURLSuffix</param-name>
| <param-value>.seam</param-value>
| </context-param>
|
| <context-param>
| <param-name>com.icesoft.faces.synchronousUpdate</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <!-- Faces Servlet Mapping -->
| <!--
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
| -->
|
| <servlet>
| <servlet-name>Blocking Servlet</servlet-name>
| <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
| <load-on-startup> 1 </load-on-startup>
| </servlet>
|
| <servlet>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>/xmlhttp/*</url-pattern>
| </servlet-mapping>
|
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>/xmlhttp/*</url-pattern>
| </servlet-mapping>
|
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>*.iface</url-pattern>
| </servlet-mapping>
|
| <!-- Blocking Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>Blocking Servlet</servlet-name>
| <url-pattern>/block/*</url-pattern>
| </servlet-mapping>
|
| <!-- Faces Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
| <!-- MyFaces -->
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
|
| <session-config>
| <session-timeout>30</session-timeout>
| </session-config>
| <!-- JSF RI -->
| <!--
| <listener>
| <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
| </listener>
| -->
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
| </context-param>
|
| </web-app>
|
|
|
and faces-config.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE faces-config
| PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
| "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
|
| <faces-config>
|
| <application>
| <view-handler>com.icesoft.faces.facelets.D2DSeamFaceletViewHandler</view-handler>
| </application>
|
| <!-- Select one of the standard transaction models for the Seam application -->
|
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
| </lifecycle>
|
| <application>
| <message-bundle>messages</message-bundle>
| <locale-config>
| <default-locale>pl</default-locale>
| <supported-locale>en</supported-locale>
| </locale-config>
| </application>
|
| <navigation-rule>
| <navigation-case>
| <from-outcome>home</from-outcome>
| <to-view-id>/home.xhtml</to-view-id>
| <redirect />
| </navigation-case>
| </navigation-rule>
| </faces-config>
|
|
I think problem could be with those js file and Warning or I do somethink wrong to use tomahawk...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989980#3989980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989980
18Â years, 1Â month
[EJB 3.0] - Problems with foreign key updates
by hubaer
Hi all,
I have a strange problem with an entity relation. I have a manyToOne relation between an entity called "Address" and and entity called "Country". Address should only use existing Countries. If Country enitity doesn't exists it should throw a kind of ForeignKeyException.
Now my Problem:
If I update the Address with another Country (which is not in den DB yet), the Address entity is only updated in the object instance. The database entry is unchanged. But now I have a new entry in my Country table?? I expected an exception not a new entry.
If I have a Country object and updates my Address, the address row in the db is also not changed?
Here some code fragments:
| public class Address implements Serializable {
|
| @Id
| @Column(name = "id", nullable = false)
| private Integer id;
|
| ...
|
| @ManyToOne(fetch=FetchType.LAZY,cascade=CascadeType.ALL)
| @JoinColumn(name = "isocodecountry", referencedColumnName = "isocode")
| private Country isocodecountry;
|
| ...
|
| public class Country implements Serializable {
|
| @Id
| @Column(name = "isocode", nullable = false, insertable=false, updatable=false)
| private String isocode;
|
| ....
|
My system:
JBoss 4.0.5 GA (from Installer) with SEAM 1.1.0-CR1 on Win XP with a Postgre 8.1.5 DB.
I hope some can help me.
Regards
Marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989979#3989979
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989979
18Â years, 1Â month