[jboss-user] [JBossWS] - Re: Writing a client - no examples for BindingProvider based

2008-01-04 Thread [EMAIL PROTECTED]
mjhammel wrote : 
  | Then I discovered that the source was actually JBOSS-WS from 
http://labs.jboss.com/jbossws/downloads/.   My first questions, then, are this: 
 isn't WS included in the application server?  Do I need to download the WS 
binary and add it to the JBOSS application server (for V4.2.2GA of the app 
server)? 
  | 
The application server includes a webservice stack (JBossWS) you can of course 
use without any further installation. However you would probably want to 
upgrade the ws stack since JBossWS is released more often than the application 
server.

anonymous wrote : 
  | Looking through the examples in the WS source code I cannot find an example 
that seems to implement the simplistic code shown in the client example here:
  | 
http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS_JAX-WS_Tools#Client_Side
  | 
Most of the examples use an equivalent generic way of getting the endpoint that 
is

  | Service service = Service.create(wsdlURL, qname);
  | MyEndpoint port = (MyEndpoint)service.getPort(MyEndpoint.class);
  | 
however you can take a look at the org.jboss.test.ws.jaxws.samples.retail 
sample which also has a @WebServiceClient annotated service class generated 
through the tools.

anonymous wrote : 
  | I was hoping it would be as easy as this shows, with the added properties 
to the BindingProvider for username and password.
  | 
And it should be that easy. Take a look at the 
org.jboss.test.ws.jaxws.samples.context sample, it is a real simple test case 
and uses basic auth.

anonymous wrote : 
  | I've written this client, but it fails to compile with an error I've not 
seen in any discussions or in any googled pages:
  | 
  | package wsTestJAXWS;
  |   | 
  |   | import java.net.URL;
  |   | import javax.xml.ws.*;
  |   | import javax.jws.*;
  |   | 
  |   | /* Web Services interfaces */
  |   | import com.cei.crunch.server.subscriberservices.*;
  |   | 
  |   | /* Crunch DB tables. */
  |   | import com.cei.crunch.ejb.Subscriber;
  |   | 
  |   | public class wsTestJAXWS {
  |   | 
  |   | private static URL targetURL = null;
  |   | private String subscriberID = null;
  |   | private String pw = null;
  |   | private String host = null; 
  |   | private String crunchServer = null;
  |   | private Subscriber profile = null;
  |   | SubscriberServicesEndpoint ss = null;
  |   | 
  |   | private boolean serviceBind()
  |   | {
  |   | try {
  |   | 
  |   | SubscriberServicesService service = new 
SubscriberServicesService();
  |   | ss = service.getSubscriberServicesPort();
  |   | 
  |   | /* Set NEW Endpoint Location */
  |   | BindingProvider bp = (BindingProvider)ss;
  |   | 
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, 
crunchServer);
  |   | 
  |   | /* Setup to authenticate with the server. */
  |   | 
bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, subscriberID);
  |   | 
bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, pw);
  |   | 
  |   | return true; 
  |   | }   
  |   | catch (Exception e) {
  |   | System.out.println(Failed to login to server.);
  |   | System.exit(1);
  |   | }
  |   | return false;
  |   | }
  |   | 
  |   | public void run(String[] args) { 
  |   | 
  |   | /* Save the subscriber login information. */
  |   | if ( args.length != 3 )
  |   | {
  |   | System.out.println(Missing command line args (userid, 
password, server).);
  |   | System.exit(1);
  |   | }
  |   | this.subscriberID = args[0];
  |   | this.pw = args[1];
  |   | this.host = args[2];
  |   | 
  |   | // crunchServer = https://; + this.host + 
:8443/Crunch/services/SubscriberServices;
  |   | crunchServer = http://; + this.host + 
:8080/Crunch/services/SubscriberServices;
  |   | System.out.println(Trying to connect to  + crunchServer +  
as User:  + subscriberID + , password:  + pw);
  |   | 
  |   | /* Get the WSDL interfaces to the server. */
  |   | if ( serviceBind() == false )
  |   | {
  |   | System.out.println(Login failed.);
  |   | System.exit(1);
  |   | }
  |   | 
  |   | /* Retrieve subscriber profile information. */
  |   | try {
  |   | profile = ss.findSubscriber(CRUNCH-DEFAULT-SUPERUSER);
  |   | }
  |   | catch (Exception e) {
  |   | System.out.println(Failed findSubscriber():  + 
e.getMessage());
  |   | e.printStackTrace();
  |   | System.exit(1);
  |   | }
  |   | if ( profile == null )
  |   | {
  |   | System.out.println(findSubscriber() failed.);
  |   | System.exit(1);
  |   | }
  |   

[jboss-user] [JBoss jBPM] - Hibernate problem

2008-01-04 Thread vsevel
I am getting an hibernate error while getting the jbpmContext in my own 
application.
I have no clue how to solve it. 
However the jbpm console is still working. I am using MySQL.
I've got also the same error now when I am compiling jbpm3 sources.
Please help.


java.lang.IllegalStateException: No data type for node: 
org.hibernate.hql.ast.tree.MethodNode 
 \-[METHOD_CALL] MethodNode: '('
+-[METHOD_NAME] IdentNode: 'stddev' {originalText=stddev}
\-[EXPR_LIST] SqlNode: 'exprList'
   \-[DOT] DotNode: 'nodelog0_.DURATION_' 
{propertyName=duration,dereferenceType=4,propertyPath=duration,path=nl.duration,tableAlias=nodelog0_,className=org.jbpm.graph.log.NodeLog,classAlias=nl}
  +-[ALIAS_REF] IdentNode: 'nodelog0_.ID_' {alias=nl, 
className=org.jbpm.graph.log.NodeLog, tableAlias=nodelog0_}
  \-[IDENT] IdentNode: 'duration' {originalText=duration}


org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:145)

org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:705)
org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:529)

org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:645)

org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)

org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)

org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)

org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)

org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)

org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)

org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:402)
org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:352)

org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)

org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)

org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)

org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:100)
org.jbpm.JbpmContext.getSession(JbpmContext.java:506)


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

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


[jboss-user] [JBossWS] - Re: Wrong incomming SOAP not intercepted

2008-01-04 Thread [EMAIL PROTECTED]
bkruns wrote : We are running jbossws 1.2.0.SP1 and it still does not seem to 
be doing the basic WSDL validations.  We have an elements setup as minoccurs=1 
and it excepts the SOAP message even if that elements is not provided.
Do you have the same problem with JBossWS 2.0.X ?
You may eventually create a a jira issue with a simple test reproducing the 
problem so that we can take care of it.
Thank you

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

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


[jboss-user] [JBoss Portal] - Re: Any reason why WSRP fails to start with 2.6.3 ?

2008-01-04 Thread PMN
Thanks

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

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


[jboss-user] [JBossWS] - Re: new or old issue?

2008-01-04 Thread wtnat
If the jdk version is 1.6.0_01 the following jars needs to be put in the 
endorsed directory in jre\lib\endorsed:
1.  jaxb-api.jar
2.  jboss-saaj.jar

This might solve the problem


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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Unable to externaly access my JBoss 4.2.1

2008-01-04 Thread jitorrents
I am in a trouble with my JBoss Server, it seems to not responding requests 
from outcoming clients. 

I mean, when I acces the server by typing http://localhost:8080/Myapp it works 
correctly. But when I try to access my app this way http://server ip:8080/Myapp 
from another computer in the same netwok I get no response. I can't see nothing 
in the server logs. I have sniffed the net and there are requests and 
responses in my 8080 port, so the server seems to be aware of them. Any help 
would be great! 

PD: Could it be a user autentication problem?

Sorry for my poor english;)

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

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


[jboss-user] [JBossWS] - Re: Unsupported content type Exception while consuming Jboss

2008-01-04 Thread [EMAIL PROTECTED]
The stack complains because it cannot process html messages. I suggest you to 
check how you set the content-type in your client, since you're actually 
providing both text/xml and text/html content types.
anonymous wrote : 
  |   | 2007-12-31 16:00:59,156 DEBUG 
[org.jboss.ws.binding.soap.SOAPMessageUnMarshaller] getMimeHeaders from: 
{null=[HTTP/1.1 200 OK], ResponseCodeMessage=OK, 
Set-cookie=[JSESSIONID=2000581CECAB64B685C0648F6E818CB2;Path=/webauth;Secure], 
Transfer-encoding=[chunked], http.basic.password=admin12, Date=[Mon, 31 Dec 
2007 10:13:45 GMT], http.basic.username=admin, Server=[Sun-ONE-Web-Server/6.1], 
HEADER={SOAPAction=, Content-Type=text/xml; charset=UTF-8}, 
Content-type=[text/html;charset=ISO-8859-1], ResponseCode=200}
  | 

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

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


[jboss-user] [JBoss Seam] - Problem retrieving data from the DB

2008-01-04 Thread adriju
Hi people!!

I´ve got the following tables in my DB Oracle 9:

anonymous wrote : USUARIOS
  | 
  |  Name  Null?Type
  |  -  ---
  |  COD_USUARIO   NOT NULL NUMBER(10)
  |  NOMBRE_USUARIO VARCHAR2(60)
  |  PRIORIDAD_USUARIONUMBER(3)
  |  PASSWORD_USUARIOVARCHAR2(12)
  |  FILTRO_USUARIO   VARCHAR2(20)
  |  SNMP_USUARIO VARCHAR2(20)
  |  COD_GRUPOS_USUARIOSNOT NULL NUMBER(10)
  | 
  | primary key (COD_USUARIO),foreign key  (COD_GRUPOS_USUARIOS) references 
GRUPOS_USUARIOS(COD_GRUPOS_USUARIOS)
  | 
  | GRUPOS_USUARIOS
  | 
  |  Name  Null?Type
  |  -  
  |  COD_GRUPOS_USUARIOSNOT NULL NUMBER(10)
  |  NOMBRE_GRUPOS_USUARIOS VARCHAR2(60)
  | 
  | primary key (COD_GRUPOS_USUARIOS)

I do not use any reverse engineering with these tables. Then I use 
generate-entities to create the entities and I obtain the following:

