[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: mysql connection reset

2007-12-14 Thread trunikov
Hi tomerbd2!
Below is a fragment from J/Connector manual about parameter autoReconnect :
anonymous wrote : Should the driver try to re-establish stale and/or dead 
connections? If enabled the driver will throw an exception for a queries issued 
on a stale or dead connection, which belong to the current transaction, but 
will attempt reconnect before the next query issued on the connection in a new 
transaction. The use of this feature is not recommended, because it has side 
effects related to session state and data consistency when applications don't 
handle SQLExceptions properly, and is only designed to be used when you are 
unable to configure your application to handle SQLExceptions resulting from 
dead and stale connections properly. Alternatively, investigate setting the 
MySQL server variable "wait_timeout" to some high value rather than the default 
of 8 hours.
As stated use parameter autoReconnect is a bad practice. I think you should 
tune value of a tag idle-timeout-minutes in your data source descriptor. A 
description/example of how to do that is here.
Also tags check-valid-connection-sql and new-connection-sql could be useful.
Below is an example of a data source descriptor:



xxxDS
jdbc:mysql://127.0.0.1:3306/xxx
com.mysql.jdbc.Driver
xxx
yyy

MySQL

5
20
10
select 
1
select 1

org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter

org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker





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

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


[jboss-user] [EJB 3.0] - EJB3 Exception:->>Can't commit because the transaction is in

2007-12-14 Thread adha.umashankar
Hi Friends,
   I have deployed one entity and session bean in jboss. when I m 
trying to calling it. client throw me this exception. 

Exception in thread "main" java.lang.RuntimeException: 
javax.transaction.RollbackException: 
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] 
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't 
commit because the transaction is in aborted state
at 
org.jboss.aspects.tx.TxPolicy.handleEndTransactionException(TxPolicy.java:198)
at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:180)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
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:110)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:573)
at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:373)
at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:166)
Caused by: javax.transaction.RollbackException: 
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] 
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't 
commit because the transaction is in aborted state
at 
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1401)
at 
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
at 
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
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:110)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:769)
at 
org.jboss.remoting.transport.socket.ServerTh

[jboss-user] [JBoss Seam] - Re: How to get a child/reference entity to load when the par

2007-12-14 Thread matt.drees
"[EMAIL PROTECTED]" wrote : 
  | I tried instantiating the Account class within my register class and 
setting the value on the User, but that resulted in a datasource exception when 
i persisted the user.
  | 

I think that ought to work...

What's the exception you get?

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

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


[jboss-user] [JBoss Seam] - Structure of Seam project for multi client distribution

2007-12-14 Thread gothmog
Hi,

We are developing a base product using seam for about two months so we have a 
pretty good demo, but we have just got out first customer and we want to be 
able to structure the project so we can provide customization for the new 
client as well as maintaining the base product in separate projects

Initially the customisation needs to be only in the war file but ultimetly want 
to provide the ejb file for the new client customisation code and base 
everything from the main product ejb file.

So all we still want to have access to all the controllers and entity classes 
in the base product with the ability to override controller logic (by using 
inheritence) so customisation can be done. We want to get all the entities from 
the base product as well as being able to add new ones.

I have tried this by creating a new ear project structure for the new client 
and adding the compiled base ejb jar as another module reference in the 
application.xml file. The problem is that all the entities in the base ejb jar 
file are not being processed as such (i.e. via thier annotations) and the new 
project structure can't see them.

Any ideas about how to do this?

Thanks

Troy

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

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


[jboss-user] [JBoss Seam] - Seam PDF documents and conditional content

2007-12-14 Thread gothmog
Hi,

How does one do conditional content in seam pdf files. It seems there is no 
rendered attribute equivalent on all the  tags and I couldn't get either 
 tags to work or  tags to work.

Has anyone done this before?

Troy

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

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


[jboss-user] [JBoss Seam] - Re: Contributing to SEAM

2007-12-14 Thread [EMAIL PROTECTED]
If you mean to contribute actual code, the place to start is:  
http://labs.jboss.com/contributor/

Once you have done that, we can use the patches you submit through JIRA.   
Regular contributors can also get commit access, but that usually only happens 
when you contribute so much that we get tired of spending all our time 
committing your patches instead of writing our own code.  :)

We definitely welcome anyone who is interested in Seam to step forward and 
contribute.  We're a very open project.



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

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


[jboss-user] [JBoss Seam] - Re: Developing with Seam 2 and deploying on WebSphere

2007-12-14 Thread hirowla
You could using the EJB3 pack for WebSphere, but you may run into other 
problems. That's where I'm at - I can't get past those other problems.

Anybody got it working with the EJB3 pack on WebSphere?

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

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


[jboss-user] [JCA/JBoss] - Re: MSSQL XA datasource throws RollbackException on cluster

2007-12-14 Thread ratrask
I tried setting CREATE_TABLES_ON_STARTUP = FALSEthat did not seem to have any 
impact. 

I was concerned about the error, because it was evident that it stopped 
processing the initialization at the point of the error, because there were 
other errors that would have been reported had it continued. i.e. there were 
other tables that were already created which would have caused identical errors 
that were not being reported.

So I did a bit of work and changed the SQL in mssql-jdbc2-service.xml config 
file. hsqldb-jdbc-state-service.xml also contained code which generated the 
errors, so I made a copy and renamed it to mssql-jdbc-state-service.xml

The changes that I made are as follows:

mssql-jdbc2-service.xml
  | 
  | 
  | 
  | 
  | 
  |   
  |   
  |   
  |   
  |   
  | 
  |   
  |   
  | jboss.mq:service=MessageCache
  | jboss.mq:service=PersistenceManager
  | jboss.mq:service=StateManager
  |   
  | 
  |   
  |   
  | 50
  | 60
  | jboss.mq:service=PersistenceManager
  |   
  | 
  |   
  |   
  |   
  | jboss.jca:service=DataSourceBinding,name=DefaultDS
  | 
  |   BLOB_TYPE=BINARYSTREAM_BLOB
  |   INSERT_TX = INSERT INTO JMS_TRANSACTIONS (TXID) values(?)
  |   INSERT_MESSAGE = INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, 
MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?)
  |   SELECT_ALL_UNCOMMITED_TXS = SELECT TXID FROM JMS_TRANSACTIONS
  |   SELECT_MAX_TX = SELECT MAX(TXID) FROM JMS_MESSAGES
  |   DELETE_ALL_TX = DELETE FROM JMS_TRANSACTIONS
  |   SELECT_MESSAGES_IN_DEST = SELECT MESSAGEID, MESSAGEBLOB FROM 
JMS_MESSAGES WHERE DESTINATION=?
  |   SELECT_MESSAGE_KEYS_IN_DEST = SELECT MESSAGEID FROM JMS_MESSAGES 
WHERE DESTINATION=?
  |   SELECT_MESSAGE = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES 
WHERE MESSAGEID=? AND DESTINATION=?
  |   MARK_MESSAGE = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE 
MESSAGEID=? AND DESTINATION=?
  |   UPDATE_MESSAGE = UPDATE JMS_MESSAGES SET MESSAGEBLOB=? WHERE 
MESSAGEID=? AND DESTINATION=?
  |   UPDATE_MARKED_MESSAGES = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE 
TXOP=?
  |   UPDATE_MARKED_MESSAGES_WITH_TX = UPDATE JMS_MESSAGES SET TXID=?, 
TXOP=? WHERE TXOP=? AND TXID=?
  |   DELETE_MARKED_MESSAGES_WITH_TX = DELETE FROM JMS_MESSAGES WHERE TXID 
IN (SELECT TXID FROM JMS_TRANSACTIONS) AND TXOP=?
  |   DELETE_TX = DELETE FROM JMS_TRANSACTIONS WHERE TXID = ?
  |   DELETE_MARKED_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXID=? AND 
TXOP=?
  |   DELETE_TEMPORARY_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXOP='T'
  |   DELETE_MESSAGE = DELETE FROM JMS_MESSAGES WHERE MESSAGEID=? AND 
DESTINATION=?
  |   CREATE_MESSAGE_TABLE = IF OBJECT_ID (N'dbo.JMS_MESSAGES', N'U') IS 
NULL CREATE TABLE JMS_MESSAGES (MESSAGEID INTEGER NOT NULL, DESTINATION 
VARCHAR(150) NOT NULL, TXID INTEGER, TXOP CHAR(1), MESSAGEBLOB IMAGE)
  |   CREATE_IDX_MESSAGE_TXOP_TXID = IF 
dbo.CHECK_FOR_INDEX('dbo.JMS_MESSAGES','JMS_MESSAGES_TXOP_TXID') = 0 CREATE 
INDEX JMS_MESSAGES_TXOP_TXID ON JMS_MESSAGES (TXOP, TXID)
  |   CREATE_IDX_MESSAGE_DESTINATION = IF 
dbo.CHECK_FOR_INDEX('dbo.JMS_MESSAGES','JMS_MESSAGES_DESTINATION') = 0 CREATE 
INDEX JMS_MESSAGES_DESTINATION ON JMS_MESSAGES (DESTINATION)
  |   CREATE_IDX_MESSAGE_MESSAGEID_DESTINATION = IF 
dbo.CHECK_FOR_INDEX('dbo.JMS_MESSAGES','JMS_MESSAGES_IDX') = 0 CREATE UNIQUE 
CLUSTERED INDEX JMS_MESSAGES_IDX ON JMS_MESSAGES (MESSAGEID, DESTINATION)
  |   CREATE_TX_TABLE = IF OBJECT_ID (N'dbo.JMS_TRANSACTIONS', N'U') IS 
NULL CREATE TABLE JMS_TRANSACTIONS ( TXID INTEGER, PRIMARY KEY (TXID) )
  |   CREATE_TABLES_ON_STARTUP = TRUE
  | 
  | 
  | 
  | 
  | 0
  |   
  | 
  | 

