[jboss-user] [JBoss Seam] - Re: Force method to be run before page redirect (no pages.xm

2008-02-01 Thread w17chm4n
Nowhere, it`s lazy fatched from the database.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125519#4125519

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125519
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Force method to be run before page redirect (no pages.xm

2008-01-28 Thread w17chm4n
Using interceptor didn`t help :|


  | @Interceptor
  | public class QuestionRemovedInterceptor {
  | 
  | @AroundInvoke
  | public Object aroundInvoke(InvocationContext invocation) throws 
Exception {
  | Contexts.removeFromAllContexts("questionCategoryList");
  | return invocation.proceed();
  | }
  | }
  | 


  | @Target(ElementType.TYPE)
  | @Retention(RetentionPolicy.RUNTIME)
  | @Interceptors(QuestionRemovedInterceptor.class)
  | public @interface QuestionRemoved {}
  | 

Logs look almost allright (doubled reciving questionCategoryList, but this is 
because the questionCategoryController is stateless)


  | 09:00:15,046 INFO  [QuestionCategoryManagerBean] Reciving QuestionCategory 
list
  | 09:00:15,118 INFO  [QuestionCategoryManagerBean] Reciving QuestionCategory 
list
  | 09:00:15,312 INFO  [QuestionManagerBean] Removing question [afgdfgsdfg]
  | 09:00:15,362 INFO  [QuestionCategoryManagerBean] Reciving QuestionCategory 
list
  | 09:00:15,429 INFO  [QuestionCategoryManagerBean] Reciving QuestionCategory 
list
  | 

I`ve also tryed to change annotation type to method


  | @Target(ElementType.METHOD)
  | @Retention(RetentionPolicy.RUNTIME)
  | @Interceptors(QuestionRemovedInterceptor.class)
  | public @interface QuestionRemoved {}
  | 

and than use it on removeQuestion


  | @QuestionRemoved
  | public void removeQuestion(Question question) {
  | 
if(question.getQuestionType().getId().equals(questionTypeManager.getQuestionTypeByName(propertiesManager.get("questiontype.input")).getId()))
 {
  | questionManager.removeQuestion(question);
  | } else {
  | answerManager.removeAnswers(question.getAnswers());
  | questionManager.removeQuestion(question);
  | }
  | }
  | 

But that didn`t work either. Any other ideas?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123941#4123941

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123941
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Force method to be run before page redirect (no pages.xml!)

2008-01-24 Thread w17chm4n
Hi again ;)

I have another problem with seam. Is there a way to force seam to run some 
method before it redirects to the page ? And is it possible that seam is 
cache`ing lists used as datamodels ?

If you are a bit confussed, let me explain.

Here I have my view

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

As U can see it uses questionCategoryList generated by the bean below.


  | @Stateless
  | @Name("QuestionCategoryController")
  | public class QuestionCategoryControllerBean implements 
QuestionCategoryController {
  | 
  | @Logger
  | private Log log;
  | 
  | @In(create = true)
  | private QuestionCategoryManager questionCategoryManager;
  | 
  | @In(create = true)
  | private QuestionCategory questionCategory;
  | 
  | @DataModel
  | private List questionCategoryList;
  | 
  | @In(required = true)
  | private FieldValidator fieldValidator;
  | 
  | public void addCategory() {
  | 
if(fieldValidator.validate(questionCategory,"addCategoryForm","categoryName")) {
  | questionCategoryManager.addCategory(this.questionCategory);
  | this.questionCategory = null;
  | this.questionCategoryList = null;
  | }
  | }
  | 
  | @SuppressWarnings("unchecked")
  | public void removeSelectedCategories() {
  | QuestionCategory qc;
  | Iterator it = questionCategoryList.iterator();
  | 
  | while(it.hasNext()) {
  | qc = (QuestionCategory) it.next();
  | 
  | if(qc.isSelected()) {
  | questionCategoryManager.removeCategory(qc);
  | }
  | }
  | 
  | this.questionCategoryList = null;
  | }
  | 
  | public void removeCategory(QuestionCategory questionCategory) {
  | questionCategoryManager.removeCategory(questionCategory);
  | this.questionCategory = null;
  | this.questionCategoryList = null;
  | }
  | 
  | public QuestionCategory getQuestionCategory() {
  | return questionCategory;
  | }
  | 
  | public void setQuestionCategory(QuestionCategory questionCategory) {
  | this.questionCategory = questionCategory;
  | }
  | 
  | @Factory("questionCategoryList")
  | public void createQuestionCategoryList() {
  | this.questionCategoryList = 
this.questionCategoryManager.getAllQuestionCategories();
  | }
  | 
  | @Remove
  | public void destroy() {
  | }
  | }
  | 

Well the view works, and it renders ok, but the problem is when I want to 
remove a question from the category by running 
#{QuestionController.removeQuestion(question)} from the view.

The question is removed from the database, but when the page reloads, it`s 
still in the list !

I`m removing question by using another bean

  | @Stateless
  | @Name("questionManager")
  | public class QuestionManagerBean implements QuestionManager {
  | 
  | @Logger
  | Log log;
  | 
  | @In
  | private EntityManager entityManager;
  | 
  | public void addQuestion(Question question) {
  | question.setCreated(new Date());
  | entityManager.persist(question);
  | log.info("Question successfully persisted. [" + 
question.getQuestionText() + "]");
  | }
  | 
  | public void removeQuestion(Question question) {
  | log.info("Removing question [" + question.getQuestionText() + "]");
  | entityManager.flush();
  | entityManager.remove(entityManager.merge(question));
  | }
  | 
  | public Question getQuestion(Question question) {
  | return null;
  | }
  | 
  | @SuppressWarnings("unchecked")
  | public List getAllQuestions() {
  | return entityManager.createQuery("from Question q").getResultList();
  | }
  | 
  | @Remove 
  | public void destroy() {}
  | 
  | }
  | 

After putting some breakepoints and running this metod from view I found this:

  | 17:04:36,893 INFO  [QuestionCategoryManagerBean] Reciving QuestionCategory 
list
  | 17:04:37,494 INFO  [QuestionManagerBean] Removing question [hdfghdfghf]
  | 

As far as I`m concerned, as the questionCategoryList is generated by a 
stateless bean, the list has to be recived from the database everytime my code 
recals to it. So as I want to remove question from some category, seam needs to 
get current list from the database, then lazy-fetch the question, inject it to 
the metod, and pass to  the removeQuestion method in the questionManagerBean. 
It`s allright, but why Seam isn`t refreshing the list after the question is 
removed ? I mean that even though question is removed form the database, th

[jboss-user] [JBoss Seam] - Re: s:link + method parameter

2008-01-16 Thread w17chm4n
Yes. The table is displayed properly with question.questionText for every 
question.

But when I try to click link

The parameter question is not passed to the method.

Though using commandLink works perfectly

  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120367#4120367

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120367
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - s:link + method parameter

