[jboss-user] [JBoss Portal] - Re: Portal/CMS Exceptions in 2.6-ALPHA1 when creating new ht

2007-01-23 Thread [EMAIL PROTECTED]
btw

Forgot to mention,

I am using mysql as my database server instead of the default hypersonic.


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

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


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

2007-01-23 Thread mariuszs
"lightbulb432" wrote : 
  | 1) How does going to /seam-booking automatically redirect to 
/seam-booking/home.seam? I don't see anything in web.xml or pages.xml where 
this behavior has been configured.
  | 
There is default page index.html, which make redirect to home.seam

  | 
  |   
  | 
  | 



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

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


[jboss-user] [JBoss Portal] - Re: Portal/CMS Exceptions in 2.6-ALPHA1 when creating new ht

2007-01-23 Thread [EMAIL PROTECTED]
I tried the same on my box locally and its working just fine for me.

Here are the steps I performed:

1) Went to the main portal page: http://localhost/portal

2) Then logged in as user: admin, password: admin

3) Clicked the 'Admin' link

4) Clicked the 'CMS' link

5) This brought up the CMS Admin Tool. Then I opened the 'default' folder.

6) Then under the 'default' folder, created a folder called 'testFolder'

7) Then opened 'testFolder'. 

8) Under 'testFolder' created a file called 'index.html'

9) It was published just fine, and I could access it using
http://localhost/portal/content/default/testFolder/index.html


I have the same environment as yours.


Thanks
Sohil

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

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


[jboss-user] [JBoss Portal] - Passing user credentials to Producer

2007-01-23 Thread bhupeshs
In Jboss portal 2.4.0GA, How do we pass the user credentials to the producer 
portlet?

we can authenticate the consuer with the produer using the  
element in *-wsrp.xml file, but I need to pass the credentials of the user who 
requested the remote portlet.

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

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


[jboss-user] [JBoss Seam] - Re: How to automatically end a conversation if fail to click

2007-01-23 Thread [EMAIL PROTECTED]
Your problem seems to be that you don't have a well-defined navigation model. 
You talk about "accidently clicking another action" taking you back to a place 
where a conversation can begin. This should never happen. The only way to get 
to a conversation begin point should be via a link that does not propagate the 
conversation context. Not via an "action".

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

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


[jboss-user] [EJB 3.0] - Re: Persistence context injection problem - is it a bug ?

2007-01-23 Thread [EMAIL PROTECTED]
any idea ?

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

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


[jboss-user] [JBoss Eclipse IDE (users)] - Re: Issue with JBoss IDE 2.0 Beta with Eclipse 3.2.1

2007-01-23 Thread [EMAIL PROTECTED]
if you have a user name and password on the jmx console, you'll need to add 
these username and password parameters to the start / stop / twiddle tabs of 
the launch configuration for your server.

DOuble click your server, it should open in an editor. Click edit launch 
configuration, and modify the tabs to include the proper username and password. 

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

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


[jboss-user] [JBoss jBPM] - anyone define swimlanes externally (DB, shared xml, etc?)

2007-01-23 Thread dslevine
Has anyone defined swimlanes externally to the process definition?  (Does that 
even make sense?)  I have many workflows that involve the same swimlanes, and 
right now I am cutting and pasting the XML into each process, which is not the 
idea situation for many reasons, the most obvious of which is that if I need to 
make a change I have to go through every file to do it.

But, I am not sure what the appropriate "other way" would be.  Swimlanes do 
need to be associated with a specific version of a process definition, but 
maybe instead of defining the swimlanes in the process definition xml just the 
reference to a swimlanes definition file (new concept) could be in the process 
definition xml and the jbpm engine could process it when it loads the process 
definition from the XML (into memory or into the DB).  

Any thoughts on the pros/cons of this or other methods to achieve this end?



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

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


[jboss-user] [JBossWS] - Way to tell wstools ant-task to not regenerate all wsdl arti

2007-01-23 Thread umesh.dua
Hi,

I am using jboss-wstools ant task to generate my wsdl file from the Endpoint. 
Following is the build.xml code,

 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

wstools-config.xml looks like this,


  | http://www.jboss.org/jbossws-tools";
  |xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |xsi:schemaLocation=
  |"http://www.jboss.org/jbossws-tools
  | http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd";>
  |   
  |
  |http://org.jboss.ws/samples/jsr109ejb";
  | type-namespace="http://org.jboss.ws/samples/jsr109ejb/types"/>
  |
  |
  |   
  | 
  | 

My question is : Every time i run the wstools task, it re-generates wsdl file 
and all the artifacts AGAIN even if they already exist in the generated folder. 
Is there some way, I can indicate wstools to do the regeneration ONLY if it's 
needed.

Thanks a lot. Hoping to get a quick answer :)

p.s. : In XDoclet there is one property called "force" which lets you specify 
whether you want regeneration to be forced or not.

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

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


[jboss-user] [JBoss Seam] - Re: iText (PDF) support in Seam

2007-01-23 Thread [EMAIL PROTECTED]
I've checked in some changes to PDF that solve the session/conversation scope 
problem and that give significantly more control over the URLs used.  
(/myApp/myDocument.pdf, for example)  I'd appreciate feedback from anyone who 
was bothered by the previous behavior.



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

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


[jboss-user] [JBoss Seam] - Re: iText (PDF) support in Seam

2007-01-23 Thread [EMAIL PROTECTED]
Just to make sure I am hearing you correctly - you want to take an existing PDF 
document and define precise rectangles over it in which seam should generate a 
page overlay, essentially "filling in" the document?



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

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


[jboss-user] [JBossWS] - Using JBossWS 1.2 (JAX-WS) and SOAP 1.2

2007-01-23 Thread dwin
Hey guys

I was wondering how I could leverage SOAP 1.2 along with JBossWS 1.2?

Does the annotation @BindingType for a SEI work?

@BindingType (value=SOAPBinding.SOAP12HTTP)

I am kinda lost as to how to map fault codes to specific java exceptions.

any info would be much apperciated.  


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

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


[jboss-user] [JBoss Seam] - Re: org.hibernate.exception.DataException: could not initial

2007-01-23 Thread ernest210
So why that work on scope SESSION and doesn't  work on scope CONVERSATION?. I 
use "Hypersonic".

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

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


[jboss-user] [JBoss Seam] - Seam Examples

2007-01-23 Thread lightbulb432
I have some questions after taking a look at the Seam booking example.

1) How does going to /seam-booking automatically redirect to 
/seam-booking/home.seam? I don't see anything in web.xml or pages.xml where 
this behavior has been configured.

2) In the example's pages.xml there is a no-conversation-view-id attribute for 
the pages element and a conversation-required attribute for some of the page 
elements. I noticed that everytime I access a page with a 
conversation-required, it redirects to the no-conversation-view-id...is this 
the purpose of these two attributes? (i.e. The conversation-required page 
redirects to the no-conversation-view-id page when no conversation exists?)

3) When I click the "Register New User" link on the home.seam page, there's a 
cid in the address bar. Now when I go to a conversation-required page it still 
forwards to home.seam rather than going to the page I requested...why? A 
conversation now exists...

4) When a conversation-required page redirects to the no-conversation-view-id 
page, a conversation starts! (e.g. you enter confirm.seam and it forwards to 
home.seam?cid=1) Why is a conversation starting here...I don't see anything in 
pages.xml or any @Begin to indicate this...

5) All the action methods seem to have a return type of void rather than 
String...is this the new recommended way of making action methods because of 
pages.xml?

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

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


[jboss-user] [JBoss Seam] - s:link

2007-01-23 Thread lightbulb432
Does s:link always output a lot of text as its rendered HTML? Is there any way 
to get rid of this to result in more "friendly" URLs? (e.g. put that stuff in 
hidden form fields or something)

I noticed the outputted URL has lots of parameters like actionMethod, 
dataModelSelection...out of curiosity, what do having these parameters do?

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

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


[jboss-user] [EJB 3.0] - JPQL, Postgres and nulls

2007-01-23 Thread ghinkle
I am wondering if anyone has been able to effectively use null jpql parameter 
bindings with postgres version 8+.

The story is this. I have columns that are nullable. I want to search by them 
finding nulls if i pass in a null parameter or where they match if i pass in a 
non-null parameter. Now JPQL by spec has gone with SQL-92 style null 
comparisons so null != null, but null is null. This means to do above I either 
a) need two queries (one for a null param, one for non-null) and or b) I need 
to put them together.

a) Need to use an if statement to choose the query if param is null
SELECT a from Apple a WHERE a.col is null
SELECT a from Apple a WHERE a.col = :parameter

b) One query, but fails on pg8+
SELECT a from Apple a 
WHERE (:parameter is null and a.col is null) or a = :parameter


Now here's where the postgres problem comes in. With PG 8+ they prepare the 
statements on the server side for real and bind each parameter. Prior to pg8 
they just stuffed string versions of bind parameters into the query string, 
leaving the server to figure out the parameter type.

The problem is of course that even if PreparedStatement.setNull is being called 
it wouldn't know what type to pass in for my query. Postgres blows up with a 
"operator does not exist: integer = bytea".

Finally, I can get this working with protocolVersion=2, but that is inefficient 
and screws up other things that I need to work. Option a) is also not a good 
option when you have multiple nullable columns in a query (you'd need all 
combinations). Anybody have any ideas?

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

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


[jboss-user] [JBoss Messaging] - Re: Problem if messaging client deployed within same VM

2007-01-23 Thread alllle
I just got it work, but I don't know if I did it the correct way. So if your 
solution is different, please post as well.

I commented out the scoped classloader for the JBoss Messaging in the 
jboss-messaging.sar/META-INF/jboss-service.xml file, then copied the 
jboss-messaging-client.jar into the server's lib directory. It seems that the 
example/stateless is working fine with this setting.

As I said, please post it if you've done it differently.

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

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


[jboss-user] [JBoss Seam] - Re: How to automatically end a conversation if fail to click

2007-01-23 Thread [EMAIL PROTECTED]
anonymous wrote : I accidentally click an action other than the @End action.

Define what you mean by this.

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

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


[jboss-user] [Installation, Configuration & Deployment] - Failed to connect to localhost:1099

2007-01-23 Thread gaulakh
I am running JBoss_4_0_3_SP1 on a Windows 2000 evironment.