The changes that I made are highlighted in red. What I did was to add a check 
to verify that the table does not exist prior to creating it. I could find no 
similar check to verify that the index does not exist , so I wrote a scalar 
function that would perform the check. I ran the create script as the jboss 
user. The function definition follows:

  | use jboss
  | go
  | 
  | IF OBJECT_ID(N'dbo.CHECK_FOR_INDEX', N'FN') IS NOT NULL
  | DROP FUNCTION dbo.CHECK_FOR_INDEX;
  | GO
  | 
  | CREATE FUNCTION dbo.CHECK_FOR_INDEX (@TABLE_NAME VARCHAR(256), @INDEX_NAME 
VARCHAR(256))
  | RETURNS int
  | AS
  | BEGIN
  | DECLARE @RETV int,
  | @TABLE_ID int
  | 
  |set @TABLE_ID=OBJECT_ID(@TABLE_NAME,N'U');
  | 
  | IF @TABLE_ID IS NULL
  | BEGIN;
  |RETURN 0;
  | END;
  | 
  | SELECT @RETV = COUNT(*)
  | FROM sys.indexes AS i
  | INNER JOIN sys.data_spaces AS ds ON i.data_space_id = ds.data_space_id
  | WHERE is_hypothetical = 0 AND i.index_id <> 0 
  | AND i.object_id = @TABLE_ID
  | AND [EMAIL PROTECTED];
  | --PRINT 'Database = ' + @TABLE_NAME + ' Index = ' + @INDEX_NAME
  | --PRINT @RETV;
  | RETURN @RETV;
  | END;
  | GO
  | 

To complete the changes I made, to resolve th

[jboss-user] [JBoss Seam] - Contributing to SEAM

2007-12-14 Thread allonrauer
What is the process by which one can become a contributor to this project?
Sorry if this is already covered, but I couldn't found any info...

Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: How to get a child/reference entity to load when the par

2007-12-14 Thread dustismo
Ah, I guess I didn't read your code close enough.  


If you want to do something like:

  | if (existing.size()==0)
  |   {
  | user.setAccount(new Acount(/*initialization params*/));
  |  em.persist(user);
  |  log.info("Registered new user #{user.username}");  
 
  |  return "/registered.xhtml";
 
  |   }
  | 

you need to add cascading to your user model.. i.e.

  | @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY )
  | @JoinColumn( name = "account_id" )
  | public Account getAccount()
  | {
  | return this.account;
  | }
  | 
  | 


Hope that helps,
Dustin

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

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


[jboss-user] [JBoss Seam] - Re: External AJAX access to webremote?

2007-12-14 Thread whafrog
For those interested, Seam appears to be using the XmlHttpRequest.responseXML 
property, but this triggers a Firefox/javascript/security problem, in that you 
aren't allowed to access the XML version of the data you're requesting.

You can, however, get the raw text, do your own reparsing, and play as you 
please:

// hack, since Firefox won't allow access to responseXML
  | var xmlDoc = (new DOMParser()).parseFromString(xmlHttpRequest.responseText, 
"text/xml");

Perhaps the Seam remoting libraries should incorporate this...


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

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


[jboss-user] [JBoss Seam] - Re: How to get a child/reference entity to load when the par

2007-12-14 Thread dustismo
You do realize that your query is returning a list of strings *not* a list of 
Users?

This is what I would do..

  | List existing = em.createQuery(
  |  "select u from User u JOIN FETCH u.account where 
username=#{user.username}")
  |  .getResultList();
  | 

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

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


[jboss-user] [JBoss Seam] - Re: How to get a child/reference entity to load when the par

2007-12-14 Thread [EMAIL PROTECTED]
The query is only checking for existing users with the same username. This 
should come back with an empty result set if the username is unique.

I believe that Seam has created and populated the User object with parameters 
from the JSF page prior to the call to my Register.register().

My question is how do I get the Account object instantiated with the User 
object in Seam?

Thanks

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

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


[jboss-user] [JBoss Seam] - Re: Using Seam with Facelets and EL Parameters

2007-12-14 Thread dustismo
Looks like your syntax is wrong..

Things to check

you have a bean named 'SecurityManager'?
i.e.

  | @Name("SecurityManager")
  | 

you have a variable in the current context called "View_Position"?
That is, assuming you didn't mean to write:


  | rendered="#{SecurityManager.isAllowed('View_Position')}">
  | 



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

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


[jboss-user] [JBoss Seam] - How to get a child/reference entity to load when the parent

2007-12-14 Thread [EMAIL PROTECTED]
I have created a user registration page following the example included with the 
seam booking example. The only difference is that my User entity has a 
reference to another entity called account. The user is mapped to an account. 

My User class looks like this:
/**
  |  * User
  |  */
  | @Entity
  | @Table( name = "t_user", uniqueConstraints = @UniqueConstraint( columnNames 
= "username" ) )
  | public class User implements java.io.Serializable
  | {
  | private int id;
  | private Account account;
  | 
  | [...]
  | 
  | 
  | @Id
  | @Column( name = "id", unique = true, nullable = false )
  | @NotNull
  | public int getId()
  | {
  | return this.id;
  | }
  | 
  | public void setId( int id )
  | {
  | this.id = id;
  | }
  | 
  | @ManyToOne( fetch = FetchType.LAZY )
  | @JoinColumn( name = "account_id" )
  | public Account getAccount()
  | {
  | return this.account;
  | }
  | 
  | public void setAccount( Account account )
  | {
  | this.account = account;
  | }
  | 
  | [...]
  | }

My Registration class looks like this:


  | @Stateless  
 
  | @Name("register")
  | public class RegisterAction implements Register
  | {
  |@In  
 
  |private User user;
  |
  |@PersistenceContext  
 
  |private EntityManager em;
  |
  |@Logger  
 
  |private Log log;
  |
  |public String register() 
 
  |{
  |   List existing = em.createQuery(
  |  "select username from User where username=#{user.username}")   
 
  |  .getResultList();
  |  
  |   if (existing.size()==0)
  |   {
  |  em.persist(user);
  |  log.info("Registered new user #{user.username}");  
 
  |  return "/registered.xhtml";
 
  |   }
  |   else
  |   {
  |  FacesMessages.instance().add("User #{user.username} already 
exists");   
  |  return null;
  |   }
  |}
  | 
  | }

Pretty straight forward. However when the JSF page is loaded and the user 
clicks on the register button after adding their information, I get a null 
pointer exception for Account because Seam instantiates the user component, and 
returns the resulting User entity bean instance to JSF after storing it in the 
Seam session context, but the Account component is never created.

I tried instantiating the Account class within my register class and setting 
the value on the User, but that resulted in a datasource exception when i 
persisted the user.

I have tried using the UserHome session bean, but the Account class is never 
added to the User class. 

How do I go about instantiating and setting the Account on User?

I am missing something obvious here (could be because it is Friday and I am on 
my 70th hour). Any help would be appreciated.



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

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


[jboss-user] [JBoss Seam] - Re: Unable to shutdown server after adding seam PDF support

2007-12-14 Thread eric_bmx
This was resolved by moving jfreechart.jar and jcommon.jar out of WEB-INF/lib 
and into jboss/server//lib.

This perhaps explains some of the strangeness in the documentation on 
activating PDF support.  The instructions make the assumption that jfreechart 
and jcommon are available on the path independent from the application.  I 
don't know if it's necessary to update the JIRA documentation fix entry 
http://jira.jboss.org/jira/browse/JBSEAM-2372 to specify this.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - 8 steps for setting up multiple instances jboss 4.2.1

2007-12-14 Thread plmc
This isn't a question but I spent more time then was probably necessary 
figuring this out, I thought the information should be available to others.

8 steps for setting up multiple instances on jboss 4.2.1 

1) cd /server/default
2) copy default to mynode1
   Linux: find . -print | cpio -pdumv ../mynode01
  
3) cd /server
4) cp /docs/examples/binding-manager/sample-bindings.xml 
/server/port-bindings.xml
5) cd mynode1
6) edit jboss-service.xml
- Search for Service Binding
   - uncomment the mbean element directly below Service Binding and above Class 
Loading
  - change location of StoreURL to 
   file:../server/port-bindings.xml
  -save changes and quit
7) cd /bin
  run.sh -c mynode1  
or  run.sh -c mynode1 -b 0.0.0.0 

8) verify by opening a browser and browse to http://yourip:8180


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

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


[jboss-user] [Beginners Corner] - Having occasional SocketExceptions when talking to JBoss 4.2

2007-12-14 Thread eightmd
I tried to post this earlier but didn't see it show up. I apologize if it gets 
posted twice.

I'm not exactly new to JBoss but I've never dug down very deep into it. I've 
looked around and haven't been able to answer my question so any help would 
beappreciated.

I'm running some tests with my application in JBoss using httpClient 3.0.1 to 
send the URLs to Apache 2.2.6, which routes them to JBoss 4.2.2GA. Java release 
is 1.5.0.10. My client machine is running Linux 2.6.15.4 Fedora Core 3. The 
server running JBoss is running Linux 2.6.18-1.2869.fc6. I am running my testin 
Eclipse 3.1.0.

My test client is getting about 10% errors. Most of them are  
java.net.ConnectException: Connection refused but some are 
java.net.SocketException: Connection reset. When I look in the JBoss log I see 
it's getting some ClientAbortException:  java.net.SocketException: Broken pipe.

Obviously JBoss is listening on the port and performs most of the requests. I 
am not hitting the server all that hard. My test client will see this happen 
when it sends a request every 5 seconds. The requests involve uploading a file. 
Maximum threads I'm allowing for JBoss is 200 and its only using around 18. I 
think Apache has around 200 but I'm not sure.