@Entity
  | @Table(name = USUARIOS)
  | public class Usuarios implements java.io.Serializable {
  | 
  | private long codUsuario;
  | private GruposUsuarios gruposUsuarios;
  | private String nombreUsuario;
  | private Short prioridadUsuario;
  | private String passwordUsuario;
  | private String filtroUsuario;
  | private String snmpUsuario;
  | private SetTemispConfiguracion temispConfiguracions = new 
HashSetTemispConfiguracion(
  | 0);
  | private SetFiltrosFichas filtrosFichases = new 
HashSetFiltrosFichas(0);
  | private SetOperacion operacions = new HashSetOperacion(0);
  | private SetMacro macros = new HashSetMacro(0);
  | private SetNuevaConfiguracion nuevaConfiguracions = new 
HashSetNuevaConfiguracion(
  | 0);
  | private SetGrupo grupos = new HashSetGrupo(0);
  | 
  | public Usuarios() {
  | }
  | 
  | public Usuarios(long codUsuario, GruposUsuarios gruposUsuarios) {
  | this.codUsuario = codUsuario;
  | this.gruposUsuarios = gruposUsuarios;
  | }
  | public Usuarios(long codUsuario, GruposUsuarios gruposUsuarios,
  | String nombreUsuario, Short prioridadUsuario,
  | String passwordUsuario, String filtroUsuario, String 
snmpUsuario,
  | SetTemispConfiguracion temispConfiguracions,
  | SetFiltrosFichas filtrosFichases, SetOperacion 
operacions,
  | SetMacro macros, SetNuevaConfiguracion 
nuevaConfiguracions,
  | SetGrupo grupos) {
  | this.codUsuario = codUsuario;
  | this.gruposUsuarios = gruposUsuarios;
  | this.nombreUsuario = nombreUsuario;
  | this.prioridadUsuario = prioridadUsuario;
  | this.passwordUsuario = passwordUsuario;
  | this.filtroUsuario = filtroUsuario;
  | this.snmpUsuario = snmpUsuario;
  | this.temispConfiguracions = temispConfiguracions;
  | this.filtrosFichases = filtrosFichases;
  | this.operacions = operacions;
  | this.macros = macros;
  | this.nuevaConfiguracions = nuevaConfiguracions;
  | this.grupos = grupos;
  | }
  | 
  | @Id
  | @Column(name = COD_USUARIO, unique = true, nullable = false, 
precision = 10, scale = 0)
  | @NotNull
  | public long getCodUsuario() {
  | return this.codUsuario;
  | }
  | 
  | public void setCodUsuario(long codUsuario) {
  | this.codUsuario = codUsuario;
  | }
  | @ManyToOne(fetch = FetchType.LAZY)
  | @JoinColumn(name = COD_GRUPOS_USUARIOS, nullable = false)
  | @NotNull
  | public GruposUsuarios getGruposUsuarios() {
  | return this.gruposUsuarios;
  | }
  | 
  | public void setGruposUsuarios(GruposUsuarios gruposUsuarios) {
  | this.gruposUsuarios = gruposUsuarios;
  | }
  | 
  | @Column(name = NOMBRE_USUARIO, length = 60)
  | @Length(max = 60)
  | public String getNombreUsuario() {
  | return this.nombreUsuario;
  | }
  | 
  | public void setNombreUsuario(String nombreUsuario) {
  | this.nombreUsuario = nombreUsuario;
  | }
  | 
  | @Column(name = PRIORIDAD_USUARIO, precision = 3, scale = 0)
  | public Short getPrioridadUsuario() {
  | return this.prioridadUsuario;
  | }
  | 
  | public void setPrioridadUsuario(Short prioridadUsuario) {
  | this.prioridadUsuario = prioridadUsuario;
  | }
  | 

[jboss-user] [JBossWS] - Re: Problem starting user guide

2008-01-04 Thread [EMAIL PROTECTED]
b_ wrote : Hi i'm having the same problem ... i added the 
TrivialService.class to the classpath but to no avail.
  | 
  | Can you please tell me how you solved the problem ?

http://www.jboss.com/index.html?module=bbop=viewtopict=126748

Also consider switching to JAX-WS and the new tools 
http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS_JAX-WS_Tools

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

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


[jboss-user] [JBossWS] - Re: EntityManager injection in Webservice

2008-01-04 Thread [EMAIL PROTECTED]
AFAIK the injection requires your class to be an EJB.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Cannot Load *any* class via reflection

2008-01-04 Thread ryanonsrc
My web application (which is deployed under JBoss) is throwing a lot of 
exceptions and they appear to all be instances where calls to 
java.lang.Class.forName() is failing.

The current configuration I am using is actually quite simple: a single 
web-application deployed in a single WAR.  And the only classes that the 
application is attempting to load resides within that WAR.

I realize that the docs recommend the use of 
Thread.currentThread().getContextClassLoader().loadClass(...) instead of 
Class.forName() but this doesn't work either (and it seems odd that all the 
classes in the web application appear to be running just fine, yet none can be 
loaded via reflection).

Extensive googling has turned up nothing that addresses this issue.  Anyone 
have an idea?  Thanks in advance.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Unable to externaly access my JBoss 4.2.1

2008-01-04 Thread clican
You shall modify the deploy\jboss-web.deployer\server.xml.

From

Connector port=8080 address=${jboss.bind.address}
 maxThreads=250 maxHttpHeaderSize=8192
 emptySessionPath=true protocol=HTTP/1.1
 enableLookups=false redirectPort=8443 acceptCount=100
 connectionTimeout=2 disableUploadTimeout=true /

To

Connector port=8080 address=*
 maxThreads=250 maxHttpHeaderSize=8192
 emptySessionPath=true protocol=HTTP/1.1
 enableLookups=false redirectPort=8443 acceptCount=100
 connectionTimeout=2 disableUploadTimeout=true /

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

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


[jboss-user] [JBossWS] - Re: Clients stopped to work after upgrade from jboss 4.0.5 t

2008-01-04 Thread [EMAIL PROTECTED]
I guess your problem is exposing services with the same contract as before the 
upgrade, so that clients do not have to change. If this is your concern, I 
suggest you to use the top-down-approach 
http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS_JAX-WS_Tools#Top-Down_.28Using_wsconsume.29
i.e. recreate the endpoint interface and related classes given the wsdl 
contract you don't want to change.

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

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


[jboss-user] [EJB 3.0] - Re: Unable to call Stateful Session bean

2008-01-04 Thread fla83tn
Yes..I do the following:


  |  try {
  | InitialContext ctx=new InitialContext();
  | 
stateful=(UserStateful)ctx.lookup(NewsCrawler/UserStatefulBean/remote);
  |  } catch (ServiceLocatorException e) {
  | e.printStackTrace();
  |  }
  | 

The object is looked up correctly, but it is not an instance of UserStateful. 
It is an instance of Proxy. 
From what you can see from the JndiView it says it is an instance of 
object...is it correct that it is an instance of Object? Shouldn't the 
JndiView tell me that is an Instance of Proxy?

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

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


[jboss-user] [EJB 3.0] - Re: One PersistenceUnit, multiple DataSources

2008-01-04 Thread fla83tn
I tried to do as you adviced but I get the following error on jboss4.2.2-GA

[Configuration] Reading mappings from resource : persistence-mapping-file.xml
10:02:10,488 ERROR [AbstractKernelController] Error installing to Start: 
name=persistence.units:unitName=NewsCrawlerPu state=Create
javax.persistence.PersistenceException: [PersistenceUnit: NewsCrawlerPu] Unable 
to find XML mapping file in classpath: ../persistence-mapping-file.xml
at 
org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:892)

I want to deploy a ear file containing a WAR and JAR archives.I inserted the 
persistence.xml both in the WAR and JAR (under WEB-INF and META-INF 
respectively), do I have to ass it also to the classpath on the Manifest of the 
archives?

Flavio

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

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


[jboss-user] [JBossWS] - Re: Relationship between wsconsume and wsimport

2008-01-04 Thread [EMAIL PROTECTED]
Yeah, wsconsume is the JBossWS JAX-WS wsdl consumption tool name. JBossWS 
JAX-WS are based to the SUN tools, but are not the same.
http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS_JAX-WS_Tools

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

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


[jboss-user] [JBoss Seam] - Calling the same method on different beans from the same act

2008-01-04 Thread kummer
I am trying to reuse a facelets file in various use cases with a different 
stateful session bean managing each use case. 

In order to do that the beans outject themselves as manager.  For example: 


  | @Stateful @Name(auditOrderManager) public class AuditOrderManager {
  |   @Out AuditOrderManager manager = this;
  |   @In private FacesMessages facesMessages;
  |   @Begin(nested=true) public void doSelectOrder() {...}
  | }
  | 

and


  | @Stateful @Name(cancelOrderManager) public class CancelOrderManager {
  |   @Out CancelOrderManager manager = this;
  |   @In private FacesMessages facesMessages;
  |   @Begin(nested=true) public void doSelectOrder() {...}
  | }
  | 

In an action attribute a call is made to a method, which is present on all 
these different managers.


  | h:column
  |   f:facet name=headerTa-Nr/f:facet
  |   s:link value=- 
  | action=#{manager.doSelectOrder}/
  | /h:column
  | 

The doSelectMethod of the correct manager does get called, but appearantly the 
annotations have no effect.  The facesMessages component is not injected and 
the conversation doesn't nest. Giving a concrete component name in the action 
solves that problem but precludes reuse. Since the same fragment is used all 
over the application I would rather not have a spearate instance of it for each 
manager. 

Is there a way to achieve reuse in this case?

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

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


[jboss-user] [EJB 3.0] - Calling non-business methon on a stateless bean

2008-01-04 Thread gbdt
Hello,

I'm developing some kind of framework for our EJB3 application. 
For that framework, I'm looking for a way to call a method defined in a 
stateless bean, similar to the behavior of the @Timeout and @WebMethod 
annotated methods. 

I've analyzed both the implementation of the @Timeout (seems to be too timer 
specific) and the implementation of webservice method calls, but I'm not 
comfortable basing my code on either idea.

Can somebody please suggest a best practice to perform such method calls?

Thanks!
G.

Ref to the webservice implementation:
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/branches/Branch_4_2/webservices/src/main/org/jboss/wsf/container/jboss42/InvocationHandlerEJB3.java?view=markup

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

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


[jboss-user] [JBossWS] - Re: howto: soap header wsdl required=true

2008-01-04 Thread [EMAIL PROTECTED]
http://www.jboss.com/index.html?module=bbop=viewtopicp=4116960#4116960

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

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


[jboss-user] [Security JAAS/JBoss] - Custom Authenticator class not found

2008-01-04 Thread barramundi
JBOSS 4.0.5GA

