[jboss-user] [JBoss Seam] - Re: How to not propagate conversations??

2008-01-19 Thread brachie
@MSchmidke: Hallo Landsmann ;-)

my Seam app has nearly the same structure as yours (RichFaces DropdownMenu and 
conversational pages).
As fas as I understood, creating new conversations and letting existing 
conversations timeout (this is the case when using propagation=none for 
menu-link) is ok and not a bad thing. But if there is any other proper way of 
doing what we want (explicit end the current conversation from menu) I would 
also be interested in the solution.

Greetings from Germany,

Alexander

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: jboss-4.2.2.GA on Win2K3 does not respond to HTTP reques

2008-01-19 Thread transclusion
Using http://localhost:8080/jmx-console, I'm still getting a timeout after a 
few minutes. Since the issue persists, I'm now considering reverting to an 
older version to see was happens. Thanks again PeterJ.

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

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


[jboss-user] [JBoss Seam] - Re: How to not propagate conversations??

2008-01-19 Thread sztank
Hello,
I had the similiar situation and will be very interested in finding the right 
solution. Actually I stop using conversations due to the fact that it will be 
hard to me to understand well how they should be used in the situations like 
this. Although I like the concept!


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

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


[jboss-user] [EJB 3.0] - OneToOne relation gives problem

2008-01-19 Thread thiagu.m
This is my TBL_PRODUCTS table structure is  

  | PRODUCT_ID   pk
  | PRODUCT_NAME 
  | CATEGORY_NAME
  | SUBCATEGORY_NAME
  | BRAND_NAME
  | 
This is my TBL_CELLPHONE table structure is 
 
  | PRODUCT_ID   pk
  | BLUETOOTH 
  | CAMERA 
  | 
This is my TBL_CELLPHONE table structure is

  | PRODUCT_ID   pk
  | NO_OF_CHANNELS 
  | WOOFERS
  | 
my entity beans are  

  | @Entity
  | @Table(name=TBL_PRODUCTS)
  | public class TblProducts implements Serializable 
  | {
  | @Id
  | @Column(name=PRODUCT_ID)  
  | private BigDecimal productId;   
  | 
  | @Column(name=PRODUCT_NAME)
  | private String productName;
  | 
  |@Column(name=CATEGORY_NAME)
  | private String categoryName;
  | 
  | @Column(name=SUBCATEGORY_NAME)
  | private String subcategoryName;
  | 
  | @Column(name=BRAND_NAME)  
  | private String brandName;   
  | 
  | @OneToOne(fetch=FetchType.LAZY,mappedBy=tblProducts)
  | private TblCellphone tblCellphone;
  | 
  | @OneToOne(fetch=FetchType.LAZY,mappedBy=tblProducts)
  | private TblTelevision tblTelevision;
  | }
  | 
--
  | @Entity
  | @Table(name=TBL_CELLPHONE)
  | public class TblCellphone implements Serializable 
  | {
  | @Id
  | @Column(name=PRODUCT_ID)  
  | private BigDecimal productId;   
  | 
  | private String bluetooth;   
  | 
  | private String camera;
  | 
  | OneToOne(optional=false)
  | @JoinColumn(name=PRODUCT_ID)   
  | private TblProducts tblProducts;
  | }
  | ---
  | @Entity
  | @Table(name=TBL_TELEVISION)
  | public class TblTelevision implements Serializable 
  | {
  | @Id
  | @Column(name=PRODUCT_ID)
  | private BigDecimal productId;   
  | 
  | @Column(name=NO_OF_CHANNELS)
  | private String noOfChannels;
  | 
  | private String woofers; 
  | 
  | @OneToOne(optional=false)
  | @JoinColumn(name=PRODUCT_ID)   
  | private TblProducts tblProducts;
  | }
  | 
TblProducts is my main table. I try to add OneToOne relation with other tables 
(TblTelevision and TblCellphone). I cant add more than one relation. If I add 
it gives incomplete deployment problem. If I remove any one of the OneToOne 
relation from TblProducts its works fine.
Is there any mistake in my code 
Please help me 

By
Thiagu.m

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

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


[jboss-user] [JBossWS] - Re: url mapping schemalocation

2008-01-19 Thread [EMAIL PROTECTED]
AJanz wrote : something i must do wrong.
  | 
  | i edited the wsdl file, but then could no longer build the project because
  | 
  | xsd:import namespace=mynamespace 
  | 
schemaLocation=http:/myalias:8080/project/Service?wsdlresource=myschema.xsd/
 
  | 

While editing the local copy of the wsdl, also change the import url with 
something like
xsd:import namespace=mynamespace 
  | schemaLocation=myschema.xsd/   
and add the myschema.xsd to the archive you deploy, along with the wsdl file.

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

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


[jboss-user] [JBossWS] - Re: url mapping schemalocation

2008-01-19 Thread [EMAIL PROTECTED]
AJanz wrote : 
  | http://ip-adress:8080/WebService/project?wsdl
  | 
  | gives an error
  | 
What error?

anonymous wrote : 
  | how can i publish a web service under a differen url?
  | 
