[JBoss JIRA] (JBSEAM-4975) Seam-gen generated project entityManager problem
by Tomas Remes (JIRA)
Tomas Remes created JBSEAM-4975:
-----------------------------------
Summary: Seam-gen generated project entityManager problem
Key: JBSEAM-4975
URL: https://issues.jboss.org/browse/JBSEAM-4975
Project: Seam 2
Issue Type: Bug
Components: Tools
Affects Versions: 2.3.0.CR1
Reporter: Tomas Remes
When you generate Seam project in Seam-gen, it will create build.xml inside your new project. In this build.xml file there is handled "puJndiName" variable, which is then referenced in components.xml. The problem is that this variable is not set properly, because it depends on value of variable "seamBootstrapsPu" and this variable is assigned based on availability of ${jboss.home}/lib/jboss-vfs.jar file, which does not exist in AS7.
So the problem is this line (69) in build.xml:
{noformat}
<available file="${jboss.home}/lib/jboss-vfs.jar"/>
{noformat}
When the entityManager could'nt be found, following exception occurs:
{noformat}
Caused by: javax.naming.NameNotFoundException: entityManager -- service jboss.naming.context.java.entityManager
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:97)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:119)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:214)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jboss.seam.persistence.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:257)
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (JBSEAM-4960) seam-gen project classpath not updated
by Tomas Remes (JIRA)
Tomas Remes created JBSEAM-4960:
-----------------------------------
Summary: seam-gen project classpath not updated
Key: JBSEAM-4960
URL: https://issues.jboss.org/browse/JBSEAM-4960
Project: Seam 2
Issue Type: Bug
Components: Tools
Affects Versions: 2.3.0.BETA2
Reporter: Tomas Remes
Fix For: 2.3.0.CR1
Project generated by seam-gen does not have updated classpath entries thus there are following errors after importing project to JBDS/JBT:
{noformat}
Project 'myproject' is missing required library: 'bootstrap'
Project 'myproject' is missing required library: 'lib/core.jar'
Project 'myproject' is missing required library: 'lib/ejb-api.jar'
Project 'myproject' is missing required library: 'lib/hibernate-annotations.jar'
Project 'myproject' is missing required library: 'lib/hibernate-search.jar'
Project 'myproject' is missing required library: 'lib/janino.jar'
Project 'myproject' is missing required library: 'lib/jboss-embedded-api.jar'
Project 'myproject' is missing required library: 'lib/jsf-api.jar'
Project 'myproject' is missing required library: 'lib/jsf-facelets.jar'
Project 'myproject' is missing required library: 'lib/persistence-api.jar'
Project 'myproject' is missing required library: 'lib/richfaces-api.jar'
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (JBSEAM-4940) @CaptchaResponse throws javax.validation exception
by Andrea Martino (JIRA)
Andrea Martino created JBSEAM-4940:
--------------------------------------
Summary: @CaptchaResponse throws javax.validation exception
Key: JBSEAM-4940
URL: https://issues.jboss.org/browse/JBSEAM-4940
Project: Seam 2
Issue Type: Bug
Components: Core, Framework
Affects Versions: 2.3.0.BETA1
Environment: JBOSS 7.1 AS + JSF2 + RichFaces 4.2
Reporter: Andrea Martino
When the JSF login page sets the captcha value in the "org.jboss.seam.captcha.captcha" component, a "contains Constraint annotation, but does not contain a groups parameter" exception is thrown.
Create a new customized "captcha" as following:
{code:title=MyCaptcha.java|borderStyle=solid}
@Name("myCaptcha")
public class MyCaptcha extends org.jboss.seam.captcha.Captcha {
private String myResponse;
@org.jboss.seam.captcha.CaptchaResponse
public String getMyResponse{
return myResponse;
}
public void setMyResponse(String myResponse) {
this.myResponse = myResponse;
}
}
{code}
Just create a JSF page and set the "myResponse" field annotated with "CaptchaResponse" in the above component:
{code:xml}
<h:form>
<h:inputText value="#{myCaptcha.myResponse}" size="5"/>
<h:commandButton action="#{myLogin.login}" value="Login" />
</h:form>
{code}
The above code works in Seam 2.2.x, but throws a javax.validation exception complaining about missing "group" in Seam 2.3.0.Beta1 ("contains Constraint annotation, but does not contain a groups parameter").
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months
[JBoss JIRA] (JBSEAM-4918) Cannot deploy Seam project generated in JBDS - other problems
by Tomas Remes (JIRA)
Tomas Remes created JBSEAM-4918:
-----------------------------------
Summary: Cannot deploy Seam project generated in JBDS - other problems
Key: JBSEAM-4918
URL: https://issues.jboss.org/browse/JBSEAM-4918
Project: Seam 2
Issue Type: Bug
Affects Versions: 2.3.0.BETA1
Environment: JBDS 5.0 Beta1, Seam 2.3.0.Beta1, JBoss AS7.1.0.Final
Reporter: Tomas Remes
Fix For: 2.3.0.BETA2
There are some next following problems when trying to deploy Seam project war generated in JBDS. First is the war missing WEB-INF/lib/dom4j.jar, which produces java.lang.ClassNotFoundException: org.dom4j.DocumentException. Second is that there probably shouldn't be any com.sun.facelets.FaceletViewHandler configuration in faces-config.xml, because it causes java.lang.ClassNotFoundException: com.sun.facelets.FaceletViewHandler.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 3 months