[jboss-user] [JBoss Seam] - Re: Using DataModelSelection and @Out for an

2006-12-14 Thread SmokingAPipe
"[EMAIL PROTECTED]" wrote : There is nothing wrong with the donothing method. 
It is needed. but it would be better to make it a page action (or an s:link 
action) than to use a commandButton.

Ok, interesting, I had thought there must be some other way, but I guess not.  
I will then use do-nothing methods, and maybe in the process of using them I'll 
sometimes notice cases where I do have some work for them to do.  And I'll use 
s:links, which I'm using more frequently in my pages.

At some point I might come accross some kind of AJAX component that will handle 
the "are you sure" thing, which could make this whole thing even easier.


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

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


[jboss-user] [JBoss Messaging] - Re: JmsXA vs XAConnectionfactory and durable topic subscript

2006-12-14 Thread mclu
"timfox" wrote : BTW, any reason why you're not just using MDBs?

Hmm Yes!

As I said I have a Topic where messages comes in. These must be processed and 
send to a queue for each connected system. 
I don't want so hardcode his so it must be self maintaining.
My Idea: Have a service which starts or stops durable subscribers on a topic 
based on registered servers...
The Order is relevant so I can only have one instance per connected Server.
Any small hints how I can handle this with MDB? I would prefer this way because 
of DLQ handling and transactions...

In the end I need a scaleable system which consumes messages from a topic and 
send the processed data (different for each server) to connected 
servers/outgoing queue (which register themself).

One Idea is to have an MDB which handles the message for all servers, but this 
is not that scaleable, because the order is relevant so I only can have one MDB 
instance...
 


"[EMAIL PROTECTED]" wrote : False 
Thx for this hint but I try be be spec compliant... 



/MDB consuming messages


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

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


[jboss-user] [JBoss Seam] - Re: Using DataModelSelection and @Out for an

2006-12-14 Thread [EMAIL PROTECTED]
There is nothing wrong with the donothing method. It is needed. but it would be 
better to make it a page action (or an s:link action) than to use a 
commandButton.

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

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


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

2006-12-14 Thread SmokingAPipe
anonymous wrote : In Seam 1.1, Seam-managed persistence contexts are very 
efficient in a clustered environment, and I strongly recommend them. 

SMPC is one of the pillars of Seam.  Without SMPC it's pretty frustrating.  I 
was floundering until I figured out that I needed to use SMPC.  I wish that 
Chap. 1 of the Seam Tutorial would put more emphasis on using SMPC and 
explaining what it is. 


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

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


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

2006-12-14 Thread [EMAIL PROTECTED]
1)

http://www.jboss.com/products/seam/exceptions-1.1.dtd

Its also in the Seam jar.

2) 

The negative consequence is that you can have multiple objects from the same 
persistent identity, for the same conversation.

In Seam 1.1, Seam-managed persistence contexts are very efficient in a 
clustered environment, and I strongly recommend them.

3)

Of course there is always per-request state. The diff b/w a SFSB and an SLSB is 
that an SLSB does not hold state between *method calls*. Which means that they 
can never be used as a backing bean for a JSF form, among other things.

4)

anonymous wrote : What are best practices or suggestions regarding what to bind 
fields in the webpage to - session beans or entities?

The best practice is to use a stateful session bean or an entity bean. Depends 
upon whether the form data is to be persistent or not.

The Seam registration example does it exactly right.

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

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


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

2006-12-14 Thread SmokingAPipe
anonymous wrote : What are best practices or suggestions regarding what to bind 
fields in the webpage to - session beans or entities? 

Bind them to what they should be bound to!  If you're manipulating an object 
like a "Car", that has color, price, model name, etc, those should be bound 
directly to the car.  The cool thing about Seam is that it gets rid of the 
whole "data transfer objects" (DTOs) thing.  You certainly can use session 
beans as DTOs in cases where you really need to, but if you don't need to, 
don't!  I started using Seam because I don't want to use any more DTOs.  JSF 
backing beans are DTOs.

Why are DTOs so bad?  Because they don't correspond to any part of your 
business.  Working on stuff that's not part of your business means wasting 
time, effectively.

I'm a Seam newbie so I hope someone will correct me if I'm wrong on this.


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

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


[jboss-user] [JNDI/Naming/Network] - jndi reference problem(urgent)?

2006-12-14 Thread augustfox
My environment is myeclipse4.1.1+jboss4.0.1sp1+DB28.2.
When I wanna get a database connection,i meet with a problem,the error as 
follows:
14:38:06,343 INFO  [STDOUT] javax.naming.NamingException: Could not dereference 
object [Root exception is javax.naming.NameNotFoundException: jdbc not bound]
14:38:06,343 INFO  [STDOUT] at 
org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:999)
14:38:06,343 INFO  [STDOUT] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
14:38:06,343 INFO  [STDOUT] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:658)
14:38:06,343 INFO  [STDOUT] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
14:38:06,343 INFO  [STDOUT] at 
javax.naming.InitialContext.lookup(InitialContext.java:347)

My code like this:
Context context = new InitialContext();
return (DataSource) context.lookup("java:comp/env/jdbc/test"); 

I can get connecton via context.lookup("java:jdbc/test"),
but i still want to know why context.lookup("java:comp/env/jdbc/test") not 
works?
I want to get your help eagerly!
  

my db2-ds.xml:

jdbc/test
jdbc:db2:tempdb
COM.ibm.db2.jdbc.app.DB2Driver
test
test
5
20


   DB2



my web.xml:

jdbc/test
javax.sql.DataSource
Container
Shareable


my jboss-web.xml:

jdbc/test
jdbc/test


I also tried resource-env-ref in my web.xml and jboss-web.xml,it still not 
works.
thanks a lot!

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

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


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

2006-12-14 Thread lightbulb432
1) 
Is there a DTD or some detailed documentation that is available for 
exceptions.xml? I did a web search on this file and noticed a link 
(http://jira.jboss.com/jira/browse/JBSEAM-186?page=comments) that showed a lot 
of proposed activity, and I'm just wondering what the final set of 
functionality offered by this file is.

That link talks about a lot of things like ExceptionFilter, a request-scoped 
variable named "exception", and some different possible  tags (many of which 
are also provided in the link in your previous post). It'd be nice to have take 
a look at DTD or documentation that describes all the current possibilities 
with the exceptions.xml file.


2) anonymous wrote : A Seam persistence context is most like a 
container-managed extended persistence context. But whereas the 
container-managed context is tied to an SFSB instance, and hence there can be 
multiple contexts per conversation, the Seam persistence context has exactly 
one per conversation. 

What implications does the existence of multiple persistence contexts per 
conversation have? (i.e. What negative consequence of this was being solved by 
the introduction of the Seam-Managed Persistance Context?)

Is it necessary (or recommended?) to use the SMPC in all cases where there 
exists a conversation? - I'm not sure about the decision process for which of 
the two to choose, and the rationale behind it.