It looks like the server thinks the client is closing the connection at times. 
Looks like the client is getting the connection reset by the server (connection 
reset), and the server is not listening sometimes (connection refused).

If anyone has any ideas that I should try please let me know. Thanks in advance.

Server and client stack traces follow.

This is the stack trace from the JBoss server log:
23:37:01,973 ERROR [STDERR] ClientAbortException:  java.net.SocketException: 
Broken pipe
23:37:01,974 ERROR [STDERR] at 
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)
23:37:01,974 ERROR [STDERR] at 
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)
23:37:01,974 ERROR [STDERR] at 
org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)
23:37:01,974 ERROR [STDERR] at 
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)
23:37:01,974 ERROR [STDERR] at 
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)
23:37:01,974 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)
23:37:01,974 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)
23:37:01,974 ERROR [STDERR] at 
com.convera.ews.commons.EWSUtils.sendDocument(EWSUtils.java:194)
23:37:01,974 ERROR [STDERR] at 
com.convera.ews.core.servlet.ExcaliburWSAdminServlet.doRequest(ExcaliburWSAdminServlet.java:323)
23:37:01,974 ERROR [STDERR] at 
com.convera.ews.core.servlet.ExcaliburWSAdminServlet.doGet(ExcaliburWSAdminServlet.java:684)
23:37:01,974 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
23:37:01,974 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
23:37:01,974 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
23:37:01,974 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
23:37:01,974 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
23:37:01,974 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
23:37:01,974 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
23:37:01,975 ERROR [STDERR] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
23:37:01,975 ERROR [STDERR] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
23:37:01,975 ERROR [STDERR] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
23:37:01,975 ERROR [STDERR] at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
23:37:01,975 ERROR [STDERR] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
23:37:01,975 ERROR [STDERR] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
23:37:01,975 ERROR [STDERR] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
23:37:01,975 ERROR [STDERR] at 
com.convera.ews.logging.valves.EWSAccessLogValve.invoke(EWSAccessLogValve.java:492)
23:37:01,975 ERROR [STDERR] at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
23:37:01,975 ERROR [STDERR] at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
23:37:01,975 ERROR [STDERR] at 
org.apache.coyote.ajp.AjpProcessor.process(AjpProce

[jboss-user] [Messaging, JMS & JBossMQ] - Re: Unable to browse messages in queue LRUCache error

2007-12-14 Thread tnine
Sorry, forgot to include that!  4.0.5 GA

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

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


[jboss-user] [JBossWS] - Re: ServiceLifecycle in JossWS 2.0.1

2007-12-14 Thread perrucci
Thank you Richard.
May you give me an hint on howto simulate init() behaviour using jax-ws new 
functionalities (on jsr181 web services)? 

Thank you
Paolo

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

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


[jboss-user] [JBoss Portal] - Re: Myface problem on jboss portlet

2007-12-14 Thread aamonten
Hi, you are not specifying what version of AS and Portal you are using, so it 
can be a little difficult to give you a right answer. But I am supposing that 
you are using the latest version.

Well at the wiki they have documented how to use MyFaces, take a look at 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBoss5AndMyFaces. An interesting 
observation is that on the wiki they say: anonymous wrote : There is no 
technical reason to use MyFaces Core on JBoss 4.2 or JBoss 5.x. 

Regards
Alejandro

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

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


[jboss-user] [Clustering/JBoss] - Setting up multiple instances of JBoss in different machines

2007-12-14 Thread viswanadhvk
Hi all, I would like to set up multiple instances of JBoss in different 
machines.

I mean to say, I want to creat 1 node in my machine, and another node (say 
node2) in another machine, and want to pull them into cluster.

Please help me out any link or any steps to do that. I didn't find information 
regarding this in "http://www.jboss.org/wiki/Wiki.jsp?page=JBossHA";. 

So please put some light on this.

Thanks!
VVk 

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

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


[jboss-user] [JBoss Seam] - Using Seam with Facelets and EL Parameters

2007-12-14 Thread frosted
I am having an issue with using Seam with passed in Action Parameters in EL.  I 
am tied to WebLogic right now, and hearing about the EJB3 issues that Seam has, 
I just want to use the UI features of Seam in order to pass parameters to 
method calls in the EL.  I am using Seam 2.0 GA, Facelets 1.1-13, and RichFaces 
latest release along with the Sun RI Implementation of JSF.  

In a facelets page I have the following code: 


  | 
  | 

This is throwing an exception: 
com.sun.facelets.tag.TagAttributeException: 
//C:/dev/workspace/AppName/WebContent/WEB-INF/tabs/position.xhtml @15,68 
rendered="#{SecurityManager.isAllowed(View_Position)}" Error Parsing: 
#{SecurityManager.isAllowed(View_Position)}
  | at 
com.sun.facelets.tag.TagAttribute.getValueExpression(TagAttribute.java:259)
  | at 
com.sun.facelets.tag.jsf.ComponentRule$ValueExpressionMetadata.applyMetadata(ComponentRule.java:69)
  | at com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
  | at 
com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:144)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at com.sun.facelets.tag.jsf.core.ViewHandler.apply(ViewHandler.java:109)
  | 

My web.xml looks like this: 

  | http://www.w3.org/2001/XMLSchema-instance";
  | xmlns="http://java.sun.com/xml/ns/javaee";
  | 
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
  | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
  | id="WebApp_ID" version="2.5">
  | 
  | DisplayName
  | 
  | 
  | 
  | org.jboss.seam.servlet.SeamListener
  | 
  | 
  | 
  | Seam Resource Servlet
  | 
