[jboss-user] [JBoss Seam] - Re: richfaces*.jar into where?

2007-07-27 Thread fmars
jbuechel wrote : 
  | Which richfaces version do you use?
  | 

i am using richfaces-3.0.1.jar. 

There is no more richfaces-3.0.1-SNAPSHOT.jar. that time it was necessary, 
because 3.0.1 was still in development. But now it is released. 

Do i have to use only but only richfaces-3.0.1-SNAPSHOT.jar?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068134#4068134

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068134
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - richfaces*.jar into where?

2007-07-26 Thread fmars
Hi, I want to use rich:datascroller component but i need to import the 
library in my session bean. i put first into my app.jar folder, but it didn't 
work. 

One solution to problem is to set 2 attribute UseJBossWebLoader and 
Java2ClassLoadingCompliance in jboss-service.xml to true. i tried it but it 
didn't work too.

Is there anywhere a skeleton example, which works under seam 2 and jboss 
4.2.0.GA?

thank you.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4067739#4067739

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4067739
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: richfaces*.jar into where?

2007-07-26 Thread fmars
That is a good news. But i need it now. Is there a Beta version of the next 
release? The daily build is still one jar.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068001#4068001

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068001
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: richfaces*.jar into where?

2007-07-26 Thread fmars
blackers wrote : Can you try putting it in your /WEB-INF/lib  This is where i 
have my rich faces jar file.  I have also set the UseJBossWebLoader to true but 
not changed Java2ClassLoadingCompliance from it's defaults.
  | 
  | 

still same. nothing changed. Are you using JBoss 4.2.0.GA too?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4068082#4068082

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068082
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - [Bug?] noSelectionLabel, s:selectItems, equals()

2007-07-25 Thread fmars
Hi,

After i added noSelecteionLabel to my s:selectItems, i got a 
NullPointerException in my entity's equals method, because the parameter was 
null. if noSelectionLabel is selected, the equals method of the entity is 
called and because Please select ... doesn't exists, it sent as null object.

My suggestion: if noSelectionLabel is selected, then we don't need to call 
equals() method anymore. Am i right?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4067630#4067630

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4067630
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Object sent to equals() as parameter is null!

2007-07-20 Thread fmars
Hello,

I have an entity bean CancerType and a SFSB(long running) MethSearch and 
there is a search.xhtml.

One of the search fields in search.xhtml is a selectOneMenu, in which all 
CancerTypes are listed. The selected one is set to cancerType variable in 
MethSearch bean. MethSearch bean has a method find(), which is called from 
search.xhtml after a CancerType in selectOneMenu selected.

Problem: Before Seam the Method find calls, the overriden method 
equals(Object otherCancerType) in CancerType Entity is called, but the 
parameter otherCancerType is null. And i need to find why?

here some codes: first CancerType Entity
@Entity
  | public class CancerType implements java.io.Serializable {
  | // id and some string variables
  | @Override
  | public boolean equals(Object otherCancerType) {
  | if(this.id == ((CancerType)otherCancerType).getId())
  | return true;
  | return this.name.equals(((CancerType)otherCancerType).getName());
  | }
  | }
MethSearch SFSB:
@Stateful
  | @Name(methsearch)
  | public class MethSearch implements IMethSearch{
  | @PersistenceContext(type=PersistenceContextType.EXTENDED)
  | private EntityManager entityManager;
  | .
  | @Begin
  | public void find() {
  | Criteria criteria = 
  | }
  | 

search.xthml:
h:outputLabel for=cancerTypeidCancer type:/h:outputLabel
  | h:selectOneMenu id=cancerTypeid value=#{methsearch.cancerType}
  |  s:selectItems value=#{cancerTypeDAO.getAll()} var=cancerType 
label=#{cancerType.name}
  | noSelectionLabel=Please Select.../
  |   s:convertEntity /
  | /h:selectOneMenu
  | 
  | h:commandButton value=Find action=#{methsearch.find()} /
  | 

and pages.xml:
page view-id=/search.xhtml
  | navigation from-action=#{methsearch.find()}
  | end-conversation/
  | redirect/
  | /navigation
  | /page

Thank you in advance :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066287#4066287

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066287
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Object sent to equals() as parameter is null!

2007-07-20 Thread fmars
I forgot the Stack Trace(a part of it, which i think important to the problem 
is):
java.lang.NullPointerException
  | at org.arcs.methcancerdb.model.CancerType.equals(CancerType.java:43)
  | at 
javax.faces.component.UISelectOne.matchValue(UISelectOne.java:185)
  | at 
javax.faces.component.UISelectOne.validateValue(UISelectOne.java:137)
  | at javax.faces.component.UIInput.validate(UIInput.java:867)
  | at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
  | at javax.faces.component.UIInput.processValidators(UIInput.java:666)
  | at 
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
  | at 
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
  | at 
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
  | at 
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
  | at javax.faces.component.UIForm.processValidators(UIForm.java:229)
  | at 
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
  | at 
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.access$201(AjaxViewRoot.java:53)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:315)
  | at 