What exactly do you mean? Take a look at this:
http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#How_does_rewriting_of_the_soap_address_in_WSDL_work.3F
and read my reply here:
http://www.jboss.com/index.html?module=bbop=viewtopict=126138
I guess it's what you're looking for.

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

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


[jboss-user] [JBoss Tools (users)] - Re: import.sql howto

2008-01-19 Thread [EMAIL PROTECTED]
yes, just like in seam-gen...just because its in the IDE doesn't change the 
behavior ,)

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Unable to start JBoss 4.2.2 GA

2008-01-19 Thread madhu201814
Hi,

I have downloaded jboss-4.2.2.GA but it is not running.can any one suggest me 
how to configure JBOSS on windows 2003 Server Enterprise Edition

Environmental Variables

JBOSS_HOME:C:\jboss-4.2.2.GA
JAVA_HOME:C:\Java\jdk1.5.0_12
CLASSPATH:C:\Java\jdk1.5.0_12\lib\tools.jar;C:\jboss-4.2.2.GA\bin\run.jar;.
PATH:C:\Java\jdk1.5.0_12\bin;.

when I click on run.bat,it just blinking and disappearing.

Thanks in Advance

Madhu

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

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


[jboss-user] [JBoss Seam] - Re: Component Architecture instead of traditional Layers

2008-01-19 Thread brachie
@Cyrill: Interesting questions! I would also be very interested in an answer, 
since we are currently using Seam in our project and having a proper 
architecture is essential. I agree, that the seam examples are a bit too simple 
as template for real-world application architecture.

In my opinion injecting one SFSB into another should be avoided, but maybe I am 
wrong.. It would be great if someone with real-world seam experience could give 
some architectural advises.

The following questions are in my mind:

Should there be one SFSB for every persistent class of your domain model which 
acts as a manager and manages the actions connected with the (injected) entity 
(e.g. SFSB PersonMgr for creating, deleting persons in DB etc)?

Or would it be better to have one SFSB component for each page you have in your 
application, which manages the actions connected to the specific page?

Or would it be good to have one SFSB per use case of your application?

What would be the correct approach? Please share your opinions!

Greetings,

Alexander

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Unable to start JBoss 4.2.2 GA

2008-01-19 Thread madhu201814

Hi,

I solved this issue.We should keep C:\WINDOWS\System32 in environmental PATH 
variable



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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Everything is deleted on shutdown

2008-01-19 Thread apetrov2
  Hi, probably I am not doing something right. I have an application EAR file 
it is a shopping platform with a catalog. This shopping platform has different 
payment methods. The user uploads a class file with a payment method and the 
platform starts using it.

But the problem is that on shutdown all the tmp directory is deleted and all 
changes made are deleted to.  Where and how to place all the content that needs 
to be persistent and at the same time to be in my classpath. 

The last time I worked with application server Oracle an Bea Weblogic I think, 
I remember that the deployment was only once and it is not delted after.

What should I do?

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

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


[jboss-user] [EJB/JBoss] - Re: Serializable no remote classloading

2008-01-19 Thread newtetris
Great thanks a lot ... it works but 1 (small) issue left. 

If I do scoped classloading with a jboss-app.xml like:

jboss-app
  |loader-repository 
  |org.test:archive=TestEJB.ear 
  |/loader-repository 
  | /jboss-app

it won't work (of course?) ... any possibility to get it working? 


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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: jboss-4.2.2.GA on Win2K3 does not respond to HTTP reques

2008-01-19 Thread jaikiran
Sometime back i had run into a similar issue and for me it had turned out to be 
my setting in IE/Firefox. I had proxy enabled in my browser but had missed out 
adding localhost in the No Proxy for (Do not use proxy for) list in the 
IE/Firefox settings. Adding localhost to that list had fixed the issue for me. 
See if you have a similar problem.

But that does not explain why you are able to access Tomcat.

anonymous wrote : if I run Apache Tomcat instead of jBoss everything works 
fine, that is I’m getting response on http://localhost:8080.





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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121506

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: url mapping schemalocation

2008-01-19 Thread AJanz
many thanks!!! 

editing jboss-beans.xml and commenting webservicehost solved my problem.

now the ip or url from the get request is then used as url prefix for the 
schemalocation.

greetings 
sascha

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

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


[jboss-user] [JBoss jBPM] - help major problem

2008-01-19 Thread twiceknightly
Hi,

I have a major problem that I am finding hard to debug.  I am using version 
3.2.2 of jbpm on weblogic 9.2.  I have an stateless session bean that is using 
container managed persistence.  The problem I am seeing is that when I make the 
transition to an end state in the graph it is falling over.  Transition to any 
other state is ok.  The stack trace I get is given below.  Essentally it's 
saying

Caused by: org.hibernate.SessionException: Session is closed!

I have remote debugged right through my own code and the jbpm code.  It's only 
once all the code has executed and the enterprise bean tries to commit the 
transaction that it happens.  What baffles me is why it is only the case for 
the end states.  Apologies that I haven't provided much info but it's difficult 
to know what would be relevant.  I'm totally lost.  I'm hoping someone will 
have a few hypthesis that I can test out.  By the way I had my code working on 
an earlier version of jbpm!