org.jboss.seam.servlet.SeamResourceServlet
  | 
  | 
  | 
  | Seam Resource Servlet
  | /seam/resource/*
  | 
  | 
  | 
  | Seam Filter
  | org.jboss.seam.servlet.SeamFilter
  | 
  | 
  | 
  | Seam Filter
  | /*
  | 
  | 
  | 
  | 
  | 
  | 
  | Faces Servlet
  | javax.faces.webapp.FacesServlet
  | 1
  | 
  | 
  | 
  | Faces Servlet
  | *.jsf
  | 
  | 
  | 
  | javax.faces.DEFAULT_SUFFIX
  | .xhtml
  | 
  | 
  | 
  | facelets.VIEW_MAPPINGS
  | *.jspx;*.xhtml;
  | 
  | 
  | 
  | facelets.DEVELOPMENT
  | true
  | 
  | 
  | 
  | facelets.REFRESH_PERIOD
  | 2
  | 
  | 
  | 
  | facelets.LIBRARIES
  | 
  | /WEB-INF/htmLib.taglib.xml;
  | /WEB-INF/facelets/tags/dems.taglib.xml;
  | 
  | 
  | 
  | 
  | 
  | 
  | org.richfaces.SKIN
  | blueSky
  | 
  | 
  | 
  | Ajax4jsf Filter
  | ajax4jsf
  | org.ajax4jsf.Filter
  | 
  | 
  | 
  | ajax4jsf
  | Faces Servlet
  | REQUEST
  | FORWARD
  | INCLUDE
  | 
  | 
  | 
  | 
  | 

My faces-config.xml:

  | 
  | http://java.sun.com/xml/ns/javaee";
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd";
  | version="1.2">
  |   
  | org.jboss.seam.el.SeamELResolver
  | 
  |   en
  | 
  | com.sun.facelets.FaceletViewHandler
  |   
  |   
  | 
  | 
com.sun.faces.application.ApplicationFactoryImpl
  | 
com.sun.faces.context.FacesContextFactoryImpl
  | 
com.sun.faces.lifecycle.LifecycleFactoryImpl
  | 
com.sun.faces.renderkit.RenderKitFactoryImpl
  | 

It seems that the FaceletViewHandler is still being used to interpret EL 
expressions.  I find documentation relating to Seam 1.1 that refer to a 
SeamFaceletViewHandler, but that seems to be missing from Seam 2.0.  Is there 
something glaringly obvious I am missing?  Please let me know if you need 
further information regarding my configuration or anything else.  

Thanks!


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

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


[jboss-user] [JBoss Messaging] - Re: JBoss Messaging 1.4 - no clustered post office?

2007-12-14 Thread bodrin
nice, should be in bold I think..

But, is there a way to disable the round robin behaviour of the 
ClusteredConnectionFactory? 

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

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


[jboss-user] [JBoss Seam] - seam-gen : reverse DB : many-to-many convention ?

2007-12-14 Thread damienhuriet
Hi ! 

I'm trying to find the convention to use so that seam-gen generates a 
many-to-many relationship. 

I'm using seam 2.0 in Eclipse Europa and JBossTools. 
My DB is in MySQL 5.0. 
The wizards to "generate entities" from an existing DB works very well. 

I'have understood that there is a convention to name the link table to preform 
the many-to-many relationship between two other tables, 
but I could not find a precise description of it. 

What name should I give to this link table ? 
Is there other thing than the name to do ? 

Thanks in advance ! 
And thanks JBoss and all the contributers for their great job about Seam ! 
It rocks ! 

Damien 


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: org.jboss.resource.adapter.jdbc.WrappedCallableStatement

2007-12-14 Thread cybercollege
Thank you Jaikiran for the your assistance. I am using Eclipse, I have added 
jboss-common-jdbc-wrapper.jar file which contains the 
org.jboss.resource.adapter.jdbc.WrappedCallableStatement; 
but when I try to import as follow:

import org.jboss.resource.adapter.jdbc.WrappedCallableStatement;

I get the following error:

The import org.jboss.resource.adapter.jdbc.WrappedCallableStatement 
cannot be resolved. 

There are so many other classes in org.jboss.resource.adapter.jdbc and I have 
tried importing a few and they are imported successfully. I don't understand 
what's the problem with the one I need to import. 

If you (or any body) has any suggestion, please reply.

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

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


[jboss-user] [JBoss Seam] - Re: a4j:include and Seam

2007-12-14 Thread matt.drees
What version of Seam are you using?

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - seam-gen : reverse-engineering DB : convention to define man

2007-12-14 Thread damienhuriet
 Hi !

I'm trying to find the convention to use so that seam-gen generates a 
many-to-many relationship.

I'm using seam 2.0 in Eclipse Europa and JBossTools.
My DB is in MySQL 5.0.
The wizards to "generate entities" from an existing DB works very well.

I'have understood that there is a convention to name the link table to preform 
the many-to-many relationship between two other tables, 
but I could not find a precise description of it.

What name should I give to this link table ?
Is there other thing than the name to do ?

Thanks in advance !
And thanks JBoss and all the contributers for their great job about Seam !
It rocks !

Damien



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

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


[jboss-user] [JBoss Portal] - Re: Using CMS with alternate Admin user still broken in 2.6.

2007-12-14 Thread swisst
Changing all of the other references from Admin to my LDAP group fixed the 
Access Denied issue.

So I guess what I'm left with is wondering why we still need a magic user, who 
now doesn't have to be called Admin but must be a user and not a group.  
I'll wait a few days before I submit the request in Jira...

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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Access Logging enabled but no data written to log files

2007-12-14 Thread Atomicron
Hello,

I am trying to enable access logging in JBoss 4,2. I have uncommented the 
appropriate Valve in server.xml, restarted JBoss, and an empty log file is 
being created for each day. However, no data is being written to these files.

I don't think I have permissions problem since JBoss is able to create the 
empty file in the first place. Are there more configurations that need to be 
made?

I am running JBoss AS 4.2.1.GA on Ubuntu 7.10.



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

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


[jboss-user] [JBoss Portal] - Re: Using CMS with alternate Admin user still broken in 2.6.

2007-12-14 Thread swisst
Ug...this is the case.  You must name one user (not a group) as the Admin 
for CMS.  

Does anyone else think this is a bad idea and worthy of Feature Request?  
What's the point of having user groups if you still need individual magic 
accounts?

On another note, even though I don't get start-up errors, I still get an 
"Access Denied" when going to the CMS tab in the Admin Portal.  I'm guessing I 
just have to update the portal-cms.sar/META-INF/jboss-service.xml file and 
change all references to 'Admin' to either my Admin user (consistent with this 
fix) or my Admin LDAP group (consistent with all of the other Admin portlets).

I'll let you know what I find out...



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

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


[jboss-user] [JBoss Seam] - Re: a4j:include and Seam

2007-12-14 Thread maykellff
Can anybody help me...?

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

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


[jboss-user] [JBoss Portal] - Using CMS with alternate Admin user still broken in 2.6.3?

2007-12-14 Thread swisst
I have LDAP working great, and have for a few months (Thanks to Tobias and his 
wiki post).  I just downloaded and installed the bundled version of Portal 
2.6.3.  I was trying out this fix:

http://jira.jboss.com/jira/browse/JBPORTAL-1740

Because I am connected to an existing LDAP structure and do not have a user 
named 'Admin', I was hoping this would fix my CMS issue.  I updated the two 
files specified in the JIRA task with my LDAP Admin user GROUP and get errors 
on start-up.  Do I have to have a named Admin User as opposed to an LDAP group? 
 I hope not

Here are the errors:

12:16:32,062 WARN  [ServiceController] Problem starting service 
portal:service=CMS
  | java.lang.RuntimeException: org.jboss.portal.identity.NoSuchUserException: 
No such user No user found with name: My_Admin_Users
  | at 
org.jboss.portal.cms.security.AuthorizationProviderImpl.getRoot(AuthorizationProviderImpl.java:227)
  | at org.jboss.portal.cms.impl.jcr.JCRCMS.createContent(JCRCMS.java:359)
  | at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:314)
  | at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:267)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
  | at 
org.jboss.portal.jems.as.system.AbstractJBossService.start(AbstractJBossService.java:73)
  | at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  | at java.lang.reflect.Method.invoke(Method.java:615)
  | at 
org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.execute(JBossServiceModelMBean.java:486)
  | at 
org.jboss.portal.jems.as.system.JBossServiceModelMBean$ServiceMixin.startService(JBossServiceModelMBean.java:452)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
  | at 
org.jboss.portal.jems.as.system.JBossServiceModelMBean$6.invoke(JBossServiceModelMBean.java:374)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at org.jboss.system.ServiceController.start(ServiceController.java:435)
  | at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  | at java.lang.reflect.Method.invoke(Method.java:615)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  | at java.lang.reflect.Method.invoke(Method.java:615)
  | at 
org.jboss.mx.interceptor.Reflecte

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Does Jboss have a proxy service/servlet of some kind?

2007-12-14 Thread kkwiatek
Hello,

Let's say I have a web server that does not, and can not use https, only http.

1) Can I stand up a jboss server to receive https connections and proxy them to 
the backend server via http, and then provide the response via https?

2) Does Jboss have some servlet or service to proxy https and/or http?

thanks
Keith

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

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


[jboss-user] [JBoss Seam] - Re: Redirect based on identity-roles

2007-12-14 Thread lsabin
Hi.

I am having problems with the suggested solution. This is the relevant portion 
of my pages.xml:


  | 
  | 
  | 
  |  
  | 
  | 
  | 
  |  
  | 
  | 

The first time the user with role 'user' logs it gets redirected to the 
home.xhtml page. But if I logout and log in again it works and redirects to 
details.xhtml.

Could someone explain this behaviour?

Thanks.



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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: Unable to browse messages in queue LRUCache error

2007-12-14 Thread genman
JBoss version? Just wondering if this might have been fixed already.

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

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


[jboss-user] [Messaging, JMS & JBossMQ] - Re: message persistence in a clustered environment

2007-12-14 Thread genman
I think it'd work if you use a separate schema owner or different table names 
for this. I pretty sure it would not work with shared tables.

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

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


[jboss-user] [JBoss AOP] - aop precompiler failed to resolve class reference

2007-12-14 Thread cripgrm
I set up an aopc ant task to run precompile.
In the process, it resolved class references from some other jar files.  It 
just failed to resolve those that reside in our own jca connector jar.
I even added the class files to the class path.
Please help.
Thanks.


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

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


[jboss-user] [Advanced Documentation] - Re: need help with scheduler

2007-12-14 Thread bb_app
thanks a lot for the reply. But, read somewhere the max is 36000. Tried to 
change it. But, didn't run. Any clue?

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

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


[jboss-user] [JBoss Seam] - Re: Fundamental question about em.persist

2007-12-14 Thread vanyatka
"[EMAIL PROTECTED]" wrote : What sort of persistence context are you using?

Standard out-of-the-box conversation-scoped SMPC injected with @In.


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

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


[jboss-user] [JBoss Tools (users)] - Re: Problem on Mac OS X Tiger with Tools 2.0.0 and JBAS 4.2.

2007-12-14 Thread cobour
it is simply the unzipped jbas 4.2.2 release. is it secured by default? my good 
old jbas 4.0.5 wasn't...

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

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


[jboss-user] [JBoss Seam] - Unable to shutdown server after adding seam PDF support

2007-12-14 Thread eric_bmx
After adding the jars 
jboss-seam-pdf.jar
itext.jar
jcommon.jar
jfreechart.ja

I am no longer able to shutdown JBoss.  The problem exists even if the there 
are no references to the DocumentStoreServlet in web.xml or document-store in 
components.xml.

The JBoss server.log file contains the following for the shutdown time
anonymous wrote : 
  | 2007-12-14 11:13:37,294 INFO  [org.jboss.system.server.Server] Shutting 
down the server, blockingShutdown: false
  | 2007-12-14 11:13:37,310 INFO  [org.jboss.system.server.Server] Server 
exit(0) called
  | 2007-12-14 11:13:37,310 INFO  [org.jboss.system.server.Server] Runtime 
shutdown hook called, forceHalt: true
  | 2007-12-14 11:13:37,310 INFO  [org.jboss.system.server.Server] JBoss 
SHUTDOWN: Undeploying all packages
  | 2007-12-14 11:13:37,310 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] 
undeploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
  | 2007-12-14 11:13:37,373 INFO  [org.jboss.web.tomcat.service.TomcatDeployer] 
undeploy, ctxPath=/bacTWeb, warUrl=.../tmp/deploy/tmp18770bacTWeb-exp.war/
  | 2007-12-14 11:13:37,388 INFO  [org.hibernate.impl.SessionFactoryImpl] 
closing
  | 2007-12-14 11:13:41,014 ERROR [STDERR] Exception in thread "AWT-Windows" 
  | 2007-12-14 11:13:41,014 ERROR [STDERR] java.lang.IllegalStateException: 
Shutdown in progress
  | 2007-12-14 11:13:41,014 ERROR [STDERR]  at 
java.lang.Shutdown.add(Shutdown.java:81)
  | 2007-12-14 11:13:41,014 ERROR [STDERR]  at 
java.lang.Runtime.addShutdownHook(Runtime.java:190)
  | 2007-12-14 11:13:41,014 ERROR [STDERR]  at 
sun.awt.windows.WToolkit.run(WToolkit.java:255)
  | 2007-12-14 11:13:41,014 ERROR [STDERR]  at 
java.lang.Thread.run(Thread.java:595)
  | 

Supposedly adding java.awt.headles=true is supposed to fix that "AWT-Windows 
exception" but assuming I have it being passed it properly, it is not.

Boot.log has the following lines, so I believe the headless property is likely 
being set properly
anonymous wrote : 
  | 11:09:30,334 DEBUG [ServerInfo] java.awt.printerjob: 
sun.awt.windows.WPrinterJob
  | 11:09:30,334 DEBUG [ServerInfo] awt.toolkit: sun.awt.windows.WToolkit
  | 11:09:30,334 DEBUG [ServerInfo] java.awt.headless: true
  | 11:09:30,334 DEBUG [ServerInfo] java.awt.graphicsenv: 
sun.awt.Win32GraphicsEnvironment
  | 

My guess is that it's related to JFreeChart or the BarCode support.  Does 
anybody have any ideas for what else I can try?  

Worst case I guess I could try to put together a trimmed down seam-pdf.jar that 
doesn't support charting, barcodes, or images as I don't require any of that.

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

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


[jboss-user] [JBossCache] - JBoss Cache 2.1.0.CR2 and 1.4.1.SP8 released

2007-12-14 Thread [EMAIL PROTECTED]
And another double-bill - this is becoming a habit. Apologies for not 
announcing these sooner; they were released over the past 2 weeks.

Details are all on the JBoss Cache blog - 

http://blog.jbosscache.org

Remember; download, use, feed back.  Very useful for us.

Enjoy, and Merry Christmas!
Manik

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

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


[jboss-user] [JNDI/Naming/Network] - Re: New EJB causes JNDI failure on existing EJB?

2007-12-14 Thread hmccartney
I've managed to fix it, but I don't understand how!

I mentioned before that application 2 on machine 2 contained a jndi.properties 
(to allow it to talk to machine 1). When I renamed this to 
application2.properties, the problem was solved.

I can only assume that this jndi.properties in application 2 was preventing the 
ejbs in application 1 from making themselves available to JNDI.

I don't quite understand why this should be. I could understand if application 
1 wanted to do an outward JNDI lookup and read the jndi.properties in 
application 2 by mistake. But I don't understand why it should affect inward 
JNDI.

If anyone is able to explain why a jndi.properties should have this kind of 
effect, I'd be interested to find out - but I'm just grateful it's fixed.

Thanks Jaikiran for your help.

Heather

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

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


[jboss-user] [JBoss jBPM] - Re: Process Definition XML Validation Problems

2007-12-14 Thread [EMAIL PROTECTED]
Hi Phong,

thanks for your reply. I added the name  attribute as well as the other 
attributes and validation still doesn't pass:

http://www.w3.org/2001/XMLSchema-instance";
  |  xsi:schemaLocation="urn:jbpm.org:jpdl-3.1 
http://jbpm.org/xsd/jpdl-3.2.xsd"; 
  |  name='todo'>  
  |  
  |  
  |
  |  
  |  
  |
  |  
  | 

Any other ideas? Can anyone else reproduce this problem?

n.b. For the record, we were actually trying to parse a much more complicated 
process definition and resorted to a simpler version to try and figure out what 
was going wrong. I omitted the name in the simple version. Thanks for pointing 
that out. 

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

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


[jboss-user] [JBoss Seam] - Non declarative DAOs?

2007-12-14 Thread haefti
Hi!
Is there any special support for data access objects (DAO) in a non declarative 
way?
The implicit way is nice but I think the components.xml will grow when using a 
lot of entities.

Thanks!

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

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


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

2007-12-14 Thread limousyf
Ok,
I replaced the s:selectItems by a good old fashioned f:selectItems backed to a 
List


  | public List getAssignableItems() {
  | assignableItems = new ArrayList();
  | 
  | for(Assignable value : this.getAvailableLines())
  | {
  | String prefix = "";   
  | if(value instanceof Regie){
  |prefix = "regie";
  |}
  |else if(value instanceof 
CollaborateurAffecte){
  |prefix = "collaborateurAffecte";
  |}
  |else if(value instanceof 
CollaborateurAffecteAstreinte){
  |prefix = 
"collaborateurAffecteAstreinte";
  |}
  |else if(value instanceof Conge){
  |prefix = "conge";
  |}
  |else if(value instanceof OperationsDiverses){
  |prefix = "operationsDiverses";
  |}
  | 
  | assignableItems.add( new SelectItem(prefix + 
"-" + value.getId(),value.getDesignation()));
  | }
  | return assignableItems;
  | }
  | 
As you can see, I'm converting manually in the getter.

And it actually works !


Well it works with f:selectItems and the s:selectItems code was working with 
seam 1.2 so I really guess there's a bug here but I'm not sure where I should 
debug to find it.

Got an hint on this ?

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

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


[jboss-user] [JBoss Messaging] - Re: JBoss Messaging 1.4 - no clustered post office?

2007-12-14 Thread timfox
"bodrin" wrote : Thanks, Tim!
  | 
  | The example works fine (nice ant scripts :), so I suppose the problem is in 
my code and I have to investigate it ..
  | 
  | I saw your comment at JIRA: "MessagePullPolicy no longer exists"
  | So, message redistribution is enabled by default and there is no way to be 
disabled any more, right?
  | 

You can disable it.
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.0.SP2/html/configuration.html#conf.serverpeer.attributes.clusterpullconnectionfactory


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

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


[jboss-user] [JBoss Seam] - Re: Here is a Richfaces Ajax Datascroler and Seam Example

2007-12-14 Thread supernovasoftware.com
If your object does not implement Idable you can override the methods shown 
below.  These are the only methods that depend on this.  I will need to do this 
in some cases where I am returning a list of maps instead a list of entities. 


  | public void wrap(FacesContext context, DataVisitor visitor, Range range, 
Object argument, List list) throws IOException;
  | public boolean hasById(ID id); 
  | 

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

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


[jboss-user] [JBoss Seam] - Re: ReRender does not update the Form drop down values

2007-12-14 Thread saeediqbal1
Here is the thing, the data in my code comes from my database so i dont think i 
can have the code out to test. But i can explain as best as possible.

For the list that my action method populates or updates it is defined as 
follows: -

@Out(required=false)
  | private List  speedDialCodes;

When i print it in the console it prints out good, but the "reRender" does not 
render that h:selectOneMenu . I noticed others had problems in this too online. 

The solution that i have now is a javascript reloading of the same page but 
that is no ajax anymore :( I would rather not have the page refresh and let 
reRender do the updating of my dropdown list but it doesn't.

I even tried this but that didn't help much 



If you want you could easily reproduce this code by having a simple list like 
this in the action method or the constructor and doing .remove() or .add() to 
it in the action method to see if it gets updated in the view

speedDialCodes  = new ArrayList();  
  | 
  | selectedSDCode = "1";   
  | speedDialCodes.add("1");
  | speedDialCodes.add("2");
  | speedDialCodes.add("3");
  | speedDialCodes.add("4");
  | speedDialCodes.add("5");
  | speedDialCodes.add("6");
  | speedDialCodes.add("7");
  | speedDialCodes.add("8");
  | speedDialCodes.add("9");
  | speedDialCodes.add("10");   



Any assistance would be appreciated. 

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

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


[jboss-user] [JBoss Seam] - Re: Resource not found exceptions with seam using mod_jk

2007-12-14 Thread [EMAIL PROTECTED]
[Could you comment on the advantages and disadvantages of Apache HTTPD vs JBoss 
Native in the context of a Seam/Facelets application that serves very little 
static content?]

I'm no expert on this, but for our application(s), we use Apache to do load 
balancing in addition to handling virtual servers. We have applications that 
use Tomcat and applications that use JBoss. Apache with mod_jk allows us to 
point the request to point to the correct app server based upon the context. 

If you have a clustered environment, fronting the cluster with Apache is a 
cheap way of load balancing across the cluster. I don't know right off hand 
whether or not JBoss provides a cluster manager server that will load balance 
for you, like WebLogic does.

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

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


[jboss-user] [JBoss jBPM] - error in build cvs source code

2007-12-14 Thread fengzhi
hello,

For my application I has to define the custom tasks, which likes this 
http://wiki.jboss.org/wiki/Wiki.jsp?page=CustomTasks

Therefore I have downloaded the cvs source code and builded it.But it costs me 
2 days time, and still doesn't work right.

I did following steps:
1. Download the jbpm source code from cvs
2. Change the variables software.installation.dir, ant.home, jboss.home to suit 
to my local machine
3. Then build "ant get.dependencies", "ant install.jbpm.ant" and "ant", the 
first two builds are successful, but the third build was failed.

BUILD FAILED
D:\xxx\jbpmcvs\jbpm.3\build\build.xml:36: The following error occurred while 
executing this line:
D:\xxx\jbpmcvs\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:63: The 
following error occurred while executing this line:
D:\xxx\jbpmcvs\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:221: 
Warning: Could not find file 
D:\xxx\jbpmcvs\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\target\workspace\N.3.1.0.SP1\org.jbpm.gd.jpdl.feature-3.1.0.SP1.zip
 to copy.

What did I do wrong? 

Sincere thanks for any help
Fengzhi


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

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


[jboss-user] [JBoss Seam] - Re: Resource not found exceptions with seam using mod_jk

2007-12-14 Thread [EMAIL PROTECTED]
I discovered my problem was not having the correct filter referenced for 
RichFaces. This was causing a problem with resolving the javascript references 
that the Richfaces component was injecting into the JSF page.

All is well now.

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

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


[jboss-user] [Beginners Corner] - Custom Icon & ToolTip

2007-12-14 Thread misti.brock
Hi,

Please help me add a custom JPEG with ToolTip capability to the existing JSP.

I managed to put ToolTip to several buttons and grids but can't figure out how 
to add a picture and then do "onMouseClick" TooolTip.

Thanks.

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

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


[jboss-user] [JBoss jBPM] - Re: Process Definition XML Validation Problems

2007-12-14 Thread apdo
As is is written in the exception, you must add a name to the process 
definition.

form the todo example:

http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="urn:jbpm.org:jpdl-3.1 
http://jbpm.org/xsd/jpdl-3.1.xsd";
  | >

at least, add the name="[a name here]" and the validation should pass

Phong

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

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


[jboss-user] [JBoss Seam] - Re: @Factory & Pagination

2007-12-14 Thread supernovasoftware.com
I just posted an example of Ajax paging with Richfaces Datascroller

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

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

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


[jboss-user] [Security & JAAS/JBoss] - JACC and Authorization for a Web Application

2007-12-14 Thread jgilmore
I am trying to use JASS authorization in JBOSS.  i.e. grant granular 
Permissions to Principals within a JASS policy file.  I believe the JACC module 
provides implementation for this however the wiki 
(http://wiki.jboss.org/wiki/Wiki.jsp?page=JACC) does not sufficiently describe 
how it is supposed to work.

Can anybody provide a thorough example of how to implement JACC for a web 
application running on JBoss?

To be a little more clear, the JAAS Policy shown below uses custom Principal 
and Permission classes from my application.  How can I get the JBoss 
SecurityManager to load this application specific authorization config?  Is 
JACC even the right direction??

  | grant Principal com.ftid.custadmin.security.ClientAdminPrincipal 
"view_customer" {
  | com.ftid.custadmin.security.ViewIdPermission "/client/clientView.*";
  | };
  | grant Principal com.ftid.custadmin.security.ClientAdminPrincipal 
"view_update_customer" {
  | permission  com.ftid.custadmin.security.ViewIdPermission 
"/client/clientEdit.*";
  | };
  | 



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

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


[jboss-user] [JBoss Seam] - Here is a Richfaces Ajax Datascroler and Seam Example

2007-12-14 Thread supernovasoftware.com
I use the following to view large tables where fetching the all the results is 
not feasible.  It has about 1 million rows.

It does assume that you object implements the interface Idable  shown next.

  | 
  | import java.io.IOException;
  | import java.io.Serializable;
  | import java.util.ArrayList;
  | import java.util.HashMap;
  | import java.util.List;
  | import java.util.Map;
  | 
  | import javax.faces.context.FacesContext;
  | 
  | import org.ajax4jsf.model.DataVisitor;
  | import org.ajax4jsf.model.ExtendedDataModel;
  | import org.ajax4jsf.model.Range;
  | import org.ajax4jsf.model.SequenceRange;
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.Logger;
  | import org.jboss.seam.annotations.Out;
  | import org.jboss.seam.log.Log;
  | 
  | import my.package.Idable;
  | 
  | public abstract class BaseExtendedDataModel 
extends ExtendedDataModel implements  BaseExtendedDataModelDAO{
  | 
  | private @Logger Log log;
  | 
  | @Out(scope=ScopeType.CONVERSATION, required=false)
  | public List listRow;
  | 
  | private ID currentId;
  | private Map wrappedData = new HashMap();
  | private List wrappedKeys;
  | private Long rowCount; // better to buffer row count locally
  | 
  | public abstract Long getCount();
  | public abstract List getList(Integer firstRow, Integer maxResults);
  | public abstract T findById(ID id);
  | 
  | public void wrap(FacesContext context, DataVisitor visitor, Range 
range, Object argument, List list) throws IOException
  | {
  | wrappedKeys = new ArrayList();
  | wrappedData = new HashMap();
  | for (T row : list)
  | {
  | Idable idable = (Idable) row;
  | ID id = (ID) idable.getId();
  | wrappedKeys.add(id);
  | wrappedData.put(id, row);
  | visitor.process(context, id, argument);
  | }   
  | }   
  | 
  | public boolean hasById(ID id) 
  | {
  | for (T row : listRow) 
  | {
  | Idable idable = (Idable) row;
  | Long rowId = (Long) idable.getId();
  | if (rowId.equals(id))
  | {
  | return true;
  | }
  | }
  | return false;   
  | }
  | 
  | @Override
  | public void walk(FacesContext context, DataVisitor visitor, Range 
range, Object argument) throws IOException
  | {   
  | int firstRow = ((SequenceRange) range).getFirstRow();
  | int maxResults = ((SequenceRange) range).getRows();
  | wrap(context, visitor, range, argument, getList(firstRow, 
maxResults));
  | }
  | 
  | /*
  |  * This method normally called by Visitor before request Data Row.
  |  */ 
  | @Override
  | public void setRowKey(Object key) 
  | {
  | this.currentId = (ID) key;
  | }
  | 
  | @Override
  | public int getRowCount() 
  | {
  |   if(rowCount == null) 
  | return (rowCount = this.getCount()).intValue();  
  |   else 
  | return rowCount.intValue();
  | }
  | 
  | @Override
  | public boolean isRowAvailable() 
  | {
  | if (currentId == null) {
  | return false;
  | } else {
  | return hasById(currentId);
  | }
  | }
  | 
  | /**
  |  * This is main way to obtain data row. It is intensively used by 
framework.
  |  * We strongly recommend use of local cache in that method.
  |  */
  | @Override
  | public Object getRowData() {
  | if (currentId == null) {
  | return null;
  | } else {
  | T ret = wrappedData.get(currentId);
  | if (ret == null) {
  | ret = this.findById(currentId);
  | wrappedData.put(currentId, ret);
  | return ret;
  | } else {
  | return ret;
  | }
  | }
  | }
  | 
  | /**
  |  * Unused rudiment from old JSF staff. 
  |  */
  | @Override public Object getWrappedData() { throw new 
UnsupportedOperationException(); }
  | @Override public int getRowIndex() { throw new 
UnsupportedOperationException(); }
  | @Override public void setRowIndex(int rowIndex) { throw new 
UnsupportedOperationException(); }
  | @Override public void setWrappedData(Object data) { throw new 
UnsupportedOperationException(); }
  | 
  | /**
  |  * Unused update data. 
  |  */
  | //  @Override public void update() { throw new 