org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:53)
  | at 
org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:191)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.processValidators(AjaxViewRoot.java:329)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066289#4066289

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066289
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - s:conversationPropagation/ has no effekt

2007-07-19 Thread fmars
Hi,

Seam Version: 2 Beta 1 (Daily Build)

As written in the Seam book by Yuan, i try to end the current conversation like 
this:
h:commandButton value=Show All action=#{methsearch.showAll()}
  | s:conversationPropagation type=end/
  | /h:commandButton

But it doesn't work and i get exceptions. it says, that i should try 
@Begin(join=true), which i don't want. 

Is this a bug in Seam 2?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065737#4065737

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065737
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:conversationPropagation/ has no effekt

2007-07-19 Thread fmars
stu2 wrote : Could you please post the showAll() method (and any annotations) 
as well as the stacktrace?

methsearch is a stateful session bean. there are two methods annotated with 
@Begin. showAll() is one of them and here it is:

@PersistenceContext(type=PersistenceContextType.EXTENDED)
  | private EntityManager entityManager;
  | .
  | @Begin
  | public void showAll(){
  | genes = ((org.hibernate.Session)this.entityManager.getDelegate()).
  | createCriteria(Gene.class).list();
  | }
  | 

Stack Trace is really long. so here only last 3 one
Caused by: javax.ejb.EJBTransactionRolledbackException: begin method invoked 
from a long running conversation, try using @Begin(join=true) on method: showAll
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:87)
  | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:204)
  | at 
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:100)
  | at $Proxy144.showAll(Unknown Source)
  | 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:61)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | at 
org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
  | 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.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50)
  | at 
org.javassist.tmp.java.lang.Object_$$_javassist_1.showAll(Object_$$_javassist_1.java)
  | 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.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325)
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:270)
  | at 
org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)
  | at 
org.jboss.el.parser.AstMethodSuffix.invoke(AstMethodSuffix.java:65)
  | at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
  | at 
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | ... 46 more
  | Caused by: java.lang.IllegalStateException: begin method invoked from a 
long running conversation, try using @Begin(join=true) on method: showAll
  | at 
org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:45)
 

[jboss-user] [JBoss Seam] - Re: no session or session was closed: but why?

2007-07-19 Thread fmars
i have had a similar error before. i am not sure now, but the reason was that i 
didn't make my stateful session bean a long running bean, if i remember 
correctly. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065939#4065939

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065939
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Action argument is null when it shouldn't be null

2007-07-17 Thread fmars
anonymous wrote : 
view-handlerorg.jboss.seam.ui.facelet.SeamFaceletViewHandler/view-handler
I use Seam 2 and there is no more SeamFaceletViewHandler.

methsearch.xhtml displays my table. The generated URL looks like this:

http://localhost:8080/methcancerdb2/methsearch.seam?
  | 
dataModelSelection=gene:genes[1]cid=18actionMethod=methsearch.xhtml:tableviewer.displayTargetSequences(gene)

dataModelSelection=gene:genes[1] : i've clicked link on the second row. so it 
is the second object in the list genes. With gene:genes[1] is gene is set 
to genes[1]. what the rest of the url means, i don't know.

More Details:

I have this methsearch.xhtml for searching my database. there is a button Show 
All, which displays all entries on the table with a s:link for more infos.

there is a statefull sb for this site, MethSearch.java. here is the relevant 
part of it:


@Stateful
  | @Name(methsearch)
  | public class MethSearch implements IMethSearch{
  | 
  | @Out(required=false)
  | private ListGene genes;
  | 
  | public void showAll(){
  | genes = 
((org.hibernate.Session)this.entityManager.getDelegate()).createCriteria(Gene.class).list();
  | }
  | }

genes outjected as expected. the table displayed. only the var gene is not 
sent to method successfully. Any Idea?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064903#4064903

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064903
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Action argument is null when it shouldn't be null

2007-07-16 Thread fmars
i have the same problem in a different way. The parameter passed to method is 
null.

i have a s:link in a dataTable :

rich:dataTable value=#{genes} var=gene  
  | s:link action=#{tableviewer.displayTargetSequences(gene)} .../s:link
  | ./rich:dataTable

tableviewer is stateless session bean for outjection the parameter and 
redirection.

@Stateless
  | @Name(tableviewer)
  | public class TableViewerAction implements ITableViewer{
  | @Out private Gene selectedGene;
  | 
  | public TableViewerAction() {}
  | 
  | public String displayTargetSequences(Gene gene) {
  | selectedGene = gene;
  | return /targetSequenceViewer.xhtml;
  |}
  | }

This bean is used only here and constructed probably right after the user 
clicked on it. Is this the problem?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064791#4064791

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064791
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How can I get the source code? (stupid question?)

2007-07-11 Thread fmars
Look here: http://wiki.jboss.org/wiki/Wiki.jsp?page=CVSRepository

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062978#4062978

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062978
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: fail to send parameter to a function in xhtml

2007-07-10 Thread fmars
JakeC wrote : A colleague of mine said it only works with the action 
attribute. Maybe in 2.0 it will work everywhere, but it definitely works with 
the action attribute in 1.1.5.

Yes. In Seam 2 you can use value bindings too. i discovered it yesterday and 
i'm really happy about it :)

http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/elenhancements.html#d0e17520

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062669#4062669

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062669
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - [Seam 2] Parameter, sent from EL expression in xhtml to metho

2007-07-10 Thread fmars
Because the beta 1 release has a bug, which makes my application not-runnable, 
i can't  use it. So i built seam 2 from the CVS myself.

i have a stateful bean, a long-running conversation. In a step a table is 
displayed with clickable links made by s:link. from the action i'm calling 
a method of the bean with a parameter. The method is called successfully but 
the parameter is always null. I am using rich:dataTable. Here how it looks 
like (shortened)

 rich:dataTable var=gene value=#{methcancerpipe.genes}
  | f:facet name=header Column Headers ... /f:facet
  | 
  | rich:column
  |ui:repeat value=#{gene.geneinfo.isoforms} var=isoform
  |   s:link action=#{methcancerpipe.displayCpGInfos(isoform)} 
value=#{isoform.name} /
  |/ui:repeat
  |  /rich:column
  | /rich:dataTable