I am trying to run my server instance (named DAS) on a different set of ports. 
I have looked into the bindings.xml file and modified the second instance (the 
one with JNDI port = 1199) and changed the server name to DAS. I then commented 
out the first instance. I then changed the DAS/conf/jboss-service.xml file to 
have the server name = DAS as well.

When I start the application up I get the following error.

[org.jboss.ejb.StatelessSessionContainer:1324] End java:comp/env for EJB: 
ApplicationSetupSession
[org.jnp.interfaces.NamingContext:1375] Failed to connect to localhost:1099
javax.naming.CommunicationException: Failed to connect to server localhost:1099 
[Root exception is javax.naming.ServiceUnavailableException: Failed to connect 
to server localhost:1099 [Root exception is java.net.ConnectException: 
Connection refused: connect]]

The application starts up fine when I have it run as the first instance (the 
one with JNDI = 1099).

There is no code in the application that sets the JNDI port to 1099. 

I am at a loss on what the problem is. Does anyone know what could be causing 
JBOSS to try to connect to port 1099 on startup even though I have configured 
the bindings.xml file to tell it to bind to 1199? 

The only other thing I could think of is that my application does make use of 
JMS. As well I have some MDB's that are singletons that use the 
DefaultJMSProvider. Is it a JMS setting that I have missed? 

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

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


[jboss-user] [JBoss Seam] - Re: How to automatically end a conversation if fail to click

2007-01-23 Thread gus888
Hi Gavin,

Thank you very much for your quick help. My situation is typical, I think. For 
example, when a user checks out an order, but before he place the order, he 
doesn't want the order, but he also didn't click cancel button. He continues to 
view products just clicking product categories. After he views other products, 
he place a new order. At this situation, I want to let system automatically end 
the previous conversation, in order to let user begin a new conversation. But I 
don't know how to handle this situation. Thank you.

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

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


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

2007-01-23 Thread [EMAIL PROTECTED]
No, you can't put this stuff in form fields, because there is no form! s:link 
if for GET requests. These parameters only appear when they are needed. In 
simple cases, they aren't there at all.

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

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


[jboss-user] [JBoss jBPM] - problem with action

2007-01-23 Thread varshita
i am using jbpm strters kit3.0.4 with eclipseIDE1.5.When i deploy simple.par 
process with MessageActionHandler.java as action (which is provided with jbpm), 
It is not showing any effect.Should i need to download any extra features or 
starters kit is enough.

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

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


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

2007-01-23 Thread lightbulb432
When would you use s:link vs h:commandButton within a dataTable?

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

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


[jboss-user] [JBoss Portal] - Portal/CMS Exceptions in 2.6-ALPHA1 when creating new html p

2007-01-23 Thread freeportpa
I'm trying to get the portal with cms working and have run in to an exception 
that appears to be a bug.  I have ot use the 2.6 version because I want to have 
different CMS regions on different pages with different content and I saw that 
this is possible in this release.  I just tried it again by just downloading 
the portal / as bundle, unzipped it, launched it and then:

1) Create a new folder under the CMS root (that worked fine)
2) Create a new file named index.html in this folder (this is where the 
exceptions begin).

Information:

Version:  2.6-ALPHA1
Downloaded bundle
Integrated database
Windows XP Pro

The exception appears to be:

Caused by: org.jboss.portal.cms.CMSException: Cannot mark the content as "Live"
at 
org.jboss.portal.cms.impl.jcr.util.VersionUtil.createContentVersion(VersionUtil.java:91)
at 
org.jboss.portal.cms.impl.jcr.util.VersionUtil.createVersion(VersionUtil.java:63)
at 
org.jboss.portal.cms.impl.jcr.command.ContentCreateNewVersionCommand.execute(ContentCreateNewVersionCommand.java:137)



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

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


[jboss-user] [JBoss Seam] - How to automatically end a conversation if fail to click @En

2007-01-23 Thread gus888
Hi,

I still cannot figure out how to let system automatically end a conversation if 
I accidentally click an action other than the @End action. The conversation is 
as followings:
@Begin
  | public String createInstance() {
  | ...
  | return "page1";
  | }
  | 
  | @End
  | public String create() {
  | ...
  | return "page2";
  | }
If I click @Begin, then accidentally click other action(not the @End). When I 
come back, and click @Begin again, I always get the following exceptions. It 
seems that the previous conversation is still there. Anybody can give me some 
guidance? I really appreciate it.
javax.ejb.EJBTransactionRolledbackException: java.lang.IllegalStateException: 
begin method invoked from a long running conversation, try using 
@Begin(join=true)
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
  | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
  | at 
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
  | at $Proxy134.createInstance(Unknown Source)
  | at 
com.cvn.controller.common.BaseEditor$$FastClassByCGLIB$$f0d46.invoke()
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | at 
org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:40)
  | at sun.reflect.GeneratedMethodAccessor186.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:39)
  | at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
  | at 
org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:83)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
  | at 
org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$3e3ab2d1.createInstance()
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |  

[jboss-user] [JBossWS] - NullCountedPointer exception from WSDL11Reader

2007-01-23 Thread wpower
I am trying to migrate an Axis based web service to JBoss.  JBossws fails 
processing the existing web services .wsdl file.  The problem is caused by the 
 tag.  Does anyone know if there is a fix for this problem.
  

Error message:

20:39:44,590 WARN  [WSDL11Reader] Unsupported fault message part in message: 
{http://www.testnet.com/test/intf}ProvApiException
20:39:44,600 WARN  [WSDL11Reader] Unsupported fault message part in message: 
{http://www.testnet.com/test/intf}ProvApiException
Exception in thread "main" java.lang.NullPointerException
at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processOperationInput(WSDL11Reader.java:474)
at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortTypeOperations(WSDL11Reader.java:460)
at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortType(WSDL11Reader.java:446)
at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processBinding(WSDL11Reader.java:728)
at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processPort(WSDL11Reader.java:1071)
at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processPorts(WSDL11Reader.java:1054)
at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processServices(WSDL11Reader.java:1027)
at 
org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:119)
at 
org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:145)
at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:120)
at 
org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:324)
at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
at org.jboss.ws.tools.WSTools.main(WSTools.java:61)


.wsdl file


  | 
  | http://schemas.xmlsoap.org/wsdl/"; 
xmlns="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:apachesoap="http://xml.apache.org/xml-soap"; 
xmlns:impl="http://www.testnet.com/test/intf"; 
xmlns:intf="http://www.testnet.com/test/intf"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:tns1="http://www.testnet.com/test/model"; 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://www.testnet.com/test/intf";>
  |  
  |  http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://www.testnet.com/test/model";>http://schemas.xmlsoap.org/soap/encoding/"/>
  |
  | 
  |   
  |   
  |   
  | 
  |  
  |  
  |  
  | 
  |   
  | 
  |
  | 
  |  
  |   
  |
  |
  |
  |   
  |  
  | 
  |
  | 
  |   
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |
  | 
  |
  | 
  |   
  | 
  |
  | 
  |
  | 
  |   
  | 
  |  
  | 
  |  
  | 
  |  
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  |  
  | 
  |  
  | 
  |  
  | 
  |
  | 
  |
  | 
  |   http://schemas.xmlsoap.org/soap/http"/>
  | 
  |   
  | 
  |  
  | 
  |  
  | 
  | http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="http://www.testnet.com/test/intfintf"; use="encoded"/>
  | 
  |  
  | 
  |  
  | 
  | http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="http://www.testnet.com/test/intfintf"; use="encoded"/>
  | 
  |  
  | 
  |  
  | 
  | http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="http://www.testnet.com/test/intfintf"; use="encoded"/>
  | 
  |  
  | 
  |   
  | 
  |   
  | 
  |  
  | 
  |  
  | 
  | http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="http://www.testnet.com/test/intfintf"; use="encoded"/>
  | 
  |  
  | 
  |  
  | 
  | http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="http://www.testnet.com/test/intfintf"; use="encoded"/>
  | 
  |  
  | 
  |  
  | 
  | http://schemas.xmlsoap.org/soap/encoding/"; 
namespace="http://www.testnet.com/test/intfintf"; use="encoded"/>
  | 
  |  
  | 
  |   
  | 
  |
  | 
  |
  | 
  |   
  | 
  |  http://localhost:8080/API"/>
  | 
  |   
  | 
  |
  | 
  | 
  | 
  | 
  | [/code]

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

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


[jboss-user] [JBoss Eclipse IDE (users)] - Issue with JBoss IDE 2.0 Beta with Eclipse 3.2.1

2007-01-23 Thread manojpn
Operating system : OpenSuse 10.2 X86_64
Java version:  JDK 1.5 (1.5.0_10-b03) 64 Bit
Eclipse version: 3.2.1+ Webtools 1.5.1
JBoss-IDE version : 2.0 Beta
JBoss Sever version : jboss-4.0.5.GA

I setup the Server runtime using the JBoss Inc entry for Jboss 4.0 server. I 
enabled the Server view to display the JBoss Inc. Server view in Eclipse. I 
configure it to point to my local JBoss server directory. Then right click and 
start the server. Server start ups (console displays Server started message)
but it takes a long time (more than 5-8 mins) for the status to change to 
Started (says starting) in the server view. Is this normal ? Once the status 
change to started, right click on sever and say stop and I get the following 
stack trace message in the console. I have included the server startup log 
below the stack trace .

Exception in thread "main" java.lang.SecurityException: Failed to authenticate 
principal=null, securityDomain=jmx-console
at 
org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:97)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown 
Source)
at 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
at 
org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at 
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at 
org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
at 
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at 
org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy0.invoke(Unknown Source)
at org.jboss.Shutdown$ServerProxyHandler.invoke(Shutdown.java:266)
at $Proxy1.shutdown(Unknown Source)
at org.jboss.Shutdown.main(Shutdown.java:237)


JBoss Server Startup log shown in eclipse console follows :

22:30:06,382 INFO  [Server] Starting JBoss (MX MicroKernel)...
22:30:06,388 INFO  [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: 
CVSTag=Branch_4_0 date=200610162339)
22:30:06,389 INFO  [Server] Home Dir: /work/java-dev/jboss-4.0.5.GA
22:30:06,389 INFO  [Server] Home URL: file:/work/java-dev/jboss-4.0.5.GA/
22:30:06,390 INFO  [Server] Patch URL: null
22:30:06,391 INFO  [Server] Server Name: default
22:30:06,391 INFO  [Server] Server Home Dir: 
/work/java-dev/jboss-4.0.5.GA/server/default
22:30:06,391 INFO  [Server] Server Home URL: 
file:/work/java-dev/jboss-4.0.5.GA/server/default/
22:30:06,424 INFO  [Server] Server Log Dir: 
/work/java-dev/jboss-4.0.5.GA/server/default/log
22:30:06,425 INFO  [Server] Server Temp Dir: 
/work/java-