3) anonymous wrote : There is nothing wrong with having a bunch of stateless 
actions all using the same conversation-scope persistence context. This is part 
of the magic of Seam - components with different scopes can all work smoothly 
together in a loosley coupled way, with no need for orchestration by the Java 
code.

In that case, is it correct to say that everything in Seam is stateful 
regardless of whether you use stateless or stateful session beans - because the 
component tree and state holds the information which is injected into fields of 
the session beans? If everything can be conveniently done with a stateless 
session bean because of the beauty of bijection, then when (this'll sound like 
a really dumb question) would you use stateful session beans at all? I imagine 
it'd be more than just a matter of convenience coding (e.g. saving a few 
merge() calls or something like that)?
 

4) 
I need some guidance here: What are best practices or suggestions regarding 
what to bind fields in the webpage to - session beans or entities? If you have 
a Registration session bean and a Person entity, would you bind fields such as 
"name" to the entity directly and other things like "password1" and "password2" 
to the session bean (because, for example, you need to make sure both passwords 
are the same)?

Or is such a direct access to the entity not considered good (because that's 
what the session facade is meant for?), and even "name" should be bound to the 
session bean then passed through to the entity? Is it not good practice to, in 
a form with multiple fields, have some forms bound to #{register. } and others 
bound to #{person. }...should you remain consistent instead? What would you do?


Thanks. Whew!

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

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


[jboss-user] [JBoss Eclipse IDE (users)] - Entities in EJB3.0

2006-12-14 Thread mahesh.mylavarapu

Can any one tell me how to create entities of EJB3.0 using JBoss IDE wizards.
I am also looking for any tutorial for getting started with EJB3.0 in JBoss IDE.

Any help in this regard is highly appreciated.




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

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


[jboss-user] [JBoss Seam] - Using DataModelSelection and @Out for an "are you sure" page

2006-12-14 Thread SmokingAPipe
Here's the scenario:

I use a DataModel in my SFSB to present a table to a user.  Let's say it's a 
table of important things that you wouldn't normally delete, like a table of 
Customers.  I display this table, using the DataModel, and next to each 
Customer there is a "delete" button.  Clicking "delete" will take the user to 
another page where the details of the customer are shown, and it says, "are you 
sure you want to delete this customer?"  Then there is a "yes really delete" 
button there.

Obviously I can know which entry was clicked with a @DataModelSelection, and I 
can use an  to get to the "are you sure" page.  I put an @Out along 
with the @DataModelSelection.  When I do this, the DataModelSelection is being 
set and outjected, but it is being outjected after the "are you sure" page is 
rendered, so the details can't be displayed on that page.

As a hack, I have used a  instaed of an , and for the 
action I have used a method call that looks like this:

public String doIt() { 
  | return "/are-you-sure.jsp";
  | }

What this does is it gets the value outjected before it needs to render the 
are-you-sure.jsp page.

So, that works, but it involves writing a method that doesn't do anything more 
than returning a string, and seems hackish.

Is there some nicer way to do this?  This is important to me because I do this 
kind of thing all the time in my application.

Thanks


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

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


[jboss-user] [JBoss jBPM] - Re: Missing processdefinition after Jboss server restart

2006-12-14 Thread anu123suya
i did not use any such line in my cfg.xml file.

any other suggestions pls?

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

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


[jboss-user] [JBoss Seam] - Re: [OT] Seam and Tomahawk - lost property?

2006-12-14 Thread popcorn09
"Bischoje" wrote : +1 on working towards better cooperation between Tomahawk 
and Seam (both the Products and the Teams ;)

+1 from my side too! :)

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

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


[jboss-user] [JBossCache] - Re: Performance Issue with Jbosscache

2006-12-14 Thread [EMAIL PROTECTED]
Wait a minute, your CacheMode is REPL_ASYNC, which means that JBossCache tries 
to replicate each modfication ! Change that to LOCAL if you don't want 
replication, or use (a) transactions or (b) a replication queue if you want to 
bundle modifications.

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

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


[jboss-user] [JBossCache] - Re: URGENT: Need documentation for down_thread and up_thread

2006-12-14 Thread [EMAIL PROTECTED]
Which cache ? JBossCache ?

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

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


[jboss-user] [JBossCache] - Re: URGENT: Need documentation for down_thread and up_thread

2006-12-14 Thread [EMAIL PROTECTED]
"manojpn" wrote : Thanks for your reply, really appreciate that. So are you 
suggesting that I should set these to false always for each protocol ? Is there 
any reason why I would set these to true for any protocol ?
  | I am using jgroups 2.2
  | 
  | 

Usually, yes, but with 2.2, I don't know. 2.2 was released in the fall of 2003, 
so I don't remember whether down/up_thread could be set to false. I suggest to 
upgrade to a newer version, e.g. 2.2.9.4, which is API compatible with 2.2 
(even 2.3 and 2.4 are !). These newer stacks have all of their up and down 
threads set to false.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994124
___
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 failing

2006-12-14 Thread [EMAIL PROTECTED]
to limit the reverse engineering to a specific schema set 
hibernate.default_schema in build.properties.


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

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


[jboss-user] [JBoss jBPM] - Re: JBPM3 with tomcat

2006-12-14 Thread vt00098
hi

diwa, u r every kind.i really appreciate your help.

regards and thanks

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

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


[jboss-user] [JBossCache] - Re: Performance Issue with Jbosscache

2006-12-14 Thread muthukumaran_m
Thanks for your interest.

Actually we didn't have any cluster setup, while we took the performance 
results.

We actually wanted to get the performance of the application with a single 
server instance. Kindly advice me, whether I am missing some setting here?

Then, regarding the JGroups version, here is it

  | Version:2.2.8
  | CVS:$Id: Version.java,v 1.18.2.1 2005/05/30 09:47:56 belaban 
Exp $
  | History:(see doc/history.txt for details)
  | 

The real thing that makes me worry is that the application flow, for which I am 
testing the performance, does not include any call to the Jboss Cache. We are 
using Jboss Cache for a different flow/purpose, mainly for invalidating the 
custom in memory architecture that we have in our application. But I am not 
sure why this JGroup call is coming in. 

Kinldy let me know any more information.


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

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


[jboss-user] [JBoss Seam] - Re: could not get id of: org.jboss.seam.framework.Home.insta

2006-12-14 Thread [EMAIL PROTECTED]
Seam was swallowing the real exception, which was from Hibernate Validator. 
This is now fixed in CVS.

You should be using required=true on your JSF fields.

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

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


[jboss-user] [JBoss Portal] - Weather Portlet

2006-12-14 Thread sridhark79
Hi,

How is the Weather portlet is able retreive to the region set the by the user 
in the edit mode for that user.

What is the link between the POrtlet data and the user in the Portal Database.?

Any clues.??

Thanks in adavance

Sridhar

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

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


[jboss-user] [JBoss Seam] - Re: Running the booking example on JBoss with the JSF 1.2 RI