UnsupportedOperationException(); }
  | 
  |  

[jboss-user] [JBoss jBPM] - Re: jbpm variables not saved

2007-12-14 Thread apdo
I continue my experimentation and here is my obervations.

using the following method to display the form I am able to set variable 
values. the form is open with these value however only the description is saved 
when submiting the form. I think it is more a seam issue or probably 
misunderstanding. I will probably post something related to this in the seam 
forum. I think we can consider this discussion close in the context of jbpm.

thanks,

  @StartTask
   public String displayForm() {
   org.jboss.seam.bpm.BusinessProcess process = 
org.jboss.seam.bpm.BusinessProcess.instance();
   org.jbpm.graph.exe.ProcessInstance pinstance = 
org.jboss.seam.bpm.ProcessInstance.instance();
   org.jboss.seam.bpm.TaskInstance.instance().setVariable("variable1", 
"my comments");
   pinstance.getContextInstance().createVariable("summary", "sum 
value");
   System.out.println("APD displayForm called");
   return "/todoform.xhtml";
   }



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

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


[jboss-user] [JBoss Seam] - Re: Conversation times out, entity manager persists??

2007-12-14 Thread whafrog
Thanks.  I'm under the gun and behind schedule, but if I get a chance in the 
next phase to refactor I'll revisit it.  For now at least the problem is 
prevented.

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

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


[jboss-user] [JBoss jBPM] - Process Definition XML Validation Problems

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

we are trying to parse a very simple process definition xml file. We are using 
the following environment:

-jbpm 3.2.2ga
-XercesImpl 2.2.1 paser on the Classpath
-Java 1.4.2_13

When we attempt to load the xml, the validation is failing. We suspect that 
there is nothing wrong with our xml file, and in fact, the problem lies with 
the xsd. This is the xml we are trying to parse:


  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

We get the following exception from jBPM:

anonymous wrote : org.jbpm.jpdl.JpdlException: [[ERROR] line 366: 
cos-ct-extends.1.4.2.2.2.2.1: Error for type '#AnonType_assignment'.  The 
content type of a derived type and that of its base must both be mixed or 
element-only., [ERROR] line 1: cvc-complex-type.4: Attribute 'name' must appear 
on element 'process-definition'.]
  |  at 
org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:172)
  |  at 