2008-01-16 Thread w17chm4n
I`m having a problem, couse I have to use s:link but this component cannot pass 
the parameter to the method.

The view

  | 
  | 
  | 
  | 
  | 
  |   
  
  | 
  | 
  | 
  | 
  | 
  | 

The method

  | public void removeQuestion(Question question) {
  | if(question == null) {
  | log.fatal("Question is null ! [ERROR]");
  | } else {
  | log.info("Question [" + question.getQuestionText() + "]");
  |}
  | }
  | 

Error

  | 11:09:18,250 INFO  [QuestionControllerBean] Question [null]
  | 

Question Entity

  | @Entity
  | @Scope(ScopeType.CONVERSATION)
  | @Name("question")
  | @Table(name="Questions")
  | public class Question implements Serializable {
  | 
  | @Id @GeneratedValue
  | private Long id;
  | 
  | @NotNull @Length(min=5, max=100)
  | private String questionText;
  | 
  | @NotNull @OneToOne
  | private QuestionType questionType;
  | 
  | @ManyToOne
  | private QuestionCategory category;
  | 
  | @OneToOne
  | private Picture picture;
  | 
  | @NotNull
  | private int questionValue;
  | 
  | @NotNull @Temporal(value = TemporalType.TIMESTAMP)
  | private Date created;
  | 
  | //@OneToMany(cascade = {CascadeType.REMOVE, CascadeType.MERGE, 
CascadeType.REFRESH})
  | @OneToMany
  | private List answers;
  | 
  | @ManyToMany
  | private List pools;
  | 
  | @ManyToMany
  | private List tests;
  | .
  | .
  | .
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120358#4120358

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120358
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-12-30 Thread w17chm4n
As far as I know there aren`t. Though it`s possible that I will create such 
example when I get back to work from my holidays, so stay tunned.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116119#4116119

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116119
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Why do I need to use entityManager.flush() ?

2007-12-07 Thread w17chm4n
@Stateful
  | @Scope(ScopeType.APPLICATION)
  | @Name("questionTypeManager")
  | public class QuestionTypeManagerBean implements QuestionTypeManager {
  | 
  | @Logger
  | Log log;
  | 
  | @In
  | EntityManager entityManager;
  | 
  | public void addQuestionType(String questionType) {
  | entityManager.persist(new QuestionType(questionType));
  | entityManager.flush();
  | log.info("Successfuly persisted question type");
  | }
  | 
  | public QuestionType getQuestionTypeByName(String questionTypeName) {
  | return (QuestionType)entityManager.createQuery("from QuestionType q 
where q.questionType = '" + questionTypeName + "'").getSingleResult();
  | }
  | 
  | public List getAllQuestionTypes() {
  | return entityManager.createQuery("from QuestionType 
qt").getResultList();
  | }
  | 
  | @Remove @Destroy
  | public void destroy() {}
  | 
  | }

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=493#493

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=493
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Why do I need to use entityManager.flush() ?

2007-12-07 Thread w17chm4n
Why do I need to use flush() when using SMPC ?

Before I had this

  | @Stateful
  | @Scope(ScopeType.APPLICATION)
  | @Name("questionTypeManager")
  | public class QuestionTypeManagerBean implements QuestionTypeManager {
  | 
  | @Logger
  | Log log;
  | 
  | @PersistenceContext
  | EntityManager entityManager;
  | 
  | public void addQuestionType(String questionType) {
  | entityManager.persist(new QuestionType(questionType));
  | log.info("Successfuly persisted question type");
  | }
  | 
  | @Remove @Destroy
  | public void destroy() {}
  | 
  | }
  | 

But when I`ve switched to SMPC I had to add entityManager.flush() couse 
entityManager didn`t persist QuestionType to the database. It didn`t show any 
errors either.

Why is that ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=468#468

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=468
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: SMPC - entityManager doesn`t get autocreated

2007-12-05 Thread w17chm4n
Thx ! It work`s now perfectly :]

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110745#4110745

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110745
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - SMPC - entityManager doesn`t get autocreated

2007-12-05 Thread w17chm4n
First, what I get:

@In attribute requires non-null value: questionCategoryManager.entityManager

Second, my configuration (should be allright)

components.xml

  | 
  | true
  | true
  | Inquisitor/#{ejbName}/local
  | 
  | 
  | 
  | true
  | 100
  | 
  | 
  | 
  | 

persistence.xml


  | 
  |   
  | java:/InquisitorDS
  | 
  |   
  |   
  | 
  |   
  | 
  | 

So, why this doesn`t work ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110471#4110471

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110471
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: SMPC - entityManager doesn`t get autocreated

2007-12-05 Thread w17chm4n
Oh and questionCategoryManager code

  | @Stateful
  | @Scope(ScopeType.APPLICATION)
  | @Name("questionCategoryManager")
  | public class QuestionCategoryManagerBean implements QuestionCategoryManager 
{
  | 
  | @Logger
  | Log log;
  | 
  | @In
  | private EntityManager entityManager;
  | 
  | public void addCategory(QuestionCategory category) {
  | log.info("Persiting category ["+category.getCategoryName()+"]");
  | category.setCreated(new Date());
  | entityManager.persist(category);
  | }
  | 
  | public void removeCategory(QuestionCategory category) {
  | log.info("Removing category ["+category.getCategoryName()+"]");
  | entityManager.remove(category);
  | }
  | 
  | public List getAllQuestionCategories() {
  | log.info("Reciving QuestionCategory list");
  | return entityManager.createQuery("from QuestionCategory qc order by 
qc.created").getResultList();
  | }
  | 
  | @Destroy @Remove
  | public void destroy() {
  | }
  | }

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110473#4110473

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110473
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-29 Thread w17chm4n
I haven`t used it, but I can check it out.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108838#4108838

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108838
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: selectOneMenu - NPE

2007-11-20 Thread w17chm4n
anybody ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106621#4106621

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106621
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: selectOneMenu - NPE

2007-11-19 Thread w17chm4n

  | @Stateful
  | @Scope(ScopeType.SESSION)
  | @Name("QuestionCategoryController")
  | public class QuestionCategoryControllerBean implements 
QuestionCategoryController {
  | 
  | @Logger
  | private Log log;
  | 
  | @In(create = true)
  | private QuestionCategoryManager questionCategoryManager;
  | 
  | @DataModel
  | private List questionCategoryList;
  | 
  | @In(create = true)
  | @DataModelSelection
  | private QuestionCategory questionCategory;
  | 
  | public void addCategory() {
  | log.info("Adding category [#{questionCategory.categoryName}]");
  | questionCategoryManager.addCategory(questionCategory);
  | getAllQuestionsCategories();
  | }
  | 
  | public void removeCategory() {
  | questionCategoryList.remove(questionCategory);
  | questionCategoryManager.removeCategory(questionCategory);
  | questionCategory = null;
  | getAllQuestionsCategories();
  | }
  | 
  | @Factory(value="questionCategoryList")
  | public void getAllQuestionsCategories() {
  | questionCategoryList = 
questionCategoryManager.getAllQuestionCategories();
  | }
  | 
  | @Remove @Destroy
  | public void destroy() {}
  | }
  | 

Session context

  |  QuestionCategoryController
  | QuestionController
  | facelets.ui.DebugOutput
  | javax.faces.request.charset
  | org.jboss.seam.core.conversationEntries
  | org.jboss.seam.international.localeSelector
  | org.jboss.seam.international.timeZoneSelector
  | org.jboss.seam.security.identity
  | org.jboss.seam.web.session
  | questionCategoryList
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106251#4106251

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106251
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: selectOneMenu - NPE

2007-11-19 Thread w17chm4n
@Pete
Seam 2.0.0.GA

@Marius
Yes I`m sure that questionCategoryList is outjected. Anyway, this code works on 
Seam 1.2.1.GA...

questionCategory entity

  | @Entity
  | @Scope(ScopeType.EVENT)
  | @Name("questionCategory")
  | @Table(name="QuestionCategories")
  | public class QuestionCategory implements Serializable {
  | 
  | @Id @GeneratedValue
  | private Long id;
  | 
  | @NotNull @Length(min=3, max=100)
  | private String categoryName;
  | 
  | @OneToMany @JoinColumn(name="category_id")
  | private List questionList;
  | 
  | @Temporal(value = TemporalType.TIMESTAMP)
  | private Date created;
  | 
  | @Override
  | public boolean equals(Object obj) {
  | if (!(obj instanceof QuestionCategory) || this.id == null) {
  | return false;
  | }
  | 
  | return this.id.equals(((QuestionCategory)obj).getId());
  | }
  | 
  | public QuestionCategory() {
  | this.questionList = new ArrayList();
  | }
  | 
  | public QuestionCategory(String categoryName) {
  | this.categoryName = categoryName;
  | this.questionList = new ArrayList();
  | }
  | 
  | public Long getId() {
  | return id;
  | }
  | 
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | public String getCategoryName() {
  | return categoryName;
  | }
  | 
  | public void setCategoryName(String categoryName) {
  | this.categoryName = categoryName;
  | }
  | 
  | public List getQuestionList() {
  | return questionList;
  | }
  | 
  | public void setQuestionList(List questionList) {
  | this.questionList = questionList;
  | }
  | 
  | public Date getCreated() {
  | return created;
  | }
  | 
  | public void setCreated(Date created) {
  | this.created = created;
  | }
  | }
  | 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105963#4105963

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105963
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: selectOneMenu - NPE

2007-11-19 Thread w17chm4n
Exception


  | 10:40:36,766 ERROR [STDERR] Nov 19, 2007 10:40:36 AM 
com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/question.xhtml]
  | java.lang.NullPointerException
  | at 
org.jboss.seam.ui.converter.EntityConverterStore.getEntityManager(EntityConverterStore.java:81)
  | at 
org.jboss.seam.ui.converter.EntityConverterStore.put(EntityConverterStore.java:60)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | at 
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | at 
org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
  | at org.jboss.seam.util.Work.workInTransaction(Work.java:40)
  | at 
org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | at 
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  | at 
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
  | at 
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
  | at 
org.jboss.seam.ui.converter.EntityConverterStore_$$_javassist_0.put(EntityConverterStore_$$_javassist_0.java)
  | at 
org.jboss.seam.ui.converter.EntityConverter.getAsString(EntityConverter.java:67)
  | at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getFormattedValue(HtmlBasicRenderer.java:469)
  | at 
com.sun.faces.renderkit.html_basic.MenuRenderer.renderOption(MenuRenderer.java:502)
  | at 
com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:757)
  | at 
com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:811)
  | at 
com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:335)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
  | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
  | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterCha

[jboss-user] [JBoss Seam] - selectOneMenu - NPE

2007-11-19 Thread w17chm4n
I`m getting NPE when using selectOneMenu, why is that ?

