[jboss-user] [JBoss Seam] - El Exception in Seam V2 cr2

2007-10-13 Thread wuyunlong
El Exception in Seam V2 cr2:


  | @Name("searchQueryView")
  | class SearchQueryView{
  |  private LabelSystems labelSystems;
  | 
  |  public LabelSystems getLabelSystems(){
  | return labelSystems;
  |  }
  | 
  |  public void test(){
  |  ..
  |  }
  | }
  | 
when I first entry page 'selectQueryView.xhtml' ,no Exceptin occur,
then, if the link :

  | 
  |  was click, following exception occur

  | javax.el.PropertyNotFoundException: 
/main/resourceQueryView/selectQueryView.xhtml @42,32 
value="#{searchQueryView.labelSystems.name}": Target Unreachable, 
'labelSystems' returned null on 
'org.javassist.tmp.java.lang.Object_$$_javassist_6'
  | 

my env is:
jboss 4.2.1 + seam V2 cr2



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

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


[jboss-user] [JBoss Seam] - Re: Injecting a narrower-scoped bean into a wider-scoped bea

2007-10-13 Thread adamw
A similar problem, of Event-beans injected into Session-beans is solved by the  
concurrency model 
(http://docs.jboss.com/seam/2.0.0.CR2/reference/en/html_single/index.html#concurrency),
 which serializes requests to session beans. So it seems that injecting 
C-beans/E-beans into A-beans is a programmer error.

But what about stateless? Does Seam take care that enough copies are created?

-- 
Adam

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: JMS msg get redelivered although setting retry to 0

2007-10-13 Thread niefeng
Hi Adrian, thanks for your reply.

Below is the sysout of the jms message.

1st received msg

  | [13:10:07-16:16:22,461][JMS SessionPool Worker-19][ 
INFO][GN.APP.WORKFLOW][]Msg received: org.jboss.mq.SpyObjectMessage {
  | Header { 
  |jmsDestination  : QUEUE.sendSignalQueue
  |jmsDeliveryMode : 2
  |jmsExpiration   : 0
  |jmsPriority : 4
  |jmsMessageID: ID:240-119226338233616
  |jmsTimeStamp: 1192263382336
  |jmsCorrelationID: null
  |jmsReplyTo  : null
  |jmsType : null
  |jmsRedelivered  : false
  |jmsProperties   : {}
  |jmsPropReadWrite: false
  |msgReadOnly : true
  |producerClientId: ID:240
  | }

The redelivered message
[13:10:07-16:18:17,913][JMS SessionPool Worker-59][ INFO][GN.APP.WORKFLOW][]Msg 
received: org.jboss.mq.SpyObjectMessage {
  | Header { 
  |jmsDestination  : QUEUE.sendSignalQueue
  |jmsDeliveryMode : 2
  |jmsExpiration   : 0
  |jmsPriority : 4
  |jmsMessageID: ID:240-119226338233616
  |jmsTimeStamp: 1192263382336
  |jmsCorrelationID: null
  |jmsReplyTo  : null
  |jmsType : null
  |jmsRedelivered  : false
  |jmsProperties   : {}
  |jmsPropReadWrite: false
  |msgReadOnly : true
  |producerClientId: ID:240
  | }

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

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


[jboss-user] [JBoss Tools (users)] - Re: WTP2.0.1, JBossAS-Tools-1.0.0.beta4 not publishing corre

2007-10-13 Thread [EMAIL PROTECTED]
I can see the temp creation, but we can't use any changerequest to WTP 2.x at 
this point since that won't be out until a few months. (we can of course report 
it)

But before that we need to figure out if we actually *have* an issue 
herebut if we have an issue all other deployers should have this issue

Darryl - are you saying all WTP deployers that can deploy to servers deploy dir 
are broken when it deploys across filesystems ?

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

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


[jboss-user] [JBoss Tools (users)] - Re: Oracle10gDialect not in Database Dialect DropDown - Conf

2007-10-13 Thread [EMAIL PROTECTED]
report it in jira.

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

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


[jboss-user] [JBoss Tools (users)] - Re: Problem about specifying a jndi source for eclipse hiber

2007-10-13 Thread [EMAIL PROTECTED]
you can specify the alternate connection properties in a properties file and 
make the console config point to it. They will override the specified options 
in cfg.xml/persistence.xml

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

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


[jboss-user] [JBoss Seam] - Re: Disabling browser cache ???

2007-10-13 Thread terryb
Thanks Lisa, yes my action was not returning empty string.

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

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


[jboss-user] [JBoss Seam] - seam-gen EntityList, how to disable auto search

2007-10-13 Thread terryb

In search (list) pages generated by seam-gen. it automatically displays results 
when list page is first opened.

I can't seem to find a way to stop this auto search behaviour? I would like to 
stop that, and only execute search when pressing search button.

Also, I got some buttons on page, which should render olny if user had typed 
any search values. Is it possible to make this check in EntityList object?



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

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


[jboss-user] [JBoss Portal] - Re: Got it y'all. Here's a working Struts bridge example (2.

2007-10-13 Thread [EMAIL PROTECTED]
Forgot to mention that's it was or 2.6.2, in 2.6.1 yes yzou have to change the 
serlvet context provider since it has been renamed.

Please update.

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

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


[jboss-user] [JBoss Seam] - Re: seam generate-entities failure

2007-10-13 Thread [EMAIL PROTECTED]
wo37830: this is just because of some weird datatype being returned by mysql 
driver/db...we just need to find out what type it is and we can add a mapping 
for it.   

But raise it in hibernatetools forum as pete suggests.

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

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


[jboss-user] [JBoss jBPM] - delay task execution jpdl

2007-10-13 Thread cla83
Hi 
i'm using the eclipse plugin jpdl and i have a task that must become active 
after 2 minutes.
More precisely i don't want that the user, that must execute it, see the task 
in his task list before 2 minutes are passed from the end of the precedent task.

task A -->wait 2 minutes --> task b

Please can somebody help me??


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

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


[jboss-user] [JBoss jBPM] - process image display highlights wrong end node if task is e

2007-10-13 Thread ramsub
[jbpm 3.1.3, jboss4.0.5 ]

I have a wierd problem - with some of my process definitions, the end node that 
gets highlighted at the end of the process is the wrong node ! This happens 
when I end my task instance is ended within the assignment handler itself. I 
need to do such a thing because the business logic demands it - based on a 
certain check, I need to end the task instead of assigning pooled actors to it.

Lets say I have a node X, and two end states Y and Z that can be reached from 
it  - what I find is that always the node that is specified by the first 
transition  gets highlighted - that is, if the transition to Z is first , then 
that is the one that gets highlighted, else it is Y. 
This, in spite of me explicitly passing in the transition name when I end the 
task in the assignment handler.


Why does this happen ? Does this have something to do with ending the task in 
the assignment handler ? If I should not end the task there, what would your 
suggestions be to end the task elsewhere ? (I don't want the task instance to 
show up at all - I want to be implicitly ended)

Thanks in advance,
Subbu

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094862
___
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: How can I use an OracleDataSource instance in JBoss

2007-10-13 Thread nicolasd
Nobody answered to this question since the 30st of september ! However, I 
cannot imagine that, at JBoss consulting, they don't have any idea of how to do 
that. But hey, if they aswer for free, how could they sale consulting after ? 
OpenSource is beautifull !

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

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


[jboss-user] [JBoss jBPM] - Re: delay task execution jpdl

2007-10-13 Thread kukeltje
you can set the 'create task' attribute to no, create an action that e.g. sends 
a delayed message to a jms queue (separate from jbpm) which creates the task. 
You could also do this with quartz or so.

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

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


[jboss-user] [JBoss jBPM] - Re: how the jbpm engine is embeded into jboss

2007-10-13 Thread kukeltje
kind of yes...

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

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


[jboss-user] [JBoss jBPM] - Re: problem to enter into jbpm-console application

2007-10-13 Thread kukeltje
please... how do you expect us to help you if you just say "there are no errors 
but I can't login" we need lots more info to be able to help you

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

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


[jboss-user] [JBoss jBPM] - Re: task form in multipart/form-data

2007-10-13 Thread kukeltje
hmmm... good point. You could look at the generated html in the browser, add 
that to the form whilst removing the form element.  You could also look at the 
sourcecode and add an attribute to define the encoding type to the existing 
form element.

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

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


[jboss-user] [JBoss Seam] - s:message and the clientId

2007-10-13 Thread motte79
Hi!

Can anybody explain to me how to replace the clientId from the output rendered 
by 

  | * h:messages
  | * h:message
  | * s:message
  | 
with the labelvalue ?

The tomahawk - library has an tag called t:messages with an attribute 
'replaceIdWithLabel' ? Is there an alternative for this in seam ?

I don't want to display the messages next to the inputfield, they should be 
rendered on top of each page as a list .

Any ideas ?



  | j_id71:id_register_firstname: Validierungs-Fehler: Wert wird benötigt. 
  | j_id71:id_register_lastname: Validierungs-Fehler: Wert wird benötigt. 
  | j_id71:id_register_logonid: Validierungs-Fehler: Wert wird benötigt.
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094869

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


[jboss-user] [JBoss Seam] - Re: Injection threat on EntityQuery order

2007-10-13 Thread doballve
http://jira.jboss.org/jira/browse/JBSEAM-2099

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

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


[jboss-user] [JBoss Seam] - Re: Calling a Method on a Home Object

2007-10-13 Thread christian_zeidler
great, thx


  | public void printFoo(){
  | if(this.getInstance() != null){
  | System.out.println(this.getInstance().getName());
  | } else{
  | System.out.println("no instance");
  | }
  | }

works fine.

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

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


[jboss-user] [JBoss Getting Started Documentation] - Re: Duke?s Bank code compile error

2007-10-13 Thread jaikiran
anonymous wrote : why was that ? 

When you had used D:\EE557ServerSide\ejb3\jboss, the error had shown that

anonymous wrote : 
D:\EE557ServerSide\ejb3\j2ee-1_4-doc-tutorial_2\j2eetutorial14\
  | examples\bank\EE557ServerSideejb3jboss\client not found.
  | 

Since the path was considered as a single word, i guessed it might have to do 
with the backslash(escape character). So i thought, using the frontslash is 
worth a try. 

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

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


[jboss-user] [JBoss Seam] - Re: s:message and the clientId

2007-10-13 Thread fernando_jmt
Define the "label" attribute in your input component.

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

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


[jboss-user] [EJB 3.0] - Re: How to define unique constraint on foreign keys ?

2007-10-13 Thread fhh
According to spec you can use 


  | @javax.persistence.JoinColumn(name = "EMPLOYE_FK",unique=true)
  | 


However, if you are creating the schema from scratch I suggest you use a 
@OneToOne relationship which does exactly what you want.

Regards

Felix

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - [JBoss 4.2.1-GA] EJB incongruence deploying an EAR on differ

2007-10-13 Thread rigel77
Hi,

currently I have a database service running on a server hosting Oracle-XE, on 
another computer all EJB loaded by JBoss are connecting without problem to the 
database service.

The problem is that I am able to deploy my EAR into JBoss running on Windows 
Vista without problems,  but when I load the same EAR into JBoss running on 
Debian I receive this error message:

--- MBeans waiting for other MBeans ---
ObjectName: 
persistence.units:ear=MyEar2007.ear,jar=tools-ejb.jar,unitName=tools-ejbPU
  State: NOTYETINSTALLED
  I Depend On:
jboss.jca:name=MyEarDS,service=DataSourceBinding


in both cases the Oracle jdbc driver is loaded into server/default/lib and the 
ear manually into server/default/deploy

any useful clue to solve this incongruence?

Tnx in advance


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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - How to clean JBoss loaded EARs?

2007-10-13 Thread rigel77
Hi, 

I need to clean completely the JBoss environment. Is it sufficient to erase the 
EAR from the server/default/deploy directory or does it exists a specific 
command from web console or shell?

Tnx in advance

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

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


[jboss-user] [JBoss Seam] - Navigation page numbers using EntityHome

2007-10-13 Thread terryb
Is it possible to have record navigation buttons (next/previous page...) 
buttons using the EntityHome object, eg in f:subview tag?

The seam-gen project does not generate next/previous page buttons for Edit and 
View pages. It only does so for List pages. And I can't see to find a way if it 
can be done via EntityHome object... ?

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

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


[jboss-user] [JBoss Portal] - Re: How to change the order of pages??

2007-10-13 Thread ameo
Hello,

I would know that also glady. The oder of pages of a portal seems to be 
alphabetically. Isn't there a way to assign a page his ordner ? Maybe 
programmatically ? I surprise that I didn't found any info about that.

greetings,

ameo

 

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

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


[jboss-user] [JBoss Seam] - Re: Navigation page numbers using EntityHome

2007-10-13 Thread [EMAIL PROTECTED]
Well, EntityHome is for managing _one_ instance of an entity. If you want the 
previous/next entity instances, you need some kind of collection obviously or a 
query that retrieves them. There are dozens of ways how you can do that but I 
don't think EntityHome is relevant.

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

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


[jboss-user] [JBoss Seam] - Re: s:fileupload validation

2007-10-13 Thread sbozdag
Thanks for replying. Yes, I am using an action component already. Annotations 
are really easy to use and maintain. That was the reason I would like to put 
them in.

Anyway, I will make validation manually for data. 

cheers

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

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


[jboss-user] [JBoss Seam] - Re: Navigation page numbers using EntityHome

2007-10-13 Thread terryb
I was thinking of navigation buttons for childern records when EntityHome has 
one-many relationship, eg on Organisation view page, like to list Organisation 
Users in a f:subview; and have navigation buttons for subview data 
(Organisation Users). But with seam-gen example, it accesses subview data via 
EntityHome. I am new to seam stuff, and having problem figuring our, how I can 
achieve this.

public class OrganisationHome extends EntityHome<...>{
  | 
  | ...
  | public List<...> getOrganisationUsers() {
  | 
  | }
  | ...
  | 
  | }



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

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


[jboss-user] [JBoss Tools (users)] - Re: WTP2.0.1, JBossAS-Tools-1.0.0.beta4 not publishing corre

2007-10-13 Thread dlmiles
"[EMAIL PROTECTED]" wrote : I can see the temp creation, but we can't use any 
changerequest to WTP 2.x at this point since that won't be out until a few 
months. (we can of course report it)
  | 
  | But before that we need to figure out if we actually *have* an issue 
herebut if we have an issue all other deployers should have this issue

I don't really understand the point you're making or what you are asking (did 
you read or understand my other comments in this thread ?)


The purpose of this thread was to query the problem with users of JBossTool-AS.

I think sufficient detail has been given in the thread so far to easily allow a 
3rd party to re-create the issue.  Its been cited a few times that you've been 
unable to observe the issue or are unable to see any temporary files in use.  
I've tried to be helpful and establish what maybe different by asking questions 
about your observation methods and configuration but got given vague answers.  
Unfortunately you've not provided sufficient detail to allow me to assist you 
to observe the problem (if you are still unable to see it).

On the subject are other things broken, probably who cares about them ?  I'm 
not trying to save the world here.   I'm not in a position to be able to make 
any claims for all WTP deployers, but I have already reported in this thread 
that the WTP provided JBoss deployer appears (to me) to deploy into the "tmp0/" 
directory using a single file .EAR from what I have observed.  That's all I can 
provide you with.


anonymous wrote : "Darryl - are you saying all WTP deployers that can deploy to 
servers deploy dir are broken when it deploys across filesystems ?"

Which servers deploy dir ?  Across what file systems where ?


There are 3 filesystems in play here, the file system your workspace is in, the 
file system your project is in (thats right, your project does not have to be 
inside your workspace tree) and the file system your runtime is in.

All 3 file systems can be different.  When you publish using a WTP runtime 
driver to Tomcat (for example) the following scenario occurs:

* You save a change to a .java file, this gets saved in your project area lets 
say this was JavaSource/domain/MyClass.java
* Eclipse this auto-compiles the class for this, and this ends inside your 
project areas lets say as bin/domain/MyClass.class
* Eclipse has an active runtime with auto-publish enabled, so events fire off 
due to the .class change.
* The runtime driver processes the resource change event and if it uses the WST 
PublishUtil class for doing the work it creates an empty temporary file in your 
workspace area as .metadata/.plugins/org.eclipse.wst.server.core/tmp12345.tmp
* Then a file copy is performed from project area file bin/domain/MyClass.class 
into workspace area file 
.metadata/.plugins/org.eclipse.wst.server.core/tmp12345.tmp
* Then the tmp12345.tmp file is closed, and the modification stamp fixed up (to 
whatever you want it to be)
* Then the file tmp12345.tmp is renamed to another location still within the 
workspace area but also in the deployment area of the runtime (operating from 
within the workspace) lets call this path 
.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/MyProject/WEB-INF/classes/domain/MyClass.class

As you can see according to my rules there is nothing wrong with this, a file 
copy was performed between project build area and workspace runtime instance 
deployment area and the only rename that occured stayed inside the same area 
(that being the workspace area).

Now the problem occurs when you use an external runtime area and that external 
directory is not on the same filesystem as the workspace area.  This is because 
if you use PublishUtil from WTP it will still perform the file copy into the 
workspace tmp12345.tmp file.

So my suggestion is to allow the temporary directory where that file copy is 
performed to be a configurable thing, this way JBossTools-AS can still use 
PublishUtil class and can instruct it to use a directory like 
/opt/jboss-4.2.1.GA/server/default/tmp/jbosstools-as/ this making the temporary 
path ./opt/jboss-4.2.1.GA/server/default/tmp/jbosstools-as/tmp12345.tmp in the 
above hypothetical situation.


When this happens maybe tone down the 64Kb static buffer from PublishUtil to 
something >= 512 and <= 8192 there are plenty of white papers detailing write 
performance va write size.

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

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


[jboss-user] [JBoss Portal] - Re: How to change the order of pages??

2007-10-13 Thread [EMAIL PROTECTED]
http://docs.jboss.com/jbportal/v2.6.2/referenceGuide/html_single/

Search for 'order', first result is:
"22.1. Explicit ordering of tabs"

;)

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

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


[jboss-user] [JBossWS] - I don't succeded installing jbossws2.0.1 please help me I ne

2007-10-13 Thread abdujaparov
Hi all, I have been trying for 3 days to install jbossws with jboss42. Before I 
had jdk6 now I have the jdk5, I have downloaded the jbossws 2.0.1 native and I 
have followed the instruction but I have this error and I don't know how 
risolving.
The errore is the following:

  | 
  | BUILD FAILED
  | C:\jbossws-src-2.0.1.GA\ant-import\build-deploy.xml:84: The following error 
occu
  | rred while executing this line:
  | C:\jbossws-src-2.0.1.GA\ant-import\macros-deploy-native.xml:385: Directory 
does
  | not exist:C:\jbossws-src-2.0.1.GA\jboss-4.2.1.GA\lib\endorsed
  | 
  | Total time: 7 seconds
  | 

The path of jboss42 I have setted in ant.propertis is the following:

  | jboss42.home= C:\jboss-4.2.1.GA
  | 

jbossws is the directory C:\jbossws-src-2.0.1.GA

The macros-deploy-native.xml:385 is line with *:
   
  |
  |   
  |   
  |   *
  | 
  |
  |
  |
  |
  | 
  |  
  |   
  |
  | 

Why does it search jboss-4.2.1.GA\lib\endorsed in the directory of jbossws and 
not in jboss42 directory?

What does I wrong? How can I resolve?
I need jbossws, please help me!
Thanks to all.
Bye Bye

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

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


[jboss-user] [JCA/JBoss] - How can I test if a Datasource is correctly installed

2007-10-13 Thread ZazzaZ
Hi, 
I'm trying to set up a  new Datasource using postgres.

I followed what I read from the web but how can I test if the datasource works?

Thanks. Bye

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

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


[jboss-user] [JCA/JBoss] - Re: How can I test if a Datasource is correctly installed

2007-10-13 Thread [EMAIL PROTECTED]
Easiest way is to write some code to use it.

 Installation issues will generally show up as errors in the log, but being 
that by default DS pools are not pre-filled, connectivity errors will generally 
not show up until the first time you attempt to use the datasource. 




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

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


[jboss-user] [JCA/JBoss] - Re: How can I test if a Datasource is correctly installed

2007-10-13 Thread ZazzaZ
Such as?

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

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


[jboss-user] [JBoss jBPM] - No dialect mapping for Java Type: -1

2007-10-13 Thread ZazzaZ
Hi,
I installed a Postgres datasource correctly (I think).

When I deploy the jbpm-bpel to the server, after some mapping log entries
I got 

No dialect mapping for Java type : -1

Can anybody tell me what to do? Did I use something wrong?

Hibernate dialects come with jbpm, so what? 

Is my postgres version too new?

Bye

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

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


[jboss-user] [JCA/JBoss] - Re: How can I test if a Datasource is correctly installed

2007-10-13 Thread [EMAIL PROTECTED]
Such as? 

Psuedo code in Servlet or EJB

  | 
  |InitialContext ctx =  null;
  |DataSource ds = null;
  |Connection c = null;
  | 
  |try
  |{
  |  ctx = new InitialContext();
  |  ds = ctx.lookup("JNDINAME OF DATASOURCE HERE");
  |  c = ds.getConnection();
  |  
  |}catch(SQLException e)
  |{ 
  |System.out.println(e.getMessage());
  | 
  |}
  |   finally
  |   {
  |  if(c != null)
  |c.close();
  |  
  |  if(ctx != null)
  |ctx.close();
  |   }
  | 
  | 


There are plenty of other examples out there as well. I recommend the J2EE 
tutorial as a place to start if the above concepts are not familiar to you.




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

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


[jboss-user] [JCA/JBoss] - Re: How can I test if a Datasource is correctly installed

2007-10-13 Thread vickyk
"ZazzaZ" wrote : Such as?
You can use set prefill tag to true in the ds-xml file configuration .
But the catch would be that the testing results will be in the logs and you 
will have to see the logs if the ds configuration is appropriate .
Alternatively you can create a MBean which will create the connection , have a 
look at this link 
http://jira.jboss.com/jira/browse/JBAS-1466

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

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


[jboss-user] [JCA/JBoss] - Re: database failover for ejb application (persistance.xml p

2007-10-13 Thread vickyk
Read this to know how to run the tests
http://docs.jboss.org/jbossas/jboss4guide/r5/html/apc.html#d0e33312

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

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


[jboss-user] [JBoss Seam] - Re: Issues regarding integration testing using seam-gen

2007-10-13 Thread [EMAIL PROTECTED]
Which version of Seam?

Yes, the examples and seam-gen use differently named testng.xml files - so?

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

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


[jboss-user] [JBoss Seam] - Re: El Exception in Seam V2 cr2

2007-10-13 Thread [EMAIL PROTECTED]
So getLabelSystems() returns null - make it so it doesn't.

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

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


[jboss-user] [JBoss Seam] - Re: Injecting a narrower-scoped bean into a wider-scoped bea

2007-10-13 Thread [EMAIL PROTECTED]
"adamw" wrote : Let's say I have beans with following scopes:
  | * A - application
  | * S - stateless
  | * C - conversation
  | 
  | In the examples I have often seen C-beans are injected into S-beans. As I 
understand, this is correct wrt to concurrent requests, that is, Seam will 
create enough copies of S-beans so that an S-bean serves at most one request at 
a time (if that wasn't true, and two requests invoked a method on an S-bean at 
the same time, one injected value would overwrite the other...)?

A you say, you can't invoke two methods on the same SLSB at the same time, it's 
stateless (this is part of the EJB3 contract, not Seam, to be precise).

anonymous wrote : Creating additional beans isn't possible with A-beans 
however: Seam can create at most one A-bean. So I suppose injecting a C-bean 
into an A-bean should produce an error, or at least a warning, right?

Yes, this would be a bad thing to do (you should inject the application scoped 
component into the conversation scoped component).  Add a FAQ to 
SeamProblemsFAQ if you like?

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

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


[jboss-user] [JBoss Seam] - Re: seam-gen EntityList, how to disable auto search

2007-10-13 Thread [EMAIL PROTECTED]
You'll need to get your scoping correct here.  I would add some manager 
component, which outjects a new entity query object when you hit search.

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

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


[jboss-user] [JBoss Seam] - Re: seam-gen EntityList, how to disable auto search

2007-10-13 Thread terryb
The EntityQuery (compare to EntityHome) is much harder to grasp in terms of how 
it works; in the absence of documentation. Is there any example even if 
psudo-code which shows how to pass jsf parameters values to EntityQuery, 
execute and outject it...

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

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


[jboss-user] [JBossWS] - Re: I don't succeded installing jbossws2.0.1 please help me

2007-10-13 Thread abdujaparov
I have resolved the problem, in the path of jboss42 it lacks a \, in fact I 
wrote  C:\jboss-4.2.1.GA instead C:\\jboss-4.2.1.GA, writing C:\\jboss-4.2.1.GA 
all works.
Thanks to all and excuse me.
Bye bye.

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

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


[jboss-user] [JCA/JBoss] - Re: How can I test if a Datasource is correctly installed

2007-10-13 Thread ZazzaZ
Thanks to all!


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

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


[jboss-user] [JBoss Seam] - Re: Filtering the ConversationStack based on view-id for bre

2007-10-13 Thread jacob.orshalick
A JIRA issue has been raised at:

http://jira.jboss.com/jira/browse/JBSEAM-2101

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to add authentication on JBoss home web site

2007-10-13 Thread PeterJ
See http://wiki.jboss.org/wiki/Wiki.jsp?page=SecureTheJmxConsole

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

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


[jboss-user] [JBoss Seam] - You must specify org.jboss.seam.core.init.jndiPattern or use

2007-10-13 Thread asookazian
JBoss 4.2.1.GA
Seam 2.0.0.CR2

trying to deploy unaltered hotel booking example and getting the following 
exception  while deploying in JBoss.  I found another thread on this same 
exception in this forum but GKing recommended adding  to the 
components.xml I believe which is not allowable with this version of Seam 
according to seam2migration.txt.

What is the cause and solution of this?  As I said, the code is unaltered, 
straight up build.  JBoss starts up fine w/o any EAR/WAR in the default/deploy 
folder.

13:05:42,094 ERROR [[/seam-booking]] Exception sending context initialized 
event to listener instance of class org.jboss.seam.servlet.SeamListener
  | java.lang.RuntimeException: Could not create Component: authenticator
  | at 
org.jboss.seam.init.Initialization.addComponent(Initialization.java:964)
  | at 
org.jboss.seam.init.Initialization.installComponents(Initialization.java:891)
  | at org.jboss.seam.init.Initialization.init(Initialization.java:547)
  | at 
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
  | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
  | at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | at org.jboss.web.WebModule.startService(WebModule.java:61)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor186.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | 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(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy45.start(Unknown Source)
  | at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to clean JBoss loaded EARs?

2007-10-13 Thread PeterJ
Yes, removing the EAR file (or directory) from the deploy directory is 
sufficient.

If you want to start over from a completely clean server configuration, bring 
the app server down and also remove these directories:

server/default/data
server/default/log
server/default/tmp
server/default/work


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

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


[jboss-user] [JBoss Seam] - Converters, SelectItems

2007-10-13 Thread jumapama
Hello, i have a problem which i have spent a lot of time. Somebody can show me 
a converter and selectItems example. I have the next code:


  | 
  | @Name("cuentaConverter")
  | @org.jboss.seam.annotations.faces.Converter(forClass=Cuenta.class)
  | public class CuentaConverter implements Converter, Serializable{
  | 
  | private static final long serialVersionUID = 1L;
  | @In(create=true)
  | private EntityManager entityManager;
  | 
  | @Transactional
  |public Object getAsObject(FacesContext context, UIComponent 
component, String value) throws ConverterException
  |{
  |   String id=value;
  |   if(id!=null)
  |   return entityManager.find(Cuenta.class, id); 
  |   return null;
  |}
  | 
  |public String getAsString(FacesContext context, UIComponent 
component, Object value) throws ConverterException
  |{
  |   if(value instanceof Cuenta){
  |   Cuenta cuenta=(Cuenta) value;
  |   return cuenta.getIdCuenta().toString();
  |   }
  |   else return null;
  |   
  |}
  | }
  | 
  | @Name("login")
  | @Scope (SESSION)
  | @Stateful
  | public class LoginFacade implements LoginFacadeLocal{
  | 
  | @PersistenceContext 
  | private EntityManager entityManager;
  | 
  | @In(required=false) @Out(required=false)
  | private Cliente user;
  | 
  | @In(required=false) @Out(required=false)
  | private Cuenta account; 
  | 
  | public void setUser(Cliente persona){
  | this.user=persona;  
  | }
  |   
  | public Cliente getUser(){
  | return this.user;
  | }
  | 
  | public void setAccount(Cuenta cuenta){
  | this.account=cuenta;
  | }
  |   
  | public Cuenta getAccount(){
  | return this.account;
  | }   
  | 
  | public Cliente findPersonaByPassword(){
  | 
  | Cliente entity = null;
  | try {
  | entity=(Cliente)entityManager.createQuery("SELECT OBJECT(c) 
FROM Cliente c " +
  | "WHERE c.password=#{cliente.password}")
  | .getSingleResult();
  | }
  | catch (NoResultException noneFound) {
  | }
  | return entity;
  | }   
  | 
  | public Cliente findPersonaByUsuario(){
  | 
  | Cliente entity = null;
  | try {
  | entity=(Cliente)entityManager.createQuery("SELECT OBJECT(c) 
FROM Cliente c " +
  | "WHERE c.usuario=#{cliente.usuario}")   
 
  | .getSingleResult();
  | }
  | catch (NoResultException noneFound) {
  | }
  | return entity;
  | }   
  | @Create
  | public String valida(){
  | Cliente cliente;
  | if((cliente=findPersonaByUsuario())!=null 
  | && findPersonaByPassword()!=null)   

  | {  
  | setUser(cliente);
  | if (user instanceof Administrador)return 
"administradores";
  | else if (user instanceof Cliente) return "clientes"; 
  | 
  | }
  | return "clientes";
  | }
  | 
  | @Destroy
  | @Remove
  | public void destroy(){}
  | 
  | }
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | Config Files
  | 
  | 
  | http://jboss.com/products/seam/components";
  | xmlns:core="http://jboss.com/products/seam/core";
  | xmlns:persistence="http://jboss.com/products/seam/persistence";
  | xmlns:drools="http://jboss.com/products/seam/drools";
  | xmlns:security="http://jboss.com/products/seam/security";
  | xmlns:web="http://jboss.com/products/seam/web";
  | xmlns:mail="http://jboss.com/products/seam/mail";
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://jboss.com/products/seam/core 
http://jboss.com/products/seam/core-2.0.xsd 
  |  http://jboss.com/products/seam/persistence 
http://jboss.com/products/seam/persistence-2.0.xsd 
  |  http://jboss.com/products/seam/drools 
http://jboss.com/products/seam/drools-2.0.xsd
  |  http://jboss.com/products/seam/security 
http://jboss.com/products/seam/security-2.0.xsd
  |  http://jboss.com/products/seam/mail 
http://jboss.com/products/seam/mail-2.0.xsd
  |  http://jboss.com/products/seam/web  
http://jboss.com/products/seam/web-2.0.xsd
  |  http://jboss.com/product

[jboss-user] [JBoss Seam] - Re: Converters, SelectItems

2007-10-13 Thread [EMAIL PROTECTED]
Why not use s:convertEntity, it does this for you.

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

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


[jboss-user] [JBoss Seam] - Re: You must specify org.jboss.seam.core.init.jndiPattern or

2007-10-13 Thread [EMAIL PROTECTED]
The booking example deploys fine on JBoss AS 4.2.1.GA with Seam 2.0.0.CR2 - and 
has the jndiPattern set.  Grab a clean copy of both, set the path to the 
unzipped AS in Seam's build.properties and run ant deploy in the 
examples/booking directory.

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

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


[jboss-user] [JBoss Seam] - Re: Application Scope in a Cluster

2007-10-13 Thread [EMAIL PROTECTED]
The application context is based on the underlying servlet application context 
so the same clustering rules apply.

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

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


[jboss-user] [JBoss Seam] - Re: Converters, SelectItems

2007-10-13 Thread jumapama
The same error appears again:
j_id2:cuenta: Error de Validación: Valor no es correcto
I use jboss 4.2 GA and JBoss seam 2.0 GA and JSF-Faclelets

I have read that s:convertEntity needs Management Transactions, could be this 
an error in my configuration.

Please help me!!!


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094919

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


[jboss-user] [JBoss Seam] - Re: Converters, SelectItems

2007-10-13 Thread [EMAIL PROTECTED]
http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamProblemsFAQ

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

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


[jboss-user] [JBoss Seam] - Re: Entity withiout Injection --- How do construct a efficie

2007-10-13 Thread [EMAIL PROTECTED]
You should use programmatic lookup, creating an instance method is a neat way 
to do that.

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

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


[jboss-user] [JBoss Seam] - Re: [JSF] and conflict

2007-10-13 Thread [EMAIL PROTECTED]
http://jira.jboss.com/jira/browse/JBSEAM-1572

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

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


[jboss-user] [JBoss Seam] - Re: Messages bundle problem

2007-10-13 Thread wodzuu
hi! 

I am hoving some trouble with diactric signs. I use the tool mentioned in a 
previous post and now when I enter my site nothing happens i.e. browser 
indicates that site is loading and it seems like it will never load it at all. 
Does anyone know what could be a reason ?

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

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


[jboss-user] [JBoss Seam] - Re: SeamTest and expectedExceptions

2007-10-13 Thread [EMAIL PROTECTED]
Sorry for the delay,

let me try to get this right (its not trivial)

anonymous wrote : So, this is what I hear you saying:
  | 
  | 
  | means "Go find the class called ComponentClass, and make sure it's going to 
be installed.  In addition, when instantiating, set myProperty to "me"."

Well, actually the namespacing rules are more complex than this.  It actually 
says (I hope ;)

1) Imply the class name from the namespace plus un-camel-cased xml element name

2) if name isn't in specified, get the name from the @Name annotation on the 
class

3) If a name already exists, only configure, don't install a copy (assuming 
@Install is set to true or not specified)