Wrote a similar Authenticator to GenericHeaderAuthenticator
(http://wiki.jboss.org/wiki/Wiki.jsp?page=GenericHeaderBasedAuthentication)
and placed the jar file at 
jboss-4.0.5.GA\server\default\deploy\jbossweb-tomcat55.sar

However JBoss can't find it throwing error
java.lang.ClassNotFoundException: TestAuthenticator

Tried to place at 
jboss-4.0.5.GA\server\default\lib 
jboss-4.0.5.GA\lib
but JBoss does not find it as well.

Even tried to place the class file inside 
jboss-4.0.5.GA\server\default\deploy\jbossweb-tomcat55.sar\tomcat55-service.jar

Where should I place the custom authenticator in order for JBoss to find it?

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

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


[jboss-user] [JBoss Seam] - Re: (CAsh Config ok )/ TransactionTimeout (where to find t

2008-01-04 Thread dreuzel
I've long  outstanding  transactions  and was trying to 
extend the  timeouts:

I found  following in previous  answers 
but  is stis still supported ??
annotation stored  in which jar  ? 
i found the CashConfig using the same defintion @org.jboss.annotation.ejb.


@org.jboss.annotation.ejb.TransactionTimeout(1000)
 


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

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


[jboss-user] [JBossWS] - Re: how to set headers in JAX-WS

2008-01-04 Thread [EMAIL PROTECTED]
I investigated this a bit further... first of all, the reason why you don't get 
the parameter corresponding to the soap header is that the JAX-WS specs say 
that only the wsdl:part from the abstract portion of the contract (i.e. the 
wsdl:portType section) are mapped to Java method parameters.
I see three possible solutions to this, unfortunately they're all not so easy / 
for beginners:
- manually modify the wsdl before consuming it, in order to let wsconsume 
generate the soap header parameter too
- create a SOAPHandler and mess with SAAJ to manually add the header when 
sending the message
- leverage SunRI tool (wsimport), which starting from v. 2.1.3 has a new option 
-XadditionalHeaders that map additional headers in wsdl:binding section as 
method parameters.

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

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


[jboss-user] [JBoss Seam] - Re: pages.xml param

2008-01-04 Thread kooudy
I have discovered following:

1. When I come to page detail.jsp for the first time, param name is included in 
URL (but I don't need that here :) ).

2. When param tag isn't as a child of redirect tag, then after invoking 
search.actionSearch param name isn't included in URL although it is defined in 
page tag.

Reference guide:

anonymous wrote : Any navigation rule with a redirect to the view id 
transparently includes the request parameter. The
  | value of the parameter is determined by evaluating the value binding at the 
end of the invoke application
  | phase.

3. Model isn't updated according to param name (GET request with name param).

Reference guide:

anonymous wrote : 
  | The param declaration is bidirectional, just like a value binding for a JSF 
input
  | When a non-faces (GET) request for the view id occurs, Seam sets the value 
of the named request parameter
  | onto the model object, after performing appropriate type conversions.

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

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


[jboss-user] [JBossWS] - Re: UsernameToken authentication using JBossWS

2008-01-04 Thread [EMAIL PROTECTED]
http://www.jboss.com/index.html?module=bbop=viewtopicp=4116960#4116960

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

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


[jboss-user] [JBoss Messaging] - Re: XA Datasource?

2008-01-04 Thread timfox
I just added a FAQ on this:

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

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

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


[jboss-user] [JCA/JBoss] - Re: NestedSQLException: Apparently wrong driver class specif

2008-01-04 Thread lal_praveen
I am getting this same error. My ear does'nt contain any jdbc.jar files.
Configuration is:jdk1.6.0_03, jboss-4.2.2.GA, MySQL version 5.0.45, MySQL driver
C:\jboss-4.2.2.GA\server\default\lib\mysql-connector-java-5.1.5-bin.jar

Though I am seeing 
C:\jboss-4.2.2.GA\server\default\tmp\deploy\tmp29174jboss-local-jdbc.rar-contents\jboss-local-jdbc.jar
 
file in tmp folder. Probably it is used by jboss. I am deploying ear in default 
server config.

04:23:10,942 INFO  [InjectedDataSourceConnectionProvider] Using provided 
datasource
04:23:10,957 WARN  [JBossManagedConnectionPool] Throwable while attempting to 
get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - 
nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong 
driver class specified for URL: class: com.mysql.jdbc.Driver, url: 
jdbc:mysql//127.0.0.1:3306/Testworld)
at 
org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
at 
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
at 
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:262)
at 
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:500)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
at 
org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)

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

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


[jboss-user] [JBoss Seam] - Restrict result graph of a Web Method

2008-01-04 Thread mcanaleta
Hi,

I have two entity classes, for example Cathegory and Product. A Product belongs 
to a Cathegory and a Cathegory has many products. If I try to return some 
product or some cathegory from a web method, the entity manager tries to fetch 
all fields recursivelly and an infinite cycle error happens. I cand avoid that 
using the @XmlTransient annotation to avoid the cycle, but I would like to 
control this at method level (a method getCathegories() should return the 
cathegories with its products fetched, but not the cathegory of that products, 
and a method getProducts() should return the products with its cathegories 
fetched but not the products of that cathegories). How could I do this?

Thanks!

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

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


[jboss-user] [JBoss Messaging] - Re: XA Datasource?

2008-01-04 Thread timfox
JBM does not rely on the database to provide XA functionality, so should not be 
used with an XA datasource.

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

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


[jboss-user] [JBoss Seam] - Re: Persistence context invocation upon application startup

2008-01-04 Thread fady.matar
afaik @PersistentContext can be used only with session beans and message driven 
beans

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

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


[jboss-user] [JBoss jBPM] - Re: A new task has been assigned to 'null'

2008-01-04 Thread Pebbels
I figured it out on myself:
The error does not depend on the database change but the clou is that jBPM is 
not able deal with multiple swimlanes I used within the processes...

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

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


[jboss-user] [EJB 3.0] - Availability of an service

2008-01-04 Thread ekobir
Hi All

Is it possible to call a business method from a Jboss Service before 
startService() method is called ?

Scenario ---

Service A is running And it uses Service B's business method.

Service B is hot deployed again

Service B's createService method has been called JBoss AS.

At this point, Is it possible for Service A to get  reference of Service B by 
using MBeanProxyExt ?

Or  Is startService method of Service B called by JBoss AS before giving any 
access to this service ? 





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

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


[jboss-user] [JBoss Seam] - Re: actionMethod param lost on login redirect

2008-01-04 Thread [EMAIL PROTECTED]
The capturedView stuff doesn't support capturing the parameters emitted by 
s:link, I guess it should. File a feature request in JIRA.

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

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


[jboss-user] [EJB 3.0] - Re: Unable to call Stateful Session bean

2008-01-04 Thread fla83tn
I just change server to jboss-4.2.2.GA and now everything is fine..! All 1 day 
throwed away for nothing!! :(


UserStatefulBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- remote (proxy: $Proxy121 implements interface 
nc.session.stateful.UserStateful,interface org.jboss.ejb3.JBossProxy)

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

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


[jboss-user] [JBoss Seam] - Re: Retreiving data based on displayed data

2008-01-04 Thread [EMAIL PROTECTED]
Make the method lazy load and cache the data.

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

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


[jboss-user] [JBoss Seam] - Re: Home and Query objects broken after migration to Seam 2.

2008-01-04 Thread [EMAIL PROTECTED]
It does

anonymous wrote : * Persistence-related components moved to 
org.jboss.seam.persistence
  | ...
  | The new packaging comes with new namespaces and new schemas for 
  | components.xml. The namespace for components in package
  | 
  | org.jboss.seam.foobar
  | 
  | Is now:
  | 
  | http://jboss.com/products/seam/foobar
  | 
  | And the schema is:
  | 
  | http://jboss.com/products/seam/foobar-2.0.xsd

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

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


[jboss-user] [JBoss Seam] - Re: how to stop seam auto updating database

2008-01-04 Thread [EMAIL PROTECTED]
Do it programatically

PersistenceProvider.instance().setManualFlushMode(entityManager);

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

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


[jboss-user] [JBoss Seam] - Re: Persistence context invocation upon application startup

2008-01-04 Thread fady.matar
One limitation in here, I can query the properly however I cannot save entities 
the 

  |   em.persist(Object obj)
  | 
seems to do nothing, even at the sql logging level I can see all the selects 
but not inserts.

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

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


[jboss-user] [EJB 3.0] - Re: Availability of an service

2008-01-04 Thread ekobir
ekobir wrote : Hi All
  | 
  | Is it possible to call a business method from a Jboss Service before 
startService() method is called ?
  | 
  | Scenario ---
  | 
  | Service A is running And it uses Service B's business method.
  | 
  | Service B is hot deployed again
  | 
  | Service B's createService method has been called JBoss AS.
  | 
  | At this point, Is it possible for Service A to get  reference of Service B 
by using MBeanProxyExt ?
  | 
  | Or  Is startService method of Service B called by JBoss AS before giving 
any access to this service ? 
  | 
  | 
  | 
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Persistence context invocation upon application startup

2008-01-04 Thread [EMAIL PROTECTED]
You can use @PersistenceContext (if you make it a @Stateful bean) or @In 
EntityManager entityManager; if you have an SMPC configured in components.xml

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

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


[jboss-user] [JBoss jBPM] - Problem sending mail in JBPM

2008-01-04 Thread debnathm
Hi

I am facing a problem sending mail in JBPM. I'm using a mail node.
In the designer, in the mail info, I have mentioned:

Destination : To
Email : email in standard format e.g. [EMAIL PROTECTED]
Subject : test mail from JBPM
Body: test

The contents of the jbpm.cfg.xml is as follows:
jbpm-configuration

   string name=jbpm.mail.smtp.host value=(standard ip address
of mail server) /

/jbpm-configuration

I have edited the jbpm.cfg.xml in the src/main/config in the
left pane of the designer and included this file while deploying.

The process however is unable to send mail. The error is
shown in a stack trace as attached below.

If you have any ideas please let me know.

Thanks,

Debnath

16:39:52,337 ERROR [GraphElement] action threw exception: couldn't send email
org.jbpm.JbpmException: couldn't send email
at org.jbpm.mail.Mail.send(Mail.java:152)
at org.jbpm.mail.Mail.send(Mail.java:116)
at org.jbpm.mail.Mail.execute(Mail.java:63)
at org.jbpm.graph.def.Action.execute(Action.java:122)
at org.jbpm.graph.def.Action$$FastClassByCGLIB$$7876e90e.invoke(generat
ed)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLa
zyInitializer.java:163)
at org.jbpm.graph.def.Action$$EnhancerByCGLIB$$52fea928.execute(generat
ed)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
at org.jbpm.graph.node.MailNode.execute(MailNode.java:29)
at org.jbpm.graph.def.Node.enter(Node.java:319)
at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLa
zyInitializer.java:163)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$5994afcc.enter()

at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:394)
at org.jbpm.graph.exe.ExecutionContext.leaveNode(ExecutionContext.java:1
36)
at org.jbpm.graph.node.Decision.execute(Decision.java:152)
at org.jbpm.graph.def.Node.enter(Node.java:319)
at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLa
zyInitializer.java:163)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$5994afcc.enter()

at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:394)
at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
at org.jbpm.graph.node.TaskNode$$FastClassByCGLIB$$923668a4.invoke(gene
rated)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLa
zyInitializer.java:163)
at org.jbpm.graph.node.TaskNode$$EnhancerByCGLIB$$95985f8a.leave(genera
ted)
at org.jbpm.graph.exe.Token.signal(Token.java:195)
at org.jbpm.graph.exe.Token.signal(Token.java:140)
at org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke(generate
d)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLa
zyInitializer.java:163)
at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$88ee1d48.signal()
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:485)
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:399)
at org.jbpm.jsf.core.action.CompleteTaskActionListener.handleAction(Comp
leteTaskActionListener.java:47)
at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmAc
tionListenerWrapper.java:82)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:
758)
at javax.faces.component.UICommand.broadcast(UICommand.java:368)
at org.jbpm.jsf.taskform.ui.UITaskFormButtonBase.broadcast(UITaskFormBut
tonBase.java:56)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448)

at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:7
52)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
ionPhase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at 

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

2008-01-04 Thread Techieexchange
Hi,

[EMAIL PROTECTED] wrote : Yes, Websphere comes with JSF 1.1, not 1.2.
  | 
  | Did you follow the instructions for deploying to websphere discussed in the 
