Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
02. Sep 2008, 23:30 CET | Link

Hello,
I'm trying to run the first Seam example (http://docs.jboss.com/seam/latest/reference/en-US/html/tutorial.html). We have a full setup JBoss application server for our company. It uses Hibernate, EJB3 and JSP. I now want to move on and develop some parts of the site with the wonderfull JSF and Seam framework. I added the java files, and edited the configuration files to get example 1 working. However, when I visit register.seam and fill in the fields, this error occurs:


javax.el.PropertyNotFoundException: /test/seam/register.xhtml @17,84 value="#{user.username}": Target Unreachable, identifier 'user' resolved to null
        at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
        at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
        at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
        at javax.faces.component.UIInput.validate(UIInput.java:860)
        at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
        at javax.faces.component.UIInput.processValidators(UIInput.java:666)
        at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
        at javax.faces.component.UIForm.processValidators(UIForm.java:229)
        at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
        at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
        at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
        at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
        at org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:445)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
        at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
        at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:381)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:595)

The configuration files are just like in the example. How can I found out why user is not mapped to a User object?

Any hints on this issue are very welcome,

3 Replies:
03. Sep 2008, 01:08 CET | Link

Did you put


@Name("user")
@Scope(SESSION)
@Table(name="users")

like it mentioned?

 
Dan Hinojosa Seam :: Groovy :: Swing Developer/Consultant/Instructor Albuquerque, NM
05. Sep 2008, 21:05 CET | Link
No, tablename = test.users. And also I did not use the persistence.xml since we already have one up and running. But the name annoation is still the same obviously.

Any clues?
05. Sep 2008, 22:33 CET | Link
I just did all the packaging like explained here: http://docs.jboss.com/seam/latest/reference/en-US/html/configuration.html

But now I still get the error :'(

This is the log:

2008-09-05 22:31:34,632 DEBUG [org.jboss.seam.Component] seam component not found: user
2008-09-05 22:31:34,632 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.core.user
2008-09-05 22:31:34,632 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.transaction.user
2008-09-05 22:31:34,632 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.framework.user
2008-09-05 22:31:34,632 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.web.user
2008-09-05 22:31:34,633 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.faces.user
2008-09-05 22:31:34,633 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.international.user
2008-09-05 22:31:34,633 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.theme.user
2008-09-05 22:31:34,633 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.pageflow.user
2008-09-05 22:31:34,633 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.bpm.user
2008-09-05 22:31:34,633 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.jms.user
2008-09-05 22:31:34,633 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.mail.user
2008-09-05 22:31:34,633 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.security.user
2008-09-05 22:31:34,633 DEBUG [org.jboss.seam.Component] seam component not found: org.jboss.seam.captcha.user
2008-09-05 22:31:34,638 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@76c5faf5, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@5aa370c7{ url=null ,addedOrder=0}
2008-09-05 22:31:34,638 WARN [javax.enterprise.resource.webcontainer.jsf.lifecycle] /test/seam/register.xhtml @17,84 value="#{user.username}": Target Unreachable, identifier 'user' resolved to null
javax.el.PropertyNotFoundException: /test/seam/register.xhtml @17,84 value="#{user.username}": Target Unreachable, identifier 'user' resolved to null