cheers

Richard.

[java] javax.transaction.TransactionRolledbackException: 
BEA1-0002EB2EDFA4625ED8C8: org.hibernate.SessionException: Session is closed!

[java] at 
org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)

[java] at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1258)

[java] at 
org.jbpm.db.JobSession$DeleteJobsSynchronization.beforeCompletion(JobSession.java:190)

[java] at 
weblogic.transaction.internal.ServerSCInfo.doBeforeCompletion(ServerSCInfo.java:1150)

[java] at 
weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:1128)

[java] at 
weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:115)

[java] at 
weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAndChain(ServerTransactionImpl.java:1288)

[java] at 
weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(ServerTransactionImpl.java:2098)

[java] at 
weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:259)

[java] at 
weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:227)

[java] at 
weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:539)

[java] at 
weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(StatelessEJBObject.java:72)

[java] at 
weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:374)

[java] at 
com.nr.tms.workflow.interaction.ejb.TMSWorkflowService_7jxszs_EOImpl.saveAndCloseTask(TMSWorkflowService_7jxszs_EOImpl.java:358)

[java] at 
com.nr.tms.workflow.interaction.ejb.TMSWorkflowService_7jxszs_EOImpl_WLSkel.invoke(ILweblogic.rmi.spi.InboundRequest;Lweblogic.rmi.spi.OutboundResponse;Ljava.lang.Object;)Lweblogic.rmi.spi.OutboundResponse;(Unknown
 Source)

[java] at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)

[java] at 
weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)

[java] at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)

[java] at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)

[java] at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)

[java] at 
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)

[java] at 
weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)

[java] at 
weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)

[java] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

[java] at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

[java] ; nested exception is:

[java] org.hibernate.SessionException: Session is closed!

[java] at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:195)

[java] at 
weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)

[java] at 
weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)

[java] at 
com.nr.tms.workflow.interaction.ejb.TMSWorkflowService_7jxszs_EOImpl_920_WLStub.saveAndCloseTask(JLjava.lang.String;Ljava.util.List;)V(Unknown
 Source)

[java] at com.nr.tms.client.TestHarness.main(TestHarness.java:47)

[java] Caused by: org.hibernate.SessionException: Session is closed!

[java] at 
org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49)

[java] at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1258)

[java] at 
org.jbpm.db.JobSession$DeleteJobsSynchronization.beforeCompletion(JobSession.java:190)

[java] at 
weblogic.transaction.internal.ServerSCInfo.doBeforeCompletion(ServerSCInfo.java:1150)

[java] at 
weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java:1128)

[java] at 
weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(ServerSCInfo.java:115)

[java] at 

[jboss-user] [JBoss AOP] - dynamic AOP - how to add advice???

2008-01-19 Thread bornmw
I have an aspect, defined as
aspect name=ViewAspect class=ViewAspect/

How do I programmatically make an advice out of its 'render' method and add it 
to the chain of interceptors, same as I do with next xml:
bind pointcut=execution(public * TickerPortlet-render(..))
  | advice name=render aspect=ViewAspect/
  | /bind


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

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


[jboss-user] [JBoss Portal] - Get Client IP address

2008-01-19 Thread thepriz
I would like to get the client IP address in a portlet. I have searched around 
and it seems this is not possible in the portlet architecture. I would like to 
do this to the portal specs but if this is not possible because it is lacking 
in the specs what is the workaround for jboss?

Thanks,




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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121512
___
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: Hibernate sql output in Server Log and Console

2008-01-19 Thread jdijkmeijer
Ahh that explains it, still wondering why @work I can use debug, we use there 
commons-logging and spring together with hibernate3.

Of course the Threshold in the appender needed to be adjusted as well. 

Looking at the code, I'm wondering if it would be valuable if you can specify 
whether you see the returning or binding values?

thanks  regards,
Jeroen.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Everything is deleted on shutdown

2008-01-19 Thread jaikiran
Deploy your application in a exploded format as mentioned at 
http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment. That way you can 
upload your files in the exploded archive

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121516
___
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: Hibernate sql output in Server Log and Console

2008-01-19 Thread jaikiran
jdijkmeijer wrote :  still wondering why @work I can use debug, we use there 
commons-logging and spring together with hibernate3.
  | 
  | 

As mentioned in the bug report, the behaviour depends on the version of log4j 
being used. Not sure how it behaves with commons-logging.

jdijkmeijer wrote : Looking at the code, I'm wondering if it would be 
valuable if you can specify whether you see the returning or binding values? 

Sorry, i did not understand your question. Are you asking what the code in that 
class of Hibernate looks like? 


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

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


[jboss-user] [Beginners Corner] - Re: I want to understand Jboss log files...

2008-01-19 Thread jaikiran
Everything looks fine in these logs. Hibernate is initializing as part of your 
application. Where/when do you see the errors?


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

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


[jboss-user] [Security JAAS/JBoss] - Re: JBOSS Error

2008-01-19 Thread jaikiran
Looks like you are not allowed to connect to 10.173.172.176:1099. Does 

