[JBoss Seam] - Re: lost parameter after login/forwarding
by henrik.lindberg
I have that turned on already - I have this in components.xml (as described in the documentation for 1.2GA).
(This is copied from my components.xml):
| <event type="org.jboss.seam.notLoggedIn">
| <action expression="#{redirect.captureCurrentView}"/>
| </event>
| <event type="org.jboss.seam.postAuthenticate">
| <action expression="#{redirect.returnToCapturedView}"/>
| </event>
|
I do get redirected, but the searchPattern is lost in the transition.
In pages.xml I have:
| <page view-id="/object-view.xhtml">
| <param name="oid" value="#{mockLoader.oid}"
| converterId="javax.faces.Long" />
| <restrict>#{s:hasRole('user')}</restrict>
|
(same problem if I take out the ).
And "mockLoader" looks like this:
| @Stateful
| @Name("mockLoader")
| public class MockLoaderAction implements Serializable, MockLoader
| {
| private static final long serialVersionUID = 3773875067016207441L;
|
| @In(required = false) @Out(required = false)
| private InfoDigest mockInfo;
|
| @PersistenceContext(type = EXTENDED)
| private EntityManager em;
|
| private Long m_oid;
|
| public Long getOid()
| {
| return m_oid;
| }
|
| public void setOid(Long oid) throws OidNotFoundException
| {
| System.err.print("Reached MockLoader.setOid(oid=" +
| ((oid == null) ? "null" : oid.toString()));
|
| m_oid = oid;
|
| // Load the object if there was a oid
| if(oid == null)
| throw new OidNotFoundException(oid);
| mockInfo = em.find(MockData.class, oid);
|
| // If not found throw exception
| if(mockInfo == null)
| throw new OidNotFoundException(oid);
| }
| @Remove @Destroy
| public void destroy()
| { }
| }
|
And Local interface:
| public interface MockLoader
| {
| public void destroy();
| public Long getOid();
| public void setOid(Long oid) throws OidNotFoundException;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031829#4031829
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031829
19Â years
[Installation, Configuration & Deployment] - Zip File Closed (Jboss 1.5)
by risenhoover
Hi All,
I am exploring Jboss 1.5 (beta 1) to see how it works. I currently have an instance of 4.2 running in production with my web application (app.war).
When I deploy my app.war file into the 1.5 deploy directory, I get the following stack trace:
2007-03-26 15:33:15,772 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:403)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:194)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:180)
at java.util.jar.JarFile.getInputStream(JarFile.java:383)
at org.jboss.virtual.plugins.context.jar.JarEntryHandler.openStream(JarEntryHandler.java:133)
at org.jboss.virtual.VirtualFile.openStream(VirtualFile.java:193)
at org.jboss.web.tomcat.tc6.TomcatInjectionContainer.getInputStreams(TomcatInjectionContainer.java:219)
at org.jboss.web.tomcat.tc6.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:251)
at org.jboss.web.tomcat.tc6.WebAppLoader.start(WebAppLoader.java:104)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4198)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
Any thoughts on this? The only thing I've been able to find on the Internet is related to a signed jar file. My web application is not signed, however, there is a signed applet inside. Could this be causing a problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031824#4031824
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031824
19Â years