view

  | 
  | 
  | 
  | 
  | 

components.xml

  | http://jboss.com/products/seam/components";
  | xmlns:core="http://jboss.com/products/seam/core";
  | xmlns:security="http://jboss.com/products/seam/security";
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation=
  | "http://jboss.com/products/seam/core 
http://jboss.com/products/seam/core-1.2.xsd
  | http://jboss.com/products/seam/security 
http://jboss.com/products/seam/security-1.2.xsd
  | http://jboss.com/products/seam/components 
http://jboss.com/products/seam/components-1.2.xsd";>
  | 
  | 
  | true
  | true
  | Inquisitor/#{ejbName}/local
  | 
  | 
  | 
  | true
  | 100
  | 
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105938#4105938

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105938
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-19 Thread w17chm4n
bmc you were right, that really was the problem. Thanks !

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105910#4105910

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105910
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-15 Thread w17chm4n
Sure as soon as I get back to work on monday :]

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105226#4105226

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105226
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-15 Thread w17chm4n
Yes I have.

As I said in my last post, my application builds, deploys and runs smoothly 
when using Seam 1.2.1. 

Everything changes when I make pom modifications (building app with maven) to 
use Seam 2.0.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105188#4105188

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105188
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-15 Thread w17chm4n
Components build in Seam, yes. Every Seam component which I create - no.

What is strange is that everythings loads correctly on 1.2.1.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105072#4105072

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105072
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: convertEnum - ClassCastException

2007-11-15 Thread w17chm4n
After using entity converter I get this:


  | 13:02:53,268 INFO  [lifecycle] WARNING: FacesMessage(s) have been enqueued, 
but may not have been displayed.
  | sourceId=j_id2:j_id4:1:j_id8[severity=(ERROR 2), summary=(Conversion Error 
setting value '2' for '${pollQuestionsList}'. ), detail=(Conversion Error 
setting value '2' for '${pollQuestionsList}'. )]
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104969#4104969

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104969
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - convertEnum - ClassCastException

2007-11-15 Thread w17chm4n
Can anybody tell me why I`m getting this:


  | java.lang.ClassCastException: com.blstream.inquisitor.ejb3.entities.Question

I`m trying to make checkManyCheckbox working

View

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

PollController

  | @Stateful
  | @Scope(ScopeType.SESSION)
  | @Name("PollController")
  | public class PollControllerBean implements PollController {
  | 
  | @Logger
  | Log log;
  | 
  | @In(create = true)
  | private Poll poll;
  | 
  | @In(required = false)
  | private List pollQuestionsList;
  | 
  | public PollControllerBean() {
  | }
  | 
  | public void addPoll() {
  | log.info(pollQuestionsList.toString());
  | }
  | 
  | public void removePoll() {
  | }
  | 
  | @Remove @Destroy
  | public void destroy() {}
  | }
  | 