telnet 10.173.172.176 1099 

work?

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

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


[jboss-user] [Security JAAS/JBoss] - Re: EJB3: How to access @Stateless EJBs from custom LoginMod

2008-01-19 Thread jaikiran
anonymous wrote : I tried a lookup via JNDI = no success 
(NameNotFoundException) 

Looks like you are using an incorrect JNDI name to do the lookup. Follow the 
steps below to figure out the exact jndi-name to which your bean is bound and 
then use that name to do the lookup:

- Go to http:// server: port/jmx-console (Ex: 
http://localhost:8080/jmx-console)
- Search for service=JNDIView on the jmx-console page
- Click on that link
- On the page that comes up click on the Invoke button beside the list() method
- The page that comes up will show the contents of the JNDI tree. 

If you have difficulty in understanding the output of the JDNIView then post 
the output here.



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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss deletes all the temp on shutdown

2008-01-19 Thread jaikiran
Let's continue this discussion in your other post at 
http://www.jboss.com/index.html?module=bbop=viewtopict=128054

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Services with EJB dependency do not start up

2008-01-19 Thread jaikiran
Maybe the name of the service corresponding to your EJB has changed from 4.0.5 
to 4.2.2. Go the jmx-console (http://localhost:8080/jmx-console) and see what's 
the name of the service which corresponds to your EJB and then use this in the 
depends tag of your MBean

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: DataSourceBinding not yet installed

2008-01-19 Thread jaikiran
anonymous wrote : Didn't knew about a state-xml-file before?! Do I need this? 
In the jms dir is no state-xml-file, none for hypersonic and - clear - non for 
mssql. I also not found a mssql-jdbc-state-service.xml in the googled sites or 
in the example dir of jboss... 

JBoss-4.2.2 does have hssql-jdbc-state-service.xml in the jms folder. 
Surprising that you did not find one. Even  
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMQDB mentions that for 
version greater than 3.2.4 you have to update this file (and one other file) 
for changing HSQL DB to some other DB. Did you follow those steps?


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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss deletes all the temp on shutdown

2008-01-19 Thread alesj
Where do you upload the user's file?

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

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


[jboss-user] [JBoss Seam] - Re: Problem with validation and entityHome

2008-01-19 Thread fjgarmu
Thanks for ur reply matt.drees.
I try writing a new method mysave in ReportsHome:

  | public String mysave(){ 
  | if (this.getInstance().getRadiologos().getId()==0  
this.getInstance().getReportstatus().getId()=4){
  | this.addFacesMessage(ERROR);  
  | return error;
  | }else{
  | super.update();
  | return null;
  | }
  | }
  | 
In the JSF page the method is called by a s:button

  | s:button id=mysave 
  |value=mysave
  | action=#{reportsHome.mysave}
  | view=/Reports.xhtml
  | rendered=#{reportsHome.managed}/
  | 

The behaviour is: the values are saved even when the ERROR message is raised 
and the application goes to Reports.xhtml page, even when the parameters 
aren't valid and the super.update method is not called.
Why?
How could I do it for don't save it when the values are not correct?
Thanks in advance.

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

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


[jboss-user] [JBoss Seam] - Re: JSF/Seam Binding and Nested Classes

2008-01-19 Thread aggtecnologia
In the first code snippet please ignore the annotation @Stateful. It is just a 
typo (it s not in my code). My code is just:


  | @Entity
  | @Name(mother)
  | public class Mother {
  | 
  |private Daughter daughter;
  | 
  |... setters and getters
  | }
  | 

I found a workaround defining Daughter as a Seam component:


  | @Name(daughter)
  | public class Daughter {
  | 
  |  private String someprop;
  | 
  | ... setters and getters
  | 
  | }
  | 


and then using it as a separate component and asociating it with mother in Java:

I mean instad of using:


  |  h:inputText value=#{mother.daughter.someprop}/
  | 

I use:


  |  h:inputText value=#{daughter.someprop}/
  | 

and then in the action bean:


  | 
  | @Stateful
  | public class ActionBean {
  |
  | 
  |@In 
  |private Mother mother;
  | 
  |@In
  |private Daughter daughter;
  | 
  |public void persistMother () {
  | 
  |   mother.setDaughter(daughter);
  | 
  |   em.persist (daughter);
  | 
  |}
  | 
  |
  | }
  | 

It is not elegant but at least it works. 

Nevertheless I would like to know if there is any bug in the Expression 
Language interpreter or if I am doing something wrong. Accortding to JSF 
specification the first sintax I mention should work.

any comments?

Thanks in advnace.

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

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


[jboss-user] [EJB 3.0] - Stateless session bean pooling in JBoss

2008-01-19 Thread yhrn
Hi,
I'm using JBoss AS 4.2.2 GA and was trying to understand why every invocation 
on my slsb resulted in a new instance and why none of these instances were 
destroyed (i.e. why the @PreDestroy method was not invoked) until I stopped the 
entire application server. I finally understood that the reason was that the 
default pool implementation used for slsb:s is org.jboss.ejb3.ThreadlocalPool 
(specified in deploy/ejb3-interceptors-aop.xml). If I understand the source 
code correctly, this pool type works like this:

1. When a thread requires a slsb instance the pool creates a new one unless 
there is already a dedicated (using the ThreadLocal mechanism) slsb instance 
for this particular thread, in which case this instance is used (and removed 
from the ThreadLocal). 
2. When the thread returns the slsb instance to the pool the instance will be 
cached for this particular thread, unless there is already a dedicated instance 
for this thread, in which case the returned instance is destroyed.

This would the mean that the only scenario that will cause slsb instances to be 
destroyed before the server is shut down is if the same thread manages to hold 
two slsb instances of the same type at the same time (is this possible?). 
Furthermore, the only time an slsb instance is reused is when the same thread 
access the same slsb multiple times. 

So if a new thread is used every time a client invokes the bean then the number 
of bean instances will grow indefinitely. This is of course dependent on how 
JBoss pools threads for invocations different kinds, but it seems that the 
default behaviour (at least when using single-action EJB timers) is that new 
threads are created for every invocation (timeout). Isn't this a memory leak?

Also, the other available pool types I can find (org.jboss.ejb3.InfinitePool 
and org.jboss.ejb3.StrictMaxPool) seems to lack the kind of behaviour I would 
like (and I think it is kind of typical for pools). What I would like is:

* The pool has a configurable maxSize, which is the maximum number of 
available (unused) slsb instances that are retained.
* Slsb instances in the pool are reused (if there are any available), otherwise 
a new instance is created.
* When an slsb instance is returned it is stored so it can be reused unless 
there is already more than maxSize instances unused instances in the pool. In 
this case the instance is destroyed.

I suppose I could implement this kind of pool myself but isn't it something 
that should be included in JBoss EJB3?

If I haven't understood things correctly I apologize for the long post and 
stand ready to be rectified.

Cheers

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

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


[jboss-user] [JBoss Seam] - Re: JSF/Seam Binding and Nested Classes

2008-01-19 Thread matt.drees
Do you ever create a Daughter object?

I think you may need to post more code, and details on what fails.  It looks 
like what you are trying to do should work, but it's not completely clear from 
what you've posted so far.



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

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


[jboss-user] [JBoss Seam] - Re: Problem with validation and entityHome

2008-01-19 Thread matt.drees
By default, changes made to managed objects are flushed upon transaction 
completion, even if an update() is never manually called.

You probably want to use manual flush mode.  It's in the docs.

There are also other posts about it.

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

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


[jboss-user] [JBoss Seam] - Re: Problem with validation and entityHome

2008-01-19 Thread fjgarmu
thanks for your quick reply.
I try it putting in the ReportsEdit.page.xml  begin-conversation join=true 
flush-mode=MANUAL/
But the behavior is the same.
Is it ok?
Thanks

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

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


[jboss-user] [JBoss Seam] - Re: Problem with validation and entityHome

2008-01-19 Thread matt.drees
Oh, maybe I misunderstood the situation.

Did you appropriately change the page.xml file?  (ReportsHome.page.xml, iirc)

Post what you have.

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

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


[jboss-user] [JBoss Seam] - Re: Begin method invoked from a long-running conversation -

2008-01-19 Thread MSchmidke
A lot of investigation later:

Seems this time I have a really big problem with this. I have a new component 
which is very similar to the ones I already had (did not find any convincing 
difference until now), but it does not work.

The new component has a @Create @Begin method to begin the conversation, just 
like all of my other components.

It is @Conversational, just like all of my other components.

And it is called from rich:dropdownmenu with conversationPropagation=none or 
end, I tried both, just like all of my other components.

But I get the annoying Begin method invoked from a long-running conversation 
error.

Now I tried to use join=true (not that I wanted to do this, but only to look 
what will happen), and the result is very impressive:

no long-running conversation for @Conversational bean

I've tried to debug all this. Set a breakpoint at 
Manager.setLongRunningConversation. But this was a dead end. Conversations are 
turned on-off-on-off just during one single Event (and sometimes just 
on-off-on, that's the problem), which gave me absolutely no clue.

Please help me!!!


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

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


[jboss-user] [JBoss Seam] - Re: framework:entity-query question...

2008-01-19 Thread minamti
I am doing the ampersand sign () followed by le and followed by a ;
If I give that string, the post says it is =.

Why does parsing components.xml give an error ?

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

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


[jboss-user] [JBoss Seam] - Re: Begin method invoked from a long-running conversation -

2008-01-19 Thread MSchmidke
Finally I've found the cause.

The page which does not work has page parameters in pages.xml. If I remove 
them, that page can be called (but I need them).

But now that I found the reason, I still don't know why this is an error and 
what I can do.

Can you help?


Marcus.

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

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


[jboss-user] [JBoss Seam] - Re: framework:entity-query question...

2008-01-19 Thread [EMAIL PROTECTED]
1) POST YOUR EXCEPTIONS and stack traces.
2) Use code tags in your posts.

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

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