org.jbpm.graph.def.ProcessDefinition.parseXmlString(ProcessDefinition.java:151)


We've seen this problem posted before with no responses. Does anyone know why 
this is happening? Is it a problem with the xsd or are we doing something wrong?

Thanks,

Caleb

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

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


[jboss-user] [JBoss Seam] - Re: Chained select boxes

2007-12-14 Thread [EMAIL PROTECTED]
"damianharvey" wrote : It's friday, my pub lunch is settling nicely and I'm 
feeling verbose, so here's a very basic example 

Tehehe.

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

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


[jboss-user] [JBoss Seam] - Re: External AJAX access to webremote?

2007-12-14 Thread whafrog
Now that I included jboss-seam-remoting.jar...yes.  (doh! slap!)

Different issue now, both IE and Firefox have security issues.  I'm logged in 
to my work via VPN, it must think "localhost" is a different domain.  In IE I 
can enable the session, in Firefox I get a red "Please wait..." box in the 
upper right of the page, and an error on the console:

Error: uncaught exception: Permission denied to call method XMLHttpRequest.open

I can get past the "Please wait..." by adding the following code to my 
javascript method:

if (window.XMLHttpRequest) { // Mozilla, Safari,...
  | try {
  | 
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
  | } catch (e) {
  | alert("Permission UniversalBrowserRead 
denied.");
  | return null;
  | }
  | }
  | 

However, then I get this in the javascript console:

Error: [Exception... "'Permission denied to get property 
XMLDocument.documentElement' when calling method: 
[nsIOnReadyStateChangeHandler::handleEvent]"  nsresult: "0x8057001e 
(NS_ERROR_XPC_JS_THREW_STRING)"  location: ""  data: no]

Any way around that?

I've rewritten this service as a servlet.  I still end up with the same 
domain-change security issues, but don't have a problem reading the data from 
my home-rolled javascript.  So I'm wondering if there's a bug in the Seam 
javascript?


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

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


[jboss-user] [JBoss Seam] - Re: how to invoke action, then display resource

2007-12-14 Thread [EMAIL PROTECTED]
Is the faces servlet mapped to .xls?

Take a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamResourceLoader for 
some hints.

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

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


[jboss-user] [JBoss Seam] - Re: How can I

2007-12-14 Thread ivan.tufegdzic
Yes, I understand. 
That works. 
I have dynamic list as parameters, and I don't have name (it will be unknown).
I wrote a servlet which catch parameters with names and its values.
That is good because in query I may put  unknown names and its values.

Is that ok?

Thanks

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

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


[jboss-user] [JBoss Seam] - Re: s:button question...

2007-12-14 Thread [EMAIL PROTECTED]
What does foo() contain?

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

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


[jboss-user] [JBoss Seam] - Re: Fundamental question about em.persist

2007-12-14 Thread [EMAIL PROTECTED]
What sort of persistence context are you using?

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

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


[jboss-user] [JBoss Seam] - Re: Conversation times out, entity manager persists??

2007-12-14 Thread [EMAIL PROTECTED]
We can maybe take a look at this if you submit a runnable example with 
reproduction steps to JIRA.

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

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


[jboss-user] [JCA/JBoss] - Re: Could not dereference object

2007-12-14 Thread lasanac
Please disregard my last post!!


When I don't use:

ctx.rebind("java:MySQLDS", ref);


I get the following error:

step 1
step 2
java.lang.ClassCastException: javax.naming.Reference
at com.kt.dao.DBConnection.doConnection(DBConnection.java:43)
at com.kt.dao.MakeConnectionTest.main(MakeConnectionTest.java:17)

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

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


[jboss-user] [JBoss Seam] - Re: Trying to run tests in Embedded.

2007-12-14 Thread deniseketcham
Did you ever get this working? I am having the same issue using Seam 2.0.0. GA 
when I want to bootstrap the EntityManager outside of an integration test. 
Everything works all right if I use SeamTest. 

w.r.t. the jndi properties, everything I have read says you shouldn't have to 
mess with them. In fact the jndi.properties file in the bootstrap directory 
includes a comment to that effect.

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

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


[jboss-user] [JBoss Seam] - Re: Chained select boxes

2007-12-14 Thread damianharvey
It's friday, my pub lunch is settling nicely and I'm feeling verbose, so here's 
a very basic example (probably some syntax errors but you get the drift):

  | @Name("citySelectionBean")
  | @Scope(ScopeType.CONVERSATION) //  < This is important. You could also 
use SESSION or a stateful bean
  | public class CitySelectionBean {
  | String country;
  | String state;
  | String city;
  | 
  | public List getCountries() {
  |   return entityManager.createQuery("select c from Country 
c").getResultList();
  | }
  | 
  | public List getStates() {
  |List states = new ArrayList();
  |if(this.country != null) {
  |   return entityManager.createQuery("select s from State s where 
s.country = :country")
  |  .setParameter("country", this.country)
  |  .getResultList();
  |}
  |return states;
  | }
  | 
  | public List getCities() {
  |List cities = new ArrayList();
  |if(this.state != null) {
  |   return entityManager.createQuery("select c from City c where c.state 
= :state")
  |  .setParameter("state", this.state)
  |  .getResultList();
  |}
  |return cities;
  | }
  | }
  | 
And your page:

  | 
  |
  |
  | 
  | 
  | 
  |
  |
  | 
  | 
  | 
  |
  | 
  | 
Also create a page.xml file and ensure that you have something like 
 in it.

Hope this helps.

Cheers,

Damian.


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

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


[jboss-user] [JBoss Seam] - Re: @Factory & Pagination

2007-12-14 Thread Andy Gibson
You could roll your own non-JPA entity query which woudl have methods for 
pagination. It's probably well worth it considering the re-use you can get out 
of them. Same with EntityHome.

Cheers,

Andy


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

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


[jboss-user] [JBoss Seam] - Re: How can I

2007-12-14 Thread Andy Gibson
http://docs.jboss.com/seam/latest/reference/en/html/events.html#d0e3872

Here's one source of documentation for it. 

Simply bind parameters in pages.xml to values in the backing component to get a 
2 way passing of values from the form to the backing bean via request 
parameters.

i.e. 


  | 
  | 
  | 
  | 

Now, when you call \mySearch.seam?lastName=smith the value will be put into the 
backing bean.

On your form, you simply put : 


  |   
  | 

and the parameter will appear in the form based on the parameter.

So the parameter makes the trip from  parameter in the request-> Put into the 
backing bean -> Value on the form bound to the backing bean.

When you run the query, you can just refer to the lastName field in the MyBean 
class to get the value.



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

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


[jboss-user] [JBoss Seam] - Re: @Factory & Pagination

2007-12-14 Thread IGx89
Note: EntityQuery requires JPA, so if you're just using plain Hibernate (like 
me) you might be out of luck :(.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBOSS Stop error

2007-12-14 Thread harish73
As i can see firewall is disable on the server. I have no idea about selinux.

I have to use customize the jboss in such a way that when the server reboot 
jboss starts up automatically. For this i have put 'jboss' script in 
/etc/rc.d/init.d directory whcih calls the run.sh file to start and shutdown.sh 
file to stop jboss.

When i start jboss /etc/rc.d/init.d/jboss start 
then jboss run perfectly fine. But when i tries to stop jboss (which calls 
shutdown.sh file of jboss) then it gives me that error.
How to fix this.

I know alternatively i can kill the jboss process to stop which i don't want. I 
want to use shutdown.sh script. 

Is it a problem with Jboss configuration or something else. Please correct me.

Thanks.

"PeterJ" wrote : Looks like either firewall or selinux issues.
  | 
  | You can also stop the app server by doing ctrl-c in the terminal in which 
you started it. Or by using 'kill' to send a SIGINT signal. Either one causes 
the app server to shut down cleanly.

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

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


[jboss-user] [JBoss Seam] - SelectOneMenu problem

2007-12-14 Thread limousyf
Hello,

I make a second post following hager's one as we have new informations about 
our problem.
The problem is about a datatable and a selectOneMenu.
The objects in the selectOneMenu can be added to the table, creating a new line 
(and vice-versa, a line in the datatable can be removed and goes back in the 
selectOneMenu)

On the business side we have two lists

- one representing the actual lines of the dataTable


  | private List lignes;
  | 
  | public List getLignes() 
  | {
  | return this.lignes;
  | }
  | 
  | public void setLignes(List lignes) 
  | {
  | this.lignes = lignes;
  | }
  | 

- and another representing the lines availables for adding (the lines in the 
selectOneMenu)


  | private List availableLines;
  | 
  | public List getAvailableLines() 
  | {
  | return availableLines;
  | }
  | 
  | public void setAvailableLines(List availableLines) 
  | {
  | this.availableLines = availableLines;
  | }
  | 


On the view side we have:


  | 
  | 
  | 
  | 
  | 
  | 
  | 

  | 
  | 


The problem is: when we add a line using the button, the line is actually added 
to the datatable, moved from one list to another in the business side (we have 
checked this in debug) and the getter returns the list for the selectOneMenu 
without the selectedObject.

But in the view the object is still in the options of the selectOneMenu !

And, of course, when we try to do something else, adding another line, doing 
something else in the page, etc ... there is an error in the log :


  | 
sourceId=activitesByCollaborateurCrossDataForm:selectOneAssignable[severity=(ERROR
 2), summary=(Valeur invalide), detail=(Valeur invalide)]
  | 
  | ("Invalid Data" localized)
  | 

which looks normal because the model and the view are "desynchronized" on this 
list.

After the "try an action - get the invaid data error" routine, the list is 
correctly displayed in the selectOneMenu and we can add another line, as the 
model and the view are once again "synchronized" I guess.
But adding another line repeats the problem ... etc ...

Our bean is a stateful one:

  | @Stateful
  | @Scope(ScopeType.CONVERSATION)
  | @Name("activitesByCollaborateurCrossData")
  | public class activitesByCollaborateurCrossDataBean implements 
activitesByCollaborateurCrossData {
  | 

I initially thought it was a converting issue, as "Assignable" is interface, so 
I created a converter that handle all the objects implementing the interface, 
but it didn't change anything.

The most annoying stuff is the same code was actually working in seam 1.2
The error appeared after upgrading to Seam 2.0.0.GA + JBoss 4.2.1

Does anyone have an idea on that one ?

Regards,

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

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


[jboss-user] [JBoss Portal] - Re: take querystring from portlet

2007-12-14 Thread mcolak
http://localhost:8080/portal/portal/default/default/HelloWorldPortletWindow?action=e&kat=deneme&windowstate=normal&mode=view

I think this is not good choice but I haven't found any good answer yet

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

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


[jboss-user] [JBoss Seam] - Re: @Factory & Pagination

2007-12-14 Thread Andy Gibson
Hey Sven,

Well, here's the problem, the factory method needs to know what page you are 
on, and then return the results for that page. 

The first easy option is to use an EntityQuery which has the firstResult and 
maxResults, next, first, last, previous  and a bunch of other properties and 
methods to let you control the data.

You can roll your own, but then you find yourself writing a bunch of code that 
is the same as the existing EntityQuery object code.

The problem with the rich:dataScroller is that it works on the whole list at 
once. The EntityQuery queries the database for the number of rows in the 
result, and then only fetches the number of rows on a page.

You can set up params in pages.xml to pass from one page to the next the values 
of the current page so you have a stateless viewer as opposed to keeping all 
items in memory (or keep reloading them) for the data scroller.

Cheers,

Andy








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

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


[jboss-user] [JBoss Seam] - Re: Conversation times out, entity manager persists??

2007-12-14 Thread whafrog
I tried that, but it doesn't work either.  I'm using Jboss 4.2.0GA.  I've 
managed to avoid the problem by calling entityManager.clear() in the action's 
destroy method.


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

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


[jboss-user] [JBoss Seam] - Re: ReRender does not update the Form drop down values

2007-12-14 Thread damianharvey
Many potential problems and an equal number of solutions. Post more of your 
code. 

Cheers,

Damian.

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

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


[jboss-user] [JBoss Seam] - Re: Trouble W/ NullPointerException

2007-12-14 Thread damianharvey
Well not knowing your components.xml, I'd hazard a guess that maybe you should 
check that your entityManager is null? Put in a log line checking something 
like 'em==null' (or run it through a debugger).

And why not use @In
  | EntityManager entityManager;rather than PersistenceContext? You define your 
entityManager in your  in your 
components.xml. 

Cheers,

Damian.

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

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


[jboss-user] [JBoss Seam] - Re: Trouble W/ NullPointerException

2007-12-14 Thread Andy Gibson
Your return server class doesn't have a @Name annotation which means it is not 
a seam component. Try adding a name to it unless you are defining it in 
components.xml.

How is it even getting to this code since without the name, the component 
cannot be injected.

Beyond that, I would try checking each piece of the query operation to see 
which item is null (the entitymanager, or the query).

Cheers,

Andy




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

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


[jboss-user] [JCA/JBoss] - Re: Could not dereference object

2007-12-14 Thread lasanac
I am just testing the back end of the application.  Currently I used:

ctx.rebind("java:MySQLDS", ref); 

as it got rid of another problem that I had earlier.  That was a CastException 
for Reference object.  I did retest it without that line and got the same error.

New Code:

System.out.println("step 1");
Context ctx= new InitialContext(env);
System.out.println("step 2");
DataSource ds = (DataSource)ctx.lookup("java:MySQLDS");
System.out.println("step 3 ");

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

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


[jboss-user] [JBoss/Spring Integration] - ApplicationContext NoClassDefFound

2007-12-14 Thread ven346
Hello,

When I run an EAR in jboss4.2.2GA, that uses Spring 2.0.2, I get an error 
saying the ApplicationContext of spring cannot be found (see below)

This happens however, when a bean is instantiated during the initialization of 
this same application context.

Does somebody have any idea?

Regards,   Ron 

org.springframework.beans.BeanInstantiationException: Could not instantiate 
bean class 
[org.epo.cassius.businessservice.actionhandler.impl.ActionHandlerImpl]
 Constructor threw exception; nested exception is 
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
Caused by:
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
at 
org.epo.cassius.businessservice.actionhandler.impl.ActionHandlerImpl.(ActionHandlerImpl.java:59)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:84)
at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:60)
at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:45)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:701)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:687)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:388)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
at 
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
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:597)
at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

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

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