jpa/hibernate2 examples?

I tried to deploy JPA example (target:Websphere) build and deployed on WAS 6.1 
express. I just did exactly how it was guided in read-me file of JPA example.
First i got:
 


  | java.lang.ClassCastException:
  | org.jboss.seam.jsf.SeamApplication11 incompatible with 
com.sun.faces.application.ApplicationImpl at 
com.ibm.ws.jsf.configuration.FacesConfigParser.createFacesFactories
  | (FacesConfigParser.java:1019)
  | at com.ibm.ws.jsf.configuration.FacesConfigParser.initializeConfiguration 
FacesConfigParser.java:354)
  | at com.ibm.ws.jsf.util.FacesConfigUtil._parseJSFConfiguration 
(FacesConfigUtil.java:128)
  | 

then I installed latest fix pack, as recommended here:
http://www-1.ibm.com/support/docview.wss?rs=180uid=swg1PK47367

Again i re-deployed the same JPA example and now i'm getting:


  | [04.01.08 11:46:46:281 CET] 0021 ExceptionFilt E 
org.jboss.seam.log.JDKProvider error exception root cause
  | [04.01.08 11:46:46:281 CET] 0021 WebAppE   [Servlet 
Error]-[Faces Servlet]: java.lang.NoSuchMethodError: 
org/jboss/seam/ui/component/UISeamCommandBase.getValueExpression(Ljava/lang/String;)Ljavax/el/ValueExpression;
  | at 
org.jboss.seam.ui.component.UISeamCommandBase.getUrl(UISeamCommandBase.java:86)
  | at 
org.jboss.seam.ui.renderkit.LinkRendererBase.doEncodeBegin(LinkRendererBase.java:26)
  | at 
org.jboss.seam.ui.util.cdk.RendererBase.encodeBegin(RendererBase.java:79)
  | at 
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:717)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | at 
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:594)
  | at 
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | at 
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
  | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
  | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
  | at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
  | at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
  | at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
  | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
  | at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
  | at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
  | at 
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
  | at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
  | at 
com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
  | at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:766)
  | at 
com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:674)
  | at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
  | at 
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
  | at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)
  | at 
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
  | at 
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
  | at 
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
  | at 

[jboss-user] [JCA/JBoss] - Re: NestedSQLException: Apparently wrong driver class specif

2008-01-04 Thread vickyk
Explain all the steps you have been doing , open a new thread I will address it 
there .
Your post does not clearly indicate how you are deploying the datasource , 
explain things in DETAIL and *NEVER* bloat the existing forum thread as it 
becomes difficult for people to indentify the current issue .

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

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


[jboss-user] [JBoss Seam] - Re: Persistence context invocation upon application startup

2008-01-04 Thread mcanaleta
Try injecting the entityManager:

@In(entityManager)
  | private EntityManager em;

It works for me in an application scoped component for initializing purposes, 
like you need. I'd like to know the difference of injecting it or using the 
@PersistentContext annotation...

Hope it helps!

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Unable to externaly access my JBoss 4.2.1

2008-01-04 Thread jitorrents
Thanks for yor quick response clican.
I will test it this afternoon. Could you explain a little bit why I should make 
this change in server.xml, please? I wolud like to increase my JBoss 
knowledge.:P


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

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


[jboss-user] [JBossWS] - Re: Clients stopped to work after upgrade from jboss 4.0.5 t

2008-01-04 Thread jarda222
Yes, exactly. Thank you for your help.

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

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


[jboss-user] [JBoss Seam] - Persistence context invocation upon application startup

2008-01-04 Thread fady.matar
I'd like to run a couple of queries in the startup of the application.

The persistence context can be used only in session beans and message
driven beans. Any ideas how to invoke the persistence context or is
there any alternative approach to get hold of the persistence mechanism
upon startup?

Ideally I would like to have something like:

@Scope(ScopeType.APPLICATION)
@Startup
public class QueryStartup extends Jbpm {
@PersistenceContext
EntityManager em;   

@Create
public void startup() {
 Query q = some query in here
 em.createQuery(q).getResultList();
}
}

Any suggestions?

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

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


[jboss-user] [JBoss Seam] - [Beginner] launching a non-predefined workflow. Is my approa

2008-01-04 Thread jbaton
Hi all,

I'm new to Seam+Jbpm.

I have to start a simple workflow (a few nodes long), that contains a task for 
each user that the workflow initiator has chosen amongst a list of users.
All I have is their username. The number of selected users is variable.

I thought of generating the Jpdl definition through Freemarker. 
The N tasks are after a fork.  

The general form of my workflow is, (for 3 users) 

  | Start
  | |
  | Node1
  | |
  | fork
  | |   |   |
  | user1Task,user2Task,user3Task
  | |   |   |
  | join
  | |
  | node2
  | |
  | end
  | 

Then, I register the definition and create an instance.



I noticed that unfortunately, Freemarker's directives, based on the sharp #sign 
collide with the JSF-EL and then, it's not possible to use JSF beans methods as 
actions but only ActionHandlers (unless I replace the JSFEL before and after 
the FM processing).


Is my approach correct ? It seems a bit complicated
What is the simple way to share data between ActionHandlers ?

Thank you


Jerome

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

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


[jboss-user] [JBoss Seam] - Re: Design question with Rich GWT Ajax Client

2008-01-04 Thread sdegardin
For info, I've got this on JBoss log when I start the Application :


  | 
  | 10:04:50,874 WARN  [SessionFactoryObjectFactory] InitialContext did not 
implement EventContext
  | 
  | 10:04:51,112 WARN  [SessionFactoryImpl] JTASessionContext being used with 
JDBCTransactionFactory; auto-flush will not operate correctly with 
getCurrentSession()
  | 
  | 

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

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


[jboss-user] [Security JAAS/JBoss] - Re: Can't get Trace output from JBoss Login Modules

2008-01-04 Thread juhap
I was having the same problem. After doing some changes to jboss-log4j.xml I 
can now see TRACE messages from login modules:

  | 2008-01-04 12:48:48,977 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] initialize, [EMAIL 
PROTECTED]
  | 2008-01-04 12:48:48,977 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] Security domain: my-web
  | 2008-01-04 12:48:48,977 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] Saw 
unauthenticatedIdentity=guest
  | 2008-01-04 12:48:48,977 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] 
DatabaseServerLoginModule, dsJndiName=java:/DefaultDS
  | 

My jboss-log4j.xml is:


  | ?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE log4j:configuration SYSTEM log4j.dtd
  | 
  | !-- = 
--
  | !--   
--
  | !--  Log4j Configuration  
--
  | !--   
--
  | !-- = 
--
  | 
  | !-- $Id: jboss-log4j.xml 65459 2007-09-19 00:25:51Z [EMAIL PROTECTED] $ --
  | 
  | !--
  || For more configuration infromation and examples see the Jakarta Log4j
  || owebsite: http://jakarta.apache.org/log4j
  |  --
  | 
  | log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; 
debug=false
  | 
  |!-- = --
  |!-- Preserve messages in a local file --
  |!-- = --
  | 
  |!-- A time/date based rolling appender --
  |appender name=FILE 
class=org.jboss.logging.appender.DailyRollingFileAppender
  |   errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |   param name=File value=${jboss.server.log.dir}/server.log/
  |   param name=Append value=false/
  | 
  |   !-- Rollover at midnight each day --
  |   param name=DatePattern value='.'-MM-dd/
  | 
  |   !-- Rollover at the top of each hour
  |   param name=DatePattern value='.'-MM-dd-HH/
  |   --
  | 
  |   layout class=org.apache.log4j.PatternLayout
  |  !-- The default pattern: Date Priority [Category] Message\n --
  |  param name=ConversionPattern value=%d %-5p [%c] %m%n/
  | 
  |  !-- The full pattern: Date MS Priority [Category] (Thread:NDC) 
Message\n
  |  param name=ConversionPattern value=%d %-5r %-5p [%c] (%t:%x) 
%m%n/
  |   --
  |   /layout
  |/appender
  | 
  |!-- A size based file rolling appender
  |appender name=FILE 
class=org.jboss.logging.appender.RollingFileAppender
  |  errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |  param name=File value=${jboss.server.log.dir}/server.log/
  |  param name=Append value=false/
  |  param name=MaxFileSize value=1000KB/
  |  param name=MaxBackupIndex value=1/
  | 
  |  layout class=org.apache.log4j.PatternLayout
  |param name=ConversionPattern value=%d %-5p [%c] %m%n/
  |  /layout  
  |/appender
  |--
  | 
  |!-- == --
  |!-- Append messages to the console --
  |!-- == --
  | 
  |appender name=CONSOLE class=org.apache.log4j.ConsoleAppender
  |   errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |   param name=Target value=System.out/
  |   param name=Threshold value=DEBUG/
  | 
  |   layout class=org.apache.log4j.PatternLayout
  |  !-- The default pattern: Date Priority [Category] Message\n --
  |  param name=ConversionPattern value=%d{ABSOLUTE} %-5p [%c{1}] 
%m%n/
  |   /layout
  |/appender
  |   
  |!-- == --
  |!-- More Appender examples --
  |!-- == --
  | 
  |!-- Buffer events and log them asynchronously
  |appender name=ASYNC class=org.apache.log4j.AsyncAppender
  |  errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |  appender-ref ref=FILE/
  |  appender-ref ref=CONSOLE/
  |  appender-ref ref=SMTP/
  |/appender
  |--
  | 
  |!-- EMail events to an administrator
  |appender name=SMTP class=org.apache.log4j.net.SMTPAppender
  |  errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |  param name=Threshold value=ERROR/
  |  param name=To value=[EMAIL PROTECTED]/
  |  param name=From value=[EMAIL PROTECTED]/
  |  param name=Subject value=JBoss Sever Errors/
  |  param name=SMTPHost value=localhost/
  |  param name=BufferSize value=10/
  |  layout class=org.apache.log4j.PatternLayout
  |param name=ConversionPattern value=[%d{ABSOLUTE},%c{1}] %m%n/
  |  /layout
  |/appender
  |--
  | 
  |!-- Syslog events
  |appender name=SYSLOG 

[jboss-user] [JBoss Seam] - Re: [STDERR] com.sun.facelets.compiler.TagLibraryConfig load

2008-01-04 Thread nhpvti
[EMAIL PROTECTED] wrote : Those error messages are normal.
This is not normal ;-) 

http://shrubbery.mynetgear.net/wiki/Facelets_'loadImplicit'_error

In production environments it would be handy to send all errors to admins by 
email using SMTP appender, but this error would generate a lot of inane 
emails.

Here my workaround that works for me in JBoss AS 4.2.2:

category name=STDERR
  |   priority value=FATAL/
  | /category

Setting priority value to ERROR enables the logging again (can be usefull in 
development environments).


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116978
___
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

2008-01-04 Thread [EMAIL PROTECTED]
Are you sure you did

anonymous wrote : From the Enterprise Applications list select: 
jboss-seam-jpa -- Manager Modules -- jboss-seam-jpa.war -- Classes 
loaded with application class loader first, and then Apply

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

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