[jboss-user] [JBoss Seam] - Re: JSF/Seam Binding and Nested Classes

2008-01-19 Thread aggtecnologia
You are ABSOLUTELY RIGHT. I am never creating daughter, I have just a 
reference. My code should be:

  | @Entity
  | @Name(mother)
  | public class Mother {
  | 
  |private Daughter daughter = new Daughter();
  | 
  |... setters and getters
  | }
  |  

When poor old Seam tried to set the values for daugher it found no target 
object.

Thank you very very much.

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

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


[jboss-user] [JBoss Seam] - Re: Component Architecture instead of traditional Layers

2008-01-19 Thread [EMAIL PROTECTED]
ruettimac wrote : a) Injecting stateful session beans into other stateful 
session beans?

No problem here, just use @In

anonymous wrote : b) Are there any problems regarding the different seam scopes 
like CONVERSATION and long running CONVERSTAION scopes beans?

Like what?

anonymous wrote : c) Any patterns to avoid or seam annotations like @Create or 
@Factory?

I find @Create is less useful in writing apps (it's great for build 
infrastructure components, like those in Seam). @Factory is great. I'm a fan of 
using a Seam component and a factory to manage your entites (a la 
EntityHome/seam-gen) rather than explicitly outjecting objects (but outjection 
has performance benefits).

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

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