[jboss-user] [JBoss Seam] - Re: iText (PDF) support in Seam

2007-01-23 Thread spambob
Hello Norman,

congratulation on your PDF library!

While I partially agree that PDF Forms are nice I run in some problems with 
them (while using iText):

1. One isn't able to format the label & the inputfield
2. The input is always displayed in some typewriter font
(Please correct me if I'm wrong on any of this ;))

What I would like to have is more like the PDFStamper (if I remember iText 
correctly).
I.e. I have a ISO letter and then fill in the content (address, text, ...) by 
using tags that give me the possiblity to set the margin in X & Y axis, the 
width, the font, ..., and a footer after I'm done ;)

This way one could create a PDF with whatever method and latter "stamp" it with 
the actual content.

More exactly: extend your current library with a tag that sets the font, exact 
distance from left & upper paper border, textwidth, ... and perhaps some nice 
paragraph braking (so that there isn't only a single line on the next page).

This would really save me some time instead of accessing the content via iText 
direct writer!

What do you think of it?

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

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


[jboss-user] [JBoss Messaging] - Re: Problem if messaging client deployed within same VM

2007-01-23 Thread alllle
"PeterJ" wrote : The jboss-messaging-client.jar file is only for use with a 
stand-alone messaging client. You do not need it for a messaging client that is 
deployed to the application server. All of the necessary classes should already 
be in the jar files in the server/default/lib directory.

Thank you for the reply!

But I don't think the messaging classes are available on the server side 
though. As I mentioned in the first post, I got ClassNotFound exception when 
trying to retrieve the queue object. This is because the JBoss Messaging is 
deployed in scoped classloader.

Further, I think the classes under the jboss-messaging.sar are missing some 
classes required by messaging clients. I copied all the jar files under that 
directory into the server's lib dir and still got exceptions for missing 
classes.

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: how to save text of the message to JMS_MESSAGES table

2007-01-23 Thread hquang
hi genman,

Thanks for your reply. You are right, the msg is stored as s srerialized obj. 

Very much appreciated if you could tell me how to create my own persistence 
manager to save the text.

Thank you.

Best Regards,
Quang


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

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


[jboss-user] [JBoss Messaging] - Re: Problem if messaging client deployed within same VM

2007-01-23 Thread PeterJ
The jboss-messaging-client.jar file is only for use with a stand-alone 
messaging client. You do not need it for a messaging client that is deployed to 
the application server. All of the necessary classes should already be in the 
jar files in the server/default/lib directory.

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

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


[jboss-user] [JBoss Seam] - Re: Destroying a coversation causes exception

2007-01-23 Thread seamNoobie
After the exception; if I re-fresh the page I can carry on and the conversation 
is not in the list.
It's as if the "line" that was deleted is not quite removed from the screen so 
that when the page is refreshing (pre-exception) the line is still there and 
tries to access some information from itself (which is'nt there as its been 
deleted).

Doing a re-fresh of the browser for the same page seems to work as the line is 
no longer there.

I hope this helps.

Please PM me for details of how to get into my code repository. 

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

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


[jboss-user] [JBoss Seam] - Object cached when page parameter not specified

2007-01-23 Thread fabio.ita04
Hi,

According to Seam App Framework documentation, "when we link to the page with 
no request parameter, the Create page will be displayed".

But, the behavior I'm really getting is: when clicking "new" button for the 
first time, a new entity is created. So I click back button, and choose (in a 
list) a saved entity to edit. Click back button again, and click new button. 
Here, instead of having a new entity, the page displays the last edited entity.

A) pages.xml

  | 
  | 
  | 
  | 

B) index.xhtml

  | B1) New Button:
  | 
  | 

B2) Edit Button:

  | 
  |  
  | 
  | 


Note: If I declare new button with id param, with no value, so the page is 
correctly displayed:

  | 
  |  
  | 
  | 

Is it the desired behavior?

Thanx in advance
Fabio.

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

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


[jboss-user] [JBoss jBPM] - Re: Unable to insert new process definitions.

2007-01-23 Thread mihochan
Found the problem

Turning the following configuration option OFF removes the error.



  | false
  | 

Looks like a bug to me.

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

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


[jboss-user] [JBoss Seam] - Right way to refresh a DataModel

2007-01-23 Thread twocoasttb
What's the *right* way to refresh a DataModel living inside a SFSB on every 
page load?  Is it to add an entry to pages.xml like this?

  
Or is there another prefered method?

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

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


[jboss-user] [EJB 3.0] - Re: RuntimeExceptions caught, wrapped in EJBException

2007-01-23 Thread ALRubinger
I've made a little Interceptor to do the trick here, but when configuring, I'm 
unsure how to signal to AOP that I'd like to intercept "all client calls to the 
service methods", not "all calls to service methods, including internal ones 
when a service method calls another".

I've currently configured ejb3-interceptors-aop.xml with the following:



and in each domain:



under:



What should I denote as my pointcut?...I do still need to be able to throw all 
checked exceptions, and I'd only like to catch UNCHECKED exceptions invoked by 
the client.

Perhaps in the "catch" block of my advice I'd be best to do some:

if(t instanceof EJBException)

...nonsense.  Anyone with better suggestions?  

package my.interceptor;
  | 
  | import org.apache.commons.logging.Log;
  | import org.apache.commons.logging.LogFactory;
  | import org.jboss.aop.advice.Interceptor;
  | import org.jboss.aop.joinpoint.Invocation;
  | 
  | import my.ServiceException;
  | 
  | /**
  |  * Ensures that all unchecked exceptions caught and rethrown as an 
EJBException
  |  * are logged on the server side
  |  * 
  |  * @author ALR
  |  * 
  |  */
  | public class UncaughtExceptionInterceptor implements Interceptor {
  | 
  | // Class Members
  | private static final Log logger = LogFactory
  | .getLog(UncaughtExceptionInterceptor.class);
  | 
  | public String getName() {
  | return this.getClass().getName();
  | }
  | 
  | /**
  |  * Carries out the invocation as normal, catching any resulting 
exceptions
  |  * thrown from the container and ensuring that they're logged properly
  |  * before being rethrown to the client
  |  */
  | public Object invoke(Invocation invocation) throws Exception {
  | 
  | try {
  | logger
  | .trace(this.getClass().getName()
  | + " intercepted 
invocation.");
  | return invocation.invokeNext();
  | } catch (Throwable t) {
  | String errorMessage = "Uncaught exception found in 
Services invocation to "
  | + invocation.getTargetObject()
  | + "."
  | + invocation.toString();
  | logger.warn(errorMessage);
  | throw new ServiceException(errorMessage, t);
  | }
  | 
  | }
  | 
  | }

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

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


[jboss-user] [JBoss Portal] - Security-constraint being ignored

2007-01-23 Thread rsliotta
Good Evening.

environment:
JBoss Portal Version 2.4SP1 downloaded
JBoss AS Version 4.0.4GA
Database is Postgres 8.0.4
I am running on Windows

Describe the problem:

I am trying to add page level security to a page.  It I configure it as 
unchecked and look in the management portal, it shows as unchecked.  If I set a 
role, the whole constraint is ignored.

If I go in into the management portlet and configure the constraints, it works 
perfectly.  I am however trying to configure a deployment and want to configure 
it with the WAR.

Here is my *-object.xml





KNAvayaInstance
AvayaPortlet



  
  overwrite
  default
  
AvayaPortletPage


  AvayaTestWindow
  KNAvayaInstance
  center
  0


  
avaya
view
  

  
  


I have confirmed that the role exists in the database.  I have tried view and 
viewrecursive with the same result.  I am guessing I missed something 
rudimentary.  There are no constraints on the instance as you can see.

This is the portlet snippet from the portlet.xml


  AvayaPortlet
  Portlet to test Avaya
  
org.pentaho.ui.portlet.NavigationPortlet

text/html
VIEW


%AvayaReports

  

solution
kn


path
customers/avaya


xsl
portal-files.xsl


secure
true

  



Can anyone shed some light on this.



Thanks.

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

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


[jboss-user] [Beginners Corner] - Is it consistent behavior for jboss to copy ear files to /jb

2007-01-23 Thread Xia
Is it consistent behavior for jboss to copy ear files to 
/jboss/server/default/tmp/deploy and explode them but not copy war files?  I 
see each ear file in its entirety and its matching exploded subfolder.  For war 
files I only see their exploded folders and not the war file itself?!

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

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


[jboss-user] [JBoss Seam] - Re: End doesn't really end the conversation in 1.1

2007-01-23 Thread andrew.rw.robinson
Thank you "@End(beforeRedirect=true)" was exactly what I was looking for. 
Didn't realize the conversation would propagate with the redirect filter and 
having the End. 

Is there documentation on this (if so I'd like to see if there is more that I 
wasn't aware of)?

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

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


[jboss-user] [JBoss Seam] - Re: outject a constant string value from pages.xml

2007-01-23 Thread Holger Prause
finally found out how to uotput a constant string for example use : use 


  | 
  | 

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

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


[jboss-user] [JBoss jBPM] - Unable to insert new process definitions.

2007-01-23 Thread mihochan
I am trying to insert process definitions into a MySQL database from a 
stand-alone application.

The process definitions are good as they install from JBoss. The problem seems 
to be with the persistence configuration but I can't see what is going wrong.

I can also contact the database to retrieve process definitions.


  | org.jbpm.JbpmException: problem closing services 
{persistence=org.jbpm.persistence.JbpmPersistenceException: couldn't commit 
hibernate session}
  |  [java] at org.jbpm.svc.Services.close(Services.java:223)
  |  [java] at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  | 
  |  Caused by: org.jbpm.persistence.JbpmPersistenceException: couldn't commit 
hibernate session
  |  [java] at 
org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:172)
  |  [java] at org.jbpm.svc.Services.close(Services.java:211)
  |  [java] ... 22 more
  |  [java] Caused by: org.hibernate.exception.DataException: could not 
insert: [org.jbpm.graph.node.StartState]
  |  [java] at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
  |  [java]
  | ...
  |  Caused by: java.sql.SQLException: Data too long for column 'ISASYNC_' at 
row 1
  |  [java] at 
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2847)
  |  [java] at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1531)
  |  [java] at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622)
  |  [java] at com.mysql.jdbc.Connection.execSQL(Connection.java:2376)
  |  [java] at com.mysql.jdbc.Connection.execSQL(Connection.java:2297)
  |  [java] at 
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1860)
  |  [java] at 
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1957)
  |  [java] at 
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1880)
  |  [java] at 
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1741)
  |  [java] at 