Somehow isoform set to null on the way. it is not null because the name 
(value=#{isoform.name} ) is shown correctly.

But if i set the parameter statically like this:
ui:repeat value=#{gene.geneinfo.isoforms} var=isoform
  |s:link 
action=#{methcancerpipe.displayCpGInfos(methcancerpipe.genes[0].geneinfo.isoforms[0])}
 value=#{isoform.name} /
  | /ui:repeat
it works as expected. i think, this is a bug. What do you think?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062717#4062717

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062717
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [Seam 2] Parameter, sent from EL expression in xhtml to m

2007-07-10 Thread fmars
[EMAIL PROTECTED] wrote : It's worth trying with a h:commandLink.
No, that's not working too, neither h:commandButton

I read the limitations again but still couldn't understand anything. Is there a 
workaround?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062751#4062751

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062751
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: [Newbie]Can't persist 2 new objects, if they have the sa

2007-07-05 Thread fmars
No One!

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061063#4061063

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061063
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - [Newbie]Can't persist 2 new objects, if they have the same p

2007-07-04 Thread fmars
I'm creating 2 not-persisted objects and they have the same persisted object as 
instance variable. if i try to persist the new objects, i got a Duplicate entry 
violation. i know what it means, but i don't know what is wrong. 

can you please look at these small classes and point what is missing? Thank you.

@Entity
  | public class Gene implements java.io.Serializable {
  | @Id @GeneratedValue   private Integer id;   
  | 
  | private String name;
  | 
  | @OneToMany()
  | private ListCancerType cancerTypes;
  | public Gene() {}
  |
  |  // Setters and Getters
  | }

Table CancerType is filled with some data after table creation!
@Entity
  | public class CancerType implements java.io.Serializable {
  | @Id @GeneratedValue  private Integer id;
  | 
  | private String name;
  | 
  | public CancerType(){}
  | 
  | // Setters and Getters
  | }

And the main:
Session session = new 
AnnotationConfiguration().configure().buildSessionFactory().getCurrentSession();
  | session.beginTransaction();
  | 
  | Gene g1 = new Gene();
  | g1.setName(name);
  | Gene g2 = new Gene();
  | g2.setName(name);
  | 
  | ListCancerType cts = BasicDAO.session.createQuery(from 
CancerType).list();
  | 
  | g1.setCancerType(cts);
  | g2.setCancerType(cts);
  |   
  | session.save(g1);
  | session.save(g2);
  | 
  | session.getTransaction().commit();
  | 

Output:
Hibernate: select cancertype0_.id as id0_, cancertype0_.name as name0_ from 
CancerType cancertype0_
  | Hibernate: insert into Gene (name) values (?)
  | Hibernate: insert into Gene (name) values (?)
  | Hibernate: insert into Gene_CancerType (Gene_id, cancerTypes_id) values (?, 
?)
  | Hibernate: insert into Gene_CancerType (Gene_id, cancerTypes_id) values (?, 
?)
  | 00:01:39,109  WARN JDBCExceptionReporter:77 - SQL Error: 1062, SQLState: 
23000
  | 00:01:39,109 ERROR JDBCExceptionReporter:78 - Duplicate entry '1' for key 1
  | 00:01:39,109 ERROR AbstractFlushingEventListener:301 - Could not 
synchronize database state with session
  | org.hibernate.exception.ConstraintViolationException: Could not execute 
JDBC batch update
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
  | Exception in thread main 
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC 
batch update
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
  | at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  | at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
  | at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
  | at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:143)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
  | at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  | at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
  | at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
  | at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:143)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
  | at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
  | at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
  | at 
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
  | at tvsas1.Main.a2(Main.java:58)
  | at tvsas1.Main.main(Main.java:64)
  | Caused by: java.sql.BatchUpdateException: Duplicate entry '1' for key 1
  | at 
com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1237)
  | at 
com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:936)
  | at 
org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
  | at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
  | ... 9 more
  | at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
  | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
  | at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
  | at 
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
  | at tvsas1.Main.a2(Main.java:58)
  | at tvsas1.Main.main(Main.java:64)
  | Caused by: java.sql.BatchUpdateException: Duplicate entry '1' for key 1
  | at 
com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1237)
  | at 

[jboss-user] [JBoss Seam] - Re: Problem with Seam 1.2.1 and Trinidad 1.0.1

2007-07-01 Thread fmars
Not a solution for your problem, but  shouldn't you use 1.2.1 with only with 
JBoss 4.0.5. Seam 2 is targeted for JBoss 4.2.0. Maybe i'm wrong.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059457#4059457

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059457
___
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 BETA

2007-06-28 Thread fmars
I've created a new seam project wiht ear-support and opened it with Netbeans. 
Java Sources Classpath in the project properties  is pointing to the 
libraries in the /lib folder, which do not exist in that /lib folder. 

i didn't check all, but these jboss-ejb3-all.jar and 
commons-digester-1.6.jar shown in the Java Sources Classpath aren't in the 
subfolder /lib of project folder. 

is something forgotten or was that the intention?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058948#4058948

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058948
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 1.3.0 Alpha - pdf component causes problem

2007-06-16 Thread fmars
I found the source of problem. i explain here, maybe some other netbeans users 
too need this.

i am a netbeans user and open seam projects with netbeans. on my computer are 
jdk 5 and jdk 6 installed.
i run netbeans with jdk 6 because of swing improvements in java 6.

i knew already, that i have to use jdk 5 for seam and jboss.
therefore i set java_home to jdk 5 and tested, while building a seam project, 
but outside of netbeans.