[jboss-user] [JBoss Seam] - Re: How to not propagate conversations??

2008-01-19 Thread [EMAIL PROTECTED]
If you want to cancel a conversation, use a propagation of end.

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

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


[jboss-user] [JBoss Seam] - Re: Component Architecture instead of traditional Layers

2008-01-19 Thread [EMAIL PROTECTED]
brachie wrote : In my opinion injecting one SFSB into another should be 
avoided, but maybe I am wrong..

Why?


The following questions are in my mind:

anonymous wrote : Should there be one SFSB for every persistent class of your 
domain model which acts as a manager and manages the actions connected with the 
(injected) entity (e.g. SFSB PersonMgr for creating, deleting persons in DB 
etc)?

This seems reasonable, and is the approach we take with seam-gen (using 
EntityHome for scaffolding).

anonymous wrote : Or would it be better to have one SFSB component for each 
page you have in your application, which manages the actions connected to the 
specific page?

This strikes me as a bad idea and hangover from older design patterns.

anonymous wrote : Or would it be good to have one SFSB per use case of your 
application?

This is, IMO, another very valid approach. It could easily be combined with 
your first suggestion (an EntityHome for each entity, a component for a use 
case can call the EntityHome as necessary).

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

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


[jboss-user] [JBoss Seam] - Re: @In reference a bit strange

2008-01-19 Thread [EMAIL PROTECTED]
Please file a JIRA issue for this. We should probably issue a WARN as it's not 
really an ERROR, but a programmer mistake.

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

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


[jboss-user] [JBoss Seam] - Re: JSF or Seam Question?

2008-01-19 Thread [EMAIL PROTECTED]
Sorry, I'm not really understanding what you are saying, can you explain again? 
If there is a problem with s:defaultAction (it behaves differently to pressing 
the commandButton with the mouse) then we should fix it.

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

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


[jboss-user] [JBoss Seam] - Re: Problems with list page, persistence, and detached entit

2008-01-19 Thread [EMAIL PROTECTED]
Phew, long post.

To keep entites from being detached use an SMPC with a long running 
conversation.

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

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


[jboss-user] [JBoss Seam] - Re: beginner question

2008-01-19 Thread [EMAIL PROTECTED]
That pom shouldn't be there, I deleted it from trunk.

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

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


[jboss-user] [JBoss Seam] - Re: ELResolver invocation order

2008-01-19 Thread [EMAIL PROTECTED]
anonymous wrote : I wasn't looking for info about how an elresolver works, 

You can't write a custom resolver without understanding the API.

anonymous wrote : Currently i just don't set the property to be resolved, and 
simply return null.
  | In your experience is it better to throw the exception? 

This is spec breaking, which you would know if you bothered to read the link I 
posted for you.

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

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


[jboss-user] [JBoss Seam] - Re: how to make session and Conversation disabled in seam?

2008-01-19 Thread [EMAIL PROTECTED]
You can't do it. In fact, you can't disable the session in servlet afaik.

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

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


[jboss-user] [JBoss Seam] - Re: FailedConfiguration while running test

2008-01-19 Thread [EMAIL PROTECTED]
So you are using Seam 1.2?

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

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


[jboss-user] [JBoss Seam] - Re: Problem with validation and entityHome

2008-01-19 Thread fjgarmu
Ok.
I have:
-JSF page: ReportsEdit.xhtml with a button

  | s:button id=mysave 
  |value=mysave
  | action=#{reportsHome.mysave}
  | view=/Reports.xhtml
  | rendered=#{reportsHome.managed}/
  | 
  | 