[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2008-01-04 Thread pbrewer_uk
Thanks Pete. Let me know how you get on, or if you need anything else from me 
to replicate the problem.

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

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


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

2008-01-04 Thread hiasi29
Did you manage to solve this? I have the same problem.

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

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


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

2008-01-04 Thread chawax
I solved this by using column names instead of properties names to define the 
unique constraint. It does not look logical to me, but it works.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Servlet Redirect filter based on declarative decision graph?

2008-01-04 Thread rainersimon
Hi,

-- Sorry for cross posting this from the jBPM group but it seems to be equally 
suitable for this group as well - I'm ready to get flamed ;-) --

I'm trying to achieve the following goal, and I don't know how to do it in a 
clever way yet - i.e. without creating a proprietary solution to a problem that 
someone else has probably solved (better) already:

I'm planning to build a servlet filter that redirects visitors of the same URL 
to different documents. The redirect-decision should be made based on a 
decision graph - similar to a workflow graph - and a bunch of parameters stored 
in the HttpSession context. 

I could just hard-code the decision graph into the servlet filter. But I want 
to be able to change the graph (i.e. the decision logic) without changing the 
code of the Filter...

I know this should be possible with jBPM. But since there is no interaction 
with with databases, Web services, or human actors in the decision logic, it 
seems that I'm following an overly complicated route to achieve a relatively 
simple goal.

Is there an easier way to do this? Any comments are welcome. At the moment I 
don't even know what words to Google for ;-)

Thanks,
Ray

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

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


[jboss-user] [JBoss jBPM] - Re: A new task has been assigned to 'null'

2008-01-04 Thread kukeltje
no it does not have anything to do with jbpm not supporting multiple swimlanes, 
because it does. It is/was a bug in the console that it did not display things 
correctly. It should have worked normally otherwise

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

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


[jboss-user] [JBossCache] - Re: Problem after loading Huge data

2008-01-04 Thread [EMAIL PROTECTED]
In terms of limitations, there are no known memory or size limitations within 
JBoss Cache, as long as your JVM has adequate heap size.  

In terms of performance, tree breadth is represented as Maps containing child 
nodes for each parent node.  If each parent node has a large number of 
children, the Map implementation may become a bottleneck.  As of the current 
stable release (2.0.0.GA) we use java.util.concurrent.ConcurrentHashMaps here.  
I would say it is worthwhile profiling to see if this does become a bottleneck 
for you.

In terms of depth, while 20 - 30 levels deep is probably close to the upper 
level of what I have seen in production use as most folk tend to prefer broader 
trees to deeper ones.  THe limiting factor here is the cost of retrieving a 
node from the tree (since it walks the tree structure).  Deeper trees means 
more walking.  In 2.1.0 we will be optimising this by significantly reducing 
tree walking (JBCACHE-811).  Again though, something I'd recommend profiling 
first to see how much of an impact it causes with your access patterns.

Finally, regarding your issue of verifying existence, do you have any eviction 
configured?  It could be that an eviction thread is removing nodes from the 
tree.




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

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


[jboss-user] [JBoss jBPM] - Workflow without DB/Service-Invocations? Is there a simpler

2008-01-04 Thread rainersimon
Hi,

I'm trying to achieve the following goal, and I don't know how to do it in a 
clever way yet - i.e. without creating a proprietary solution to a problem that 
someone else has probably solved (better) already:

I'm planning to build a servlet filter that redirects visitors of the same URL 
to different documents. The redirect-decision should be made based on a 
decision graph - similar to a workflow graph - and a bunch of parameters stored 
in the HttpSession context. 

I could just hard-code the decision graph into the servlet filter. But I want 
to be able to change the graph (i.e. the decision logic) without changing the 
code of the Filter...

I know this should be possible with jBPM. But since there is no interaction 
with with databases, Web services, or human actors in the decision logic, it 
seems that I'm following an overly complicated route to achieve a relatively 
simple goal.

Is there an easier way to do this? Any comments are welcome. At the moment I 
don't even know what words to Google for ;-)

Thanks,
Ray



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

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


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

2008-01-04 Thread [EMAIL PROTECTED]
Have you looked at Seam Remoting's JMS-subscription feature?

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

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


[jboss-user] [JBossCache] - Re: Singleton TreeCache Provider

2008-01-04 Thread [EMAIL PROTECTED]
How do you obtain your JBoss Cache instance right now?  If it is shared via 
JNDI or JMX, then there's your singleton.

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

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


[jboss-user] [Beginners Corner] - Re: jboss and apache?

2008-01-04 Thread nitm
peter,

i never thought of using the apache for port 80, that can do the trick... right 
now i have iis working on port 80 but i dont need/use it so that's not a 
problem...

i would rather use the same ports though.
will the use of the mod_jk harm me in anyway?  is this something i should 
avoid?

another question i have:
is there a way to check every incoming web request (http) ?
i want to check every request to see if the user is logged, if so send him to 
the requested path, if not send him to a logging page..
is this possible?

thanks, nitzan.

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

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


[jboss-user] [JBoss Seam] - Seam transaction problem (maybe unclear)

2008-01-04 Thread dreuzel
I need  to do  a lot  of  independent  updates  in one  session.(JTA)

principaly  I need  multiple  Begin/commit  sessions

and  I use  a delegate  session to handle  the transactions.

even though (all/most)  transactions are commited successfull
i suffer  from the  main transaction  being  timed out.
This apearently causes all (previously  committed ??!?) transactions  to be  
rolled back  

I understand, seam handles the transactions itself using (8.2Seam manged 
transactions )
mentions :
use an extended persistence context that is scoped to the conversation, instead 
of to the transaction 

use two transactions per request; the first spans the beginning of the update 
model values phase until the end of the invoke application phase; the second 
spans the render response phase 


is there  some  solution to the  problem , Whatever  happens  a long 
operation gets  terminated  by a timeout 




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

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


[jboss-user] [JBoss Seam] - Re: Database flush problem

2008-01-04 Thread Techieexchange
[EMAIL PROTECTED] wrote : This is most definitely a very very bad idea. 
Persistence contexts should (almost) never be scoped to the users session.

You're absolutely right. I want to give a warning about it but i forgot.

As PC is conversation-scoped (always recommended), original post request for 
auto-flush without any explicit (persist or merge) is not possible i think and 
moreover this situation is normal.

What's your opinion?

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

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


[jboss-user] [JBoss Seam] - Re: Persistence context invocation upon application startup

2008-01-04 Thread fady.matar
I had to convert the startup POJO into a stateful bean, use the persistence 
context and now it works like charm. 
Thanks again Pete ;-)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117022
___
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

2008-01-04 Thread Techieexchange
Hi,
 I got it working now!!

Seems to be some old corrupted war file (in temp/cache), I removed it 
completely and made a fresh deployment, that worked.

Now I deployed my own application (made with Seam+Spring+POJO+JPA) on 
Websphere. It seems to be a RichFaces was not loaded (no styles/panels) also no 
exceptions. I try to find solution in RichFaces forum.

If that works I share my experiences here and blog it.

Thanks for your support.

Techieexchange

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

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


[jboss-user] [JBoss jBPM] - Re: Problem sending mail in JBPM

2008-01-04 Thread anuragpaliwal
anonymous wrote : Caused by: javax.mail.SendFailedException: Sending failed;
  | nested exception is:
  | class javax.mail.MessagingException: Exception reading response;
  | nested exception is:
  | java.net.SocketException: Socket is not connected: recv failed 

Could you make sure that mail server is configured properly? 

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

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


[jboss-user] [JBoss Seam] - Re: Retreiving data based on displayed data

2008-01-04 Thread jteb
Can't you use a stateful bean with an @Factory annotated method to load you 
data?

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

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


[jboss-user] [JNDI/Naming/Network] - javax.naming.NoInitialContextException: Can't find property:

2008-01-04 Thread joepareti
I am developing a demo based on JBOSS 4.2.0.CR2 on Linux RHEL 3/x86.
The demo includes an EJB (stateless session bean), and a client app that 
requests services from the bean.

I invariably get the following rt error when launching the client as 
# ant runClientApp

[java] javax.naming.NoInitialContextException: Can't find property: 
java.naming.factory.initial
[java] at javax.naming.spi.NamingManager.getInitialContext(j 
ava.util.Hashtable) (/lib/ssa/libgcj.so.4.0.0)
[java] at javax.naming.InitialContext.getDefaultInitCtx() 
(/lib/ssa/libgcj.so.4.0.0)
[java] at javax.naming.InitialContext.getURLOrDefaultInitCtx (java.lang.String) 
(/lib/ssa/libgcj.so.4.0.0)
[java] at javax.naming.InitialContext.lookup(java.lang.Strin g) 
(/lib/ssa/libgcj.so.4.0.0)
[java] at za.co.solms.finance.calculators.LoanCalculatorPane l.connect() 
(Unknown Source)
[java] at za.co.solms.finance.calculators.LoanCalculatorPane l.init() (Unknown 
Source)
[java] at za.co.solms.finance.calculators.LoanCalculatorPane 
l.LoanCalculatorPanel() (Unknown Source)
[java] at za.co.solms.finance.calculators.LoanCalculatorClie 
nt.LoanCalculatorClient() (Unknown Source)
[java] at za.co.solms.finance.calculators.LoanCalculatorClie 
nt.main(java.lang.String[]) (Unknown Source)

my jndi.properties, available in classpath and also under $JAVA_HOME, is as 
follows:
(I also saw jndi.properties is included in the client jar file, so I assume it 
is taken into account):

java.naming.factory.initial=org.jnp.interfaces.Nam ingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.url.pkgs=org.jboss.namingrg. jnp.interfaces
jnp.socketFactory=org.jnp.interfaces.TimedSocketFactory
#Connection timeout (0 == blocking)
jnp.timeout=0
#Read timeout (0 == blocking)
jnp.sotimeout=0

Finally, I started playing around with the client code by e.g. changing the 
name of the bean in the lookup function ...

Object beanHomeRef
= jndiContext.lookup(jndiName);

into

Object beanHomeRef
= jndiContext.lookup(local/ejb/LoanCalculator);

but without any results 

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

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


[jboss-user] [JBoss Seam] - Re: Anybody got Seam 2.0.0 working with WebSphere 6.1 and EJ

2008-01-04 Thread [EMAIL PROTECTED]
Here is my plan - I'm wrapping up weblogic today, and this weekend.  

Then next week Websphere.  Because I know there are some more people 
interesting in websphere I'll share my progress as I go, and not wait until I 
finish updating the doc.

Just as a quick survey tell me about your application so I make sure I cover 
the needed areas.  My plan is to attempt to deploy the jee5/booking example 
which is seam + ejb3 + richfaces + hibernate/JPA etc

I will also be porting an application generated through Seam gen.

The porting can be tricky until you figure out each containers quirks.  For 
example on weblogic you cannot deploy EJBs with varargs (which seam has), and 
OC4J needs a special file just so richfaces css files resolve.


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

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


[jboss-user] [JBossWS] - Re: Relationship between wsconsume and wsimport