org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
  |  [java] at 
org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
  |  [java] ... 53 more
  | 

The jbpm.cfg.xml file;


  | 
  |   
  |
  |   
  |   
  | 
  | 

and the referenced hibernate config file;


  | 
  | 
  | 
  | 
  | 
  | 
  | false
  | org.hibernate.cache.EhCacheProvider
  | 
  | 
  | org.hibernate.dialect.MySQLDialect
  | 
  | com.mysql.jdbc.Driver
  | jdbc:mysql://localhost/jbpmtest
  | jbpmuser
  | password
  | 3
  | 
  | 
  | 
  | false
  | true
  | true
  | 
  | 
  | thread
  | 

Any help would be greatly appreciated. Thanks

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

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


[jboss-user] [JBoss Messaging] - Problem if messaging client deployed within same VM

2007-01-23 Thread alllle
I have been struggling with deploying JBoss Messaging 1.0.1SP2 for a couple of 
days and got no luck. Please help.

What I need is to be able to send/receive messages in my EJB3 that is deployed 
in the same JBoss server as the JBoss Messaging.

I followed the instruction on the user manual for the installation, the 
example/queue runs okay. However, example/stateless fails with 
ClassNotFoundException for the org.jboss.jms.destination.JBossQueue class. I 
assume it is because the messaging is scoped and therefore, the example EJB 
"StatelessSessionExample" can't find the messaging classes.

I thought of two ways to deal with it:
1. put the jboss-messaging-client.jar to the server's lib directory so it is 
available to all apps.
2. Include the jboss-messaging-client.jar in the application I am deploying, in 
this case, the example stateless EJB. 
And both approaches gave me this error:

  | javax.jms.InvalidDestinationException: Not a 
JBossDestination:JBossQueue[testQueue]

Apparently, due to the scoped deployment of the messaging, when I try to access 
the queue from inside the same JBoss AS, it uses two different loaders to load 
the same JBossQueue class (packaged in different jar files, one from messaging, 
one from client jar), and therefore, thinks that they are different class 
types. 

I am actually surprised that I could not find any existing post that discusses 
this problem. Did I missed something very basic?


As a side note, I could not package the jboss-messaging-client.jar in my 
application's EAR. It caused weird deployment problems due to class conflicts. 
I got some attribute setting error and my datasource would not deploy. The 
grand jboss-messaging-client.jar contains so many packages/classes that are 
already exist in the JBoss AS server and it is impossible to isolate which one 
is actually causing the error.
one is causing the problem.

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

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


[jboss-user] [JBoss Seam] - Re: concurrent conversations changing same data

2007-01-23 Thread [EMAIL PROTECTED]
I think you are trying to ask "how can I have an atomic conversation". Use 
@Begin(flushMode=MANUAL).

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

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


[jboss-user] [JBoss Seam] - Re: End doesn't really end the conversation in 1.1

2007-01-23 Thread [EMAIL PROTECTED]
oh, you can also use @End(beforeRedirect=true)

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

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


[jboss-user] [JBoss Seam] - Re: End doesn't really end the conversation in 1.1

2007-01-23 Thread [EMAIL PROTECTED]
Conversations ALWAYS propagate acroess redirects when you have 
SeamRedirectFilter installed. (Unless you end the conversation using 
Conversation.endBeforeRedirect().) This has been the case since early versions 
of Seam.

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

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


[jboss-user] [JBoss Seam] - Re: Using Seam gem for tomcat with and without embedded ejb3

2007-01-23 Thread [EMAIL PROTECTED]
You should be OK using jboss embeddable ejb3 in this scenario.

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

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


[jboss-user] [JBoss Seam] - Seam Gen Problem

2007-01-23 Thread kasim

This is probably something obvious but i cant figure it out.

When i run the ./seam generate-entities

i get No driver found error. i was assuming it was going off the one we defined 
in the setup. which i verified is there

Total time: 1 second
  | apple-nusairat:/usr/local/java/packages/jboss-seam-1.1.1.GA online$ ./seam 
generate-entities
  | Buildfile: build.xml
  | 
  | validate-workspace:
  | 
  | validate-project:
  | 
  | generate-entities:
  | [hibernate] Executing Hibernate Tool with a JDBC Configuration (for reverse 
engineering)
  | [hibernate] 1. task: hbm2java (Generates a set of .java files)
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment 
  | [hibernate] INFO: Hibernate 3.2 cr4
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment 
  | [hibernate] INFO: hibernate.properties not found
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment 
buildBytecodeProvider
  | [hibernate] INFO: Bytecode provider name : cglib
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.Environment 
  | [hibernate] INFO: using JDK 1.4 java.sql.Timestamp handling
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: Using Hibernate built-in connection pool (not for 
production use!)
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: Hibernate connection pool size: 20
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: autocommit mode: false
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: using driver: com.mysql.jdbc.Driver at URL: 
jdbc:mysql://localhost
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.connection.DriverManagerConnectionProvider configure
  | [hibernate] INFO: connection properties: {user=root, password=}
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.cfg.SettingsFactory 
buildSettings
  | [hibernate] WARNING: Could not obtain connection metadata
  | [hibernate] java.sql.SQLException: No suitable driver
  | [hibernate] at 
java.sql.DriverManager.getConnection(DriverManager.java:545)
  | [hibernate] at 
java.sql.DriverManager.getConnection(DriverManager.java:140)
  | [hibernate] at 
org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
  | [hibernate] at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76)
  | [hibernate] at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1929)
  | [hibernate] at 
org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:38)
  | [hibernate] at 
org.hibernate.tool.ant.JDBCConfigurationTask.doConfiguration(JDBCConfigurationTask.java:82)
  | [hibernate] at 
org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:55)
  | [hibernate] at 
org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:298)
  | [hibernate] at 
org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:314)
  | [hibernate] at 
org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
  | [hibernate] at 
org.hibernate.tool.ant.Hbm2JavaExporterTask.configureExporter(Hbm2JavaExporterTask.java:34)
  | [hibernate] at 
org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
  | [hibernate] at 
org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:182)
  | [hibernate] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  | [hibernate] at org.apache.tools.ant.Task.perform(Task.java:364)
  | [hibernate] at org.apache.tools.ant.Target.execute(Target.java:341)
  | [hibernate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
  | [hibernate] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  | [hibernate] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  | [hibernate] at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  | [hibernate] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  | [hibernate] at org.apache.tools.ant.Main.runBuild(Main.java:668)
  | [hibernate] at org.apache.tools.ant.Main.startAnt(Main.java:187)
  | [hibernate] at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  | [hibernate] at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
  | [hibernate] Jan 22, 2007 11:56:51 PM org.hibernate.dialect.Dialect 
  | [hibernate] INFO: Using dialect: org.hibernate.dialect.MySQLDialect
  | [hibernate] Jan 22, 2007 11:56:51 PM 
org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
  | [hibernate] INF

[jboss-user] [JBoss Seam] - End doesn't really end the conversation in 1.1

2007-01-23 Thread andrew.rw.robinson
I have an event listener with an End attribute on it inside of a conversation 
scoped bean:

  @Observer(UserContextUtils.APP_SET_CHANGE_EVENT_NAME)
  |   @End
  |   public void currentViewAppSetChanged(CurrentViewApplicationSetChangeEvent 
evt) {...}

There is no nested conversation when this method is fired. I was assuming that 
the long running conversation for this been would be ended and when this bean 
would be hit again a new instance would be created. Instead, nothing happens 
and my member variables are all still intact with the values from the previous 
conversation.

Here is the code flow:
pages.xml causes a load method to be invoked on a conversation bean marked with 
"@Begin(join=true)". This load method instantiates and loads data into a custom 
DataModel member variable.

User causes the event to fire which calls the method above with "@End". When 
the page is re-rendered, the data model is not null as expected and the user is 
displayed a old list of data.

>From my log, here is what happens during the event:
16:03:51,304 DEBUG [LiveReportBean] Received application set change event. Old: 
COPY, New: APSHELL
  | 16:03:51,305 DEBUG [Manager] Ending long-running conversation
  | 16:03:51,305 DEBUG [Manager] Storing conversation state: 95
  | 16:03:51,309 DEBUG [DebugPhaseListener] The phase INVOKE_APPLICATION(5) has 
completed.

Here is the rendering of the next page:
16:03:51,902 DEBUG [DebugPhaseListener] The phase RESTORE_VIEW(1) is about to 
start.
  | 16:03:51,903 DEBUG [Manager] Found conversation id in request parameter: 95
  | 16:03:51,903 DEBUG [Manager] Restoring conversation with id: 95

As you can see, although conversation #95 was ended, it is still open on the 
next request.

I am using Seam 1.1



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

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


[jboss-user] [JNDI/Naming/Network] - Re: unpacked WAR access to datasource - not found

2007-01-23 Thread PeterJ
What is in your jboss-ds.xml file?  You should have something like this:


  |
  |   jdbc/XWikiDS
  |   . . .
  |
  | 

You might also have to add a WEB-INF/jboss-web.xml file to the xwiki war file:


  |   
  | jdbc/XWikiDS
  | java:jdbc/XWikiDS
  |   
  | 


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

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


[jboss-user] [JBoss Seam] - Re: New fileUpload component

2007-01-23 Thread gus888
Very nice. This will be very easy to value-bind file with entity bean. Thank 
you so much.

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

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


[jboss-user] [JBoss Seam] - Re: Using Seam gem for tomcat with and without embedded ejb3

2007-01-23 Thread guy_davis
Hi Norman,

Our product currently ships a Java daemon that we've embedded Tomcat into.  It 
runs as a Windows service.  We are hesitant to require our clients to follow a 
whole other install process for JBoss along with ours.  Is it possible to embed 
JBoss into the JVM process of another Java daemon?

For example, here's our Server's main():
public void main(String[] args) {
// do some of our apps startup

   // Load Tomcat and start the listener...
}

Size on disk isn't a concern for us, so if we could hold all of JBoss in our 
app's install directory:
   our_app/
   our_app/jboss/...

and start JBoss programatically from the JVM of our server, then we could 
bundle it together.

If we can't then, I think I'll need to evaluate Seam running on Tomcat embedded 
in our server.

Thanks for any tips you can provide,
Guy

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

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


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

2007-01-23 Thread petemuir
Does it work properly without A4J? - I've never tested it with A4J.

N.B. The problem could well be that you have given a name to the si:config in 
components.xml - as a result you are configuring a seperate instance of the 
config rather than the default.  Try it without the name.

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

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


[jboss-user] [EJB/JBoss] - Listening Remote Topic from MDB

2007-01-23 Thread jp_ammu
Hi All,
I have gone through the JBOSS article  
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIConfigureAnMDBToTalkToARemoteQueue
 . I haven't been successfull yet though i have done exactly the same way.
Iam using JBOSS 4.0.2(A) and 4.0.3(B) jboss serevers
1) Remote Topic is configured on B tied to JNDI
2) MDB is running in server A
Here are configuration on A
jms-ds.xml


 PrcChgTopicProvider
 
   org.jboss.jms.jndi.JNDIProviderAdapter
 
 UIL2XAConnectionFactory
 UIL2XAConnectionFactory
 
 java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
 java.naming.provider.url=192.168.1.182:1099
 
   