-page xml: ReportsEdit.page.xml

  | !DOCTYPE page PUBLIC
  |   -//JBoss/Seam Pages Configuration DTD 1.2//EN
  |   http://jboss.com/products/seam/pages-1.2.dtd;
  | 
  | page no-conversation-view-id=/ReportsList.xhtml 
  |login-required=true
  |
  |begin-conversation join=true flush-mode=MANUAL/
  |
  |action execute=#{reportsHome.wire}/
  |
  |param name=reportsFrom/
  |param name=reportsStudyuid value=#{reportsHome.reportsStudyuid}/
  |param name=patientsFrom/
  |param name=patientsId value=#{patientsHome.patientsId}/
  | 
  |param name=radiologosFrom/
  |param name=radiologosId value=#{radiologosHome.radiologosId}/
  | 
  |param name=reportstatusFrom/
  |param name=reportstatusId value=#{reportstatusHome.reportstatusId}/
  | 
  | 
  |navigation from-action=#{reportsHome.persist}
  |end-conversation/
  |redirect view-id=/Reports.xhtml/
  |/navigation
  |
  |navigation from-action=#{reportsHome.update}
  |end-conversation/
  |redirect view-id=/Reports.xhtml/
  |/navigation
  |
  |navigation from-action=#{reportsHome.remove}
  |end-conversation/
  |redirect view-id=/PatientsQR.xhtml/
  |/navigation
  |
  | /page
  | 

-Action .java: ReportsHome.java

  | public String mysave(){ 
  | if (this.getInstance().getRadiologos().getId()==0  
  | this.getInstance().getReportstatus().getId()=4){
  | this.addFacesMessage(ERROR);  
  | return error;
  | }else{
  | super.update();
  | return null;
  | }   
  | }
  | 

That's all.
Thanks for ur help. 

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

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


[jboss-user] [JBoss Seam] - Re: Seam with Hibernate Search

2008-01-19 Thread [EMAIL PROTECTED]
I'm no expert, but the examples do this:

@In
  | private FullTextEntityManager entityManager;
  | 
  | ...
  | 
  | entityManager.createFullTextQuery(...);

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

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


[jboss-user] [JBoss Seam] - Re: How to not propagate conversations??

2008-01-19 Thread [EMAIL PROTECTED]
Can you show us code where it does not work?

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

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


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

2008-01-19 Thread juntao
The examples are tested on Tomcat 6.0. For Tomcat 5.5, I believe that you need 
to have the Sun EL JAR (el-api.jar)on the classpath.

cheers
Michael

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

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


[jboss-user] [JBoss Seam] - Re: How to not propagate conversations??

2008-01-19 Thread MSchmidke
[EMAIL PROTECTED] wrote : If you want to cancel a conversation, use a 
propagation of end.

Yes ... I tried ... but the point is that end does not seem to work for many 
of us, and I really do not understand why.

@End annotation always works as expected, but end propagation does nothing 
understandable.

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

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


[jboss-user] [JBoss Seam] - Bypassing validations when using EntityQuery with example ob

2008-01-19 Thread stu2
I'm using the EntityQuery framework class, and it's working fine.  As per the 
seam docs I'm using the Example object to hold query parameters.  It works very 
well.  

BUT, Seam is running the validations on the example object, validation fails, 
and the search can't proceed.  While the entity validations are appropriate for 
persisting the entity (name must be at least 3 chars for instance), they don't 
apply to this use case.  

I'm not using s:validate or s:validateAll, which I thought was what triggered 
this behavior.  Any suggestions?  Is this how it is supposed to be?

Thanks,

Stu

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

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


[jboss-user] [JBoss Seam] - Re: ELResolver invocation order

2008-01-19 Thread [EMAIL PROTECTED]
Fair enough.

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

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


[jboss-user] [JBoss Seam] - Re: How to reliably count active sessions and connected user

2008-01-19 Thread [EMAIL PROTECTED]
This isn't a bug.  the loggedOut event is only raised when a user explicitly 
calls Identity.logout(), which doesn't happen when the session simply expires.  
 I'm not sure which alternative to suggest, perhaps we need a new feature to 
support some kind of global session tracking.

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

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


[jboss-user] [JBoss Seam] - Re: Email with Icefaces

2008-01-19 Thread mrobinson28
anonymous wrote : I suggest posting on the icefaces forum, and post a link back 
here.

It looks like someone already beat me to it: 

http://www.icefaces.org/JForum/posts/list/6923.page

Thanks for the help.



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

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


[jboss-user] [JBoss Seam] - Re: @In reference a bit strange

2008-01-19 Thread matt.drees
http://jira.jboss.org/jira/browse/JBSEAM-2510

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

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


[jboss-user] [JBoss Seam] - Re: Problem with validation and entityHome

2008-01-19 Thread matt.drees
fjgarmu wrote : 
  | 
  |   | s:button id=mysave 
  |   |value=mysave
  |   | action=#{reportsHome.mysave}
  |   | view=/Reports.xhtml
  |   | rendered=#{reportsHome.managed}/
  |   | 
  |   | 
  |  

I think there a couple problems here; I should have noticed them earlier.

For one thing, do you really want an s:button?  Usually for save kind of 
controls, you want an h:commandButton, because you want to submit some data, 
not just trigger an action.

If you do in fact want an s:button, you shouldn't specify both action and 
view.  (I think.)  In this case, you want the action, but not the view 
attribute.

Also, you'll need a navigation rule in your ReportsEdit.page.xml for your 
mysave action that goes to the ReportsList page if the outcome isn't error. 
 