2008-01-04 Thread jsolderitsch
Thanks for the confirmation. I am successfully using wsimport from maven to 
generate JAXB classes from a WSDL that seems to produce identical code compared 
to that produced by wsconsume. This allowed use to replace a .bat file in our 
workflow with a corresponding maven goal.

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

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


[jboss-user] [JBoss Seam] - Re: Persistence context invocation upon application startup

2008-01-04 Thread mcanaleta
I don't need to convert to a Stateful Bean, my POJO can persist entities, i 
think the difference is that my startup method is annotated @Transactional.

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

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


[jboss-user] [JBoss Seam] - FacesContext is null in Identity.initCredentialsFromCookie

2008-01-04 Thread jayliu2000
Hi. I'm working on a seam application (with Seam 2.0 GA) and now I want to use 
the rememberMe feature. The application is deployed to tomcat 6.0  and I'm 
using myfaces 1.2.

The problem is that the rememberMe feature of Seam never works for me and I 
tried to debug into the codes and fount that when 
Identity.initCredentialsFromCookie() was invoked, after the first line of this 
method:
   FacesContext ctx = FacesContext.getCurrentInstance();
  |  
ctx is null.

Can anybody give me some hints?  

This is my components.xml:

  | ?xml version=1.0 encoding=UTF-8?
  | components xmlns=http://jboss.com/products/seam/components;
  | xmlns:core=http://jboss.com/products/seam/core;
  | xmlns:persistence=http://jboss.com/products/seam/persistence;
  | xmlns:transaction=http://jboss.com/products/seam/transaction;
  | xmlns:security=http://jboss.com/products/seam/security;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://jboss.com/products/seam/core 
http://jboss.com/products/seam/core-2.0.xsd 
  |  http://jboss.com/products/seam/persistence 
http://jboss.com/products/seam/persistence-2.0.xsd 
  |  http://jboss.com/products/seam/transaction 
http://jboss.com/products/seam/transaction-2.0.xsd 
  |  http://jboss.com/products/seam/security 
http://jboss.com/products/seam/security-2.0.xsd
  |  http://jboss.com/products/seam/components 
http://jboss.com/products/seam/components-2.0.xsd;
  | 
  | core:manager conversation-timeout=12
  | concurrent-request-timeout=500 
conversation-id-parameter=cid /
  | core:init jndi-pattern=#{ejbName}/local debug=false /
  | 
  | transaction:entity-transaction entity-manager=#{em} /
  | 
  | persistence:entity-manager-factory name=myDatabase /
  | 
  | 
  | persistence:managed-persistence-context name=em
  | auto-create=true entity-manager-factory=#{myDatabase} /
  | 
  | security:identity
  | authenticate-method=#{authenticator.authenticate} /
  | 
  | event type=org.jboss.seam.notLoggedIn
  | action execute=#{redirect.captureCurrentView} /
  | /event
  | 
  | 
  | event type=org.jboss.seam.postAuthenticate
  | action execute=#{redirect.returnToCapturedView} /
  | /event
  | 
  | /components
  | 

This is my faces-config.xml:
?xml version=1.0 encoding=UTF-8?
  | faces-config version=1.2 xmlns=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;
  | 
  | application
  | 
  | view-handlercom.sun.facelets.FaceletViewHandler/view-handler
  | locale-config
  | default-localeen/default-locale
  | supported-localeen/supported-locale
  | 
  | /locale-config
  | /application
  | 
  | 
  | /faces-config
  | 

This is my web.xml:

  | ?xml version=1.0 encoding=UTF-8?
  | web-app version=2.5 xmlns=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-app_2_5.xsd;
  | 
  | !-- Seam --
  | 
  | listener
  | listener-class
  | org.jboss.seam.servlet.SeamListener
  | /listener-class
  | /listener
  | 
  | filter
  | filter-nameSeam Filter/filter-name
  | filter-classorg.jboss.seam.servlet.SeamFilter/filter-class
  | /filter
  | 
  | filter
  | filter-nameMyFacesExtensionsFilter/filter-name
  | filter-class
  | org.apache.myfaces.webapp.filter.ExtensionsFilter
  | /filter-class
  | /filter
  | filter
  | display-nameAjax4jsf Filter/display-name
  | filter-nameajax4jsf/filter-name
  | filter-classorg.ajax4jsf.Filter/filter-class
  | /filter
  | 
  | filter-mapping
  | filter-nameajax4jsf/filter-name
  | servlet-nameFaces Servlet/servlet-name
  | /filter-mapping
  | 
  | !-- extension mapping for adding script/, link/, and other 
resource tags to JSF-pages  --
  | filter-mapping
  | filter-nameMyFacesExtensionsFilter/filter-name
  | !-- servlet-name must match the name of your 
javax.faces.webapp.FacesServlet entry --
  | servlet-nameFaces Servlet/servlet-name
  | /filter-mapping
  | 
  | !-- extension mapping for serving page-independent resources 