Question entity

  | @Entity
  | @Scope(ScopeType.CONVERSATION)
  | @Name("question")
  | @Table(name="Questions")
  | public class Question implements Serializable {
  | 
  | @Id @GeneratedValue
  | private Long id;
  | 
  | @NotNull @Length(min=5, max=100)
  | private String question;
  | 
  | @NotNull @OneToOne
  | private QuestionType questionType;
  | 
  | @ManyToOne
  | private QuestionCategory category;
  | 
  | @OneToOne
  | private Picture picture;
  | 
  | @NotNull
  | private int questionValue;
  | 
  | @NotNull @Temporal(value = TemporalType.TIMESTAMP)
  | private Date created;
  | 
  | @OneToMany
  | private List answers;
  | 
  | @ManyToMany
  | private List pools;
  | 
  | @ManyToMany
  | private List tests;
  | 
  | @Override
  | public boolean equals(Object obj) {
  | if (!(obj instanceof QuestionCategory) || this.id == null) {
  | return false;
  | }
  | 
  | return this.id.equals(((QuestionCategory)obj).getId());
  | }
  | 
  | public Question() {
  | }
  | 
  | public Question(String question, QuestionCategory category) {
  | this.question = question;
  | this.category = category;
  | this.questionValue = 0;
  | }
  | 
  | public Question(String question, QuestionCategory category, int 
questionValue) {
  | this.question = question;
  | this.category = category;
  | this.questionValue = questionValue;
  | }
  | 
  | public Long getId() {
  | return id;
  | }
  | 
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | public String getQuestion() {
  | return question;
  | }
  | 
  | public void setQuestion(String question) {
  | this.question = question;
  | }
  | 
  | public QuestionCategory getCategory() {
  | return category;
  | }
  | 
  | public void setCategory(QuestionCategory category) {
  | this.category = category;
  | }
  | 
  | public int getQuestionValue() {
  | return questionValue;
  | }
  | 
  | public void setQuestionValue(int questionValue) {
  | this.questionValue = questionValue;
  | }
  | 
  | public List getPools() {
  | return pools;
  | }
  | 
  | public void setPools(List pools) {
  | this.pools = pools;
  | }
  | 
  | public List getTests() {
  | return tests;
  | }
  | 
  | public void setTests(List tests) {
  | this.tests = tests;
  | }
  | 
  | public Date getCreated() {
  | return created;
  | }
  | 
  | public void setCreated(Date created) {
  | this.created = created;
  | }
  | 
  | public Picture getPicture() {
  | return picture;
  | }
  | 
  | public void setPicture(Picture picture) {
  | this.picture = picture;
  | }
  | 
  | public QuestionType getQuestionType() {
  | return questionType;
  | }
  | 
  | public void setQuestionType(QuestionType questionType) {
  | this.questionType = questionType;
  | }
  | 
  | public List getAnswers() {
  | return answers;
  | }
  | 
  | public void setAnswers(List answers) {
  | this.answers = answers;
  | }
  | 
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104934#4104934

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104934
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-14 Thread w17chm4n
Is it important in what package in the jar i keep my components ? 

ex. ejb3/src/main/java/actions or ejb3/src/main/java/com/mycompany/sth/crap/ ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104488#4104488

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104488
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-14 Thread w17chm4n
I`ve doublechecked everything and it seems to be allright. Seam.properties is 
where it should be, jndi name is allso correct.

jmx-console

  | +- Inquisitor (class: org.jnp.interfaces.NamingContext)
  |   |   +- PollManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy205 implements interface 
com.blstream.inquisitor.ejb3.interfaces.PollManager,interface 
org.jboss.ejb3.JBossProxy)
  |   |   +- EjbSynchronizations (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  |   |   +- UploadManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy202 implements interface 
com.blstream.inquisitor.ejb3.interfaces.UploadManager,interface 
org.jboss.ejb3.JBossProxy)
  |   |   +- OutcomeManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy190 implements interface 
com.blstream.inquisitor.ejb3.interfaces.OutcomeManager,interface 
org.jboss.ejb3.JBossProxy)
  |   |   +- QuestionTypeManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  |   |   +- QuestionCategoryControllerBean (class: 
org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  |   |   +- PropertiesManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  |   |   +- TestManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy208 implements interface 
com.blstream.inquisitor.ejb3.interfaces.TestManager,interface 
org.jboss.ejb3.JBossProxy)
  |   |   +- GroupManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy197 implements interface 
com.blstream.inquisitor.ejb3.interfaces.GroupManager,interface 
org.jboss.ejb3.JBossProxy)
  |   |   +- AnswerControllerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  |   |   +- QuestionControllerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  |   |   +- QuestionCategoryManagerBean (class: 
org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  |   |   +- QuestionManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  |   |   +- UserManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy194 implements interface 
com.blstream.inquisitor.ejb3.interfaces.UserManager,interface 
org.jboss.ejb3.JBossProxy)
  |   |   +- AnswerManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  |   |   +- TimerServiceDispatcher (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- local (proxy: $Proxy215 implements interface 
org.jboss.seam.async.LocalTimerServiceDispatcher,interface 
org.jboss.ejb3.JBossProxy)
  |   |   +- PictureManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- localStatefulProxyFactory (class: 
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
  |   |   |   +- local (class: java.lang.Object)
  | 

But still, Seam doesn`t see any components which I`ve created ;/

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104424#4104424

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104424
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-13 Thread w17chm4n
I`ve managed to deal with building Seam 2.0 application without exclusions.

main project pom

  | 
  | http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
  |   4.0.0
  |   com.blstream.inquisitor
  |   Inquisitor
  |   pom
  |   1.0-SNAPSHOT
  |   Inquisitor
  |   
  | 
  |   JBossMaven2Repository
  |   JBoss Maven2 Repository
  |   http://repository.jboss.com/maven2
  | 
  |   
  |   
  | 
  |   
  | org.jboss.seam
  | jboss-seam
  | 2.0.0.GA
  |   
  | 
  |   
  |   
  | 
  |   
  | maven-compiler-plugin
  | 
  |   ear/target/Inquisitor.ear
  |   1.5
  |   1.5
  | 
  |   
  | 
  |   
  |   
  | webapp
  | ejb3
  | ear
  |   
  | 
  | 

war

  | 
  | 
  | Inquisitor
  | com.blstream.inquisitor
  | 1.0-SNAPSHOT
  | 
  | 4.0.0
  | com.blstream.inquisitor
  | webapp
  | war
  | Inquisitor::${artifactId}
  | ${pom.parent.version}
  | 
  | webapp
  | 
  | 
  | 
  | JBossMaven2Repository
  | JBoss Maven2 Repository
  | http://repository.jboss.com/maven2
  | 
  | 
  | 
  | 
  | junit
  | junit
  | 3.8.1
  | test
  | 
  | 
  | org.jboss.seam
  | jboss-seam-debug
  | 2.0.0.GA
  | 
  | 
  | org.jboss.seam
  | jboss-seam-ui
  | 2.0.0.GA
  | 
  | 
  | org.jboss.seam
  | jboss-el
  | 2.0.0.GA
  | provided
  | 
  | 
  | javax.el
  | el-api
  | 1.0
  | provided
  | 
  | 
  | javax.faces
  | jsf-api
  | 1.2_04-p02
  | provided
  | 
  | 
  | 
  | 

EJB

  | 
  | 
  | Inquisitor
  | com.blstream.inquisitor
  | 1.0-SNAPSHOT
  | 
  | 4.0.0
  | com.blstream.inquisitor
  | ejb3
  | ejb
  | Inquisitor::${artifactId}
  | ${pom.parent.version}
  | 
  | 
  | JBossMaven2Repository
  | JBoss Maven2 Repository
  | http://repository.jboss.com/maven2
  | 
  | 
  | 
  | ejb3
  | 
  | 
  | jboss-seam-2.0.0.GA
  | jboss-el-2.0.0.GA
  | 
  | 
  | 
  | junit
  | junit
  | 3.8.1
  | test
  | 
  | 
  | org.jboss.seam
  | jboss-seam
  | 
  | 
  | org.jboss.javaee
  | jboss-ejb-api
  | 3.0.0.20070913080910
  | 
  | 
  | javax.persistence
  | persistence-api
  | 1.0
  | 
  | 
  | org.hibernate
  | hibernate-validator
  | 3.0.0.GA
  | 
  | 
  | 
  | 

EAR

  | 
  | 
  | Inquisitor
  | com.blstream.inquisitor
  | 1.0-SNAPSHOT
  | 
  | 4.0.0
  | com.blstream.inquisitor
  | ear
  | ear
  | Inquisitor::${artifactId}
  | ${pom.parent.version}
  | 
  | 
  | junit
  | junit
  | 3.8.1
  | test
  | 
  | 
  | com.blstream.inquisitor
  | ejb3
  | ${pom.parent.version}
  | ejb
  | 
  | 
  | com.blstream.inquisitor
  | webapp
  | ${pom.parent.version}
  | war
  | 
  | 
  | 
  | 
  | 
  | maven-ear-plugin
  | 
  | 
  | 
  | com.blstream.inquisitor
  | ejb3
  | 
  | 
  | org.jboss.seam
  | jboss-seam
  | 
true
  | 
  | 
  | org.jboss.seam
  | jboss-el
  | 
true
  | 
  | 
  | com.blstream.inquisitor
  | webapp
  | inquisitor
  | 
  | 
  | 
  | 
  | 
  | Inquisitor
  | 
  | 
  | 


So now application builds and deploys smoothly but I`ve encountered another 
problem. There are no seam components which I`ve created in ANY scope.

E

[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.GA - No application context active

2007-11-12 Thread w17chm4n
hmm than why I`m getting an exception when I don`t have Facelets included ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103887#4103887

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103887
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-12 Thread w17chm4n
I`ll try to help with that feedback ! 

So when I manage to make my application run, I`ll post my pom`s as an example 
how I did it.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103859#4103859

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103859
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [PROBLEM] Migrating to 2.0.0 and deploying on JBoss AS 4

2007-11-12 Thread w17chm4n
The problem is that I don`t. Servlet-api is added from the pom`s of jboss-seam, 
even though it`s optional.


Nevertheless, I`ve managed to successfuly build and deploy my application 
(though running it is a whole other story...) as You can read in other topic :)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103856#4103856

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103856
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.GA - No application context active

2007-11-12 Thread w17chm4n
Thanks for your replays, though I managed to fix (kinda) this problem my 
myself. 

Well I thought that if JBoss AS 4.2.2 cames with embeded JSF library, I won`t 
have to include any implementations into my EAR. 

I was wrong. 

When there were no jsf implementation included the "no aplication context 
active" was thrown. But when I`ve added Facelets (1.1.11) - aplication deployed.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103855#4103855

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103855
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.GA - No application context active

2007-11-12 Thread w17chm4n
Sry wrong logs ;)

10:30:48,381 INFO  [TomcatDeployer] deploy, ctxPath=/inquisitor, 
warUrl=.../tmp/deploy/tmp62417Inquisitor.ear-contents/webapp-exp.war/
  | 10:30:49,551 ERROR [STDERR] java.lang.IllegalStateException: No application 
context active
  | 10:30:49,552 ERROR [STDERR] at 
org.jboss.seam.Component.forName(Component.java:1799)
  | 10:30:49,552 ERROR [STDERR] at 
org.jboss.seam.Component.getInstance(Component.java:1849)
  | 10:30:49,552 ERROR [STDERR] at 
org.jboss.seam.Component.getInstance(Component.java:1844)
  | 10:30:49,553 ERROR [STDERR] at 
org.jboss.seam.Component.getInstance(Component.java:1821)
  | 10:30:49,553 ERROR [STDERR] at 
org.jboss.seam.Component.getInstance(Component.java:1816)
  | 10:30:49,553 ERROR [STDERR] at 
org.jboss.seam.core.ResourceLoader.instance(ResourceLoader.java:97)
  | 10:30:49,553 ERROR [STDERR] at 
org.jboss.seam.core.SeamResourceBundle.loadBundlesForCurrentLocale(SeamResourceBundle.java:58)
  | 10:30:49,553 ERROR [STDERR] at 
org.jboss.seam.core.SeamResourceBundle.getBundlesForCurrentLocale(SeamResourceBundle.java:48)
  | 10:30:49,553 ERROR [STDERR] at 
org.jboss.seam.core.SeamResourceBundle.handleGetObject(SeamResourceBundle.java:107)
  | 10:30:49,553 ERROR [STDERR] at 
java.util.ResourceBundle.getObject(ResourceBundle.java:319)
  | 10:30:49,553 ERROR [STDERR] at 
java.util.ResourceBundle.getString(ResourceBundle.java:285)
  | 10:30:49,553 ERROR [STDERR] at 
com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:151)
  | 10:30:49,553 ERROR [STDERR] at 
com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:122)
  | 10:30:49,553 ERROR [STDERR] at 
com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
  | 10:30:49,553 ERROR [STDERR] at 
com.sun.faces.util.Util.createInstance(Util.java:477)
  | 10:30:49,553 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:655)
  | 10:30:49,553 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:487)
  | 10:30:49,553 ERROR [STDERR] at 
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
  | 10:30:49,553 ERROR [STDERR] at 
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69)
  | 10:30:49,554 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
  | 10:30:49,554 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
  | 10:30:49,554 ERROR [STDERR] at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
  | 10:30:49,554 ERROR [STDERR] at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
  | 10:30:49,554 ERROR [STDERR] at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
  | 10:30:49,554 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 10:30:49,554 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 10:30:49,554 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:30:49,554 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 10:30:49,554 ERROR [STDERR] at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
  | 10:30:49,554 ERROR [STDERR] at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 10:30:49,554 ERROR [STDERR] at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 10:30:49,554 ERROR [STDERR] at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
  | 10:30:49,554 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 10:30:49,554 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 10:30:49,554 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:30:49,555 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:585)
  | 10:30:49,555 ERROR [STDERR] at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
  | 10:30:49,555 ERROR [STDERR] at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 10:30:49,555 ERROR [STDERR] at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 10:30:49,555 ERROR [STDERR] at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
  | 10:30:49,555 ERROR [STDERR] at 
