[JBoss Seam] - Jboss 5 Beta2 and JBoss Seam 1.2.1GA
by gressho
Hello,
after reviewing earlier entries I thought it would be possible to deploy my
application in JBoss 5 Beta2. First thing that occurred was the SeamInterceptor
was not found! My application was generated by seam-gen, so the entries in
application.xml are available and the jboss-seam.jar is in the ear file as well.
I managed to get around this by moving jboss-seam.jar to server/default/lib.
Now the EJB's are loaded, it's the war file now making problems!
I thought (as mentioned earlier) I should remove el-*.jar from application.xml
and the ear file but that didn't work: JBoss simply stopped while deploying
the war. Other problems occur as well:
| 14:03:01,056 INFO [Scanner] scanning: vfsfile:/home/gressho/Programs/jboss-5.0.0.Beta2/server/default/deploy/miami.ear/miami.war/WEB-INF/lib/jboss-seam-ui.jar
| 14:03:01,056 WARN [Scanner] could not read entries
| java.util.zip.ZipException: No such file or directory
| at java.util.zip.ZipFile.open(Native Method)
| at java.util.zip.ZipFile.<init>(ZipFile.java:203)
| at java.util.zip.ZipFile.<init>(ZipFile.java:234)
| at org.jboss.seam.deployment.Scanner.handleArchive(Scanner.java:132)
| at org.jboss.seam.deployment.Scanner.scan(Scanner.java:118)
| at org.jboss.seam.deployment.ComponentScanner.getClasses(ComponentScanner.java:39)
| at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:585)
| at org.jboss.seam.init.Initialization.init(Initialization.java:490)
|
This message happens several times, for every of the jboss-seam-*.jar files...
Is there some recipe to get around this problems?
Best wishes
Werner Gresshoff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036401#4036401
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036401
19 years
[Security & JAAS/JBoss] - Problem with SAML in cookies
by ajls
I am having problems retrieving the SAML from the cookie. My SAML token is truncated to '<Response xmlns=\'. A little bit of adventure through Tomcat's src led me to:
org/apache/tomcat/util/http/Cookies.java
By changing dbg to "1", recompiling and adding the created tomcat-util.jar
to $JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.sar/ .... I get this output:
| 15:26:16,489 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 36s:640ms
| 15:27:14,692 INFO [STDOUT] ************ Cookies: Parsing b[]: JSESSIONID=v6lOu62iJ2ex2+nX9TlZMg**; JSESSIONIDSSO=7D1F4DAA170B31403D3994E56293C03A; token="<Response xmlns=\"urn:oasis:names:tc:SAML:1.0:protocol\" xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\" xmlns:samlp=\"urn:oasis:names:tc:SAML:1.0:protocol\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" IssueInstant=\"2007-04-11T14:27:11.207Z\" MajorVersion=\"1\" MinorVersion=\"1\" ResponseID=\"_7922e48bab03a7ed1fbb56da51a0e188\"><Status><StatusCode Value=\"samlp:Success\"></StatusCode></Status><Assertion xmlns=\"urn:oasis:names:tc:SAML:1.0:assertion\" AssertionID=\"_e4d7d1360f820ceaf6ca4327e639b822\" IssueInstant=\"2007-04-11T14:27:11.426Z\" Issuer=\"HarpoonWebUI\" MajorVersion=\"1\" MinorVersion=\"1\"><AuthenticationStatement AuthenticationInstant=\"2007-04-11T14:27:11.207Z\" AuthenticationMethod=\"urn:oasis:names:tc:SAML:1.0:am:password\"><Subject><NameIdentifier Format=\"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified\">admin</NameIdentifier></Subject></AuthenticationStatement><AttributeStatement><Subject><NameIdentifier Format=\"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified\">admin</NameIdentifier></Subject><Attribute AttributeName=\"secret\" AttributeNamespace=\"jbosssso:secret\"><AttributeValue>99ce561dbb1f3c11a6bfbf5910800d844439d7ae02fbceec1c21e80d823009b7a1655f93384e7b7a148f7735e1135e843da328ff7f32aebec6c24373344e462b805abda1309587efef553a29dd2cf470166a5dd8c2bddb384edbfa49f6b1037a48432b5b46f57a18035f09a2ff4c7b4df95d4aba62fb17d5b808f541a665899cd50274c773c8a0e03ab661170c3a40710b4c8b3e318a89694a661581b4f61fca38ba166bf8de0d69a133fa3a7e81ade47847df7fad75268beab3b7259ffdbc6b0332b2d59053613ff099496b1c8f6ee99cbb333f1505903d9cfdd451effa28dce13aa2d03b5387c7d7c1a7580202e8161e8b9ad6c7881f655e4105f95dca0160aefce6400dd0c35aa38311c1c41b6635c00c30487782537be4d91b60a4724229a3e29f4deb1c66ca03ac4a1d3aa61efba5da366e0c36d7b5ef48966043e909754931fbf78583f4e679f04a29561b87c30ebee0a46d966fc5edf9fdcad73ce7081317d872abb6bbd749c2ea540c47838a4ebe51e36a5b9339e58822189ca22340c6b8749541235bb666ef4975729f1249a2e0403d9bc653a96777dc9f737bb65bcf03ccc2a63f24206f016f2a32f6e9cf4822d2a68ccf6227af89052c98becf2e0e05117d61f92ef41f74fd723e0e50dbb40bbab4fec9792c3a928e8f50031113e9556ac6dccfb770135250e3f9bdc5ebdeb2e943569a10b396ce88834becbcac</AttributeValue></Attribute></AttributeStatement></Assertion></Response>"
| 15:27:14,692 INFO [STDOUT] ************ Cookies: Start: 450 2836
| 15:27:14,692 INFO [STDOUT] ************ Cookies: SN: 450
| 15:27:14,692 INFO [STDOUT] ************ Cookies: DELIM: 460 =
| 15:27:14,692 INFO [STDOUT] ************ Cookies: New: JSESSIONIDX=Xv6lOu62iJ2ex2+nX9TlZMg**
| 15:27:14,692 INFO [STDOUT] ************ Cookies: Start: 486 2836
| 15:27:14,692 INFO [STDOUT] ************ Cookies: SN: 487
| 15:27:14,692 INFO [STDOUT] ************ Cookies: DELIM: 500 =
| 15:27:14,692 INFO [STDOUT] ************ Cookies: New: JSESSIONIDSSOX=X7D1F4DAA170B31403D3994E56293C03A
| 15:27:14,692 INFO [STDOUT] ************ Cookies: Start: 534 2836
| 15:27:14,692 INFO [STDOUT] ************ Cookies: SN: 535
| 15:27:14,692 INFO [STDOUT] ************ Cookies: DELIM: 540 =
| 15:27:14,692 INFO [STDOUT] ************ Cookies: New: tokenX=X<Response xmlns=\
| 15:27:14,692 INFO [STDOUT] ************ Cookies: Start: 560 2836
| 15:27:14,692 INFO [STDOUT] ************ Cookies: SN: 560
| 15:27:14,692 INFO [STDOUT] ************ Cookies: DELIM: 598 x
| 15:27:14,692 INFO [STDOUT] ************ Cookies: New: urn:oasis:names:tc:SAML:1.0:protocol\"X=Xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\" xmlns:samlp=\"urn:oasis:names:tc:SAML:1.0:protocol\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" IssueInstant=\"2007-04-11T14:27:11.207Z\" MajorVersion=\"1\" MinorVersion=\"1\" ResponseID=\"_7922e48bab03a7ed1fbb56da51a0e188\"><Status><StatusCode Value=\"samlp:Success\"></StatusCode></Status><Assertion xmlns=\"urn:oasis:names:tc:SAML:1.0:assertion\" AssertionID=\"_e4d7d1360f820ceaf6ca4327e639b822\" IssueInstant=\"2007-04-11T14:27:11.426Z\" Issuer=\"HarpoonWebUI\" MajorVersion=\"1\" MinorVersion=\"1\"><AuthenticationStatement AuthenticationInstant=\"2007-04-11T14:27:11.207Z\" AuthenticationMethod=\"urn:oasis:names:tc:SAML:1.0:am:password\"><Subject><NameIdentifier Format=\"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified\">admin</NameIdentifier></Subject></AuthenticationStatement><AttributeStatement><Subject><NameIdentifier Format=\"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified\">admin</NameIdentifier></Subject><Attribute AttributeName=\"secret\" AttributeNamespace=\"jbosssso:secret\"><AttributeValue>99ce561dbb1f3c11a6bfbf5910800d844439d7ae02fbceec1c21e80d823009b7a1655f93384e7b7a148f7735e1135e843da328ff7f32aebec6c24373344e462b805abda1309587efef553a29dd2cf470166a5dd8c2bddb384edbfa49f6b1037a48432b5b46f57a18035f09a2ff4c7b4df95d4aba62fb17d5b808f541a665899cd50274c773c8a0e03ab661170c3a40710b4c8b3e318a89694a661581b4f61fca38ba166bf8de0d69a133fa3a7e81ade47847df7fad75268beab3b7259ffdbc6b0332b2d59053613ff099496b1c8f6ee99cbb333f1505903d9cfdd451effa28dce13aa2d03b5387c7d7c1a7580202e8161e8b9ad6c7881f655e4105f95dca0160aefce6400dd0c35aa38311c1c41b6635c00c30487782537be4d91b60a4724229a3e29f4deb1c66ca03ac4a1d3aa61efba5da366e0c36d7b5ef48966043e909754931fbf78583f4e679f04a29561b87c30ebee0a46d966fc5edf9fdcad73ce7081317d872abb6bbd749c2ea540c47838a4ebe51e36a5b9339e58822189ca22340c6b8749541235bb666ef4975729f1249a2e0403d9bc653a96777dc9f737bb65bcf03ccc2a63f24206f016f2a32f6e9cf4822d2a68ccf6227af89052c98becf2e0e05117d61f92ef41f74fd723e0e50dbb40bbab4fec9792c3a928e8f50031113e9556ac6dccfb770135250e3f9bdc5ebdeb2e943569a10b396ce88834becbcac</AttributeValue></Attribute></AttributeStatement></Assertion></Response>"
|
|
One can quite easily see why I am only getting '<Response xmlns=\'
If I tap the wire with tcpmon, I get:
| GET /sso-war-0.0.1/foo.do HTTP/1.1
| Host: d1m60q2j.my.domain:6060
| User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
| Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
| Accept-Language: en-gb,en;q=0.5
| Accept-Encoding: gzip,deflate
| Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
| Keep-Alive: 300
| Connection: keep-alive
| Cookie: JSESSIONID=v6lOu62iJ2ex2+nX9TlZMg**; JSESSIONIDSSO=7D1F4DAA170B31403D3994E56293C03A; token="<Response xmlns=\"urn:oasis:names:tc:SAML:1.0:protocol\" xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\" xmlns:samlp=\"urn:oasis:names:tc:SAML:1.0:protocol\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" IssueInstant=\"2007-04-11T14:27:11.207Z\" MajorVersion=\"1\" MinorVersion=\"1\" ResponseID=\"_7922e48bab03a7ed1fbb56da51a0e188\"><Status><StatusCode Value=\"samlp:Success\"></StatusCode></Status><Assertion xmlns=\"urn:oasis:names:tc:SAML:1.0:assertion\" AssertionID=\"_e4d7d1360f820ceaf6ca4327e639b822\" IssueInstant=\"2007-04-11T14:27:11.426Z\" Issuer=\"HarpoonWebUI\" MajorVersion=\"1\" MinorVersion=\"1\"><AuthenticationStatement AuthenticationInstant=\"2007-04-11T14:27:11.207Z\" AuthenticationMethod=\"urn:oasis:names:tc:SAML:1.0:am:password\"><Subject><NameIdentifier Format=\"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified\">admin</NameIdentifier></Subject></AuthenticationStatement><AttributeStatement><Subject><NameIdentifier Format=\"urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified\">admin</NameIdentifier></Subject><Attribute AttributeName=\"secret\" AttributeNamespace=\"jbosssso:secret\"><AttributeValue>99ce561dbb1f3c11a6bfbf5910800d844439d7ae02fbceec1c21e80d823009b7a1655f93384e7b7a148f7735e1135e843da328ff7f32aebec6c24373344e462b805abda1309587efef553a29dd2cf470166a5dd8c2bddb384edbfa49f6b1037a48432b5b46f57a18035f09a2ff4c7b4df95d4aba62fb17d5b808f541a665899cd50274c773c8a0e03ab661170c3a40710b4c8b3e318a89694a661581b4f61fca38ba166bf8de0d69a133fa3a7e81ade47847df7fad75268beab3b7259ffdbc6b0332b2d59053613ff099496b1c8f6ee99cbb333f1505903d9cfdd451effa28dce13aa2d03b5387c7d7c1a7580202e8161e8b9ad6c7881f655e4105f95dca0160aefce6400dd0c35aa38311c1c41b6635c00c30487782537be4d91b60a4724229a3e29f4deb1c66ca03ac4a1d3aa61efba5da366e0c36d7b5ef48966043e909754931fbf78583f4e679f04a29561b87c30ebee0a46d966fc5edf9fdcad73ce7081317d872abb6bbd749c2ea540c47838a4ebe51e36a5b9339e58822189ca22340c6b8749541235bb666ef4975729f1249a2e0403d9bc653a96777dc9f737bb65bcf03ccc2a63f24206f016f2a32f6e9cf4822d2a68ccf6227af89052c98becf2e0e05117d61f92ef41f74fd723e0e50dbb40bbab4fec9792c3a928e8f50031113e9556ac6dccfb770135250e3f9bdc5ebdeb2e943569a10b396ce88834becbcac</AttributeValue></Attribute></AttributeStatement></Assertion></Response>"
| Authorization: Basic YWRtaW46YWRtaW4=
|
Everything looks legit, bar the weird cookie truncation. My installation is pretty regular:
Jboss-4.0.5.GA/
Jboss-SSO-1.0.CR1/
jdk-1.5.0_08
win32
firefox 2.0.0.3
Anyone had this problem ? Has my SAML token absorbed weird formatting (i.e. CRLFs) or does Tomcat need to be tweaked ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036398#4036398
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036398
19 years
[EJB 3.0] - Problem with java.util.Map in Entity Bean
by pKraemer
Well, I'm a bit confused how to solve this problem:
I have got two tables in my database:
|
| Table1:
| -----------------------
| -- locale_text --
| -- --
| -- PK locale --
| -- PK,FK test_id --
| -- text --
| -----------------------
|
| Table2:
| -----------------------
| -- test --
| -- --
| -- PK test_id --
| -- --
| -- --
| -----------------------
|
Table locale contains text in different languages.
Now there is only one Entity Bean for table2 which inlcudes a java.util.Map locale_text. This Map is represented by table1
I tried to solve it with secondaryTable an @MapKey but it does not work
EntityBean:
| @Entity
| @Table(name="test")
| @SequenceGenerator(name = "test_sequence", sequenceName = "test_id_seq")
| @SecondaryTable(name="i18n_test",
| pkJoinColumns={
| @PrimaryKeyJoinColumn(name="t_id",referencedColumnName="t_id")
| })
| public class Test implements Serializable {
|
| private static final long serialVersionUID = -8939291842604811925L;
|
| @Id
| @Column(name="t_id")
| @GeneratedValue(strategy = GenerationType.SEQUENCE, generator =
| "test_sequence")
| private java.lang.Long id;
|
| //Here is my problem
| @Column(table="i18n_test",name="locale")
| @MapKey(name="locale")
| private Map<java.util.Locale,java.util.Locale> localizedText =
| new HashMap();
|
| ....
| }
|
Happy for any help and/or ideas
thx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036397#4036397
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036397
19 years
[JBoss Seam] - Re: Seam Security: isUserInRole() expression
by jeffconstantin
Thanks Shane,
I know this is a configuration issue, either a wrong version of a jar file for something. It should be simple but it is driving me nuts. Do you know of a working example that uses s:hasRole?
I tried s:hasRole('admin') as follows and it throws the following exception when I hit that page. Is it using the same Seam taglib or do I have to add a new taglib?
<h:selectOneMenu value="#{switcher.conversationIdOrOutcome}" rendered="#{s:hasRole('admin')}" >
|
10:13:42,030 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
| javax.faces.el.EvaluationException: Cannot get value for expression '#{s:hasRole('admin')}'
| at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
| at javax.faces.webapp.UIComponentTag.isSuppressed(UIComponentTag.java:884)
| at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:313)
| at org.apache.jsp.logon_jsp._jspx_meth_h_selectOneMenu_0(logon_jsp.java:311)
| at org.apache.jsp.logon_jsp._jspx_meth_h_form_0(logon_jsp.java:245)
| at org.apache.jsp.logon_jsp._jspx_meth_f_view_0(logon_jsp.java:152)
| at org.apache.jsp.logon_jsp._jspService(logon_jsp.java:97)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
| at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
| at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
| at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
| at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
| at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
| at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| 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.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| 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)
| Caused by: javax.faces.el.ReferenceSyntaxException: Functions not supported in expressions. Function: s:hasRole
| at org.apache.myfaces.el.ValueBindingImpl$1.resolveFunction(ValueBindingImpl.java:71)
| at org.apache.commons.el.FunctionInvocation.evaluate(FunctionInvocation.java:148)
| at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:383)
| ... 46 more
|
The documentation states that I have to use the following view-handler for this to work. If I add the component as follows to the the faces-config.xml file the pages will not load period.
<application>
| <view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
| </application>
|
|
Exception (Is this using the wrong view-handler?):
10:33:44,612 ERROR [STDERR] Apr 11, 2007 10:33:44 AM com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View[/logon.jsp]
| com.sun.facelets.FaceletException: Error Parsing /logon.jsp: Error Traced[line: 4] The content of elements must consist of well-formed character data or markup.
| at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:234)
| at com.sun.facelets.compiler.Compiler.compile(Compiler.java:105)
| at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:197)
| at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:144)
| at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:95)
| at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:496)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:546)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| 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.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| 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)
|
My Logon.jsp page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
| <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
| <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
| <%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s" %>
|
| <f:view>
| <f:loadBundle basename="messages" var="msg"/>
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
| <title><h:outputText value="#{msg.Application} #{msg.LoginTitle}"/></title>
| <style type="text/css" media="all">
| @import "style/default/screen.css";
| </style>
| </head>
| <body>
|
| <h1><h:outputText value="#{msg.Application} #{msg.Authentication}"/></h1>
|
| <h:form>
|
| <div class="rvgSwitch" rendered="#{identity.loggedIn}" >
| <h:selectOneMenu value="#{switcher.conversationIdOrOutcome}" rendered="#{s:hasRole('admin')}" >
| <f:selectItem itemLabel="#{msg.createUser}" itemValue="editEdmUsers" />
| <f:selectItem itemLabel="#{msg.createRole}" itemValue="editEdmRoles" />
| <f:selectItem itemLabel="#{msg.createUserRole}" itemValue="editEdmUserRoles" />
| <f:selectItem itemLabel="#{msg.createBoolean}" itemValue="editEdmBoolean" />
| <f:selectItem itemLabel="#{msg.createMaster}" itemValue="editEdmMaster" />
| <f:selectItem itemLabel="#{msg.createColor}" itemValue="editEdmColors" />
| <f:selectItem itemLabel="#{msg.createCar}" itemValue="editEdmCars" />
| <f:selectItem itemLabel="#{msg.findUser}" itemValue="findEdmUsers" />
| <f:selectItem itemLabel="#{msg.findRole}" itemValue="findEdmRoles" />
| <f:selectItem itemLabel="#{msg.findUserRole}" itemValue="findEdmUserRoles" />
| <f:selectItem itemLabel="#{msg.findBoolean}" itemValue="findEdmBoolean" />
| <f:selectItem itemLabel="#{msg.findMaster}" itemValue="findEdmMaster" />
| <f:selectItem itemLabel="#{msg.findColor}" itemValue="findEdmColors" />
| <f:selectItem itemLabel="#{msg.findCar}" itemValue="findEdmCars" />
| <f:selectItems value="#{switcher.selectItems}"/>
| </h:selectOneMenu>
| <h:selectOneMenu value="#{switcher.conversationIdOrOutcome}" rendered="#{not s:hasRole('admin')}" >
| <f:selectItem itemLabel="#{msg.createMaster}" itemValue="editEdmMaster" />
| <f:selectItem itemLabel="#{msg.findMaster}" itemValue="findEdmMaster" />
| <f:selectItems value="#{switcher.selectItems}"/>
| </h:selectOneMenu>
| <h:commandButton action="#{switcher.select}" value="Switch" rendered="#{identity.loggedIn}"/>
| </div>
|
| <div class="rvgFind" >
| <fieldset class="rvgFieldSet" >
| <legend><h:outputText value="#{msg.Authentication} Form"/></legend>
|
| <span class="rvgInputs">
| <h:outputLabel value="#{msg.Username}" for="username">
| <h:inputText value="#{identity.username}" id="username"/>
| </h:outputLabel>
| <h:outputLabel value="#{msg.Password}" for="password">
| <h:inputSecret redisplay="false" value="#{identity.password}" id="password"/>
| </h:outputLabel>
| </span>
|
| <span class="rvgActions">
| <h:commandButton type="submit" value="#{msg.Login}" action="#{identity.login}" rendered="#{not identity.loggedIn}"/>
| <h:commandButton type="submit" value="#{msg.Logout}" action="#{identity.logout}" rendered="#{identity.loggedIn}"/>
| </span>
|
| </fieldset>
| </div>
|
| </h:form>
|
| </body>
| </f:view>
| </html>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036394#4036394
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036394
19 years