-
here the IP address is of server B

ejb-jar.xml
--
 
  RibRegPrcChgMDB
  
com.skillnetinc.storehub.connector.rpm.publisher.ejb.publishPriceChanges.RibRegPrcChgMDB
  Container
  Auto-acknowledge
  
javax.jms.Topic
  


jboss.xml
-

  RibPrmPrcChgMDB
  Standard Message Driven 
Bean
  
topic/etPrmPrcChgFromRPM
  



PrcChgTopicProvider

 


 
   PrcChgTopicProvider
   does-not-matter
   
org.jboss.ejb.plugins.jms.JMSContainerInvoker
   
  PrcChgTopicProvider
  StdJMSPool
  1
  15
  3
  1
  
 10
 
queue/DLQ
10
0
 
  
   



3) Do i need to create same remote topic on server A ? Since my MDB refers the 
topic, when i deploy MDB on server A it is complaining the topic is not 
created. Ideally it should look into topic on Server B

4) After completion of configurations on both servers, iam publishing messages 
on B's  topic .(The publisehr client is running on B) I don't see any messages 
from MDB on A

Can any one tell me how to solve that. Spending lot of time and different 
approaches in this topic no luck so far.

5) After acheiving this, i would like to switch JBoss server B with external 
JMS servers. Like oracle app server. Then what configuartion i should make at 
server A and MDB? I heard about foreign providers(JMS) , i don't know how to 
configure.

Please show some light.
Thanks,


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

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


Re: [jboss-user] [Installation, Configuration & Deployment] - Symlink Resouce bundles and symlinks

2007-01-23 Thread Matthew Hannigan
On Tue, Jan 23, 2007 at 01:58:23PM -0500, YosarianTheGreat wrote:
> We're trying to upgrade to 4.0.5 but have hit a snag.  We use 
> Class.findResource and ResourceBundle.getBundle to locate properties files 
> which exist in WEB-INF/classes.  Because we have different environments (dev, 
> stage, prod) we need multiple versions of these properties files.  In order 
> to keep from having a mess in source control, we have three distinct files 
> and symlink to the correct file in the given environment.  Previously with 
> 4.0.1 this worked fine, but with 4.0.5 it can't locate the file.  Removing 
> the symlink and making a copy or even making a hard link works, but symlinks 
> don't.  Hard links is a workable solution, but it's not as desirable as 
> symlinks b/c it looks like a distinct file, and that might be confusing.
> 
> Here's what we have:
> 
> WEB-INF/classes/Configuration.properties -> 
> WEB/classes/Configuration.properties.prod
> WEB-INF/classes/Configuration.properties.dev
> WEB-INF/classes/Configuration.properties.stage
> WEB-INF/classes/Configuration.properties.prod

You could load the right one based on a java.property
set at start time with the -D option of run.sh,
e.g.
run.sh -Druntime=stage 

and then the app would load Configuration.properties.${stage}

Or copy the correct properties file to an external dir
specified with --classpath

Matt

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


[jboss-user] [JCA/JBoss] - Re: Need help in using org.jboss.util.threadpool.ThreadPool

2007-01-23 Thread [EMAIL PROTECTED]
Are you talking about a JCA adapter having access to a thread pool. JCA uses a 
concept called the 'WorkManager' to give access to resource adapters for 
managing threads. Note, this is not a generalized mechanism and does not apply 
to other EE application components. 

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

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


[jboss-user] [JBoss Seam] - Autocomplete textfield with Seam & Ajax4jsf

2007-01-23 Thread toni
Hi,

I'm trying to use an autocomplete textfield in my seam applicaiton. The latest 
verison of ajax4jsf has a tag for that:


  

However, I can't find a seam example, which makes use of this tag. Has anybody 
implemented an autocomplete textfield in seam using ajax4jsf yet?


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

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


[jboss-user] [JBoss jBPM] - Re: Problem integrating identity component

2007-01-23 Thread estaub
I don't know anything about this, but it looks like you might be doing some 
initialization twice that must only be done once.  

Also, google {proxool fastclassbycglib duplicate class definition} and look at 
the first item (re Proxool 0.9.0 RC3) in the first link you find.

-Ed Staub

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005505
___
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 Turn Off DTD Validation for struts-config.xml

2007-01-23 Thread Dynapen
Is there a way to set it so that the dtd can just be deployed alongside the xml 
file (even inside the WEB-INF folder) and have the validation go from there?

That way I could simply have the dtd reside alonside the xml file so that 
validaiton passes, and I don't have to worry about linking externally apache 
for example. 

I ahve tried to this locally, but all my attempts end up going nowhere as it 
keeps expecting to find the file in the bin directory of the JBoss instance. 





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

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


[jboss-user] [Clustering/JBoss] - Re: Can't reconnect to JMS server after cluster node goes do

2007-01-23 Thread kratosh
I'm using a QueueSender in some class of mine in order to send messages to the 
queue. And i use a QueueConnection that is created by QueueConnectionFactory.
I use MDB for getting messages from the queue, not sending to the queue. And 
the problem is with sending the messages.
I looked at the wiki page you gave me, but i think they only explain how to get 
rid of the errors in the log. while i see in the log that the JMS server 
reconnected, but then when i try to send a message to it it fails - that means, 
i think, that the queue is not connected.
What else can i do?

I use jboss4.0.3.

Another thing i noticed is that when the 2 nodes are on different machines, the 
failover is done correctly, and after the reconnection the message sending 
succeeds. I see the problem only when the 2 nodes are on the same machine... 
strange... any idea how it can be related to that?

Also, i tried to stop and start my queue through JMX-console and it didn't help.

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

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


[jboss-user] [JBoss jBPM] - Re: Is this a mem. leak

2007-01-23 Thread estaub
I'm just a newbie here... have you considered submitting a bug report?  This 
looks like a well-documented, solid catch.

http://jira.jboss.com/jira/secure/CreateIssue!default.jspa

-Ed Staub

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

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


[jboss-user] [JBoss Seam] - Re: org.hibernate.exception.DataException: could not initial

2007-01-23 Thread [EMAIL PROTECTED]
That error is from your database, nothing to do with seam.

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

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


[jboss-user] [JBoss jBPM] - Re: Changing the process requires me to recreate the oracle

2007-01-23 Thread estaub
I just moved to Oracle today and don't see this problem.  A new 
ProcessDefinition record with the next version number is created.

What method are you calling?  I'm using GraphSession.deployProcessDefinition.

-Ed Staub


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

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


[jboss-user] [JBoss jBPM] - Beta3, packaging issues

2007-01-23 Thread rjain15
Hi, 

I downloaded the jbpm-bpel beta3, and I see some build files, ant scripts 
missing. Also the packaging of the examples etc has changed from Beta2. Its 
kind of difficult to get started to use beta3 in Eclipse. 

Is there a patch available to fix all the beta3 issues to make it build and 
work under Eclipse, as was beta2

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

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


[jboss-user] [Security & JAAS/JBoss] - Re: JBoss4.0 and JAAS/Login-config.xml

2007-01-23 Thread eschulma
And the final fix -- I should have put

java:/jaas/webappDomain

in jboss.xml rather than 

java:jaas/webappDomain

Both forms actually work for jboss-web.xml, which is a little surprising.

Hope this helps someone.

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

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


[jboss-user] [JBoss Seam] - Re: org.hibernate.exception.DataException: could not initial

2007-01-23 Thread ernest210
I forget ERROR:


  | 21:57:30,781 INFO  [IntegerType] could not bind value '1' to parameter: 1; 
Type Conversion not supported
  | 21:57:30,796 WARN  [JDBCExceptionReporter] SQL Error: -95, SQLState: 22003
  | 21:57:30,796 ERROR [JDBCExceptionReporter] Type Conversion not supported
  | 21:57:30,812 INFO  [ExceptionInterceptor] no exceptions.xml file found
  | 21:57:30,812 ERROR [ExceptionInterceptor] redirecting to debug page
  | javax.ejb.EJBException: javax.persistence.PersistenceException: 
org.hibernate.exception.DataException: could not initialize a collection: 
[pl.test.client.Client.books#1]
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
  | at 
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
  | at $Proxy96.delete(Unknown Source)
  | at 
pl.test.client.ClientManager$$FastClassByCGLIB$$3c4a4ac9.invoke()
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:69)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | at 
org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:28)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
  | at 
org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:78)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:47)
  | at 
pl.test.client.ClientManager$$EnhancerByCGLIB$$16851c17.delete()
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.myfaces.el.MethodBindingIm

[jboss-user] [JNDI/Naming/Network] - < Environment> entry in Tomcat's context file

2007-01-23 Thread BrianR
I'm reposting this, since the first post doesn't even display the Topic title 
correctly (the use of the greater-than and less-than symbols)