(javascript, stylesheets, images, etc.)  --
  | filter-mapping
  | filter-nameMyFacesExtensionsFilter/filter-name
  | url-pattern/faces/myFacesExtensionResource/*/url-pattern
  | /filter-mapping
  | 

[jboss-user] [JBossCache] - Re: configuration error - setting UseInterceptorMbeans attr

2008-01-04 Thread [EMAIL PROTECTED]
JBCACHE-1255.  Thanks.


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

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


[jboss-user] [JBoss Seam] - Re: change project name

2008-01-04 Thread rodrigotico
it`s an EAR project.



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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2008-01-04 Thread trouby
[EMAIL PROTECTED] wrote : trouby wrote : Well, sorry for being so annoying 
but I still don't get the point, If I have buttons that should start a 
conversation, propagation='none' is not an option
  | 
  | Normally I find that you don't want to start a new conversation whilst 
another one is running. Post your use case for this.


My case? I think it's any case with buttons that always exist on the template,

Lets make an example:
I have a top menu(that is always with visible) with few options, 
[my items: a, b, c, d]

Pressing on one item should start a conversation, as this item is heavily being 
managed later on.

I have added a 'done' button with propagation='none' but no one is using it : )

Pressing on another item(from the menu) in the middle of the current long 
running conversation causes the error,

I solved it by 'joining' to the current conversation just to fix the error but 
this is not too logical as the last selected item is not being managed by the 
user anymore.



Thanks.

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

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


[jboss-user] [JBossCache] - Re: Buddyrep issue

2008-01-04 Thread FredrikJ
We do apply session affinity.

Look at this way:

 1. Cache A starts
 2. Cache A adds 10 nodes to the cache
 3. Cache B starts
 4. Cache B 'gets' the 10 nodes thus causing a gravitation

After #4 in the sequence we end up with the weird buddy rep settings as 
discussed above. This is exactly what we are doing in the test provided. We 
only go through the sequence once, we do not keep modifying/adding etc to the 
cache. (There is also a 5 second sleep between 3 and 4).

Just to clarify:
We do not add data to the cache while trying to read it.
We do not modify data to the cache while trying to read it.
In fact there is no concurrent access at all in the test provided.

The issue is clearly related to data gravitation, in the logs we see that the 
buddy backup is correctly setup before gravitation occurs (i.e. after #3 in the 
sequence above), but has changed to include itself after data gravitation has 
occurred (after #4 in the sequence).

I'll try and make a comparison run with 2.0.0 GA and post the logs, if behavior 
is unchanged then we should get the same buddy backup result.






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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117065
___
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

2008-01-04 Thread [EMAIL PROTECTED]
Hello,

I'm working on porting and documenting seam applications to various containers.

WebSphere is my next target as described here 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4117061#4117061

My plan is to get to it next week and I'll post info as I have it.

Thanks for your investigation and comments though it will help get this started 
:)

-Jay

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

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


[jboss-user] [JBoss jBPM] - Re: A new task has been assigned to 'null'

2008-01-04 Thread Pebbels
How to eliminate this bug / where to get the correct version?

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

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


[jboss-user] [JBossWS] - how to get password in handler

2008-01-04 Thread jalaja
hi 

i am using jax-ws handlers,i have set username and paddword property in client 
side

 Map context = ((BindingProvider) hello).getRequestContext();

context.put(BindingProvider.USERNAME_PROPERTY, user);
context.put(BindingProvider.PASSWORD_PROPERTY, pass);


in the handler i want to access username and password

i am able to get username 


public boolean handleMessage(MessageContext context) {


 javax.servlet.http.HttpServletRequest httpServletRequest = 
((javax.servlet.http.HttpServletRequest)context.get(MessageContext.SERVLET_REQUEST));
   System.out.println(user name+httpServletRequest.getRemoteUser());
   System.out.println(principle+httpServletRequest.getUserPrincipal());
 return true;
}

i am getting fallowing output from the handler

user name user
user username=user password=pass roles=basicUser

but i need password alone 

how to get password alone...which property i have to use

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

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


[jboss-user] [JBossWS] - Re: new or old issue?

2008-01-04 Thread constantine
thanks!

- this excpetion is throw just if jboss as is loaded inside eclipse.

if i start jboss as outside eclipse does work. you hint doesn't help.
i use jdk 1.6._03 and with jrockit6 happens the same.

okay, i start now jboss outside eclipse

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

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


[jboss-user] [JBoss Portal] - Re: JBoss Portal + DWR

2008-01-04 Thread lvcster
hi, thanks for the link. But i have 1 problem, i downloaded the zip file on 
from the link and deployed it into the JBoss, and opened the 
http://localhost:8080/portal, i can see the portlet - nice. but when i click on 
it, it just opens the blank page with the disclaimer 'Powered by JBoss Portal'. 
So i can't go on and test if the DWR is working or not. Any idea what can be 
the problem? 

Another thng this code displayed from the link you gave me...
script type=text/javascriptsrc='/dwr/interface/Destination.js'



is different from the 1 that comes with the war file...

   


which is the most working 1.

thanks.
lvcster.

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

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


[jboss-user] [JBoss Seam] - Re: Persistence context invocation upon application startup

2008-01-04 Thread fady.matar
That works, thanks 

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

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


[jboss-user] [JBoss Seam] - Request param acquire

2008-01-04 Thread kooudy
How to acquire request parameter values, if there are multiple same parameter 
names?

Example (I want values Gavin and Pete):

http://localhost:8080/detail.seam?name=Gavinname=Pete

Map params = FacesContext.getCurrentInstance()
  | .getExternalContext().getRequestParameterMap();

There is is only one param name in params.

thanks a lot


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

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


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

2008-01-04 Thread hiasi29
Thanks, that worked for me, too!

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

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


[jboss-user] [JBoss Seam] - Re: Retreiving data based on displayed data

2008-01-04 Thread felixk2
I can do that, but is it possible though to have a bean with an @In and @Out 
then set the @In parameter when I load the page?

Basically it would be great if I can just do something like: 

#{customerProductList.customer = customerHome.instance} in my view. (.customer 
being the @In of customerProductList)

Then my datatable would check the @Out three times instead of firing off three 
db queries.

Has anyone ever experienced the same situation?

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

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


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

2008-01-04 Thread Cloud
No but good suggestion, you may have put the finger on the right thing... that 
reminds me something interesting around the reverse ajax subject with jms  but 
i don't remember what exactly :) or where i saw it to be precise.

What were you thinking off around this ?

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

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


[jboss-user] [JBossCache] - Re: Buddyrep issue

2008-01-04 Thread [EMAIL PROTECTED]
Sorry, I didn't quite understand your use case in the beginning.

If you are adding data to .5 while at the same time reading the same data from 
the other nodes (causing data gravitation), this will naturally cause some 
timeouts since there is contention on a buddy backup subtree.

In general though, we very strongly recommend that you have session affinity if 
you are using buddy replication.  I.e., only perform reads and writes on ONE 
INSTANCE in the cluster for each key.  Data gravitation should really only be 
used as a form of recovery if a node dies and your reads and writes are now 
redirected to a standby instance.

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

I guess judging by your access patterns, you need something like Partitioning, 
which won't be available for at least another 6 months or so - unless you're 
willing to help out!  ;-)

Without better knowledge of your application, I can't really recommend an 
alternative strategy - do you use a load balancer to distribute requests 
between caches?  Do you use some form of session id per request and is data 
shared between sessions?



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

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


[jboss-user] [JBossCache] - Re: Does it matter with the warning

2008-01-04 Thread [EMAIL PROTECTED]
Hi

I can't say I've ever seen this before - it may well have to do with the fact 
that JBoss Cache is not an XA resource and hence doesn't go through the steps 
to register itself as an XA resource with an XA compliant TM.  

This should not impact any functionality though, except XA recovery, but in a 
cache's case this would typically be to flush the cache.

Anyway, I have created a JIRA issue to investigate the WARN message: 
JBCACHE-1254

Could you please confirm - on the JIRA - the versions of JBoss Cache and JBoss 
TS, as well as the environment (i.e., within an app server, etc)?

Cheers,
Manik

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Successful deployment on GlassFish, but not on JBoss 4.2

2008-01-04 Thread djkrite
Hello, I have a web application that I can deploy on GlassFish with no 
problems, but when I attempt to deploy on JBoss4.2 I get this error:
08:45:25,490 FATAL [application] JSF1029: The specified InjectionProvider 
implementation 'org.jboss.web.jsf.integration.injection.JBossInjectionProvider' 
does not implement the InjectionProvider interface. 
  | 08:45:25,492 INFO  [application] JSF1048: PostConstruct/PreDestroy 
annotations present.  ManagedBeans methods marked with these annotations will 
have said annotations processed.
  | 08:45:25,822 ERROR [[/LoginV1]] Exception sending context initialized event 
to listener instance of class 
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
  | java.lang.ClassCastException: com.sun.faces.config.WebConfiguration
  | 

Code someone help me out?

TK

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

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


[jboss-user] [JBoss Seam] - Extended EL support (with parameters) - MethodNotFoundExcep

2008-01-04 Thread rizzojo
Hi, I'm a Seam newbie trying to learn it.

I've an issue with the use of extended EL in datatables to pass parameters.

I can make the booking example (tutorial) work and it uses that feature.
But I cannot make it work for my project.

(fragment of) The xhtml code of the table:

  |  h:dataTable var=usr value=#{userList} 
rendered=#{userList.rowCount0}
  |h:column
  |  f:facet name=header
  |h:outputText value=User Name/
  |  /f:facet
  |  #{usr.userName}
  |/h:column
  |h:column
  |  f:facet name=header
  |h:outputText value=User ID/
  |  /f:facet
  |  s:link value=#{usr.id} 
action=#{userEdit.selectUser(usr)}/   
  |  s:link value=#{usr.id} action=#{userEdit.selectTest}/ 
User(usr)  
  |/h:column
  |
  |  /h:dataTable
  | 

This table contains 2 columns with:
- #{usr.userName}
- links with #{usr.id}

In the second column, the first link has a parameter
s:link value=#{usr.id} action=#{userEdit.selectUser(usr)}/
and the other link has no parameter (other method)
s:link value=#{usr.id} action=#{userEdit.selectTest}/ 

Here is the Java code of the userEdit seam bean, which is a SFSB.


  | @Stateful
  | @Scope(EVENT)
  | @Name(userEdit)
  | public class UserEditAction implements UserEdit {
  |   
  | public void selectUser(UserProfile selectedUser) {
  | System.out.println(EDITINGUSER Selected: + editingUser);
  | }
  | 
  | public void selectTest(){
  |  System.out.println(LINK WORKS);
  | }
  | }
  | 


The Problem:

The first link (with the parameter, extended EL) does not work, while the 
second link (no parameter, standard EL) works well.

In the browser, here are the urls of each links:
1ST:
http://localhost:8080/TestWeb/userlist.seam?dataModelSelection=usr%3AuserList%5B0%5DconversationId=4actionMethod=userlist.xhtml%3AuserEdit.selectUser%28usr%29
 

2ND:
http://localhost:8080/TestWeb/userlist.seam?dataModelSelection=usr%3AuserList%5B0%5DconversationId=4actionMethod=userlist.xhtml%3AuserEdit.selectTest

On the JBoss console, seam produces a stack trace when clicking the first link.


  | 15:30:54,735 ERROR [SeamPhaseListener] uncaught exception
  | javax.el.MethodNotFoundException: Method not found: 
UserEditAction:a2s3g6b-z96rab-fb0tnazx-1-fb0treof-s.selectUser(be.post.jr.domain.UserProfile)
  | at org.jboss.el.util.ReflectionUtil.findMethod(ReflectionUtil.java:215)
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:273)
  | at org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)
  | at org.jboss.el.parser.AstMethodSuffix.invoke(AstMethodSuffix.java:65)
  | at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
  | at 
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
  | at org.jboss.seam.navigation.Pages.callAction(Pages.java:634)
  | 

Note in the stack trace, that some strange string has been added to the name of 
the method:
UserEditAction:a2s3g6b-z96rab-fb0tnazx-1-fb0treof-s.selectUser(be.post.jr.domain.UserProfile)

I must admit that I cannot find the cause by myself, even with comparing with 
the book (Yuan) and the examples.

Does anybody have an idea for me ?
Many thanks.

John Rizzo.


Environment:
Facelets
Seam 2.0.1.CR1.
JBoss-4.2.2.GA

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

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


[jboss-user] [JBoss Seam] - Re: Retreiving data based on displayed data

2008-01-04 Thread felixk2
I can't because I need to pass a Customer object to the method. The @factory 
works fine if the method doesn't need any parameters.

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

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


[jboss-user] [EJB 3.0] - How to size EJB3 continer for EJB3 stateless session beans (

2008-01-04 Thread andyredhead
Hi,

I'd like to know if anyone has any guidelines or techniques for sizing the 
instance pool for EJB3 stateless session beans in JBoss 4.2.1?

We are going live with an EJB3 based application and I'd like to know if I've 
got the EJB3 container configured sensibly...

In  ejb3-interceptors-aop.xml I've got the references to:



  |   annotation expr=!class(@org.jboss.annotation.ejb.PoolClass)
  |  @org.jboss.annotation.ejb.PoolClass 
(value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=300, timeout=1)
  |   /annotation
  | 

Which means I've multiplied the default by 100!

How can I tell if this is too big or too small?

Are there any other parameters I should be changing to run the EJB3 container 
under heavy load on poweful servers?

We will be running on jdk1.5_13, solaris 10, sun T2k servers (if that makes any 
difference).

Thanks

Andy

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

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


[jboss-user] [JBossCache] - Re: Buddyrep issue

2008-01-04 Thread [EMAIL PROTECTED]
FredrikJ wrote : 
  | But we also see the master having a buddy backup for itself (with no data):
  | 
  | MASTER:
  |   | null  {}
  |   |   /_BUDDY_BACKUP_  {}
  |   | /192.168.1.135_51469  {}
  |   | /192.168.1.135_51470  {}
  |   |   /1  {1=c6m0p888dfvz}
  |   
  | The backup node for itself does not contain any data like in our real 
application but I think it might be symptomatic for the issue.
  | 
  | 

Come to think of it, I did see something like this in trunk a couple of weeks 
back and fixed it.  Do you want to try a snapshot build from SVN and see if you 
still see the problem?


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

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


[jboss-user] [JBoss Seam] - Re: How to control end of conversations/state of stateful be

2008-01-04 Thread schlafsack
[EMAIL PROTECTED] wrote : Post your use case for this.

If I understand the topic of this thread, I *think* I've come up against a 
similar problem in the search application I'm writing to learn seam.

My application has one page with a text box, a button, a results table and 
next/previous buttons.

I'd like to define a conversation as:


  | * submitting a search query using the button.
  | * navigation forwards though the results using the next link.
  | * navigation backwards though the results using the previous link.
  | 

I'd also like the submission of a new query to start a new conversation. 
Ideally, clicking the button should end the existing conversation and begin a 
new one.  So far I can't see an easy way of doing this.

With a simple @Begin attribute on the search method, performing a second search 
throws an exception - which is expected, we are already in a conversation.

Using @Begin(join=true) does not meet the requirement of starting a new 
conversation per search.

I could add a clear button that calls an @End attributed method but this is 
does not really meet your average user's expectations of a search tool.






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

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


[jboss-user] [JBoss Portal] - Using a commandLink with tomahawk tree2

2008-01-04 Thread alex.alvarez
Hello,

I am using myfaces1.1.5 with  tomahawk1.1.6, using facelets and JBoss Portal 
2.6.3 

I have a t:tree2 component where each node has an embedded  commandLink. Here 
is the code:


t:tree2 id=serverTree value=#{editUser.treeData} var=node 
varNodeToggler=t clientSideToggle=false showNav=true 
imageLocation=/images
...
f:facet name=dynamic-folder
h:panelGroup
h:commandLink immediate=true 
action=#{t.toggleExpanded} actionListener=#{editUser.expandDynamicFolder}
   t:graphicImage value=/images/folder-open.png 
rendered=#{t.nodeExpanded} /
   t:graphicImage value=/images/folder.png 
rendered=#{!t.nodeExpanded} /
   h:outputText value=#{node.description} 
styleClass=nodeFolder/
   
/h:commandLink
   /h:panelGroup
   /f:facet

I was able to click in the nodes and launch the commandLink action before i 
switched to Facelets.  Now it doesn't work or it works on the first or second 
request and then nothing...   If I look at the request parameters I see that 
the selected Node is there but the component doesn't seem to be able to decode 
it

Parameters[docNum=1 | 
org.apache.myfaces.portlet.MyFacesGenericPortlet.VIEW_ID=/WEB-INF/jsf/userAdmin.xhtml
 | _id15jbpns_2fSmartPortal_2fdefault_2f35snpbj_SUBMIT=1 | 
_id15jbpns_2fSmartPortal_2fdefault_2f35snpbj:_link_hidden_= | 
_id15jbpns_2fSmartPortal_2fdefault_2f35snpbj:_idcl=_id15jbpns_2fSmartPortal_2fdefault_2f35snpbj:
serverTree:0:1:0:0:_id129jbpns_2fSmartPortal_2fdefault_2f35snpbj]

Any ideas?


regards,
Alex

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

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


[jboss-user] [JBossCache] - Re: org.jboss.cache.lock.TimeoutException thrown in second i

2008-01-04 Thread [EMAIL PROTECTED]
Does this actually cause any problems in your cache operation?  I think it is 
unnecessarily noisy logging of exceptions that aren't a problem, that was fixed 
in more recent versions of JBoss Cache.

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

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


[jboss-user] [JBoss Seam] - Connection usage for Seam Managed Entity Manager

2008-01-04 Thread breako
Hi,
I am using a Seam Managed Entity Manager for a JTA datasource with the Flush 
mode set to manual for business use cases, in Seam conversations.

I was just wondering when does Seam actually get a JDBC connection?

1. At the beginning of web request?
2. As soon as EntityManager operations are performed?
3. When flush is invoked by the Application?

The reason why I ask is because I am wondering how this approach will scale. I 
need to know how long the conversation will hang onto the connection.

Thanks

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

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


[jboss-user] [EJB 3.0] - EJB3 with Eclipse

2008-01-04 Thread pipo323400
Hi, 

We are trying to work a simple EJB 3 application. Our goal is to post a 
stateless bean and acces to it from a web application.

We are developing it with eclipse. Here is the program structure:
-A java application that contains two interfaces and the bean (also a metainf) 
to implement the stateless bean.
-A web application 2.4 (we had tried also with 2.5).

We deploye the bean as a jar in the jboss, and it seems to recognize it. But 
when we try to acces with the web app (via servlet) we got an 
java.nullPointerException.

Ejb Code:


  | import java.sql.ResultSet;
  | import java.sql.SQLException;
  | import javax.ejb.Remote;
  | 
  | 
  | /**
  |  * This is the business interface for Carp enterprise bean.
  |  */
  | @Remote
  | public interface EjbRemote {
  | 
  | boolean doStatement(String queryName) throws SQLException;
  | 
  | ResultSet doQuery(String query) throws SQLException;
  | 
  | void printQuery(String query);
  | }
  | 


  | import java.sql.ResultSet;
  | import java.sql.SQLException;
  | import javax.ejb.Local;
  | @Local
  | public interface EjbLocal {
  | 
  | boolean doStatement(String queryName) throws SQLException;
  | 
  | ResultSet doQuery(String query) throws SQLException;
  | 
  | void printQuery(String query);
  | }
  | 


  | import javax.annotation.Resource;
  | import javax.ejb.Stateless;
  | import javax.sql.DataSource;
  | import java.sql.Statement;
  | import java.sql.Connection;
  | import java.sql.ResultSet;
  | import java.sql.SQLException;
  | 
  | @Stateless
  | public class EjbBean implements EjbLocal, EjbRemote {
  | 
  | @Resource(mappedName = TACWDS) DataSource TACWDS;
  | 
  | public EjbBean() {
  | 
  | }
  | 
  | public boolean doStatement(String query) {
  | //TODO implement doStatement
  | return false;
  | }
  | 
  | public final ResultSet doQuery(String query) throws SQLException {
  | System.out.println(Esecuzione query :  + query);
  | Connection conn = TACWDS.getConnection();
  | Statement stm = conn.createStatement();
  | return stm.executeQuery(query);
  | }
  | 
  | public final void printQuery(String query) {
  | System.out.println(Esecuzione query :  + query);
  | }
  | }
  | 