2006-12-14 Thread thejavafreak
Nice guide. Really nice

Now I can run a seam-gen generated application on JBoss AS 5.0.0Beta1

I'm loving this

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

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


[jboss-user] [JBoss Portal] - Re: jboss-portal-2.4.1CR2 cms links broken

2006-12-14 Thread hurzeler
Can you tell me which class I need to overwrite? Tha

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

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


[jboss-user] [JBoss Portal] - Re: jboss-portal-2.4.1CR2 cms links broken

2006-12-14 Thread [EMAIL PROTECTED]
ahhhthat maybe an issue.

right now, /content is mapped to the default page with the cms portlet on it 
using the CommandMapper framework in portal

for your new page, you will need to write another command mapper to do that
similar to the one written for the original.

Thanks
Sohil


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

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


[jboss-user] [JBoss jBPM] - Re: JBPM3 with tomcat

2006-12-14 Thread diwa_pv
hi, 

i was just about to send u the reply to your problem. but you found the way out 
of it! Its really good to see most of them are successfully deploying jbpm on 
tomcat after seeing this post!

regards and thanks
diwa

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

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


[jboss-user] [JBoss jBPM] - Re: JBPM3 with tomcat

2006-12-14 Thread vt00098
I resolve the pb. I didn't init the userbean.

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

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


[jboss-user] [JBoss Seam] - Re: Add in a message bundle from a component jar

2006-12-14 Thread [EMAIL PROTECTED]
anonymous wrote : Ok. http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994113#3994113

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


[jboss-user] [JBossCache] - Re: UnsupportedOperationException with WAS 6.0, CMT , Hibern

2006-12-14 Thread lakida
Opened bug in Jira
http://jira.jboss.com/jira/browse/JBCACHE-907

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

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


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

2006-12-14 Thread [EMAIL PROTECTED]
1) You don't need to call @Remove, since Seam will call the @Destroy method, 
which removes the bean, at the end of the conversation.

The reason for @Destroy @Remove is to make sure that the conversation can't 
possibly be destroyed without the SFSB being removed.

2) No, it is definitely not required. There is nothing wrong with having a 
bunch of stateless actions all using the same conversation-scope persistence 
context. This is part of the magic of Seam - components with different scopes 
can all work smoothly together in a loosley coupled way, with no need for 
orchestration by the Java code.

3) If you are trying to use a Seam-managed persistence context, do *not* use 
@PersistenceContext, use @In instead.

4) Try using exceptions.xml:

http://docs.jboss.com/seam/1.1GA/reference/en/html/events.html#d0e3695



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

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


[jboss-user] [JBoss Seam] - Re: Seam web.xml question

2006-12-14 Thread [EMAIL PROTECTED]
Use whatever version of the schema works for you.

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

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


[jboss-user] [JBoss Seam] - Re: Injecting EJB3 into a POJO

2006-12-14 Thread [EMAIL PROTECTED]
Definitely it is not possible using @EJB. It is possible using @In, but you 
must use the local interface type, not the bean class.

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

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


[jboss-user] [JBoss Portal] - Re: jboss-portal-2.4.1CR2 cms links broken

2006-12-14 Thread hurzeler
That helps but only so far. After deleting the data directory and the DB the 
links work ok on the default page. However I have put the CMS portlet on my own 
page called 'Home'. As soon as I do that the links are not working any more. Do 
we have to change the links somehow when the CMS portlet is not on the default 
page. Shouldn't they be the same?

Any guidance? Thanks

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

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


[jboss-user] [JNDI/Naming/Network] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam

2006-12-14 Thread PeterJ
Let's try one more thing. Set this environment variable:

set _JAVA_LAUNCHER_DEBUG=1

Add the 'output' attribute to the < java > task so that you can capture the 
program output in a file.  In addition, add the -verbose:class JVM argument. So 
the < java > task would look like:



  |   
  | 

If you have problems with the above steps, run your client from the command 
line (instead of within Ant), and redirect stdout to a file.

The resulting output will be too long to post, so email it to me (click on my 
name in the Author column to see my email address).

Another suggestion is to write a very simple client that does nothing but get 
the initial context and request the EJB. If that works, then there is something 
about your client that is causing a class loader issue. 

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

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


[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss Eclipse IDE, Eclipse 3.1 and upcoming WTP versions

2006-12-14 Thread fubar08888
when is the trailblazer going to be available?

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

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


[jboss-user] [JBoss jBPM] - Re: BPEL : asynchronous invocation

2006-12-14 Thread saugatakc
Thanks for the reply.
This example is of a simple request-response invocation of a web-service. I'm 
looking for an example of asynchronous invocation, where the BPEL process 
invokes the web-service and the web-service calls it back. Particularly I want 
to know how the reply-to address is passed. e.g. In oracle-fusion, if I define 
a reply-to header in the web-service message definition, it is filled 
automatically by the engine, and can be extracted by the web-service, is 
something similar done here too.

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

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


[jboss-user] [JBoss Portal] - Re: jboss-portal-2.4.1CR2 cms links broken

2006-12-14 Thread [EMAIL PROTECTED]
I just ran this locally on my box:

The following link comes up with the page just fine:

http://localhost/portal/content/default/project.html

You may want to delete your portal database and let the cms reinitialize the 
content.

Also, delete the /data directory under your server configuration in jboss to be 
on the safe side

Thanks
Sohil

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

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


[jboss-user] [JNDI/Naming/Network] - Re: jndi.properties jnp.timeout=60000000 ignored

2006-12-14 Thread fubar08888
sorry, the fix by llucifer works updating the jboss-service.xml file
socket://0.0.0.0:3873/?socketTimeout=30

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

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


[jboss-user] [JNDI/Naming/Network] - Re: jndi.properties jnp.timeout=60000000 ignored

2006-12-14 Thread fubar08888
Does anyone know how to solve the above problem, I have a bean method that 
takes a little bit more than 60 secs and I get the timeout, is there a way to 
set it higher?

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

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


[jboss-user] [JNDI/Naming/Network] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam

2006-12-14 Thread forumer
Here is an excerpt from build.xml. myClient.jar are my classes. Classpath must 
be ok as things work when I place the JNDI variables in system variables!


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

Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: Seam web.xml question

2006-12-14 Thread caigao
Hi, i have the same question as you.

Anyone can answer us about this?

Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: Injecting EJB3 into a POJO

2006-12-14 Thread [EMAIL PROTECTED]
Meant to say @In(create=true) causes that stuff.

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

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


[jboss-user] [JBoss Seam] - Re: Injecting EJB3 into a POJO

2006-12-14 Thread [EMAIL PROTECTED]
@In cause the stuff below:
anonymous wrote : 
  | Caused by: java.lang.IllegalArgumentException: Could not set field value by 
reflection: DragDropBean.kohdeEditor on: fi.jab.jsf.icefaces.DragDropBean with 
value: class org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$36c63494
  | at org.jboss.seam.util.Reflections.set(Reflections.java:75)
  | at org.jboss.seam.Component.setFieldValue(Component.java:1547)
  | ... 105 more
  | Caused by: java.lang.IllegalArgumentException: Can not set 
fi.tc.business.KohdeEditorBean field 
fi.jab.jsf.icefaces.DragDropBean.kohdeEditor to 
org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$36c63494
  | at 
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
  | at 
sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
  | at 
sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
  | at java.lang.reflect.Field.set(Field.java:657)
  | at org.jboss.seam.util.Reflections.set(Reflections.java:61)
  | ... 106 more
  | 
  | 

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

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


[jboss-user] [JBoss Seam] - Injecting EJB3 into a POJO

2006-12-14 Thread [EMAIL PROTECTED]
Hello,
 I don't quite recall this stuff correctly but is it possible to inject (either 
@In or @EJB) SFSB into a plain java class? Or is there just something wrong 
with the syntax?



  | @Name("dragDropBean")
  | @Scope(value = ScopeType.SESSION)
  | public class DragDropBean implements Renderable {
  | 
  | @In
  | KohdeEditorBean kohdeEditor;
  | 
  | // or 
  | @EJB
  | KohdeEditorBean kohdeEditor;
  | 
  | }
  | 
  | @Name("kohdeEditor")
  | @Stateful
  | @Scope(value = ScopeType.SESSION)
  | public class KohdeEditorBean extends StatefullBaseAction implements 