I'm looking into the possibility of migrating our web applications from 
standalone Tomcat to JBoss AS. One difference I seem to have encountered arises 
from an error related to the lookup of values we had defined in entries in our 
web application contexts... when the WAR file is deployed in JBoss, our 
servlets can't seem to locate those entries. 

The context files included something along the lines of: 



[jboss-user] [JBoss Seam] - org.hibernate.exception.DataException: could not initialize

2007-01-23 Thread ernest210
My problem.
I have two class Client and Book with relations OneToMany set on cascade 
"REMOVE".
Now I must change scope "SESSION" on "CONVERSATION". 
Now (after the change) when i execute delete method on Client i have error. 
When scope is set on SESSION everything is ok but when is set on CONVERSATION 
then I have error. Why? PLEASE HELP! 
How it looks:

Client CLASS

  | package pl.test.client;
  | 
  | import java.io.Serializable;
  | import java.util.HashSet;
  | import java.util.Set;
  | 
  | import javax.persistence.CascadeType;
  | import javax.persistence.Entity;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.Id;
  | import javax.persistence.OneToMany;
  | import javax.persistence.Table;
  | 
  | import org.jboss.seam.annotations.Name;
  | 
  | @Entity
  | @Name("client")
  | @Table(name="clients")
  | public class Client implements Serializable {
  | 
  |  /**
  |  * 
  |  */
  | private static final long serialVersionUID = -3074021688217036261L;
  | 
  | private int id; 
  | private String name;
  | private Set books = new HashSet();  
  |  
  | @Id @GeneratedValue
  | public int getId() {
  | return id;
  | }
  | public void setId(int id) {
  | this.id = id;
  | }   
  | @OneToMany(cascade=CascadeType.REMOVE, mappedBy="client")   
  | public Set getBooks() {
  | return books;
  | }
  | public void setBooks(Set books) {
  | this.books = books;
  | }
  | public String getName() {
  | return name;
  | }
  | public void setName(String name) {
  | this.name = name;
  | }   
  | }
  | 

Book CLASS

  | package pl.test.client;
  | 
  | import java.io.Serializable;
  | 
  | import javax.persistence.Entity;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.Id;
  | import javax.persistence.JoinColumn;
  | import javax.persistence.Table;
  | 
  | import org.jboss.seam.annotations.Name;
  | 
  | @Entity
  | @Name("book")
  | @Table(name="books")
  | public class Book implements Serializable{
  | 
  | /**
  |  * 
  |  */
  | private static final long serialVersionUID = 1624659788044987338L;
  | 
  | private int id; 
  | private String bookname;
  | private Client client;
  | 
  | @JoinColumn(name="books")
  | public String getBookname() {
  | return bookname;
  | }
  | public void setBookname(String bookname) {
  | this.bookname = bookname;
  | }
  | public Client getClient() {
  | return client;
  | }
  | public void setClient(Client client) {
  | this.client = client;
  | }
  | @Id 
  | @GeneratedValue
  | public int getId() {
  | return id;
  | }
  | public void setId(int id) {
  | this.id = id;
  | }
  | }
  | 

And MANAGER who i execute

  | package pl.test.client;
  | 
  | import static javax.persistence.PersistenceContextType.EXTENDED;
  | 
  | import java.io.Serializable;
  | import java.util.List;
  | 
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | import javax.persistence.EntityManager;
  | import javax.persistence.PersistenceContext;
  | 
  | import org.jboss.seam.annotations.Begin;
  | import org.jboss.seam.annotations.Destroy;
  | import org.jboss.seam.annotations.End;
  | import org.jboss.seam.annotations.Factory;
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Logger;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Out;
  | import org.jboss.seam.annotations.datamodel.DataModel;
  | import org.jboss.seam.log.Log;
  | 
  | @Stateful
  | @Name("clientManager")
  | public class ClientManagerBean implements Serializable, ClientManager{
  | 
  | /**
  |  * 
  |  */
  | private static final long serialVersionUID = 6887290828466517147L;
  |  
  | @DataModel  
  | private List clientsList;
  | 
  | @In(required = false)
  | @Out(required = false)
  | private Client client;
  | 
  | @PersistenceContext(type=EXTENDED)
  | private EntityManager em;
  | 
  | public void delete() {  
  | if (client!=null){  
  | client = em.merge(client);
  | clientsList.remove(client);
  | em.remove(client);
  | client=null;
  |   }
  | }   
  | @Factory("clientsList") 
  | public void findClients() { 
  | clientsList = em.createQuery("from Client 
cli").getResultList();
  | }   
  | @Remove 
  | @Destroy
  | public void destroy() { 
  | } 
  | }
  | 

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

Reply to the

[jboss-user] [JBoss Portal] - Portlet state refresh problem

2007-01-23 Thread TopperHarley
I am having some problems with my JBoss portal app that I think might be caused 
by how Portal is caching portlet state. 

My app has: 
JBoss Portal 2.4 
Seam 1.1 
Myfaces 1.1.4 

I have a portlet that has a navigation of A -> B -> C -> D. I submit the 
actions that take me to page C. 

If I navigate away from this porlet and return, it returns me to page C. My 
desired result is to reset the portlet state to page A. 

I already set my portlet cache to 0 and that seems to have done nothing. 

Can anybody shed some light into my situation? 

Thanks, 
Rus

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

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


[jboss-user] [Security & JAAS/JBoss] - Re: JBoss4.0 and JAAS/Login-config.xml

2007-01-23 Thread eschulma
As usual, after banging my head so long that I finally decide to post, the 
solution comes shortly afterward.

The main problem appears to have been that I had commented out some lines in 
the Tomcat SAR server.xml that refer to JAAS when JBoss was first installed, 
over 6 months ago.  Not sure *why* I did that to begin with, but reverting back 
basically solved the problem, at least with respect to the web side of things.

It looks as though the security domain is first loaded into JNDI when an 
attempt is made to access the restricted web pages.

However, it still does not work for EJBs -- if I refer to the security domain 
in jboss.xml, the EJB deployments fail with the message "Unable to find 
security domain."  Presumably though this is a dependency issue, and will be 
easier to solve (I hope).


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

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


[jboss-user] [JBoss jBPM] - Re: org.jbpm.JbpmException: token 'Token(/)' can't be signal

2007-01-23 Thread juangiovanolli
the problem was i'm not calling the signal() method of the root token for 
appoint to the start state.

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

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


[jboss-user] [JBoss Seam] - Re: and HTML tags

2007-01-23 Thread toni
any workaround?

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

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


[jboss-user] [JBoss Seam] - need help pls!!!

2007-01-23 Thread Holger Prause
Hello in need urgent help for this problem or at least a comment on this

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=99753

Sorry for any cross posting but i really need an answer / reaction on this
(didnt got any)

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

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


[jboss-user] [JBoss Seam] - selectItems exception

2007-01-23 Thread damatrix
Hello,

I'm using Seam 1.1.0.GA, Ajax4JSF, Facelets and selectItems beta 1.1.1beta 4. 
This little bit of code on my page is giving me an exception immediately focus 
moves away from the selectOneMenu.

  | 
  |  
  | 
  |   
  | 

The exception is below


  | java.lang.NullPointerException
  | at org.jboss.seam.selectitems.Config.find(Config.java:76)
  | at 
org.jboss.seam.selectitems.Config$$FastClassByCGLIB$$13a6929b.invoke()
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | at 
org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:39)
  | at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
  | at sun.reflect.GeneratedMethodAccessor137.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:33)
  | at sun.reflect.GeneratedMethodAccessor140.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | 
and a host of others. I'll give the whole stacktrace if required. 

My components.xml has this entry

  |
  | 
  | 
  | 
  |

 and my persistence unit has the entry allowing seam to manage my persistence

  |  
  | 

The entity manager is properly injected in my seam components using 
@In(create=true). Could it be something to do with A4JSF trying to validate the 
field? I get the feeling i'm doing something wrong but i've no idea what it is. 
I really need help cos i'm running out of time as this is my project work i 
have to submit very soon. Thanks anybody.

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

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


[jboss-user] [JBoss Seam] - Re: outject a constant string value from pages.xml

2007-01-23 Thread Holger Prause
i noticed the same problem occurs if u use params, u cant output a constant 
string(u can only use el expression which will be evaluated), i am really 
getting crazy/ mad on this , why o why?


Such a simple thing and i am stuck on it, pls help.

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

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


[jboss-user] [JBoss Seam] - Re: Destroying a coversation causes exception

2007-01-23 Thread seamNoobie
"petemuir" wrote : Post the code for the entry component

Destroying ANY conversation gives this...

I am not quite sure what you want me to post.

Please pm me and I can supply a link to all the code etc.

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

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


[jboss-user] [JBoss Seam] - Re: seampay example broken?

2007-01-23 Thread [EMAIL PROTECTED]
Nope - I can't reproduce.  It runs fine with an install from JEMS installer 
linked from the Seam download page.

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

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


[jboss-user] [JBoss Seam] - Re: seampay example broken?

2007-01-23 Thread [EMAIL PROTECTED]
Nope - I can't reproduce.  It runs fine with an install from JEMS installer 
linked from the Seam download page.

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

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


[jboss-user] [JBoss jBPM] - Re: change database

2007-01-23 Thread estaub
I just switched to Oracle today, so this is all pretty fresh in my head (unlike 
most of the rotten stuff in there).

First, if you haven't already, see 
http://docs.jboss.org/jbpm/v3/userguide/persistence.html#changingthejbpmdb and 
the surrounding context.  

So you need to change the jdbc connection info in the hibernate configuration 
file.  In the starter kit, it's called hibernate.cfg.xml.
The lines of interest are:

  | org.hibernate.dialect.HSQLDialect
  | org.hsqldb.jdbcDriver
  | jdbc:hsqldb:mem:.;sql.enforce_strict_size=true
  | sa
  | 

I started by getting the HelloWorldDbTest in the tutorials to work.
If you do this, note that it creates the needed schema in the database in 
setup() and deletes it all at teardown().  This had me confused for a while - I 
had set up the schema by script first, and after I ran the test - poof - all my 
tables had disappeared!

If you want scripts for creating the schema, they're in the starter's kit under 
jbpm-db/build for most DBs.  For Oracle, you have to run the target in the 
jbpm-db antfile yourself - it's called "oracle.scripts" if I remember right.  
This will create them under the "build" subtree.