org.jboss.web.tomcat.service.TomcatDe

[jboss-user] [JBoss Seam] - Seam 2.0.0.GA - No application context active

2007-11-12 Thread w17chm4n
I get a following exception while trying to deploy my webapplication with Seam 
2.0.0.GA


  | 10:30:56,983 INFO  [Initialization] done initializing Seam
  | 10:30:56,983 ERROR [StandardContext] Error listenerStart
  | 10:30:56,983 ERROR [StandardContext] Context [/inquisitor] startup failed 
due to previous errors
  | 10:30:57,020 WARN  [ServiceController] Problem starting service 
jboss.web.deployment:war=webapp.war,id=-2089755916
  | org.jboss.deployment.DeploymentException: URL 
file:/home/w17chm4n/jboss-4.2.2.GA/server/default/tmp/deploy/tmp62417Inquisitor.ear-contents/webapp-exp.war/
 deployment failed
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379)
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
  | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
  | at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | at org.jboss.web.WebModule.startService(WebModule.java:61)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy44.start(Unknown Source)
  | at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | at 
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
  | at 
org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
  | at 
org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
  | at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
  | at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy45.start(Unknown Source)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  | at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke

[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-09 Thread w17chm4n
Thanks for your feedback. I`ll try to mix your pom`s with mine and see what 
will came ;) 

But still, migrating to seam 2.0.0.GA on maven shouldn`t be so problematic as 
it is now..

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103361#4103361

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103361
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam 2.0.0.0GA + Maven2 doesn`t work...

2007-11-09 Thread w17chm4n
First, this is how I did build my application with Seam 1.2.1.GA

Main pom.xml

  | 
  | http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
  |   4.0.0
  |   com.blstream.inquisitor
  |   Inquisitor
  |   pom
  |   1.0-SNAPSHOT
  |   Inquisitor
  |   
  | 
  |   JBossMaven2Repository
  |   JBoss Maven2 Repository
  |   http://repository.jboss.com/maven2
  | 
  |   
  |   
  | 
  |   
  | jboss
  | jboss-seam
  | 1.2.1.GA
  |   
  | 
  |   
  |   
  | 
  |   
  | maven-compiler-plugin
  | 
  |   ear/target/Inquisitor.ear
  |   1.5
  |   1.5
  | 
  |   
  | 
  |   
  |   
  | webapp
  | ejb3
  | ear
  |   
  | 
  | 

Ear

  | 
  | 
  | Inquisitor
  | com.blstream.inquisitor
  | 1.0-SNAPSHOT
  | 
  | 4.0.0
  | com.blstream.inquisitor
  | ear
  | ear
  | Inquisitor::${artifactId}
  | ${pom.parent.version}
  | 
  | 
  | junit
  | junit
  | 3.8.1
  | test
  | 
  | 
  | com.blstream.inquisitor
  | ejb3
  | ${pom.parent.version}
  | ejb
  | 
  | 
  | com.blstream.inquisitor
  | webapp
  | ${pom.parent.version}
  | war
  | 
  | 
  | 
  | 
  | 
  | maven-ear-plugin
  | 
  | 
  | 
  | com.blstream.inquisitor
  | ejb3
  | 
  | 
  | jboss
  | jboss-seam
  | 
true
  | 
  | 
  | com.blstream.inquisitor
  | webapp
  | inquisitor
  | 
  | 
  | 
  | 
  | 
  | Inquisitor
  | 
  | 
  | 

War

  | 
  | 
  | Inquisitor
  | com.blstream.inquisitor
  | 1.0-SNAPSHOT
  | 
  | 4.0.0
  | com.blstream.inquisitor
  | webapp
  | war
  | Inquisitor::${artifactId}
  | ${pom.parent.version}
  | 
  | webapp
  | 
  | 
  | 
  | JBossMaven2Repository
  | JBoss Maven2 Repository
  | http://repository.jboss.com/maven2
  | 
  | 
  | 
  | 
  | junit
  | junit
  | 3.8.1
  | test
  | 
  | 
  | jboss
  | jboss-seam-ui
  | 1.2.1.GA
  | 
  | 
  | jboss
  | jboss-seam-debug
  | 1.2.1.GA
  | 
  | 
  | com.sun.facelets
  | jsf-facelets
  | 1.1.11
  | 
  | 
  | 
  | 

Ejb3 jar

  | 
  | 
  | Inquisitor
  | com.blstream.inquisitor
  | 1.0-SNAPSHOT
  | 
  | 4.0.0
  | com.blstream.inquisitor
  | ejb3
  | ejb
  | Inquisitor::${artifactId}
  | ${pom.parent.version}
  | 
  | 
  | JBossMaven2Repository
  | JBoss Maven2 Repository
  | http://repository.jboss.com/maven2
  | 
  | 
  | 
  | ejb3
  | 
  | 
  | jboss-seam-1.2.1.GA
  | 
  | 
  | 
  | junit
  | junit
  | 3.8.1
  | test
  | 
  | 
  | jboss
  | jboss-seam
  | 
  | 
  | 
  | org.jboss.javaee
  | jboss-ejb-api
  | 
  | 3.0.0.20070913080910
  | 
  | 
  | javax.persistence
  | persistence-api
  | 1.0
  | 
  | 
  | org.hibernate
  | hibernate-validator
  | 3.0.0.GA
  | 
  | 
  | 
  | 