Servlet Code:


  | 
  | public class appServlet extends HttpServlet {
  | @EJB EjbLocal sless;
  | 
  | public void service(HttpServletRequest req, HttpServletResponse resp) 
  | throws ServletException, IOException{   
  | 
  | resp.setContentType(text/html);
  | PrintWriter out = resp.getWriter();
  | //sless.printQuery(SELECT * FROM FOO);
  | 
  | System.out.println(sless state: +sless);
  | }
  | }
  | 

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - JBoss + custom tags error

2008-01-04 Thread starkc
I have a confounding error while doing a migration from WebLogic to JBoss 
involving custom JSP tags.  Tags appear to stop instantiating new tag objects 
between requests.  The first few times I hit a page, it will perform the tag 
correctly, but later requests result in errors that seem to trace back to the 
tag object itself not being instantiated.  I post this here in the 
configuration forum because the code has worked before and I'm willing to bet I 
have a small error that may be tripping everything here up.

As an example, I coded a custom tag that loops over the values in an ArrayList 
and prints trace statements to the console and to the jsp that uses the tag.

Tag:

  | package com.cybersource.riskmanager.admin.tag;
  | 
  | import java.io.IOException;
  | import java.sql.SQLException;
  | import java.util.ArrayList;
  | import javax.naming.NamingException;
  | import javax.servlet.jsp.JspTagException;
  | import javax.servlet.jsp.PageContext;
  | import javax.servlet.jsp.tagext.IterationTag;
  | import javax.servlet.jsp.tagext.TagSupport;
  | 
  | public class TestBusinessListTag extends TagSupport implements IterationTag
  | {
  | 
  | private ArrayList businesses = new ArrayList();
  | 
  | private int numBusinesses;
  | private int currentBusiness;
  | 
  | public TestBusinessListTag()
  | {
  | System.out.println( DEBUG  CONSTRUCTOR );
  | 
  | businesses.add( a );
  | businesses.add( b );
  | businesses.add( c );
  | businesses.add( d );
  | 
  | numBusinesses = 0;
  | currentBusiness = 0;
  | }
  | 
  | public void resetAll()
  | {
  | businesses.clear();
  | businesses.add( a );
  | businesses.add( b );
  | businesses.add( c );
  | businesses.add( d );
  | 
  | currentBusiness = 0;
  | }
  | 
  | public int doStartTag() throws JspTagException
  | {
  | try
  | {
  | pageContext.getOut().print( doStartTag()br );
  | }
  | catch( IOException ioe )
  | {
  | throw new JspTagException( ioe.getMessage() );
  | }
  | /*catch(NamingException namingexception)
  | {
  | throw new JspTagException(Unable to contact the database 
connection pool to get a connection.);
  | }
  | catch(SQLException sqlexception)
  | {
  | throw new JspTagException(The database query to retrieve the 
list of businesses failed.);
  | }
  | */
  | numBusinesses = businesses.size();
  | if(numBusinesses  0)
  | {
  | super.pageContext.setAttribute(anyBusinesses, Boolean.TRUE);
  | nextBusiness();
  | return 1;
  | } else
  | {
  | super.pageContext.setAttribute(anyBusinesses, Boolean.FALSE);
  | return 0;
  | }
  | }
  | 
  | public int doEndTag() throws JspTagException
  | {
  | try
  | {
  | pageContext.getOut().print( doEndTag()br );
  | }
  | catch( IOException ioe )
  | {
  | throw new JspTagException( ioe.getMessage() );
  | }
  | 
  | super.pageContext.removeAttribute(rowBusiness);
  | return 6;
  | }
  | 
  | public int doAfterBody() throws JspTagException
  | {
  | try
  | {
  | pageContext.getOut().print( doAfterTag()br );
  | }
  | catch( IOException ioe )
  | {
  | throw new JspTagException( ioe.getMessage() );
  | }
  | 
  | 
  | if(currentBusiness == numBusinesses)
  | {
  | System.out.println( currentBusiness +  ==  + numBusinesses );
  | return 0;
  | } 
  | else
  | {
  | System.out.println( currentBusiness +  !=  + numBusinesses );
  | nextBusiness();
  | return 2;
  | }
  | }
  | 
  | public void nextBusiness() throws JspTagException
  | {
  | if( currentBusiness = numBusinesses )
  | {
  | System.out.println( You cant fool me! );
  | //resetAll();
  | }
  | 
  | try
  | {
  | pageContext.getOut().print( nextBusiness()br );
  | pageContext.getOut().print( CURRENT BUSINESS:  + 
(String)businesses.get(currentBusiness) );   
  | }
  | catch( IOException ioe )
  | {
  | throw new JspTagException( ioe.getMessage() );
  | }
  | 
  | super.pageContext.setAttribute(rowBusiness, 

[jboss-user] [JBossCache] - Re: Buddyrep issue

2008-01-04 Thread FredrikJ
I tried a snapshot build from SVN (revision 4982) but the result is still the 
same .

Actually I was not entirely accurate in the sequence description. It should be 
like this:

 1. Cache A starts
 2. Cache A adds 10 nodes to the cache
 3. Cache B starts
 4. Cache B 'gets' 9 nodes thus causing a gravitation 

I'm not sure why I decided to gravitate 9/10 nodes, but there it is. I have 
modified a producer log to include the sequence numbers so you can follow the 
sequences in the log better. You can find a log containing the sequences here: 
http://www.robotsociety.com/cache/br/producer_seq.log

You can see a comparison between running the provided test for 2.0.0 GA and 
2.1.0 CR2 here:
2.0.0 GA producer log : 
http://www.robotsociety.com/cache/br/2.0.0/producer_2.0.0.log
2.1.0 CR2 producer log : 
http://www.robotsociety.com/cache/br/2.1.0%20CR2/producer_2.1.0_cr2.log

To sum the comparison up, the 2.0.0 GA and 2.1.0 CR2 are equal until data has 
gravitated. Then we can see that for 2.0.0 GA the cache in the producer looks 
like:

2.0.0 GA:
  | null  {}
  |   /9  {4=85969gehp9xt}
  |   /_BUDDY_BACKUP_  {}
  | /192.168.1.135_51890  {}
  |   /3  {4=xapfkubptgx0}
  |   /5  {2=17z0dcpunsivo}
  |   /7  {2=1kr0r0fpucxmy}
  |   /2  {1=1cdp3dootdbu9}
  |   /0  {0=cvwo5pn5r7ou}
  |   /4  {4=1wzvk2sq01r1p}
  |   /8  {0=1vfthyv0lbkvw}
  |   /6  {2=i5az9hje5gxo}
  |   /1  {0=10eaf93uzvsru}

And for 2.1.0 CR2:

2.1.0 CR2:
  | null  {}
  |   /9  {0=13gmz9ol9twc}
  |   /_BUDDY_BACKUP_  {}
  | /192.168.1.135_51892  {}  
  |   /3  {1=kf0p8vtuad5y}
  |   /5  {4=uvykukzoi2h0}
  |   /7  {1=zaouao7ntsy7}
  |   /2  {0=ib5tifo2tqco}
  |   /0  {4=1d1boyx12sha7}
  |   /4  {2=gyxlbtnjgpc}
  |   /8  {3=1ivb35jlxspf2}
  |   /6  {0=pte5ws2mpe11}
  |   /1  {1=1erqp88pgexrv}
  | /192.168.1.135_51891  {} // --- wtf?

As I stated before in my first slightly confusing post, it is not the fact that 
we get an additional (recursive) buddy node in the cache that is the 
dealbreaker for us. But I strongly believe that this is one of, if not the, 
cause for the lock timeouts we see. Remember that for 2.0.0 GA buddy rep works 
like a charm for us, but with 2.1.0 CR2 it is broken. Given that and the fact 
that the caches are in different states after a gravitation has occurred using 
the simple test code provided, indicates to me that something has changed 
and/or a regression has occurred.

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

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


  1   2   >