(Note that the typical JSF pattern, contrary to your design, is to return null 
if you want to stay on the same page and a string like success if you want to 
move away.  So you may consider doing that instead.)

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

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


[jboss-user] [JBoss Seam] - Re: Seam with Hibernate Search

2008-01-19 Thread neilac333
True enough.  When combined with Seam, HS allows you to inject the 
FullTextEntityManager directly.

However, what I am doing is still correct--at least theoretically.  It is 
basically what is found in the DVDStore example but with one catch.  In that 
case, the JPA EntityManager is injected by Seam, but the EM is really the 
superinterface abstraction of an FTEM.  So the FTEM is obtained by simply 
downcasting the EM.  

In my case, the call to Search.createFullTextEntityManager(em) does the same 
thing.  If the em parameter is actually an FTEM instance, then the downcast is 
returned.  If it isn't, some other magic happens to turn the EM into an FTEM.  
If you are really bored, check out Emmanuel's code yourself.

Yet having said all this, if I can't actually figure out what's going on, I 
might just have the FTEM injected and see what happens.

Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: FailedConfiguration while running test

2008-01-19 Thread hubaghdadi
I use Seam 2.0 GA, JDK6, JBoss4.2, Ubuntu 7.10
I dropped my Ant build file and used the one that is generated by seam-gen 
tool, but this time I got this exception:

  |[testng] ERROR 
[org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing 
to Instantiated: name=DeploymentFilter state=Described
  |[testng] java.lang.IllegalStateException: Class not found: 
[Ljava.lang.String;
  |[testng] at 
org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:174)
  |[testng] at 
org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:125)
  |[testng] at 
org.jboss.metadata.spi.signature.Signature.getParametersTypes(Signature.java:292)
  |[testng] at 
org.jboss.metadata.plugins.loader.reflection.AnnotatedElementMetaDataLoader.getComponentMetaDataRetrieval(AnnotatedElementMetaDataLoader.java:138)
  |[testng] at 
org.jboss.metadata.plugins.context.AbstractMetaDataContext.getComponentMetaDataRetrieval(AbstractMetaDataContext.java:280)
  |[testng] at 
org.jboss.metadata.spi.retrieval.MetaDataRetrievalToMetaDataBridge.getComponentMetaData(MetaDataRetrievalToMetaDataBridge.java:159)
  |[testng] at 
org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.methodHasAnnotations(AOPConstructorJoinpoint.java:202)
  |[testng] at 
org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasMethodMetaData(AOPConstructorJoinpoint.java:172)
  |[testng] at 
org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasInstanceOrJoinpointMetaData(AOPConstructorJoinpoint.java:152)
  |[testng] at 
org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:99)
  |[testng] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
  |[testng] at 
org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:52)
  |[testng] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
  |[testng] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
  |[testng] at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  |[testng] at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
  |[testng] at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
  |[testng] at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
  |[testng] at 
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
  |[testng] at 
org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
  |[testng] at 
org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
  |[testng] at 
org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
  |[testng] at 
org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
  |[testng] at 
org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
  |[testng] at 
org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
  |[testng] at 
org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
  |[testng] at 
org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
  |[testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
  |[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
  |[testng] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |[testng] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |[testng] at java.lang.reflect.Method.invoke(Method.java:597)
  |[testng] at 
org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
  |[testng] at 

[jboss-user] [JBoss Tools (users)] - Error when opening richfaces file in Eclipse with Fedora 8

2008-01-19 Thread kjack
When I try to open the seam generated home.xhtml file with Eclipse (plus jboss 
tools) on Fedora 8 I get the following error:

Caused by: java.lang.UnsatisfiedLinkError: no swt-xulrunner-gtk-3346 or 
swt-xulrunner-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:219)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:244)
... 48 more

I'm using a standard Fedora 8 image of eclipse yet I spent all day trying to 
find this file and I can't.  Should libswt-xulrunner-gtk-3346.so. exist in 
/usr/lib/eclipse?

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

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


[jboss-user] [JBoss Seam] - Re: Seam with Hibernate Search

2008-01-19 Thread neilac333
I forgot to mention also that if you look at the top of the stack trace, all 
the fun starts with the class 
org.hibernate.search.jpa.impl.FullTextEntityManagerImpl.  If that is the class 
of object that is supposed to be injected with 


  | @In
  | private FullTextEntityManager entityManager
  | 

then it would seem that I obtained the FullTextEntityManager.  I suppose the 
issue is if in fact I got the right FullTextEntityManager implementation by 
doing it the current way.  Or if my way somehow contradicts the expectation 
of Gavin's code in FullTextHibernateSessionProxy.

Thanks.


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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - how to set Java memory to start JBoss for best performance

2008-01-19 Thread javatwo
My machine:

physical memory: 8G
swap: 12G

The machine is running mysql and jboss 4.0.5GA.

the JBoss run.conf includes:

JAVA_OPTS=-Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 
-Dsun.rmi.dgc.server.gcInterval=360

How to set Java memory for the best performance? Thanks!

Dave


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

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