So with pom`s setted as above I could easyly build and deploy my application. 
But the problem is when I want to migrate to Seam 2.0.0.GA. To do that I simply 
change versions and groupId for modules. New libs are downloaded and package is 
build, but it`s impossible to deploy it (I`m using JBoss 4.2.2).

The problem is that pom`s setted up for jboss-seam, jboss-seam-ui and 
jboss-seam-debug are h wrong. 

When building application with version 2.0.0.GA of Seam, maven is building ear 
which helds most of the libs but it also packs up the same libs into the war ! 
That makes it impossible to deploy - as far as I think. Maybe new pom`s work 
when buildin

[jboss-user] [JBoss Seam] - Re: [PROBLEM] Migrating to 2.0.0 and deploying on JBoss AS 4

2007-11-09 Thread w17chm4n
-_-

09:46:10,857 INFO  [TomcatDeployer] deploy, ctxPath=/inquisitor, 
warUrl=.../tmp/deploy/tmp43400Inquisitor.ear-contents/webapp-exp.war/
  | 09:46:10,889 INFO  [WebappClassLoader] 
validateJarFile(/home/w17chm4n/jboss-4.2.2.GA/server/default/./tmp/deploy/tmp43400Inquisitor.ear-contents/webapp-exp.war/WEB-INF/lib/servlet-api-2.5.jar)
 - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: 
javax/servlet/Servlet.class
  | 09:46:11,961 ERROR [STDERR] javax.faces.FacesException: 
org.jboss.seam.jsf.SeamApplicationFactory
  | .
  | .
  | .
  | 09:46:11,969 ERROR [STDERR] Caused by: java.lang.InstantiationException: 
org.jboss.seam.jsf.SeamApplicationFactory


  | 09:46:11,987 ERROR [[/inquisitor]] Exception sending context initialized 
event to listener instance of class 
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
  | javax.faces.FacesException: org.jboss.seam.jsf.SeamApplicationFactory
  | .
  | .
  | .
  | aused by: java.lang.InstantiationException: 
org.jboss.seam.jsf.SeamApplicationFactory

Can anybody help me with this ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103180#4103180

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103180
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Howto prevent SEAM from mapping POJO ?

2007-10-31 Thread w17chm4n
No, that isn`t a problem at all. Nevertheless I`ve managed to fix my problem by 
changing QuestionType class to entity and persisting some data from which I`m 
creating selectOneMenu. 
Thx for Your time !

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100578#4100578

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100578
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Howto prevent SEAM from mapping POJO ?

2007-10-30 Thread w17chm4n
Picture entity is not the problem here. The code works fine when I remove 
Common and QuetionType classes (also commeting all depencies in the code) so 
everything is about the fact that I want to have simple java class (POJO or any 
other, like Commons) in the same jar which helds Seam Components. I need those 
classes to create and outject a hardcoded dropdown menu.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100265#4100265

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100265
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Howto prevent SEAM from mapping POJO ?

2007-10-30 Thread w17chm4n
Huh ? As u can see above, on Commons class and Question type there are no 
@Entity annotations...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100202#4100202

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100202
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Howto prevent SEAM from mapping POJO ?

2007-10-30 Thread w17chm4n
The problem is that i don`t want to map whole classes, Commons and 
QuestionType, not only some properties.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100196#4100196

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100196
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Howto prevent SEAM from mapping POJO ?

2007-10-30 Thread w17chm4n
Hi ! I have another problem. As I need a drop-down menu in my application, and 
data from which it`s created isn`t in database, I`m trying to do sth like this 
(look @ questionTypeList):


  | @Stateful
  | @Scope(ScopeType.SESSION)
  | @Name("QuestionController")
  | public class QuestionControllerBean implements QuestionController {
  | 
  | @Logger
  | private Log log;
  | 
  | @In(create = true)
  | private QuestionManager questionManager;
  | 
  | @In(create = true)
  | private PictureManager pictureManager;
  | 
  | @In(required = false)
  | private QuestionCategory questionCategory;
  | 
  | @In(required = false)
  | private Question question;
  | 
  | @DataModel("answerList")
  | private List answerList;
  | 
  | @In(required = false)
  | @DataModelSelection("answerList")
  | private Answer answer;
  | 
  | @DataModel("questionTypeList")
  | private List questionTypeList;
  | 
  | @In(required = false)
  | @DataModelSelection("questionTypeList")
  | private QuestionType questionType;
  | 
  | @Out(required = false)
  | private Picture picture;
  | 
  | private int fileSize;
  | private byte [] data;
  | private String fileName;
  | private String contentType;
  | 
  | public void addQuestion() {
  | if(fileName == null) {
  | question.setQuestionType(questionType.getQuestionType());
  | question.setCategory(questionCategory);
  | questionManager.addQuestion(question);
  | } else {
  | picture.setQuestion(question);
  | question.setPicture(picture);
  | question.setQuestionType(questionType.getQuestionType());
  | question.setCategory(questionCategory);
  | questionManager.addQuestion(question);
  | pictureManager.addPicture(picture);
  | 
  | }
  | }
  | 
  | public void removeQuestion() {
  | }
  | 
  | public void selectQuestion() {
  | }
  | 
  | public void addAnswer() {
  | }
  | 
  | public void removeAnswer() {
  | }
  | 
  | @Factory("questionTypeList")
  | public void createQuestionTypeList() {
  | questionTypeList = new ArrayList();
  | questionTypeList.add(new QuestionType(Commons.INPUT,"Input answer 
as text"));
  | questionTypeList.add(new QuestionType(Commons.SELECT_ONE,"Select 
one answer"));
  | questionTypeList.add(new QuestionType(Commons.SELECT_MANY,"Select 
many answers"));
  | }
  | 
  | public void addPicture() {
  | picture = new Picture(data, fileName, new Date());
  | picture.setQuestion(question);
  | }
  | 
  | public byte[] getData() {
  | return data;
  | }
  | 
  | public void setData(byte[] data) {
  | this.data = data;
  | }
  | 
  | public String getFileName() {
  | return fileName;
  | }
  | 
  | public void setFileName(String fileName) {
  | this.fileName = fileName;
  | }
  | 
  | public String getContentType() {
  | return contentType;
  | }
  | 
  | public void setContentType(String contentType) {
  | this.contentType = contentType;
  | }
  | 
  | public int getFileSize() {
  | return fileSize;
  | }
  | 
  | public void setFileSize(int fileSize) {
  | this.fileSize = fileSize;
  | }
  | 
  | @Remove @Destroy
  | public void destroy() {}
  | 
  | }
  | 

It uses a POJO


  | public class QuestionType {
  | 
  | private int QuestionType;
  | private String label;
  | 
  | public QuestionType() {
  | }
  | 
  | public QuestionType(int questionType, String label) {
  | this.QuestionType = questionType;
  | this.label = label;
  | }
  | 
  | public int getQuestionType() {
  | return QuestionType;
  | }
  | 
  | public void setQuestionType(int QuestionType) {
  | this.QuestionType = QuestionType;
  | }
  | 
  | public String getLabel() {
  | return label;
  | }
  | 
  | public void setLabel(String label) {
  | this.label = label;
  | }
  | 
  | }
  | 

and a simple class for static variables


  | public class Commons {
  | 
  | public static final int INPUT = 0;
  | public static final int SELECT_ONE = 1;
  | public static final int SELECT_MANY = 2;
  | 
  | }
  | 

When I try to submit my form (addQuestion method) i get the following error:


  | org.hibernate.MappingException: Unknown entity: java.lang.Object
  | 

As i think, the problem is that JBoss is trying to map POJO and the Commons 
class to the database, because these files r in the same jar as the normal seam 
components and entities.

So, is there a way to prevent seam fro

[jboss-user] [JBoss Seam] - Re: s:selectItems once again

2007-10-17 Thread w17chm4n
Thx it worked ! Nevertheless I didn`t have to override the hashCode method.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096097#4096097

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096097
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - s:selectItems once again

2007-10-17 Thread w17chm4n
The problem :

  | Validation Error: Value is not valid
  | 

I`ve searched the forum and I found that one way is to implement equals() and 
hashCode() method. So I did (well copy-pasted ;))


  | @Entity
  | @Scope(ScopeType.EVENT)
  | @Name("questionCategory")
  | @Table(name="QuestionCategories")
  | public class QuestionCategory implements Serializable {
  | 
  | @Id @GeneratedValue
  | private Long id;
  | 
  | @NotNull @Length(min=3, max=100)
  | private String categoryName;
  | 
  | @OneToMany
  | private List questionList;
  | 
  | @Temporal(value = TemporalType.TIMESTAMP)
  | private Date created;
  | 
  | @Override
  | public boolean equals(Object obj) {
  | if (!(obj instanceof QuestionCategory)) {
  | return false;
  | }
  | 
  | QuestionCategory c = (QuestionCategory) obj;
  | return this.id == c.getId();
  | }
  | 
  | @Override
  | public int hashCode() {
  | int result = 17;
  | 
  | result = 37 * result + this.id.intValue();
  | 
  | return result;
  | }
  | 
  | /** Creates a new instance of QuestionCategory */
  | public QuestionCategory() {
  | this.questionList = new ArrayList();
  | }
  | 
  | public QuestionCategory(String categoryName) {
  | this.categoryName = categoryName;
  | this.questionList = new ArrayList();
  | }
  | 
  | public Long getId() {
  | return id;
  | }
  | 
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | public String getCategoryName() {
  | return categoryName;
  | }
  | 
  | public void setCategoryName(String categoryName) {
  | this.categoryName = categoryName;
  | }
  | 
  | public List getQuestionList() {
  | return questionList;
  | }
  | 
  | public void setQuestionList(List questionList) {
  | this.questionList = questionList;
  | }
  | 
  | public Date getCreated() {
  | return created;
  | }
  | 
  | public void setCreated(Date created) {
  | this.created = created;
  | }
  | }
  | 

I have a following code in my question.xhtml


  | 
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  | 
  | 
  | 

And quess what, this still doesn`t work !

I need help !!!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096066#4096066

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096066
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel and DataModelSelection question

2007-10-16 Thread w17chm4n
I found the sollution.


  | @Stateful
  | @Scope(ScopeType.SESSION)
  | @Name("QuestionCategoryController")
  | public class QuestionCategoryControllerBean implements 
QuestionCategoryController {
  | 
  | @Logger
  | private Log log;
  | 
  | @In(create = true)
  | private QuestionCategoryManager questionCategoryManager;
  | 
  | @DataModel
  | private List questionCategoryList;
  | 
  | @DataModelSelection
  | @In(required = false)
  | private QuestionCategory questionCategory;
  | 
  | public void addCategory() {
  | questionCategoryManager.addCategory(questionCategory);
  | getAllQuestionsCategories();
  | }
  | 
  | public void removeCategory() {
  | questionCategoryList.remove(questionCategory);
  | questionCategoryManager.removeCategory(questionCategory);
  | questionCategory = null;
  | getAllQuestionsCategories();
  | }
  | 
  | @Factory(value="questionCategoryList")
  | public void getAllQuestionsCategories() {
  | questionCategoryList = 
questionCategoryManager.getAllQuestionCategories();
  | }
  | 
  | @Remove @Destroy
  | public void destroy() {}
  | 
  | }
  | 


  | @Stateful
  | @Scope(ScopeType.APPLICATION)
  | @Name("questionCategoryManager")
  | public class QuestionCategoryManagerBean implements QuestionCategoryManager 
{
  | 
  | @Logger
  | Log log;
  | 
  | @PersistenceContext(type = PersistenceContextType.EXTENDED)
  | private EntityManager entityManager;
  | 
  | public void addCategory(QuestionCategory category) {
  | category.setCreated(new Date());
  | entityManager.persist(category);
  | }
  | 
  | public void removeCategory(QuestionCategory category) {
  | entityManager.remove(category);
  | }
  | 
  | public List getAllQuestionCategories() {
  | return entityManager.createQuery("from QuestionCategory 
qc").getResultList();
  | }
  | 
  | @Destroy @Remove
  | public void destroy() {
  | }
  | }
  | 


  | @Entity
  | @Scope(ScopeType.EVENT)
  | @Name("questionCategory")
  | @Table(name="QuestionCategories")
  | public class QuestionCategory implements Serializable {
  | 
  | @Id @GeneratedValue
  | private Long id;
  | 
  | @NotNull @Length(min=3, max=100)
  | private String categoryName;
  | 
  | @OneToMany
  | private List questionList;
  | 
  | @Temporal(value = TemporalType.TIMESTAMP)
  | private Date created;
  | 
  | /** Creates a new instance of QuestionCategory */
  | public QuestionCategory() {
  | this.questionList = new ArrayList();
  | }
  | 
  | public QuestionCategory(String categoryName) {
  | this.categoryName = categoryName;
  | this.questionList = new ArrayList();
  | }
  | 
  | public Long getId() {
  | return id;
  | }
  | 
  | public void setId(Long id) {
  | this.id = id;
  | }
  | 
  | public String getCategoryName() {
  | return categoryName;
  | }
  | 
  | public void setCategoryName(String categoryName) {
  | this.categoryName = categoryName;
  | }
  | 
  | public List getQuestionList() {
  | return questionList;
  | }
  | 
  | public void setQuestionList(List questionList) {
  | this.questionList = questionList;
  | }
  | 
  | public Date getCreated() {
  | return created;
  | }
  | 
  | public void setCreated(Date created) {
  | this.created = created;
  | }
  | }
  | 

It was all about setting correct scopes ! Notice that entity bean has to have 
set Scope to event, without it, it won`t work.

Thx dhinojosa for all your support !

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095508#4095508

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095508
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: component injection seam 1.2.1. ga

2007-10-15 Thread w17chm4n
This is why because Seam is looking for beans via @Name.

So it should be looking like this:


  | @In
  | UserBeanService userServiceBean;
  | 

or if you need it to be created


  | @In(create = true)
  | UserBeanService userServiceBean;
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095157#4095157

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095157
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataInputSelection has problem with injection

2007-10-15 Thread w17chm4n
Oh and exception

javax.faces.el.EvaluationException: javax.ejb.EJBException: 
java.lang.NullPointerException

I`m running my application on JBoss 4.2.1

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095122#4095122

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095122
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - DataInputSelection has problem with injection

2007-10-15 Thread w17chm4n
This is my second topic about the same problem, but due to the amount of new 
topics on the forum, it`s kinda necessary.

I`ve written a simple controller using code snippet from the 1 chapter of Seam 
tutorial.


  | @Stateful
  | @Name("TestController")
  | public class TestControllerBean implements Serializable, TestController {
  | 
  | @Logger
  | private Log log;
  | 
  | @In
  | private EntityManager entityManager;
  | 
  | @DataModel
  | private List questionCategoryList;
  | 
  | @DataModelSelection
  | @Out(required=false)
  | private QuestionCategory questionCategory;
  | 
  | /** Creates a new instance of TestControllerBean */
  | public TestControllerBean() {
  | }
  | 
  | public void remove() {
  | questionCategoryList.remove(questionCategory);
  | entityManager.remove(questionCategory);
  | questionCategory = null;
  | }
  | 
  | @Factory(value="questionCategoryList")
  | public void showAll() {
  | questionCategoryList = entityManager.createQuery("from 
QuestionCategory qc").getResultList();
  | }
  | 
  | @Remove @Destroy
  | public void destroy() {}
  | 
  | }
  | 

And the test.xhtml


  | http://www.w3.org/1999/xhtml";
  |   xmlns:ui="http://java.sun.com/jsf/facelets";
  |   xmlns:h="http://java.sun.com/jsf/html";
  |   xmlns:f="http://java.sun.com/jsf/core";
  |   xmlns:s="http://jboss.com/products/seam/taglib";>
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

It works fine when I want to render list of questionCategories but when i hit 
"remove" link i get NullPointerException indicating, as far as i think, that 
questionCategory isn`t injected to the stateful bean.

The only difference between this code and the tutorial is that in my code i 
didn`t use @Scope(SESSION) but I don`t think that this could be a problem.

Any ideas about solving my problem 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095107#4095107

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095107
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel and DataModelSelection question

2007-10-12 Thread w17chm4n
First of all, thanks for all Yours replays !

"dhinojosa" wrote : What was the result after you changed to stateful? Was it 
still: 
  | questionCategory is NULL !
Yes, still it striked me with "questionCategory is NULL !

"smithbstl" wrote : Try defining the DataModel in your DataModelSelection 
  | 
  | @DataModelSelection("categoryList") 
  | 
  | With only one DataModel in your bean, it should not be necessary but I 
always put it in to be safe.
I did that

anonymous wrote : Try putting the bean and the datamodel to page scope and if 
it works, start narrowing down...
and that, but still no success.

Any more ideas ???

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094490#4094490

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094490
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: DataModel and DataModelSelection question

2007-10-11 Thread w17chm4n
I`ve changed to stateful EJB but still it doesn`t inject the questionCategory.


  | @Stateful
  | @Name("QuestionCategoryController")
  | public class QuestionCategoryControllerBean implements 
QuestionCategoryController {
  | 
  | @Logger
  | private Log log;
  | 
  | @In(create = true)
  | private QuestionCategoryManager questionCategoryManager;
  | 
  | @DataModelSelection
  | @In(required = false)
  | @Out(required = false)
  | private QuestionCategory questionCategory;
  | 
  | @DataModel
  | private List categoryList;
  | 
  | @Out(required = false)
  | private List questionList;
  | 
  | public void addCategory() {
  | questionCategory.setCreated(new Date());
  | questionCategoryManager.addCategory(this.questionCategory);
  | }
  | 
  | public void removeCategory(QuestionCategory questionCategory) { //todo
  | log.info("Trying to remove #{questionCategory.categoryName}");
  | if(questionCategory == null) {
  | log.fatal("questionCategory is NULL !");
  | } else {
  | questionCategoryManager.removeCategory(questionCategory);
  | }
  | }
  | 
  | @Factory("categoryList")
  | public void getAllQuestionsCategories() {
  | setCategoryList(questionCategoryManager.getAllQuestionCategories());
  | }
  | 
  | public List getCategoryList() {
  | return categoryList;
  | }
  | 
  | public void setCategoryList(List categoryList) {
  | this.categoryList = categoryList;
  | }
  | 
  | public List getQuestionList() {
  | return questionList;
  | }
  | 
  | public void setQuestionList(List questionList) {
  | this.questionList = questionList;
  | }
  | 
  | @Destroy @Remove
  | public void destroy() {}
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094178#4094178

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094178
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - DataModel and DataModelSelection question

2007-10-11 Thread w17chm4n
First of all, the code..

  | @Stateless
  | @Name("QuestionCategoryController")
  | public class QuestionCategoryControllerBean implements 
QuestionCategoryController {
  | 
  | @Logger
  | private Log log;
  | 
  | @In(create = true)
  | private QuestionCategoryManager questionCategoryManager;
  | 
  | @In(required = false)
  | private QuestionCategory questionCategory;
  | 
  | @DataModel(value = "categories")
  | private List categoryList;
  | 
  | @DataModelSelection(value = "categories")
  | private List questionList;
  | 
  | public void addCategory() {
  | questionCategory.setCreated(new Date());
  | questionCategoryManager.addCategory(this.questionCategory);
  | }
  | 
  | public void removeCategory(QuestionCategory questionCategory) { //todo
  | log.info("Trying to remove #{questionCategory.categoryName}");
  | if(questionCategory == null) {
  | log.error("questionCategory is NULL !");
  | } else {
  | questionCategoryManager.removeCategory(questionCategory);
  | }
  | }
  | 
  | @Factory("categories")
  | public void getAllQuestionsCategories() {
  | setCategoryList(questionCategoryManager.getAllQuestionCategories());
  | }
  | 
  | public List getCategoryList() {
  | return categoryList;
  | }
  | 
  | public void setCategoryList(List categoryList) {
  | this.categoryList = categoryList;
  | }
  | 
  | public List getQuestionList() {
  | return questionList;
  | }
  | 
  | public void setQuestionList(List questionList) {
  | this.questionList = questionList;
  | }
  | 
  | }
  | 

and


  | http://www.w3.org/1999/xhtml";
  |   xmlns:ui="http://java.sun.com/jsf/facelets";
  |   xmlns:h="http://java.sun.com/jsf/html";
  |   xmlns:f="http://java.sun.com/jsf/core";
  |   xmlns:s="http://jboss.com/products/seam/taglib";>
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

Whats the problem is that QuestionCategoryController.removeCategory(cat) 
doesn`t work. I know it`s something about the annotations but I can`t find any 
answer.

As this controller should be used for adding new QuestionCategory, returning 
the existing categories and remove them i`ve also tried sth like that:


  | @Stateless
  | @Name("QuestionCategoryController")
  | public class QuestionCategoryControllerBean implements 
QuestionCategoryController {
  | 
  | @Logger
  | private Log log;
  | 
  | @In(create = true)
  | private QuestionCategoryManager questionCategoryManager;
  | 
  | @DataModelSelection(value = "categories") @In(required = false) 
@Out(required = false)
  | private QuestionCategory questionCategory;
  | 
  | @DataModel(value = "categories")
  | private List categoryList;
  | 
  | public void addCategory() {
  | questionCategory.setCreated(new Date());
  | questionCategoryManager.addCategory(this.questionCategory);
  | }
  | 
  | public void removeCategory(QuestionCategory questionCategory) { //todo
  | log.info("Trying to remove #{questionCategory.categoryName}");
  | if(questionCategory == null) {
  | log.error("questionCategory is NULL !");
  | } else {
  | questionCategoryManager.removeCategory(questionCategory);
  | }
  | }
  | 
  | @Factory("categories")
  | public void getAllQuestionsCategories() {
  | setCategoryList(questionCategoryManager.getAllQuestionCategories());
  | }
  | 
  | public List getCategoryList() {
  | return categoryList;
  | }
  | 
  | public void setCategoryList(List categoryList) {
  | this.categoryList = categoryList;
  | }
  | 
  | }
  | 

Oh and the exception, I simply get an NullPointerException (or in logs 
"questionCategory is NULL !") so as I think, the QuestionCategory object isn`t 
injected into the removeQuestion method.

Any suggestions how to deal with this problem ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094162#4094162

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094162
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Base is null

2007-10-04 Thread w17chm4n
Omg... thank you both for help !!!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091443#4091443

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091443
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Base is null

2007-10-04 Thread w17chm4n
You mean that I have to define it in components.xml ? I thought that 
annotations were enough.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091409#4091409

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091409
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Base is null

2007-10-03 Thread w17chm4n
I`m having a problem while trying to run my application (Seam 1.2.1) on JBoss 
4.0.5.

Let the code explain...

controllertest.jsp (jsf)

  | <[EMAIL PROTECTED] contentType="text/html"%>
  | <[EMAIL PROTECTED] pageEncoding="UTF-8"%>
  | 
  | <[EMAIL PROTECTED] prefix="f" uri="http://java.sun.com/jsf/core"%>
  | <[EMAIL PROTECTED] prefix="h" uri="http://java.sun.com/jsf/html"%>
  | 
  | http://www.w3.org/TR/html4/loose.dtd";>
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

QuestionCategoryManager

  | import java.util.List;
  | import javax.ejb.Local;
  | 
  | @Local
  | public interface QuestionCategoryManager {
  | String test();
  | void addCategory(String categoryName);
  | void removeCategory(long id, boolean withQuestions);
  | void removeCategory(String categoryName, boolean withQuestions);
  | QuestionCategory getQuestionCategoryById(long id);
  | QuestionCategory getQuestionCategoryByName(String categoryName);
  | List getAllQuestionsCategories();
  | }
  | 

QuestionCategoryControllerBean

  | mport javax.ejb.Stateless;
  | import javax.persistence.EntityManager;
  | import javax.persistence.PersistenceContext;
  | 
  | 
  | /**
  |  *
  |  * @author W17chM4n
  |  */
  | 
  | @Stateless(name="QuestionCategoryManger")
  | public class QuestionCategoryManagerBean implements QuestionCategoryManager 
{
  | 
  | @PersistenceContext
  | private EntityManager em;
  | 
  | public String test() {
  | return "success";
  | }
  | 
  | public void addCategory(String categoryName) {
  | em.persist(new QuestionCategory(categoryName));
  | }
  | 
  | public void removeCategory(long id, boolean withQuestions) {
  | }
  | 
  | public void removeCategory(String categoryName, boolean withQuestions) {
  | }
  | 
  | public QuestionCategory getQuestionCategoryByName(String categoryName) {
  | return (QuestionCategory)em.createQuery("from QuestionCategory q 
where q.categoryName='" + categoryName + "'").getSingleResult();
  | }
  | 
  | public QuestionCategory getQuestionCategoryById(long id) {
  | return (QuestionCategory)em.createQuery("from QuestionCategory q 
where q.id="+String.valueOf(id)).getSingleResult();
  | }
  | 
  | public List getAllQuestionsCategories() {
  | return em.createQuery("from QuestionCategory q").getResultList();
  | }
  | }
  | 

So here it is. I`m building it with maven, and while deploying, everything is 
allright. But when i push the button i get this:


  | 15:21:35,596 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
  | javax.faces.FacesException: Error calling action method of component with 
id controller:_idJsp0
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | 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.S

[jboss-user] [JBoss Seam] - Maven2 - Interceptor class not found

2007-09-30 Thread w17chm4n
Hi !

I`m developing a new project and I`m trying to use Seam. Trying couse I can`t 
step over the following error:

21:26:36,953 WARN  [ServiceController] Problem creating service 
jboss.j2ee:service=EJB3,module=ejb3.jar
  | java.lang.RuntimeException: Interceptor class not found: 
org.jboss.seam.ejb.SeamInterceptor

I`m building my project with maven2. Seam version 1.2.1.GA. Deployed on JBoss 
4.0.5.GA

Here is the pom file for the EJB module:

  | 
  | 
  | Inquisitor
  | com.blstream.inquisitor
  | 1.0-SNAPSHOT
  | 
  | 4.0.0
  | com.blstream.inquisitor
  | ejb3
  | Inquisitor::${artifactId}
  | ejb
  | 1.0-SNAPSHOT
  | 
  | 
  | JBossMaven2Repository
  | JBoss Maven2 Repository
  | http://repository.jboss.com/maven2
  | 
  | 
  | 
  | 
  | junit
  | junit
  | 3.8.1
  | test
  | 
  | 
  | jboss
  | jboss-ejb-api
  | 4.2.0.GA
  | provided
  | 
  | 
  | jboss
  | jboss-seam
  | 1.2.1.GA
  | provided
  | 
  | 
  | javax.persistence
  | persistence-api
  | 1.0
  | provided
  | 
  | 
  | org.hibernate
  | hibernate-validator
  | 3.0.0.ga
  | provided
  | 
  | 
  | 
  | 
  | 
  | maven-ejb-plugin
  | 
  | 3.0
  | 
  | 
  | 
  | ejb3
  | 
  | 

the ejb-jar.xml :


  | 
  | 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/ejb-jar_3_0.xsd";
  |  version="3.0">
  | 
  | 
  | 
  | 
org.jboss.seam.ejb.SeamInterceptor
  | 
  | 
  | 
  | 
  | 
  | *
  | 
org.jboss.seam.ejb.SeamInterceptor
  | 
  | 
  | 
  | 
  | 

web.xml from the web module: 

  | 
  | 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";
  |  version="2.5">
  | 
  | 
  | 
  | org.jboss.seam.servlet.SeamListener
  | 
  | 
  | 
  | 
  | 
org.apache.myfaces.webapp.StartupServletContextListener
  | 
  | 
  | Faces Servlet
  | javax.faces.webapp.FacesServlet
  | 1
  | 
  | 
  | Faces Servlet
  | *.jsf
  | 
  | 
  | index.jsf
  | 
  | 
  | 

Any idea why JBoss deployer cannot find SeamInterceptor ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090048#4090048

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090048
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user