-Ed Staub

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

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


[jboss-user] [EJB 3.0] - [SessionFactoryObjectFactory] Not found

2007-01-23 Thread mphansen
Hi,

After asking this question in the Seam forum 
(http://www.jboss.com/index.html?module=bb&op=viewtopic&t=99749) I was directed 
to this forum.

I'm trying to set up the seam booking example in a cluster. I have two 
jboss-4.0.5-ga instances installed (with ejb3-clustered support) and an Apache 
in front of them.

I have made the following changes to the booking application.

1) It now uses a MySQL database which is shared by the two JBoss servers.
2) added distributable tag to web.xml to enable HTTP session replication
3) added @Clustered annotation to SFSB enable replication

I then test the application in the following way:

1) I hit http://localhost/seam-booking/
2) I find a hotel and starts booking it
3) before confirming the booking I close down the jboss instance serving my 
request.
4) I confirm my booking

At this point the following stack trace is thrown at me:

15:39:45,578 WARN  [SessionFactoryObjectFactory] Not found: 
8a808083104f5a8f01104f5a9120
  | 15:39:45,593 INFO  [Exceptions] no exceptions.xml file found
  | 15:39:45,593 ERROR [Exceptions] redirecting to debug page
  | java.lang.RuntimeException: java.io.IOException
  | at 
org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContex
  | t.java:367)
  | at 
org.jboss.ejb3.stateful.StatefulBeanContext.getInstance(StatefulBeanContext.java:309)
  | at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.ja
  | va:77)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.remoting.ReplicantsManagerInterceptor.invoke(ReplicantsManagerIntercept
  | or.java:51)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.jav
  | a:77)
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationIntercepto
  | r.java:102)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:1
  | 06)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
  | at 
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
  | at $Proxy153.confirm(Unknown Source)
  | at 
org.jboss.seam.example.booking.HotelBooking$$FastClassByCGLIB$$c83b792d.invoke()
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | at 
org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39
  | )
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.ja
  | va:38)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | at 
org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java
  | :144)
  | at 
org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.jav

[jboss-user] [JNDI/Naming/Network] - unpacked WAR access to datasource - not found

2007-01-23 Thread fbadt
jboss 4.04

Installed XWiki as an inpacked WAR in the server/deploy directory.

The web.xml has the following entry:

DB Connection
java:jdbc/XWikiDS
javax.sql.DataSource
Container


What needs to be in what config file for the datasource to be found?  I would 
prefer to use a WAR related config for this; however have tried the 
jboss-ds.xml and also failed to have the JNDI name found.

org.jboss.deployment.DeploymentException: Error during deploy; - nested 
throwable: (javax.naming.NamingException: resource-ref: java:jdbc/XWikiDS has 
no valid JNDI binding. Check the jboss-web/resource-ref.)

resource-ref is not in the filesystem


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

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


[jboss-user] [JBoss Seam] - Re: Clustering booking example

2007-01-23 Thread mphansen
"[EMAIL PROTECTED]" wrote : You would be better off asking about the first 
problem in the ejb3 forum.
Thanks, I posted the question at 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=99783.

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

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


[jboss-user] [JNDI/Naming/Network] - entry in Tomcat's context file.

2007-01-23 Thread BrianR
I'm looking into the possibility of migrating our web applications from 
standalone Tomcat to JBoss AS.  One difference I seem to have encountered 
arises from an error related to the lookup of values we had defined in  entries 
in our web application contexts... when the WAR file is deployed in JBoss, our 
servlets can't seem to locate those entries.

The context files included something along the lines of:



Then, in a servlet that is loaded upon startup of the application, we read in 
this variable to initialize some important information in the web application 
that needs to be different between our development, QA, and production 
environments:

Context ctx = new InitialContext();
Context envCtx = (Context) ctx.lookup("java:comp/env");
String importantList = (String) envCtx.lookup("importantList");

How is something similar to this accomplished with JBoss?  In which file would 
the  variable need to be defined?  I'd prefer to keep this outside of the WAR 
file, if possible, as we are able to do in standalone Tomcat.  Doing so greatly 
simplifies our process of moving from Development to QA to Production, as we're 
able to simply copy the WAR file to the appropriate server as it is approved at 
each stage of testing, without changing any of the internal settings.

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

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


[jboss-user] [JNDI/Naming/Network] - Re: Environment entry in Tomcat's context file.

2007-01-23 Thread BrianR
Well, that post didn't turn out quite as I expected...

The context file includes an entry along the lines of:

http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005477#4005477

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


[jboss-user] [JBoss Seam] - Re: seampay example broken?

2007-01-23 Thread [EMAIL PROTECTED]
It works fine for me on CVS JBoss image.  I'm downloading the installer to see 
if it looks any different there.

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

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


[jboss-user] [JBoss jBPM] - deployProcessDefinition helper function - throws NullPointer

2007-01-23 Thread pailRider
I am having an issue with programmatically deploying a process definition via 
the JbpmContext help functions. I am calling the following code within a struts 
action class when the user clicks a button. My config and code follow. 

The problem is that I get a null pointer exception during the call. see the 
exception below. 

Any ideas? TIA 

My hibernate.config.xml:
org.hibernate.dialect.Oracle9Dialect
  | oracle.jdbc.driver.OracleDriver
  | jdbc:oracle:thin:@localhost:1521:orclr2
  | system
  | core1234
  | true
  | 
  | true 1, false 
0
  |  

My Code:



  | 
  |   public void deployProcessDefinition() {
  | 
  | ProcessDefinition processDefinition = 
ProcessDefinition.parseXmlString(
  |   "" +
  |   "  " +
  |   "" +
  |   "  " +
  |   "  " +
  |   "" +
  |   "  " +
  |   "  " +
  |   ""
  | );
  | 
  | // Lookup the pojo persistence context-builder that is configured 
above
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | try {
  |   // Deploy the process definition in the database 
  |   jbpmContext.deployProcessDefinition(processDefinition);
  | 
  | } finally {
  |   // Tear down the pojo persistence context.
  |   // This includes flush the SQL for inserting the process 
definition  
  |   // to the database.
  |   jbpmContext.close();
  | }
  |   }
  | 
  | 

The Exception


  | [1/23/07 14:36:24:661 EST] 002f ServletWrappe A   SRVE0242I: 
[/index.jsp]: Initialization successful.
  | [1/23/07 14:36:24:677 EST] 002f PropertyMessa I   Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
  | [1/23/07 14:36:24:693 EST] 002f PropertyMessa I   Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true
  | [1/23/07 14:36:26:192 EST] 0040 ServletWrappe A   SRVE0242I: 
[/applicant/applicantForm.jsp]: Initialization successful.
  | [1/23/07 14:36:26:208 EST] 0040 PropertyMessa I   Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
  | [1/23/07 14:36:26:208 EST] 0040 PropertyMessa I   Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
  | [1/23/07 14:36:35:018 EST] 0033 JbpmConfigura I   using jbpm 
configuration resource 'jbpm.cfg.xml'
  | [1/23/07 14:36:35:439 EST] 0033 Environment   I   Hibernate 3.1
  | [1/23/07 14:36:35:455 EST] 0033 Environment   I   hibernate.properties 
not found
  | [1/23/07 14:36:35:471 EST] 0033 Environment   I   using CGLIB 
reflection optimizer
  | [1/23/07 14:36:35:517 EST] 0033 Environment   I   using JDK 1.4 
java.sql.Timestamp handling
  | [1/23/07 14:36:35:674 EST] 0033 Configuration I   configuring from 
resource: config.files/hibernate.cfg.xml
  | [1/23/07 14:36:35:689 EST] 0033 Configuration I   Configuration 
resource: config.files/hibernate.cfg.xml
  | [1/23/07 14:36:35:721 EST] 0033 Configuration I   Reading mappings from 
resource: org/jbpm/graph/action/Script.hbm.xml
  | [1/23/07 14:36:35:814 EST] 0033 Configuration I   Reading mappings from 
resource: org/jbpm/db/hibernate.queries.hbm.xml
  | [1/23/07 14:36:35:892 EST] 0033 Configuration I   Reading mappings from 
resource: org/jbpm/graph/def/ProcessDefinition.hbm.xml
  | [1/23/07 14:36:35:939 EST] 0033 HbmBinder I   Mapping class: 
org.jbpm.graph.def.ProcessDefinition -> JBPM_PROCESSDEFINITION
  | [1/23/07 14:36:36:189 EST] 0033 Configuration I   Reading mappings from 
resource: org/jbpm/graph/def/Node.hbm.xml
  | [1/23/07 14:36:36:220 EST] 0033 HbmBinder I   Mapping class: 
org.jbpm.graph.def.Node -> JBPM_NODE
  | [1/23/07 14:36:36:345 EST] 0033 Configuration I   Reading mappings from 
resource: org/jbpm/graph/def/Transition.hbm.xml
  | [1/23/07 14:36:36:392 EST] 0033 HbmBinder I   Mapping class: 
org.jbpm.graph.def.Transition -> JBPM_TRANSITION
  | [1/23/07 14:36:36:392 EST] 0033 Configuration I   Reading mappings from 
resource: org/jbpm/graph/def/Event.hbm.xml
  | [1/23/07 14:36:36:470 EST] 0033 HbmBinder I   Mapping class: 
org.jbpm.graph.def.Event -> JBPM_EVENT
  | [1/23/07 14:36:36:470 EST] 0033 Configuration I   Reading mappings from 
resource: org/jbpm/graph/def/Action.hbm.xml
  | [1/23/07 14:36:36:502 EST] 0033 HbmBinder I   Mapping class: 
org.jbpm.graph.def.Action -> JBPM_ACTION
  | [1/23/07 14:36:36:502 EST] 0033 Configuration I   Reading mappings from 
resource: org/jbpm/graph/def/SuperState.hbm.xml
  | [1/23/07 14:36:36:611 EST] 0033 HbmBinder I   Mapping subclass: 
org.jbpm.graph.def.SuperState -> JBPM_NODE
  | [1/23/07 14:36:36:673 EST] 0033 Configuration I   Reading mappings from 
resource: org/jbpm/graph/def/ExceptionHandler.hbm.xml
  | [1/23/07 14:36:36:673 EST] 0033 HbmBinder I   Mapping 

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