KohdeEditor {
  | 
  | }
  | 



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

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


[jboss-user] [JCA/JBoss] - Re: JCA/CICS has problem with JBoss4.0 RC1

2006-12-14 Thread [EMAIL PROTECTED]
That would be my guess. Could you turn on tracing when you deploy your *-ds.xml 
file and then send it to me? 



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

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


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

2006-12-14 Thread lightbulb432
That works, thanks.

1) I've left my destroy() method as in the example from the previous post. What 
I don't understand, though, is don't @Remove and @End conflict in any way? It 
seems like if @End is called, the conversation ends, and if @Remove is called, 
then the SFSB is removed? But I never call @Remove...

The Seam tutorial says SFSB must have an @Destroy @Remove method...but it seems 
like @Remove does one thing and @Destroy does another. Why must they both be 
defined on the same method?

2) When using conversations, is it required to use a stateful session bean as 
opposed to stateless? What about an extended persistence context as opposed to 
a transaction-scoped one?

3) From the earlier posts about the Seam-Managed Persistence Context, how do I 
use it? What should I set @PersistenceContext(type=???) to?

4) Is there a way to catch any exception from an action method and return a 
certain string, such as "failure"? I could place a catch block inside every 
action method, but that seems like a pain. 

Is there some way to specify (through XML or annotations) that if a certain or 
any exception is thrown, that you simply return a certain value from the action 
method?

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

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


[jboss-user] [JCA/JBoss] - Re: HSQLDB connection problem

2006-12-14 Thread [EMAIL PROTECTED]
I am not sure what you are saying. Do you want to use HSQLDB outside of JBoss, 
are you having a problem looking up your datasource, what? 

Please read:

http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHelp

Also, you should take a look at all the sticky threads at the beginning of this 
forum. This provides more information on how to ask for help. 



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

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


[jboss-user] [JCA/JBoss] - Re: JCA/CICS has problem with JBoss4.0 RC1

2006-12-14 Thread bkseow
Hi,

The adapter was installed as I can see the following entries through 
jmx-console:

:
:
name=cicseci,service=ConnectionFactoryBinding 
name=cicseci,service=ManagedConnectionFactory 
name=cicseci,service=ManagedConnectionPool 
name=cicseci,service=TxCM 
:
:

The CICS resource adapter that I am using come with IBM CICS Transaction 
Gateway (CTG) V5. I have tried to use the adapter that comes with IBM CTG V4 on 
JBOSS 4.x and I can connect to the host without any problem. Can the problem be 
related to the adapter ? 


Seow

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

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


[jboss-user] [JBoss jBPM] - Re: Request didn't include a SOAP Message

2006-12-14 Thread [EMAIL PROTECTED]
Hi Bertrand,

If I understand correctly, jBPM is sending an HTTP request to a partner 
service, but the SOAP envelope being transmitted is not what the service 
expects. In this case, I'd like to take a look at the outgoing SOAP message and 
the partner WSDL document for determining the possible cause of the problem.

Effectively, the WSDL location and the endpoint address are different. The SOAP 
message should be sent to the endpoint address. jBPM requires the WSDL document 
to determine the expected message format.

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

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


[jboss-user] [JBoss jBPM] - Re: how to get jBPM working without the starterkit

2006-12-14 Thread kukeltje
hmm I was beaten again (with the quickness of responding) but want to end this 
discussion again with a remark I made only a few days ago.: 

Remember, we love you ;-)

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

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


[jboss-user] [JBoss Seam] - Re: Seam 1.1 GA, at last!

2006-12-14 Thread williamhe
Very good, very grateful ,
extremely grateful for all your efforts!!!
I want to know,
use Myface tomahawk in jboss-seam,
Need some special allocation?
Thanks advance!

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

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


[jboss-user] [JBoss Messaging] - Are there performance numbers available comparing MQ vs Mess

2006-12-14 Thread batter
Just curious if people posted their numbers comparing MQ vs Messaging.  I am 
trying to determine if my project should use messaging and keep our fingers 
crossed that it will release in the next few months and need some data to 
convince others higher in the decision tree :-)

Of course if those numbers are not available, I will run my own tests; thought 
I would ask first.

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

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


[jboss-user] [Installation, Configuration & Deployment] - EAR Deployment, Third-party libraries and Struts

2006-12-14 Thread KooKoolen
Hello everybody,

I'm currently developing a J2EE software which uses EJB3 for the business layer 
and a web front-end to access and input data.
I started developping the two modules separately and deploying them separately. 
It worked fine.

Now, I want to package them in a single EAR file. Since they share third-party 
libraries, I put those libraries in the lib directory at the root of my EAR 
archive and declared those JARs int the MANIFEST of both the web module and the 
EJB module (but not in the EAR MANIFEST, should I ?).

When deploying th EAR, the deployment goes well (no errors). That means 
third-party libraries are taken into account by the EJB module since it needs 
some of them at startup.

The problem arises when accessing the web front-end. My web module uses the 
Struts framework. I tried two different packaging:

- struts-core.jar and struts-taglibs.jar are in the WEB-INF/lib directory of my 
web module.
 Jasper throws a compilation exception with the following message:

  | org.apache.jasper.JasperException: Unable to compile class for JSP
  | 
  | Generated servlet error:
  | The method _jspx_meth_bean_message_0(JspTag, PageContext) in the type 
index_jsp is not applicable for the arguments (HtmlTag, PageContext)
  | 
  | Generated servlet error:
  | The method _jspx_meth_html_base_0(JspTag, PageContext) in the type 