[jboss-user] [JBoss Seam] - Re: How do I reload a Data Model on a SessionBean everytime

2007-12-14 Thread Andy Gibson
Also, I think there is another small problem with the code you have there. I 
could be wrong on this, so hopefully someone will correct me if that is the 
case.

You have outjection on the datamodel for users, and also return a value for the 
factory method. 

When you return the value from the factory, that is outjected as the variable 
"users". When the method completes, the Seam interceptor then looks for 
outjected variables and outjects the data model as "users". At that point, you 
have set it twice. While I don't think it would be a problem at run time, the 
return value from the factory method is unnecessary, and it should be like : 


  | @Name("userList")
  | @Scope(PAGE)
  | @Restrict("#{identity.loggedIn}")
  | public class UserList implements UserListInterface {
  | 
  | @DataModel("users")
  | private List users;
  | 
  | @Factory("users")
  | public void getUsers() { 
  |  users = entityManager.createQuery().getResultList();
  | } 
  | 
  | }
  | 
  | 

Here, you are using the factory to assign the value, and the @Datamodel 
annotation handles the outjection.

For more details see : 

http://docs.jboss.com/seam/latest/reference/en/html/concepts.html#d0e3302

Cheers,

Andy


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

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


[jboss-user] [JBoss jBPM] - Re: Cant delete tasks from jbpm-console