2007-01-23 Thread [EMAIL PROTECTED]
I've never tried, but I don't think you can you use it on its own.  Seam-pdf 
registers a document store as a seam components and needs a conversation scope 
to efficiently store the documents.  I can certainly foresee even more use of 
Seam features in the future.  

That being said, except for the need for conversation scope, it isn't 
unreasonable to think that it could be refactored a bit so as not to require 
Seam.  That isn't a priority of mine, but given sufficient demand and/or 
community contribution it is entirely possible.  

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

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


[jboss-user] [JBoss jBPM] - Re: processdefinition.xml error

2007-01-23 Thread brunoduarte
Have you solve this problem Andrea?

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

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


[jboss-user] [JBoss Seam] - seampay example broken?

2007-01-23 Thread bengt_mansson
Hi.
I try to use asynchronicity but it won't work.
Now I have run the jems installer again, with ejb3 profile, and then tried to 
run the seampay exmple. Same problem again.

Is it really broken or is there any mistake from my side?

/Bengt

debug print:

Exception during INVOKE_APPLICATION(5): $Proxy130 cannot be cast to 
org.jboss.seam.core.LocalDispatcher
  | 
  | 
org.jboss.seam.core.LocalDispatcher$$FastClassByCGLIB$$dd969e92.invoke()
  | net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | 
org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:73)
  | 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | 
org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:38)
  | sun.reflect.GeneratedMethodAccessor105.invoke(Unknown Source)
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | java.lang.reflect.Method.invoke(Method.java:597)
  | org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | 
org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
  | 
org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
  | org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
  | 
org.jboss.seam.intercept.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:82)
  | 
org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:51)
  | 
org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$304a11e0.scheduleInvocation()
  | 
org.jboss.seam.interceptors.AsynchronousInterceptor.invokeAsynchronouslyIfNecessary(AsynchronousInterceptor.java:29)
  | sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | java.lang.reflect.Method.invoke(Method.java:597)
  | org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | 
org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
  | 
org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
  | org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
  | 
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:144)
  | 
org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:79)
  | 
org.jboss.seam.example.seampay.PaymentProcessor$$EnhancerByCGLIB$$2eaf8164.schedulePayment()
  | 
org.jboss.seam.example.seampay.PaymentController.saveAndSchedule(PaymentController.java:30)
  | 
org.jboss.seam.example.seampay.PaymentController$$FastClassByCGLIB$$4b873d6b.invoke()
  | net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | 
org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:51)
  | sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | java.lang.reflect.Method.invoke(Method.java:597)
  | org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | 
org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:39)
  | sun.reflect.GeneratedMethodAccessor115.invoke(Unknown Source)
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | java.lang.reflect.Method.invoke(Method.java:597)
  | org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
  | sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | java.lang.reflect.Method.invoke(Method.java:597)
  | org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | org.jboss.s

[jboss-user] [JBoss Seam] - Re: Validating initial input parameters for a pageflow

2007-01-23 Thread [EMAIL PROTECTED]
1) Use Seam page parameters
2) Try using Validators.instance().
3) No, but you can do the validation in a Seam page action, and if the 
validation succeeds, begin the pageflow

Note that I have never tried to do this, but I believe that the above will work.

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

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


[jboss-user] [JBoss Seam] - Re: and HTML tags

2007-01-23 Thread [EMAIL PROTECTED]
I doubt this is possible.

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

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


[jboss-user] [JBoss Seam] - Re: SeamTest & Form based authentication

2007-01-23 Thread [EMAIL PROTECTED]
Override Request.getUserPrincipalName() and have it do whatever you like.

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

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


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

2007-01-23 Thread [EMAIL PROTECTED]
you need the whole lot, I think, but Norman can give the definitive answer.

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

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


[jboss-user] [JBoss Seam] - Re: Clustering booking example

2007-01-23 Thread [EMAIL PROTECTED]
You would be better off asking about the first problem in the ejb3 forum. As 
for the second problem, use your debugger to figure out what object is being 
serialized.

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

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


[jboss-user] [Security & JAAS/JBoss] - Re: JBoss4.0 and JAAS/Login-config.xml

2007-01-23 Thread eschulma
I have the identical problem with JBoss 4.0.4, and I do have the correct DTD.  
The only way I can get JBoss to see my application policy is if I call it 
jboss.web in login-config.xml -- I noticed that I get a message

[JAASRealm] Set JAAS app name jboss.web

every time I start my app.  

Trying to do things the "right" way, I have for my login-config.xml:


  | 
  | http://www.jboss.org/j2ee/dtd/security_config.dtd";>
  | 
  | 
  | 
  | 
  | 
  | 
  |
  |   
  |  
  |  true
  |   
  |
  | 
  | 
  | 
  | 
  |
  |   
  |  guest
  |  java:/DefaultDS
  |  SELECT PASSWD FROM 
JMS_USERS WHERE USERID=?
  |  SELECT ROLEID, 'Roles' FROM 
JMS_ROLES WHERE USERID=?
  |   
  |
  |  
  | 
  | 
  | 
  | 
  | 
  |
  |   
  |  sa
  |  sa
  |  
  |  jboss.jca:service=LocalTxCM,name=DefaultDS
  |   
  |
  | 
  | 
  | 
  |
  |   
  |  guest
  |  guest
  |  guest
  |  jboss.jca:service=TxCM,name=JmsXA
  |   
  |
  | 
  | 
  | 
  | 
  |
  |   
  |props/jmx-console-users.properties
  |props/jmx-console-roles.properties
  |   
  |
  | 
  | 
  | 
  | 
  |
  |   
  |  web-console-users.properties
  |  web-console-roles.properties
  |   
  |
  | 
  | 
  | 
  | 
  |   
  | 
  |   props/jbossws-users.properties
  |   props/jbossws-roles.properties
  |   anonymous
  | 
  |   
  | 
  | 
  | 
  | 
  |
  |
  |   
  |
  | 
  | 
  | 
  | 
  |
  |   
  |  java:jdbc/web
  |  select password from 
Users where username=?
  |  select Role, 'Roles' from 
Roles where username=?
  |  guest
  |   
  |
  | 
  | 
  | 

where webappDomain is the one I'm interested in.  

I notice that most of the application policies here are not bound into JNDI 
java:jaas (as shown by JNDIView) the way I would expect.  In fact, the only 
ones I see are HsqlDbRealm, jbossmq, JmsXARealm, and (strangely) a java:jaas 
*under* the jaas branch.

For completeness, here is jboss-web.xml as well:


  | 
  | 
  |   java:jaas/webappDomain 
  |   /web
  |  
  | 
  | 

I have also tried editing jboss.xml, though I am not actually using this for 
EJBs yet.  I package everything in an EAR.


  | 
  | 
  | java:jaas/webappDomain 
  | 
  | 
  | 
  | 
  | 
  | Standard CMP 2.x EntityBean with cache 
invalidation
  | 
  | A   
  | 
  | true
  | 
  | webGroup
  |  
  | 
  | 
  | 
  | 
  | 
  | AccountCategoryPricing
  | True
  | 
  | 
  | ProductData
  | True
  | 
  | 
  | 
  | 

Any help would be appreciated.

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

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


[jboss-user] [JBoss Seam] - Re: New fileUpload component

2007-01-23 Thread [EMAIL PROTECTED]
anonymous wrote : This fileUpload component is very easy to use, but I am 
wondering how to get the uploaded file properties, e.g. type, name. Thank you.

Shane added that last night. It looks like:



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

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


[jboss-user] [JBoss Seam] - Re: Advice on Security System

2007-01-23 Thread [EMAIL PROTECTED]
Pete, its better to add that list to the JIRA issue.

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

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


[jboss-user] [JBoss Seam] - Re: Cancel with h:commandButton

2007-01-23 Thread [EMAIL PROTECTED]
There is no reason why immediate=true should stop @End from working.

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

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


[jboss-user] [Installation, Configuration & Deployment] - How scalable is JBOSS cluster per instance?

2007-01-23 Thread ajbiv
This may be off topic, but I was hoping maybe someone could point me to some 
information that might be helpful.

I am trying to answer an RFP for my company. They essentially want to know how 
many users our application can support...then by adding another instance how 
much does that buy us. Obviously, this question has a lot to do with our 
application...but i was hoping there might be some documentation or metrics out 
there resembling our system

We have a system that runs a JBoss cluster with two instances. We primarily use 
the JMS/MDB and run web applications backed by a Clustered MySql server.

anyone have any ideas, this RPF is *super duper high priority* and i don't 
really have time to setup performance tests. I'd like to say we can handle a 
million users but i need something to back that up obviously.



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

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


[jboss-user] [Installation, Configuration & Deployment] - Symlink Resouce bundles and symlinks

2007-01-23 Thread YosarianTheGreat
We're trying to upgrade to 4.0.5 but have hit a snag.  We use 
Class.findResource and ResourceBundle.getBundle to locate properties files 
which exist in WEB-INF/classes.  Because we have different environments (dev, 
stage, prod) we need multiple versions of these properties files.  In order to 
keep from having a mess in source control, we have three distinct files and 
symlink to the correct file in the given environment.  Previously with 4.0.1 
this worked fine, but with 4.0.5 it can't locate the file.  Removing the 
symlink and making a copy or even making a hard link works, but symlinks don't. 
 Hard links is a workable solution, but it's not as desirable as symlinks b/c 
it looks like a distinct file, and that might be confusing.

Here's what we have:

WEB-INF/classes/Configuration.properties -> 
WEB/classes/Configuration.properties.prod
WEB-INF/classes/Configuration.properties.dev
WEB-INF/classes/Configuration.properties.stage
WEB-INF/classes/Configuration.properties.prod

David

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

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


[jboss-user] [Clustering/JBoss] - When to add another instance

2007-01-23 Thread ajbiv

This may be off topic, but I was hoping maybe someone could point me to some 
information that might be helpful.

I am trying to answer an RFP for my company.  They essentially  want to know 
how many users our application can support...then by adding another instance 
how much does that buy us.  Obviously, this question has a lot to do with our 
application...but i was hoping there might be some documentation or metrics out 
there resembling our system

We have a system that runs a JBoss cluster with two instances.  We primarily 
use the JMS/MDB and run web applications backed by a Clustered MySql server.

anyone have any ideas, this RPF is *super duper high priority* and i don't 
really have time to setup performance tests.  I'd like to say we can handle a 
million users but i need something to back that up obviously.

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

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


  1   2   3   >