index_jsp is not applicable for the arguments (HtmlTag, PageContext)
  | 
  | Generated servlet error:
  | The method _jspx_meth_html_rewrite_0(JspTag, PageContext) in the type 
index_jsp is not applicable for the arguments (HtmlTag, PageContext)
  | 
  | Generated servlet error:
  | The method _jspx_meth_bean_message_1(JspTag, PageContext) in the type 
index_jsp is not applicable for the arguments (HtmlTag, PageContext)
  | 
  | Generated servlet error:
  | The method _jspx_meth_bean_write_0(JspTag, PageContext) in the type 
index_jsp is not applicable for the arguments (MessagesTag, PageContext)
  | 
  | Generated servlet error:
  | javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN cannot be resolved
  | 
  | Generated servlet error:
  | The method doAfterBody() is undefined for the type MessagesPresentTag
  | 
  | Generated servlet error:
  | javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN cannot be resolved
  | 
The message is longer but they are all similar to the preceding.

- struts-core.jar and struts-taglibs.jar are in the lib directory of the EAR 
archive and referenced in the classpath entry of the MANIFEST for the web module
The web container throws an exception saying it can't find Struts TLDs nor in 
the web.xml, nor in the JARs packaged in the application.
So I tried to extract Struts TLDs, put them in my WEB-INF and referencing them 
in my web.xml and then I get the same error than the first packaging solution I 
tried.

I also tried to isolate the EAR classloading by setting true in the EAR 
deployer configuration but that way it can not even deploy my EAR.

Thanks for your answers and for the great job you do,
Sylvain

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

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


[jboss-user] [JBoss jBPM] - Re: jbpm webapp login

2006-12-14 Thread kukeltje
hmmm what is it that makes it a non regular webapp by just using jsf? It is the 
standard ;-)

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

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


[jboss-user] [JBoss Portal] - Re: jboss-portal-2.4.1CR2 cms links broken

2006-12-14 Thread hurzeler
http://localhost/portal/portal/content/default/project.html
does not give an error but brings up the index.html page instead and that is 
not write either?!?!

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

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


[jboss-user] [JBoss jBPM] - Re: how to get jBPM working without the starterkit

2006-12-14 Thread kukeltje
James,

It is a dead horse. I was the first who got 'frustrated' by people who think OS 
means free, detailed support. Sorry, to not fullfil that. Cocampo has to some 
extend taken over the task to educate people, cause that is what I think it is, 
educating them. 

If you think the jBPM documentation is lacking that might as well indeed say 
something about you (without wanting  to punch you in the noise, cause if there 
is one thing we are NOT, it is aggressive). We've had lots of positive 
feedback, mostly of-forum, from people with the right amount of knowledge to 
get started with jBPM. on-forum, lots of times people say they have NO 
knowledge of jBPM and j2ee (even if there is no direct relation) but want basic 
support. I often hasitated to respond that they should take  java 101 or j2ee 
for dummies classes first, cause that is what is mentioned as a primary 
requirement, some basic java knowledge. This does not make them an idiot, those 
are your words, but it makes them unfit to get started with jbpm (hell, even 
any other bpm solution)

Time to go to bed now (at least for me)


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

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


[jboss-user] [JBoss Portal] - Re: jboss-portal-2.4.1CR2 cms links broken

2006-12-14 Thread [EMAIL PROTECTED]
What about:

http://localhost/portal/portal/content/default/project.html

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

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


[jboss-user] [JBoss jBPM] - Re: how to get jBPM working without the starterkit

2006-12-14 Thread cocampo
Yeah, you're correct, I should let Java-noobs pollute the forum with nonsense 
(at least regarding jBPM) questions. However, in this particular case, the guy 
had NO clue at all regarding jBPM (even after reading -or at least he said so- 
the manual and the wikis). After a while, someone told him that maybe he should 
look for another tool, another language or another career.

Let me put it this way: I don't find amusing when people don't read the manual 
(most times is obvious) or when they come, ask for help and wait for others to 
do their job while they relax in their desk by seeing a movie, hearing jokes 
and drinking gallons of coffee and/or coke.

If you want this forum to be useful, you better try to find a solution BEFORE 
asking for help. Even better, you can stop comments like "I find jBPM 
documentation lacking as well...". Instead of making this personal (by asking 
if I want to punch you in the nose) and bitching about a product you're NOT 
PAYING a penny for it, I'll ask you to contribute: if you find a bug, provide a 
solution; if you find an error in the manual or "lacking" then edit it and 
enhance it.

Stop bugging me with comments like this, because is really boring, specially 
when they come from people that haven't contributed to this (or any other 
JBoss) forum.

Just my two cents.

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

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


[jboss-user] [JBoss Portal] - jboss-portal-2.4.1CR2 cms links broken

2006-12-14 Thread hurzeler
Hello there,

It seems that in CMS the hyperlinks do not work anymore. Is there a way around 
that?

On the default page is a link (Click here) under Project Information to 
http://localhost/portal/auth/content/default/project.html that give a 404 error 
(resource not found). Subsequently my custom links do not work either.

Any thoughts? Pls help.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994079
___
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 failing

2006-12-14 Thread bunzee
Hi,

I think there's a general issue when seam-gen is used to generate-entities from 
sqlserver (or postgresql).  Basically the system table also got processed too 
and hibernate complains about missing primary key and whatnot.

Does any one know how to set it such that only the non-system tables get 
processed by seam?

Thank you,

BunZ

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

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


[jboss-user] [JBoss Seam] - Re: Add in a message bundle from a component jar

2006-12-14 Thread petemuir
Ok.  http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994077#3994077

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


[jboss-user] [EJB 3.0] - Re: Getting Syntax error with EJB 3.0.

2006-12-14 Thread ALRubinger
"dvuday" wrote : configuration:
  | 
  | JDK: 1.5.0
  | JBOSS: 4.0.3SP1
  | Eclipse: 3.1
  | 
  | 

Ah.  I can't remember what versions of which, and where the JARs were from that 
far back...

JBoss 4.0.4-GA (I believe) shipped w/ EJB3 RC7, and 4.0.5 has RC9.  I'd 
recommend wither upgrading JBoss AS using the visual installer, and selecting 
the "EJB3" profile, or patching your existing by obtaining only EJB3 RC9 
(current release).  That should have a patch installer in it to give you what 
you need.

S,
ALR

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

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


[jboss-user] [JBoss Seam] - Re: Add in a message bundle from a component jar

2006-12-14 Thread [EMAIL PROTECTED]
What you're trying to do can't work. There is no way for two configurations to 
be "merged", one always overrides the other.

If all you need is an override, you can use http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994074#3994074

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