the reason was that the built-in ant uses the jdk of netbeans on which it runs. 
 it has compiled sources with jdk 6.
i couldn't figure out it immediately, because sometimes it deploys 
successfully, but most of the times not.

one should  set explicitly in netbeans jdk to 5 for a seam project, if jboss 
runs on jdk 5.

a question: can't error log show a proper message like: hey, this is compiled 
with jdk 6 and i am not happy with it :)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054954#4054954

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054954
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 1.3.0 Alpha - pdf component causes problem

2007-06-15 Thread fmars
[EMAIL PROTECTED] wrote : It doesn't look remotely related to PDF.  Do you 
get an error from a full restart of the server?

Yes, you are right. it has nothing to do with it. But i am still getting 
exceptions. So i tried to prognosis it: i still don't know why, but here what i 
did:

first i've created a fresh new seam project with default settings. it has 
deployed itself successfully. so i have added an entity bean. before 
redeploying i call undeploy evertime. Deployed and it was successfull.

from my other project, i copied an entity and pasted in this new project. But 
this time i couldn't deploy successfully. i deleted it immediately and 
redeployed. still got the same error. after that i couldn't deploy it. i tried 
even to shutdown and restart the server. here is the exact output.

 21:35:09,843 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 
'jboss.jca:service=DataSourceBinding,name=DenemeDatasource' to JNDI name 
'java:DenemeDatasource'
  | 21:35:09,953 INFO  [EARDeployer] Init J2EE application: 
file:/D:/projects/jboss-4.2.0.GA/server/default/deploy/Deneme.ear
  | 21:35:13,265 INFO  [JmxKernelAbstraction] creating wrapper delegate for: 
org.jboss.ejb3.entity.PersistenceUnitDeployment
  | 21:35:13,265 INFO  [JmxKernelAbstraction] installing MBean: 
persistence.units:ear=Deneme.ear,unitName=Deneme with dependencies:
  | 21:35:13,265 INFO  [JmxKernelAbstraction]   
jboss.jca:name=DenemeDatasource,service=DataSourceBinding
  | 21:35:13,265 INFO  [PersistenceUnitDeployment] Starting persistence unit 
persistence.units:ear=Deneme.ear,unitName=Deneme
  | 21:35:13,281 INFO  [Ejb3Configuration] found EJB3 Entity bean: 
model.com.mydomain.methcancerdb.NewClassentitt
  | 21:35:13,437 WARN  [Ejb3Configuration] Persistence provider caller does not 
implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() 
is null.
  | 21:35:13,437 WARN  [ServiceController] Problem starting service 
persistence.units:ear=Deneme.ear,unitName=Deneme
  | javax.persistence.PersistenceException: [PersistenceUnit: Deneme] class or 
package not found
  | at 
org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1089)
  | at 
org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:886)
  | at 
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:772)
  | at 
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:407)
  | at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
  | at 
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
  | 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.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
  | 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 

[jboss-user] [JBoss Seam] - Seam 1.3.0 Alpha - pdf component causes problem

2007-06-14 Thread fmars
i was trying seam 1.3.0. i created a new seam project, added a few entity 
classes. it has successfully deployed.

After that i wanted to try pdf component. therefore i made these changes:

in components.xml: added a pdf name space and this declaration 
pdf:document-store use-extensions=true /

in web.xml: added these lines

servlet-nameDocument Store Servlet/servlet-name 
   servlet-classorg.jboss.seam.pdf.DocumentStoreServlet/servlet-class

servlet-mapping
servlet-nameDocument Store Servlet/servlet-name
url-pattern*.pdf/url-pattern
/servlet-mapping

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054593#4054593

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054593
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 1.3.0 Alpha - pdf component causes problem

2007-06-14 Thread fmars
unintentionally i clicked on submit. here i go on writing:

after those changes, if i try to deploy, i am getting these warnings:

WARN  [Ejb3Configuration] Persistence provider caller does not implements the 
EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
WARN  [ServiceController] Problem starting service 
persistence.units:ear=methcancerdb.ear,unitName=methcancerdb
javax.persistence.PersistenceException: [PersistenceUnit: methcancerdb] class 
or package not found

Could this be a bug? Or am i doing something wrong?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054594#4054594

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4054594
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user