2007-12-14 Thread waddle
UP

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

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


[jboss-user] [JBoss Seam] - Re: Expected a child component type of UISelectItem/UISelec

2007-12-14 Thread burakbayramli
it turns out seam.properties file was not included in the ear

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

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


[jboss-user] [JBoss Messaging] - Re: JBoss Messaging 1.4 - no clustered post office?

2007-12-14 Thread bodrin
Thanks, Tim!

The example works fine (nice ant scripts :), so I suppose the problem is in my 
code and I have to investigate it ..

I saw your comment at JIRA: "MessagePullPolicy no longer exists"
So, message redistribution is enabled by default and there is no way to be 
disabled any more, right?

The other question still remains - is there a way to disable the round robin 
behaviour of the ClusteredConnectionFactory?

I need a way to choose the cluster node and use it if it is up and running. The 
HAJNDI provides a way to do it, and if the ClusteredConnectionFactory favours 
the local queue it will be ok I think..

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

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


[jboss-user] [JBoss Seam] - Re: How do I reload a Data Model on a SessionBean everytime

2007-12-14 Thread Andy Gibson
Actually, that's my mistake (re the @Statefule annotation)

It doesn't need to be stateful, you aren't holding the state from one request 
to the next since it is page scoped. Once the page has hit the browser, the 
user list has gone since it is page scoped which is what the goal of the post 
was about.



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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: lock jboss administration

2007-12-14 Thread sashaxiv
Problem solved. Very much thanks.

Regards from spain.

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

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


[jboss-user] [JBoss Seam] - Re: Conversation times out, entity manager persists??

2007-12-14 Thread [EMAIL PROTECTED]
Try with just setting flushmode to manual (no transaction attribute stuff). If 
you still see a flush when the conversation times out, then post back.

Why? Certain parties to the EJB3 spec wouldn't even allow flushmode manual to 
exist (its a hibernate extension) let alone be the default (people are too used 
to working with stateless architectures)

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

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


[jboss-user] [JBoss Portal] - JBoss Portal 2.6.3 released

2007-12-14 Thread [EMAIL PROTECTED]
We just released JBoss Portal 2.6.3, grab it while it's hot.

As usual now, the release note is available on our blog:
http://blog.jboss-portal.org/2007/12/jboss-portal-263-released.html

Thanks to everyone who contributed !

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

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


[jboss-user] [Clustering/JBoss] - Re: AccessLogValve for Cluster?

2007-12-14 Thread seoeng
Anyone?  I still cannot find an acceptable solution to this problem...other 
than installing analytics packages for use outside the container.

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

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


[jboss-user] [EJB/JBoss] - commit-option A cache invalidation issue

2007-12-14 Thread tigrik
Hi guys! 

I was searching for solution quite long, but haven't found a real solution. 
My applications has a EJB 2.1 part and EJB3 part. In some rare cases I have to 
write into EJB2 part using EJB3, so EJB2 commit-option-A caching doesn't get 
it. (JBOSS 4.0.5) 

Is there an easy way to remove an instance from the cache, something like 
session.evict() in Hibernate? 


Commit-Option-B is not really an option, because it's much slower. 
Commit-Option-D is not an option too, because I need the changes to be 
registered by EJB2 in the same moment.

What I do now is mirroring of the EJB3 update but it's not a perfect solution, 
as long I need 2 updates every time I wan't to update.

I've tried the InvalidationManager solution, but it seems like I need a 
dependency on the jboss.jar and it's not so cool either. 
 

Thank you in advance!

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

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


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

2007-12-14 Thread rhyland
just to clarify something here:  i do see the FailedLoginException in the logs 
but straight after that the NPE is thrown.
Also, have tried catching the FailedLoginException within pages.xml but it does 
not catch it.  As a test i've caught NullPointerException in pages.xml and that 
does work, but obviously we don't want to display a login message anytime a NPE 
is thrown within our application.

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

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


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

2007-12-14 Thread objectkk
I appreciate your reply.

I contacted IceFaces people and enquired about the same.

Finally all I understood is ... use seam when it is really necessary and worth 
spending time to learn using it ... 

thank you. have nice weekend.


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

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


[jboss-user] [JBoss jBPM] - Re: jBPM starters kit 3.1.4 - http://localhost:8080/jbpm/

2007-12-14 Thread Pebbels
"kukeltje" wrote : 
  | It is a fairly small change in source of the webconsole, but nobody picked 
it up... Maybe I can have a look over the weekend to see If I can get it 'fixed'
  | 

In my opinion it is an important feature because a lot of other people are 
thinking the same way (http://jira.jboss.com/jira/browse/JBPM-1022) and I would 
love to see it working...


Cheers Tina

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

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


[jboss-user] [J2EE Design Patterns] - Doubt about EntityManager.getResultList result

2007-12-14 Thread kazboom
Hi everyone,
I have a doubt about the result of a query.
I have a table like User(id,name,surname,phone) and i want to query this table 
in my EJB in this way:

List res = em.createQuery("select u.id, u.name from User u where 
u.phone='555321').getResultList();

What kind of object there are inside res?
I have tryed to cast res in a List but it doesn't work.

How can i do to access the data in res list??

Thanks to all.

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

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


[jboss-user] [JBoss Portal] - Re: Accessing Window

2007-12-14 Thread mcolak
I hava same problem too. How can solve this type of problem

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

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


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: DL - JBoss4.2.0 startup & deployment problem

2007-12-14 Thread [EMAIL PROTECTED]
"dlnet" wrote : The jbossweb-tomcat55.sar directory is getting copied from my 
application on which I am working and I have removed the existing 
jbossweb.deployer from JBossAS4.2.0.

Umm, well, that's just not going to work.  Stick with the jboss-web.deployer 
and if you've somehow customized the jbossweb-tomcat55.sar in your old AS 
version, port the changes.

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

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


  1   2   >