[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
Solution is to include the jndi properties in hibernate.cfg.xml (prefixed with 
hibernate.jndi.)

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

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


[jboss-user] [Security & JAAS/JBoss] - Re: Bug in SecurityAssociation(?) - EJB3 MDB Calls a SLSB wh

2006-12-14 Thread sappenin
Does anybody have any thoughts/opinion about the questions in my second post 
(above)?

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

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


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

2006-12-14 Thread [EMAIL PROTECTED]
Specifally, see the example here: 
http://docs.jboss.com/seam/1.1GA/reference/en/html/framework.html#d0e6711.  
That's not using an EJB3 persistence context, but it does show the override 
mechanism.

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

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


[jboss-user] [JBoss Seam] - Re: Add in a message bundle from a component jar

2006-12-14 Thread [EMAIL PROTECTED]
Are you really wanting to merge them?  Would it not work to simply give your 
other resource bundle a different name?





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

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


[jboss-user] [JBoss Seam] - Re: Referencing global view-id variables from .jpdl.xml

2006-12-14 Thread [EMAIL PROTECTED]
You can have any number of entities, but entities are not allowed in attribute 
values.

If it were me, I wouldn't try to solve this problem using entities.  I don't 
like the use of entities in general, and I particularly dislike using them in 
this manner.  I would simply do textual transformation when you construct your 
ear, the same way we do the build files.



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

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


[jboss-user] [JBoss Seam] - Re: Seam 1.1 on Resin

2006-12-14 Thread svadu
I just tried the jpa example and it works wonders, I guess the problem isn't as 
critical anymore :) I raised an issue at Resin anyway. Hopefully things will 
get better!

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

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


[jboss-user] [JBoss jBPM] - Re: how to get jBPM working without the starterkit

2006-12-14 Thread [EMAIL PROTECTED]
Not to beat a dead horse, but you guys can be real asses.  Gees, the guy was 
struggling, so he asked for help.  If it's that painful to answer, don't.  
Somebody else will, or he'll continue looking somewhere else.  What's the point 
in making them feel like an idiot?  Truth is, I find the jBPM documentation 
lacking as well.  You wanna punch me in the nose too?

"cocampo" wrote : 
  | BTW, this is the last question I answer you about JBoss, since this is a 
VERY basic question; you NEED to read your JBoss manual, or else go to the 
JBoss newbies forum. Be aware, this forum does NOT exist so you can relax while 
others do your work; you need to do your own work (read, research, test, etc.).
  | 
  | I think you don't understand the purpose of forums, so, take a look at the 
next page http://www.catb.org/~esr/faqs/smart-questions.html before asking any 
other question.
  | 
  | Regards.

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

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


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

2006-12-14 Thread [EMAIL PROTECTED]
Yes, its quite possible.

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

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


[jboss-user] [JBoss Seam] - Re: Seam 1.1 on Resin

2006-12-14 Thread svadu
Yes hibernate example works fine, I just wanted to use entity manager from 
ejb-3 which is somewhat simpler to use than hibernate... I guess the world 
isn't as perfect as we all want :)

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

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


[jboss-user] [JBoss Seam] - The "Java way" to use the entity-query component

2006-12-14 Thread [EMAIL PROTECTED]
Hi,

The doc does not say it. But can I use Java code to configure the entity-query 
component in the CRUD framework? I want to inject an EJB3 managed entityManager 
to the query component ... Thanks a lot.

cheers
Michael

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

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


[jboss-user] [JBoss Seam] - Re: Seam 1.1 on Resin

2006-12-14 Thread [EMAIL PROTECTED]
Do you have to use EJB3 session bean components? If EJB3 is broken in Resin, 
chances are you are not using any EJB3-specific services anyway. :)

Would POJO components + JPA sufficient for you? I think Seam POJO apps such as 
the "jpa" and "hibernate2" examples should run in resin.

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

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


[jboss-user] [JBoss Seam] - Add in a message bundle from a component jar

2006-12-14 Thread petemuir
I was hoping to be able to add an extra message bundle to the seam message 
bundle (it should be added as the lowest priority) from an included jar (in 
WEB-INF/lib).  I tried


  | 
  | 
  | org.jboss.seam.selectitems.messages
  | 
  | 
  | 

in the jar/META-INF/components.xml and


  | 
  | 
  | messages
  | 
  | 
  | 

in the ear/war/WEB-INF/components.xml, but this just tells me

Two components with the same name and precedence: 
org.jboss.seam.core.resourceBundle

Is there any way to do this (add extra message bundles from a jar) or do I need 
to add a feature request?

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

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


[jboss-user] [JBoss Seam] - Re: Seam 1.1 on Resin

2006-12-14 Thread svadu
I have a little update:

the ejb-30.jar is only javax.ejb.* and javax.persistence.* interfaces for ejb 
and persistence. Once I copied those from jboss seam the booking application 
which uses ejb-3 micro-container worked. It seems to be that for Resin it is 
enough to update the interfaces (I wish it was that simple though :S ). I still 
can;t figure out a way to override that jar file in case if I am not allow to 
'mess' with resin/lib...

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

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