4) Otherwise, imply the name from the xml-element name

5) if installed="true" or not specified then mark the xml element as used

anonymous wrote : However,
  | 
  | means "See this xml element?  Ignore it.  Pretend it doesn't exist.  In 
particular, don't set myProperty to "me"."

Yes, essentially.

anonymous wrote : First, it's unintuitive.  "installed='true'" is describing 
the class, while "installed='false'" is describing this xml element.

Yes, its unintuitive.  However, installed="true" is, in both cases, describing 
the xml element (it's just that in some cases the xml element's presence causes 
a component to be installed - does that make sense from the above list of 
install proceedure?).

anonymous wrote : Second, I don't think Initialization.java actually implements 
this.  I haven't tested this, so don't quote me, but the code looks pretty 
clear.  The "installed" variable defined on/near line 324 isn't used to 
determine whether the properties are set or not.  So, in the above example, 
both xml declarations result in myProperty being set to "me".

No, what it does is control whether this xml element does just configuration or 
whether it actually installs a component as well (I think, but I'm tired). I.e. 
if the component isn't installed in code @Install(false) then the xml element 
can install one or not depending on the value of installed.

Let me know if this makes more sense.

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

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


[jboss-user] [JBossCache] - Can't get fine-grained replication working

2007-10-13 Thread jacobeukes
Thank you for all the help - you guys are doing a great job.

I have spent that past several weeks preparing was was supposed to have been a 
very simple JBossCache demo for work. I suspect that I am very close to having 
what is required, but there is still one outstanding issue - I cannot get 
fine-grained replication to work. 

I am using JBoss 4.2.1 GA and JBossCache 2.0.0 GA. I have a single instance of 
JBoss running on each of two seperate nodes in the same cluster with an EJB 
running in each of the two instances. I also have two seperate standalone apps 
(clients used to monitor the EJBs for demonstration purposes) running on each 
of the two nodes. 

I need any changes that are made to an object in either of the two nodes to 
automatically propagate to the other (ie. fine-grained replication).

Upon initialization, the following happens on each of the nodes:

The PojoCache wrapper is registered as an MBean using the following code:


MBeanServer server = MBeanServerLocator.locateJBoss();
ObjectName on = new ObjectName("jboss.cache:service=PojoCache") 

PojoCache cache = PojoCacheFactory.createCache("META-INF/service.xml", true);
PojoCacheJmxWrapperMBean wrapper = new PojoCacheJmxWrapper(cache);

server.registerMBean(wrapper, on);


an object is attached to one of the instances using the following code:


PojoCache cache = cacheWrapper.getPojoCache();
cache.attach("/person", person);


the object is retrieved on the other node and it's values are displayed using 
the following code:


PojoCache cache = cacheWrapper.getPojoCache();
person = (Person)cache.find("/person");
System.out.println(person.toString());


This all works fine. If I make a change to the object on either of the two 
nodes and REATTACH it to the cache, the changes
are successfully propagated to the other node.

The problem is that I have to reattach the object to the cache in order for it 
to be replicated and therefore lose the benefits of fine-grained replication. 
Changes to the object are not automatically intercepted and propagated to the 
other node.

I suspect that the problem is related to instrumentation of objects. I am using 
pojocache-aop.xml and have annotated my Pojo with the 
"@org.jboss.cache.pojo.annotation.Replicable" annotation. A comment in the 
pojocache-aop.xml file states that "If a POJO has PojoCachable annotation, it 
will be asepectized". I have searched the entire JBossCache distribution jar 
file, but simply cannot find a class named PojoCachable. I have not made any 
changes to the pojocache-aop.xml file as I understand that any Pojo annotated 
with "@org.jboss.cache.pojo.annotation.Replicable", will automatically become 
replicable.

I have attached the code for the EJB as well as the contents of service.xml 
below.

Thank you for your time and help.

The EJB code:



package za.co.test.cachedemo.model.session;

import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.management.InstanceNotFoundException;
import javax.management.MBeanRegistrationException;
import javax.management.MBeanServer;
import javax.management.MBeanServerInvocationHandler;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;

import org.jboss.cache.pojo.PojoCache;
import org.jboss.cache.pojo.PojoCacheFactory;
import org.jboss.cache.pojo.jmx.PojoCacheJmxWrapper;
import org.jboss.cache.pojo.jmx.PojoCacheJmxWrapperMBean;
import org.jboss.mx.util.MBeanServerLocator;

import za.co.test.cachedemo.model.dto.Person;

public class JBossCacheDemoBean implements SessionBean {

SessionContext sessionContext;

public void initCache() throws java.rmi.RemoteException {

try {
MBeanServer server = MBeanServerLocator.locateJBoss();
ObjectName on = new ObjectName("jboss.cache:service=PojoCache");

PojoCache cache = 
PojoCacheFactory.createCache("META-INF/service.xml", true);
PojoCacheJmxWrapperMBean wrapper = new 
PojoCacheJmxWrapper(cache);

server.registerMBean(wrapper, on);
}
catch(Exception e) {
System.out.println(e.getMessage());
}
}

public void attachObjectToCache(Person person) throws 
java.rmi.RemoteException {
try {
MBeanServer server = MBeanServerLocator.locateJBoss();
ObjectName on = new 
ObjectName("jboss.cache:service=PojoCache");

PojoCacheJmxWrapperMBean cacheWrapper = 
(PojoCacheJmxWrapperMBean) 
MBeanServerInvocationHandler.newProxyInstance(server, on,
PojoCacheJmxWrapperMBean.class, 
false);

PojoCache cache = cacheWrapper.getPojoCache();
cache.attach("/person", perso

[jboss-user] [JBoss Seam] - Re: Converters, SelectItems

2007-10-13 Thread jumapama
Lot of thx, i was getting crazy wiht this. Al fin!!!

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

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


[jboss-user] [JBoss Seam] - Re: You must specify org.jboss.seam.core.init.jndiPattern or

2007-10-13 Thread asookazian
well I am unzipping 4.2.1 and 2.0.0.CR2 right now.  it takes "shithouse" Vista 
about an hour to unzip JBoss.

what do you mean by "path to the unzipped AS"?

I had it set to "C:\jboss-4.2.1.GA" I believe and the EAR was placed in 
...\default\deploy.

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

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


[jboss-user] [JBoss Seam] - Re: You must specify org.jboss.seam.core.init.jndiPattern or

2007-10-13 Thread [EMAIL PROTECTED]
Yes.

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

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


[jboss-user] [JBoss Seam] - Re: You must specify org.jboss.seam.core.init.jndiPattern or

2007-10-13 Thread asookazian
well I used WinRAR and it extracted much faster.

anyways, thanks, exception is no longer happening.

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

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


[jboss-user] [JBoss Seam] - Re: Injecting a narrower-scoped bean into a wider-scoped bea

2007-10-13 Thread matt.drees
"adamw" wrote : So it seems that injecting C-beans/E-beans into A-beans is a 
programmer error. 

I imagine this would be fine if you mark your A-bean @Synchronized.  (Though of 
course, this could cause a bottleneck.)  Haven't yet tried it though.

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

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


[jboss-user] [JBoss Seam] - Re: Injecting a narrower-scoped bean into a wider-scoped bea

2007-10-13 Thread [EMAIL PROTECTED]
"matt.drees" wrote : "adamw" wrote : So it seems that injecting C-beans/E-beans 
into A-beans is a programmer error. 
  | 
  | I imagine this would be fine if you mark your A-bean @Synchronized.  
(Though of course, this could cause a bottleneck.)  Haven't yet tried it though.

That is correct.

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

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


[jboss-user] [JBoss Seam] - Re: El Exception in Seam V2 cr2

2007-10-13 Thread wuyunlong
"[EMAIL PROTECTED]" wrote : So getLabelSystems() returns null - make it so it 
doesn't.

According to el rule,  returnType of 'searchQueryView.labelSystems.name' should 
be parsed at class level ;the value of el should be eval at instance level, and 
if the return value of 'searchQueryView.labelSystems' is null, the parser 
should be stopped and return default value.

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

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


[jboss-user] [JBoss Seam] - Re: [JSF] and conflict

2007-10-13 Thread Yacho
Sweet. Thanks so much Pete for pointing that out. Ill keep a track of it. :)

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

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


[jboss-user] [JBoss Seam] - faces-config.xml is missing in booking example?

2007-10-13 Thread asookazian
Seam 2.0.0.CR2

I did a search and several of the other example projects have a 
faces-config.xml in the resources folder.

Why is this?  the booking example in 1.2.1.GA had a faces-config.xml.

Also, I want to start using facestrace to trace JSF lifecycle info:

http://facestrace.sourceforge.net/index.html

anybody used this with the Seam booking example?  I will need to add a 
faces-config.xml as follows, but it seems to be missing from the instructions 
to do this:


  | 
  | 
  | traceData
  | 
net.sf.facestrace.TraceData
  | request
  | 
  | 
  | 
  |   
net.sf.facestrace.phase.listener.RestoreViewPhaseListener
  |   
net.sf.facestrace.phase.listener.ApplyRequestValuesPhaseListener
  |   
net.sf.facestrace.phase.listener.ProcessValidationsPhaseListener
  |   
net.sf.facestrace.phase.listener.UpdateModelValuesPhaseListener
  |   
net.sf.facestrace.phase.listener.InvokeApplicationPhaseListener
  |   
net.sf.facestrace.phase.listener.RenderResponsePhaseListener
  |   
net.sf.facestrace.phase.listener.TraceResourcePhaseListener
  |
  | 
  | 
  | 
net.sf.facestrace.component.Trace
  | 
net.sf.facestrace.component.Trace
  | 
  | 
  | 

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

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


[jboss-user] [JBoss Seam] - Binding Component to Backing Bean Property

2007-10-13 Thread mikeeprice

I tried to bind a component to a backing bean property





and ran into this problem.

"You can't bind to a CONVERSATION scoped backing component because the 
conversation context is not available in the RESTORE VIEW phase."

So I changed the scope to Session

@Stateful
@Name("conceptManager")
@Scope(ScopeType.SESSION)
public class ConceptManagerAction implements ConceptManager, Serializable{

and still had the same problem.

java.lang.IllegalStateException: No conversation context active 
org.jboss.seam.ScopeType.getContext(ScopeType.java:126) 
org.jboss.seam.Component.outjectAttribute(Component.java:1665) 
...
com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93) 
com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:244)
 

Is it possible that I could write a PhaseListener that runs before RestoreView 
and makes the necessary context avaiable so that resolving the binding 
expression during RestoreView will work? If not then would the closest 
alternative be creating a custom component that will create the kind of 
PanelGrid I would like to have?

Thanks Mike Price

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to add authentication on JBoss home web site

2007-10-13 Thread hung_hin_chu
I had already implied the security on JMX console and Web console. User ID and 
password are required to logon JMX console and Web console.

However when I click 
http://192.168.11.22:1234/status?full=true
http://192.168.11.22:1234/status?full=false
http://192.168.11.22:1234/status

It shows many setting information. How to add authentication on these 3 links 
only? Or how to disable this 3 links to return JBoss information?



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

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


[jboss-user] [JBoss Seam] - Re: faces-config.xml is missing in booking example?

2007-10-13 Thread asookazian
Not sure if this facestrace-0.8.1.jar is compatible with Eclipse 3.2.2 and 
JBoss 4.2.1.GA and Seam 2.0.0.CR2 or not  it states in the instructions to 
place the  tag at the end of your JSF file.

Trying to use facestrace with main.seam, when I navigate to main.seam, I get 
the following:


  | XML Parsing Error: prefix not bound to a namespace
  | Location: http://localhost:8080/seam-booking/main.seam?cid=6
  | Line Number 42, Column 1:

main.xhtml:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  | http://www.w3.org/1999/xhtml";
  | xmlns:ui="http://java.sun.com/jsf/facelets";
  | xmlns:h="http://java.sun.com/jsf/html";
  | xmlns:f="http://java.sun.com/jsf/core";
  | xmlns:s="http://jboss.com/products/seam/taglib";
  | xmlns:a="http://richfaces.org/a4j";
  | xmlns:ft="http://sourceforge.net/projects/facestrace";
  | template="template.xhtml">
  | 
  | FacesTrace
  | http://sourceforge.net/projects/facestrace
  | 
  | 
  | 
  | 
  | 
  |   
  | 
  |
  | 
  | 
  | Search Hotels
  | 
  | 
  |  
  |
  |  
  |
  | 
  |
  | 
  |
  |   
  |  
  |   
  |
  |
  |Maximum results: 
  |
  |   
  |   
  |   
  |
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | 
  | 
  | 
  | Name
  | #{hot.name}
  | 
  | 
  | Address
  | #{hot.address}
  | 
  | 
  | City, State
  | #{hot.city}, #{hot.state}, #{hot.country}
  |  
  | 
  | Zip
  | #{hot.zip}
  | 
  | 
  | Action
  | 
  | 
  | 
  | 
  |   
  | 
  | 
  | 
  | Current Hotel Bookings
  | 
  | 
  |   
  | 
  | 
  | 
  | Name
  | #{book.hotel.name}
  | 
  | 
  | Address
  | #{book.hotel.address}
  | 
  | 
  | City, State
  | #{book.hotel.city}, #{book.hotel.state}
  | 
  | 
  | Check in date
  | 
  | 
  | 
  | Check out date
  | 
  | 
  | 
  | Confirmation number
  | #{book.id}
  | 
  | 
  | Action
  | 
  | 
  | 
  |   
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | State management in Seam
  | 
  |State in Seam is contextual. When you click "Find Hotels", the 
application
  |retrieves a list of hotels from the database and caches it in the 
session context. When you
  |navigate to one of the hotel records by clicking the "View Hotel" link, 
a conversation 
  |begins. The conversation is attached to a particular tab, in a 
particular browser window. You can
  |navigate to multiple hotels using "open in new tab" or "open in new 
window" in your web browser.
  |Each window will execute in the context of a different conversation. The 
application keeps state
  |associated with your hotel booking in the conversation context, which 
ensures that the concurrent
  |conversations do not interfere with each other.
  | 
  | 
  | 
  |
  |   How does the search page work?
  |
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

trace.tld (which is in the facestrace-0.8.1.jar, after I modified the taglib 
tag as follows):


  | 
  | http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"; 
xmlns="http://java.sun.com/xml/ns/javaee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.1">
  | 
  | 1.0
  | FacesTrace
  | http://sourceforge.net/projects/facestrace
  | 
  | trace
  | net.sf.facestrace.component.TraceTag
  | JSP
  | 
  | 
  | id
  | false
  | false
  | 
  | 
  | 
  | rendered
  | false
  | false
  | 
  | 
  | 
  | binding
  | false
  | false
  | 
  | 
  | 
  | showTree
  | false
  | false
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to add authentication on JBoss home web site

2007-10-13 Thread PeterJ
You can either apply similar security settings to the root application, or you 
can remove the root application.

The root application is located at 
server/xxx/deploy/jboss-web.deployer/ROOT.war, where 'xxx' is the configuration 
you are running.

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

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


[jboss-user] [JBoss Seam] - Re: Binding Component to Backing Bean Property

2007-10-13 Thread matt.drees
That doesn't look like quite the same problem; it looks (from the stacktrace) 
like you have an @Out(scope=Conversation) somewhere.  Try setting it to 
required=false; IIRC, that will prevent the IllegalStateException from being 
thrown when the context isn't available.  


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

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


[jboss-user] [JBoss Seam] - Re: Binding Component to Backing Bean Property

2007-10-13 Thread matt.drees
Also, you might want to consider binding to an event-scoped component, not a 
session-scoped one.  It's what the docs recommend, anyway.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: UnKnow Error

2007-10-13 Thread btp2007
anonymous wrote : The only think I can think of is that there is another JSF 
jar file on you RedHat server that is being used inadvertently. To track this 
down, add the "-verbose:class" to the JAVA_OPTS in the run script and then 
examine the locations of the jar files for the classes loaded. You might have 
to also do this on Windows to have a control group to compare to.

Thanks for your ideas. I will try it and find out what's going on. I will 
continue posting the results.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: UnKnow Error

2007-10-13 Thread btp2007
I can make it work. The result is difference between ant build on windows and 
Linux.

On Windows: Ant build make the build are Folders. ie: kadoo.jar folder
On Linux: Ant build make the build are file. ie: kadoo.jar file.

So, I have to build project on Window and Deploy it in Linux. 

I didn't know whyAre there any one can explain what happen with ANT on 
Linux? Please help...

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

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


[jboss-user] [EJB 3.0] - Re: unable to find LoginModule class

2007-10-13 Thread JPagera
this is my LoginModule class


  | 
  | package com.jpagera.login;
  | 
  | import java.io.IOException;
  | 
  | import java.util.Map;
  | 
  | import javax.security.auth.Subject;
  | import javax.security.auth.callback.Callback;
  | import javax.security.auth.callback.CallbackHandler;
  | import javax.security.auth.callback.NameCallback;
  | import javax.security.auth.callback.PasswordCallback;
  | import javax.security.auth.callback.UnsupportedCallbackException;
  | import javax.security.auth.login.LoginException;
  | import javax.security.auth.spi.LoginModule;
  | import java.sql.*;
  | 
  | import java.util.HashSet;
  | import java.util.List;
  | import java.util.Set;
  | import java.util.Vector;
  | 
  | 
  | public class JPageraLoginModule implements LoginModule {
  | 
  | private Subject subject_;
  | private String userName ;
  | private char[] password;
  | private CallbackHandler _callbackHandler_;
  | private boolean loginResult;
  | 
  | private String driverDB_ ;
  | private String userDB_ ;
  | private String passwordDB_ ;
  | private String urlDB_ ;
  | private Map sharedState_;
  | private Map options_;
  | private JPageraPrincipal _jPageraRolePricipl[] ;
  | 
  | public JPageraLoginModule() {
  | }
  | 
  | public void initialize(Subject subject, CallbackHandler 
callbackHandler, 
  |Map sharedState, 
  |Map options) {
  |
  | this.subject_ = subject;
  | this._callbackHandler_ = callbackHandler;
  | this.sharedState_ = sharedState;
  | this.options_ = options;
  | 
  | }
  | 
  | public boolean login() throws LoginException {
  | 
  | System.out.println("Start LGIN 
MEHTOD");
  | if(_callbackHandler_ == null){
  | throw new LoginException("JPageraLoginModule Exception 
_callbackHandler_ is null ");
  | }
  | 
  | Callback callbackx[] = new Callback[2];
  | 
  | callbackx[0] = new NameCallback("Username");
  | callbackx[1] = new PasswordCallback("Password:",false);
  | 
  | 
  |
  | try {
  | _callbackHandler_.handle(callbackx);
  | 
  | 
System.out.println("LOGI_U "+ 
((NameCallback) callbackx[0]).getName());
  | 
System.out.println("LOGI_P "+ 
((PasswordCallback) callbackx[1]).getPassword());
  | 
  | driverDB_ = (String)options_.get("driverDB_");
  | userDB_ = (String)options_.get("userDB_");
  | passwordDB_ = (String)options_.get("passwordDB_");
  | urlDB_ = (String)options_.get("urlDB_");
  | 
  | System.out.println("driverDB : "+driverDB_);
  | System.out.println("userDB : "+userDB_);
  | System.out.println("passwordDB : "+passwordDB_);
  | System.out.println("urlDB : "+urlDB_);
  | userName = ((NameCallback) callbackx[0]).getName();
  | 
  | loginResult = checkUserNameAndPassword(((NameCallback) 
callbackx[0]).getName(),((PasswordCallback) callbackx[1]).getPassword());
  | 
  | System.out.println("IN LOGIN METHOD FINISH."+loginResult);
  | return loginResult;
  | 
  | } catch (UnsupportedCallbackException e) {
  | // TODO
  | throw new LoginException("JPageraLoginModule Exception 
UnsupportedCallbackException ");
  | } catch (IOException e) {
  | // TODO
  | throw new LoginException("JPageraLoginModule Exception 
IOException ");
  | }
  | }
  | 
  | public boolean commit() throws LoginException {
  |  
  | /*if(!loginResult){
  | return loginResult;
  | }*/
  | if (subject_.isReadOnly())
  |   {
  | throw new LoginException("JPageraLoginModule Exception Subject 
is read only!");
  |   }
  |   
  | 
  | System.out.println("NAM "+userName);
  | JPageraPrincipal jpageraPrincipl = new JPageraPrincipal(userName);
  | //JPageraPrincipal jpageraPrinciplAdmin = new 
JPageraPrincipal("ADMIN");
  | subject_.getPrincipals().add(jpageraPrincipl);
  | //subject_.getPrincipals().add(jpageraPrinciplAdmin);
  | 
  | for (int i = 0; i < _jPageraRolePricipl.length; i++)  {
  | subject_.getPrincipals().add(_jPageraRolePricipl);
  | }
  | 
  | System.out.println("FINISH COMMITE.");
  | 
  | Object[] ty = subject_.getPrincipals().toArray();
  | for (int i = 0; i < ty.length; i++)  {
  | System.out.println(i+" Prin