[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
Sure. [EMAIL PROTECTED]

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

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


[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread lle
again, it got truncated. Gavin, Can I send it to your email instead?

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

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


[jboss-user] [JBoss Seam] - Re: SEAM and JBPM

2006-12-14 Thread juangiovanolli
did you try using the s:link button instead of h:commandbutton???
i don't remember exactly my problem, but i remember that one of my solutions 
was use s:link.

Good Luck!


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

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


[jboss-user] [JBoss Seam] - Re: @IfInvalid is out, so?

2006-12-14 Thread SmokingAPipe
AYE SANTA MARIA that was painful.  I spent about a day going over examples etc 
to figure out why that wasn't working.  That fixed it.  If you have a @Length 
validation on the bean, put a required="true" attribute into the inputText JSF 
component, and it works as expected.  

Here's the URL for the Seam Problems Faq:

http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamProblemsFAQ

It's the last item.  The explanation there is terse.  It should say in big 
letters, "If you use Hibernate validations on your bean, you must also put 
required="true" in your JSF code."


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

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


[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
Um, that got truncated, it seems...

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

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


[jboss-user] [JBoss Seam] - Re: @IfInvalid is out, so?

2006-12-14 Thread petemuir
@Length doesn't work on its own, you need to use the required attribute in the 
JSF.  See the problems FAQ.

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

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


[jboss-user] [JBoss Seam] - Re: Seam 1.1 on Resin

2006-12-14 Thread svadu
I just tried to 'fake' the interface so that the reflection wouldn't complain 
but there are more interfaces that have the same problem. I am not sure now if 
it's worthy patching unpatchable (or almost equal to fixing ejb-3 on resin).

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

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


[jboss-user] [JBoss Seam] - Re: @IfInvalid is out, so?

2006-12-14 Thread SmokingAPipe
What's happening is that the action is being called even though the input is 
not valid.  My thought was that if the object is not valid, the page should 
re-display, without calling the action, right?

Here's some code:

In test.jsp:


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

And the action:

@Stateful
  | @Name("testManager")
  | public class TestManagerAction implements TestManager {
  | private static final Logger logger = 
  | Logger.getLogger("TESTMANAGER");
  | 
  | 
  | /** Creates a new instance of TestAction */
  | public TestManagerAction() {
  | }
  | 
  | /** This thing is just injected, not created! */
  | @In(create=true) EntityManager smpc;
  | 
  | /** This is one to persist */
  | @In(create=true) @Out TestBean testBean;
  | 
  | @DataModel
  | List testBeans;
  | 
  | @DataModelSelection
  | TestBean selectedTestBean;
  | 
  | @Factory("testBeans") 
  | public void testBeansFactory() {
  | if(smpc == null) {
  | logger.severe("OH NO! there was no entity manager");
  | return;
  | }
  | 
  | final Query query = smpc.createQuery("from TestBean t " +
  | "order by foo");
  | testBeans = query.getResultList();
  | 
  | }
  | 
  | public String persist() {
  | if(smpc == null) {
  | logger.severe("OH NO! there was no entity manager");
  | return null;
  | }
  | 
  | smpc.persist(testBean);
  | testBean = new TestBean();
  | 
  | return null;
  | }
  | 
  | @In(create=true)
  | private transient FacesMessages facesMessages;
  | 
  | @Remove @Destroy
  | public void destroy() { }
  | 
  | }
  | 

and the bean itself, boilerplate removed:

@Entity 
  | @Name("testBean")
  | public class TestBean {
  | 
  | private int id;
  | @Id @GeneratedValue public int getId() { return id; }
  | public void setId(int id) { this.id = id; }
  | 
  | private String foo;
  | private String bar;
  | 
  | @Length(min=5,max=8,message="Length must be from 5 to 8 chars bozo")
  | public String getFoo() {
  | return foo;
  | }
  | 
  | public void setFoo(String foo) {
  | this.foo = foo;
  | }
  | 
  | public String getBar() {
  | return bar;
  | }
  | 
  | public void setBar(String bar) {
  | this.bar = bar;
  | }
  | 
  | public String toString() {
  | return "TestBean " + id + "; foo= " + foo + ", bar = " + bar;
  | }
  | 
  | }
  | 

Whenever I use the form, if I enter an invalid field, it attempts to do the 
persist and then throws an exception.  What it should do is redisplay the page 
with the validation message, and not even attempt to persist it.  I don't get 
it.

This is all with Seam 1.1.0 GA and JBoss 4.0.5 GA.

Any ideas on this?  It must be something simple I'm missing.


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

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


[jboss-user] [JBoss Seam] - Re: Seam 1.1 on Resin

2006-12-14 Thread svadu
It would be great if you could patch it for me!

But I will raise the issue on resin site anyway, the problem is that ejb-3 
isn't getting much of priority there (that ejb-30.jar isn't changing for 
several versions.

Thanks in advance!

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

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


[jboss-user] [JBoss AOP] - Re: NullPointerException at advised._getInstanceAdvisor();

2006-12-14 Thread robotics80
I have the same problem when I use Method call pointcut with load time weaving 
activateAnyone could help us with this problems? I tried even with jboss 
aop 2.0.0.alpha1 but it is the same thing! Is it a bug or we aren't able to use 
the pointcut expressions?

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

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


[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
OK, that much looks good. Now post a debug-level Seam log.

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

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


[jboss-user] [EJB/JBoss] - java.lang.ClassCastException in EJB-Proxy

2006-12-14 Thread tonioc
Hi,

I'm usign 4.0.5/EJB3 and an independent Tomcat 5.5
Ububntu 5-10 java 1.5.08.

Using StatelessSessionBean with a BusinessDelegate as a facade.

The application is a web-service front end to EJB methods, it is
working ok, but:
  Every now an then, sometimes after re-deploying, sometimes after
  restarting jboss, a call to Business-Method (isUserAuthorized) from
  my tomcat application (web-service) gives this error

Caused by: java.lang.ClassCastException: isoa.users.bean.UserContext
  | at $Proxy15.isUserAuthorized(Unknown Source) 
  | at isoa.users.bean.UsersServiceBd$3.run(UsersServiceBd.java:91)
  | at 
isoa.commons.bean.AbstractBizDelegate$EjbRun.runWithRetries(AbstractBizDelegate.java:150)
  | 
  | ... 37 more 


  | package isoa.users.bean;
  | 
  | // Value-Object for returning multiple values
  | public class UserContext implements java.io.Serializable
  | {
  | public int contractId = -1;
  | public int userId = -1;
  | public int beingId = -1;
  | public int methodId = -1;
  | public int serviceId = -1;
  | public int implementationId = -1;
  | public int hits = -1;
  | public Integer pendingHits;
  | 
  | }
  | 
  | // Bean Method
  | // It does not return null.
  | public UserContext isUserAuthorized(
  | String ticket
  | ,InetAddress ipAddr
  | ,int serviceId
  | ,int implementationId
  | ,int methodId
  | ) throws IsoaException;
  | 


UserContext class is in the class-path, I checked the version is
always the same in my client and in my server, etc., etc..., all
seems pretty ok.

WebApplication include jars with all the interfaces and implementation
of EJB3 session.

Sometimes after calling the method a second time or just re-deploying begins to 
work OK again.

Any Idea where to look for, or what is happening

Thanks in advance
tonio

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

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


[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread lle
Sorry, forgot to mention that in my jboss-beans.xml, i got this:


  | 
  |   com.mysql.jdbc.Driver
  |   jdbc:mysql://localhost:3306/ga_db
  |   root
  |   sadmin
  |   java:/hibernateDatasource-mysql
  |   0
  |   10
  |   1000
  |   10
  |   
  |
  |
  |   
  |  
  |   
  |
  | 
and hibernate.cfg.xml:

  | 
  | false
  | java:/hibernateDatasource-mysql 
  
  | org.hibernate.cache.HashtableCacheProvider
  | true
  | after_statement
  | org.hibernate.transaction.JBossTransactionManagerLookup
  | org.hibernate.transaction.JTATransactionFactory
  | ...
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
And what is in jboss-beans.xml?

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

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


[jboss-user] [Clustering/JBoss] - Re: NotSerializableException in JBossCache with Log4J Level

2006-12-14 Thread Marlig
I'm afraid the problem still exists. However, it was hidden for a while behind 
another serialization problem regarding java.lang.reflect.Method. Seems we/some 
of the frameworks we use are putting this into the Session. After searching for 
quite a long time I kind of gave up and just removed the exception from the log 
files by setting the log level to fatal. Not a very honorable thing to do, but 
I found that session replication and failover seems to work despite the 
problem, and that's what counts for me most.

Regards
Martin


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

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


[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread lle
This is what I got in my components.xml (based on the hibernate2 example)


  | 
  |  
  | 
  | 

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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - server.rootdir not defined properly

2006-12-14 Thread rsood72
I have a blank struts project configured inside eclipse. I am running JBoss4
from within eclipse, Every time i start the server I get an error
javax.servlet.ServletException: server.rootDir property not defined
Does anyone know whats going on or what I need to do. Where is this rootDir 
defined.

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

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


[jboss-user] [JBoss Eclipse IDE (users)] - Re: Can't Access JBoss 4.0.2 via IP address while running in

2006-12-14 Thread [EMAIL PROTECTED]
Can you elaborate what you mean when you say you cannot "access" the server via 
IP? 

Do you mean you cant create it? Or you can't start / stop it? Which step, 
exactly, fails? 

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

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


[jboss-user] [JBoss Seam] - Re: Seam 1.1 on Resin

2006-12-14 Thread [EMAIL PROTECTED]
I probably could catch and swallow that exception (you could easily patch Seam 
youself, in fact), but is that really the best solution?

So the problem is that Resin has an older or incorrect implementation of the 
EJB3 API. It's best to get the Resin guys to fix that, I suppose.

Anyway, if you really want me to patch Seam, I'll do it, let me know.

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

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


[jboss-user] [Security & JAAS/JBoss] - Cant authenticate against jaas when set up through a context

2006-12-14 Thread ChristianNelsen
I wanted to expose a specific directory on my system to the web and found a way 
to do it by adding a Context element into my server.xml.


  |
  | 

which works fine, http://localhost:8080/mylogs gives me a directory listing.

However, when I try to secure it with the same security I have on my 
jmx-console it doesn't authenticate against the jaas plugin that is used in the 
jmx-console.

To simplify things I simply copied the WEB-INF directory from the 
jmx-console.war file and added it to my C:\Logs without modifying any of the 
values.
It prompts me for a username password but never authenticates it against the 
java:jaas/jmx-console security.
Because this isn't a standard war file that would be placed in the deploy 
directory it doesn't seem to use the same steps to authenticate.  Does anybody 
know what I'm missing here?

Thanks

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

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


[jboss-user] [JNDI/Naming/Network] - java.lang.ClassCastException in EJB-Proxy

2006-12-14 Thread tonioc
Hi,

I'm usign 4.0.5/EJB3 and an independent Tomcat 5.5
Ububntu 5-10 java 1.5.08.

Using StatelessSessionBean with a BusinessDelegate as a facade.

Every now an then, sometimes after re-deploying, sometimes after
restarting jboss, a call to Business-Method (isUserAuthorized) from 
my tomcat application (web-service) gives this error

Caused by: java.lang.ClassCastException: isoa.users.bean.UserContext
  | at $Proxy15.isUserAuthorized(Unknown Source) 
  | at isoa.users.bean.UsersServiceBd$3.run(UsersServiceBd.java:91)
  | at 
isoa.commons.bean.AbstractBizDelegate$EjbRun.runWithRetries(AbstractBizDelegate.java:150)
  | ... 37 more

UserContext class is in the class-path, I checked the version is
always the same in my client and in my server, etc., etc..., all
seems pretty ok.

Sometimes after calling the method a second time or just re-deploying begins to 
work OK again.

Any Idea where to look for, or what is happening

Thanks in advance
tonio

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

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


[jboss-user] [JNDI/Naming/Network] - Re: java.lang.ClassCastException in EJB-Proxy

2006-12-14 Thread tonioc
Sorry, this is not the correct forum, I'll repost it in EJB/Jboss

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

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


[jboss-user] [JBoss Seam] - Re: Referencing global view-id variables from .jpdl.xml

2006-12-14 Thread spambob
Hey Norman,

thanks a lot for your help. But IMHO this xml solution isn't really good 
because:

1. it is not possible to have more than one entity per file (please correct me 
if I'm wrong on that), therefore one would end up with a lot of files just 
containing '/foo.xhmtl', '/bar.xhtml', ...

2. one can't use it in attributes (i.e. "view-id="&home;") because:
org.dom4j.DocumentException: Error on line 30 of document  : The external 
entity reference "&home;" is not permitted in an attribute value. Nested 
exception: The external entity reference "&home;" is not permitted in an 
attribute value.

Therefore I discarded this solution and had a look at the seam sources - and 
came up with the following:

The following method expects the path to the web project on the _filesystem_ 
(like it is returned from '((ServletContext) 
facesContext.getExternalContext().getContext()).getRealPath("")') and returns a 
HashMap containing 'from-outcome' as keys and 'to-view-id' as values read from 
configFiles[] (all dependencies are a few dom4j classes):
private static HashMap createViewMap(String realPathPrefix) {
  | String[] configFiles = {
  | "WEB-INF" + File.separator + "faces-config.xml",
  | "WEB-INF" + File.separator + "navigation.xml" };
  | HashMap map = new HashMap();
  | for (int i = 0; i < configFiles.length; i++) {
  | Document doc = null;
  | File file = null;
  | try {
  | file = new File(realPathPrefix + File.separator + 
configFiles[ i ]);
  | doc = new SAXReader().read(file);
  | } catch (DocumentException e) {
  | System.out.println("Can't read navigation rules from 
file: " + file.getAbsolutePath());
  | continue;
  | }
  | Element rootElement = doc.getRootElement();
  | Iterator rootIterator = rootElement
  | .elementIterator("navigation-rule");
  | while (rootIterator.hasNext()) {
  | Element element = (Element) rootIterator.next();
  | if (element.element("from-view-id") == null
  | || 
element.element("from-view-id").getText().equals("*")) {
  | Element navigationCase = 
element.element("navigation-case");
  | 
map.put(navigationCase.element("from-outcome").getText(),
  | 
navigationCase.element("to-view-id").getText());
  | }
  | }
  | }
  | return map;
  | }
Now all left to do would be to add a check to org.jboss.seam.pageflow.Page.read 
to see if the viewId starts with a / and, if it does not start with a /, 
replace it with the value obtained from the HashMap for said viewId as key.

There's no additional overhead because all necessary stuff can be done on 
initialization.

So could you guys _please_ reconsider your decision and add this to seam?! This 
would be really helpful and I already did almost all necessary work ;)

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

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


[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
So in your environment, what is bootstrapping the datasource?

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

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


[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread lle
I tried and it still didn't work.  Same exception occurs.

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

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


[jboss-user] [JBoss Seam] - Re: si:selectItem error parsing

2006-12-14 Thread lowecg2004
Pete,

Changing to @Out worked - thanks for your assistence!  BTW - adding support for 
@DataModel would be most welcome.  Anyway, thanks for contributing the 
component.


Kris,

I know I was using a list rather that using enums, but to get my @Out value 
working I had to replace my @Factory with @Create, e.g.:


@Name("orderStorageBean")
@Stateful
public class OrderStorageBeanHome implements OrderStorageBean, Serializable {

  @SuppressWarnings("unused")  //seam handled outjection
  @Out
  private List hardDisks;


  @Create
  public void fetchHardDisks() {
hardDisks = new LinkedList();

// add things to list
  }

...
}

Regards,

Chris.

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

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


  1   2   3   4   >