[JBoss-user] [JBoss Seam] - Re: Can I use multiple faces-config.xml?

2006-03-02 Thread deniss.parhomenko
Im my application I use 3 different faces config xml, and when server start, I 
also see, that faces-config.xml readed twice, but application work withou any 
problem, but seam configuration located in another faces 
config(faces-config-seam.xml) file, not faces-config.xml 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927370


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: NoClassDefFoundError :at com.sun.mail.handlers.multipart

2006-03-02 Thread bbreil

You need also the activation.jar 

http://java.sun.com/beans/glasgow/jaf.html

Then you have to copy both jar-files in the tomcat dir within the jboss dir

e.g. ...\jboss-4.0.4RC1\server\default\deploy\jbossweb-tomcat55.sar



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927371


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Warning WARN [ServiceController] Problem starting servi

2006-03-02 Thread djiska1
Ok

I send the Propiedad  and Empleado class

This is Empleado

  | package org.jboss.jose.db;
  | 
  | import javax.persistence.*;
  | import java.util.*;
  | 
  | 
  | @Entity
  | @Table(name=empleados)
  | public class Empleado {
  | private int idEmpleado;
  | private String nombreApellidos;
  | private ListPropiedad propiedades;
  | 
  | public Empleado() {}
  | 
  | @Id //(generate = GeneratorType.AUTO)
  | @GeneratedValue 
  | @Column (name = idEmpleado)
  | public int getIdEmpleado() {
  | return idEmpleado;
  | }
  | public void setIdEmpleado(int idEmpleado) {
  | this.idEmpleado = idEmpleado;
  | }
  | public String getNombreApellidos() {
  | return nombreApellidos;
  | }
  | public void setNombreApellidos(String nombreApellidos) {
  | this.nombreApellidos = nombreApellidos;
  | }
  | 
  | 
  | 
  | 
  | //  @JoinColumn (name = idEmpleado)
  | @OneToMany (cascade = CascadeType.ALL, fetch = FetchType.EAGER, 
mappedBy = idEmpleado)
  | public ListPropiedad getPropiedades() {
  | return propiedades;
  | }
  | public void setPropiedades(ListPropiedad propiedades) {
  | this.propiedades = propiedades;
  | }
  | 
  | 
  | }
  | 
  | 

And this one is 


  | package org.jboss.jose.db;
  | 
  | import javax.persistence.*;
  | import java.util.*;
  | 
  | import java.io.Serializable;
  | 
  | import javax.persistence.*;
  | import javax.persistence.Id;
  | 
  | @Entity
  | @Table(name=propiedades)
  | public class Propiedad implements Serializable{
  | private int referencia;
  | private double precio1;
  | private String referenciaCliente;
  | private int nHabitaciones;
  | private int cuartosDeBaño;
  | private Empleado empleado;
  | //static final long serialVersionUID = 1L;;
  | 
  | public Propiedad(){};
  | 
  | public int getCuartosDeBaño() {
  | return cuartosDeBaño;
  | }
  | public void setCuartosDeBaño(int cuartosDeBaño) {
  | this.cuartosDeBaño = cuartosDeBaño;
  | }
  | 
  | public int getNHabitaciones() {
  | return nHabitaciones;
  | }
  | 
  | public void setNHabitaciones(int habitaciones) {
  | nHabitaciones = habitaciones;
  | }
  | 
  | public double getPrecio1() {
  | return precio1;
  | }
  | 
  | public void setPrecio1(double precio1) {
  | this.precio1 = precio1;
  | }
  | 
  | 
  | @Id //(generate = GeneratorType.AUTO)
  | @GeneratedValue
  | @Column (name = Referencia)   
  | public int getReferencia() {
  | return referencia;
  | }
  | 
  | public void setReferencia(int referencia) {
  | this.referencia = referencia;
  | }
  | 
  | public String getReferenciaCliente() {
  | return referenciaCliente;
  | }
  | 
  | public void setReferenciaCliente(String referenciaCliente) {
  | this.referenciaCliente = referenciaCliente;
  | }
  | 
  | @ManyToOne
  | @JoinColumn (name = idEmpleado)   
  | public Empleado getEmpleado() {
  | return empleado;
  | }
  | public void setEmpleado(Empleado empleado) {
  | this.empleado = empleado;
  | }
  | 
  | 
  | }
  | 

Also I am going to send scheme of the data base


Empleados' table

  | CREATE TABLE `empleados` (
  |   `idEmpleado` INT(11) NOT NULL auto_increment,
  |   `nombreApellidos` varchar(50) DEFAULT NULL,
  |   PRIMARY KEY  (`idEmpleado`)
  | )
  | 

Propiedades' table

  | CREATE TABLE `propiedades` (
  |   `referencia` INT(11) NOT NULL auto_increment,
  |   `precio1` DOUBLE(13,5) DEFAULT NULL,
  |   `referenciaCliente` varchar(50) DEFAULT NULL,
  |   `nHabitaciones` INT(11) DEFAULT NULL,
  |   `cuartoDeBaño` INT(11) DEFAULT NULL,
  |   `empleado` INT(11) DEFAULT NULL,
  |   PRIMARY KEY  (`referencia`)
  | )
  | 

thank you to help me.

Greetings

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927373


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: PrimaryKey class Error occured on JBOSS

2006-03-02 Thread [EMAIL PROTECTED]
You have 2 versions of the same PK class deployed somewhere.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927374


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: web-console not deployed

2006-03-02 Thread [EMAIL PROTECTED]
1) maybe use the .zip distro
2) web-console had a problem with 4.0.4.RC1, that is already fixed: 
http://jira.jboss.com/jira/browse/JBAS-2817

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927375


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Creating loops between nodes

2006-03-02 Thread im_ytk
Hi Elmo,

Ummm.. I am not very understand. You mean when ProcessInstance starts, in one 
of the nodes, it will create a separate thread, then the ProcessInstance will 
suspend, or return to main and save. 

When an event happens, this thread will load that ProcessInstance, and then 
continue its execution.  Umm... I cannot figure out the looping mechanism. I 
guess above code implement the looping by not saving the ProcessInstance when 
it is invoked by the forked thread. Then next time when the forked thread loads 
the ProcessInstance again, it will load the ProcessInstance sits in the correct 
position.

I don't know, I usually save the ProcessInstance immediately after I have used 
it. If I load the ProcessInstance from DB and let it run till the end, next 
time when I load and execute the same ProcessInstance again, it will said the 
ProcessInstance has already reached its end state. (Of course I can always move 
the token back to the start state by manipulating the token myself. But I 
guess it is always not preferred).

I am reading async='true' now in chapter asynchronous continuations. I've tried 
adding the attribute into process definition, it doesn't work. I must have 
missed out something.

Thanks.


Philip

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927376


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problem with Hibernate Reverse Engineering tool..

2006-03-02 Thread gokcem19981
I have tried both with beta3 and beta4 it is not working. I have added to the 
classpath; but when I tried to select the reveng startegy it does not come to 
list automatically. When I directly type it stilll cannot find the class.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927377


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problem with Hibernate Reverse Engineering tool..

2006-03-02 Thread [EMAIL PROTECTED]
using beta4 there should not be a problem.

Please make´sure you are using beta4 and create a new launch configuration and 
see if that does not help.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927378


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - hibernate and jboss transactionmanager

2006-03-02 Thread JulesVerne
Hi
How do i configure hibernate-sevice.xml which is deployed as a har to use 
Jboss4.0.2 AS servers transaction manger. so that I can use it with my session 
beans...
Here is the current configuration of my hibernate-service.xml

  | server
  | mbean code=org.jboss.hibernate.jmx.Hibernate 
name=jboss.har:service=Hibernate
  | attribute name=DatasourceNamejava:/DefaultDS/attribute
  | attribute 
name=Dialectorg.hibernate.dialect.PostgreSQLDialect/attribute   
  | attribute 
name=SessionFactoryNamejava:/HibernateSessionFactory/attribute
  | attribute 
name=CacheProviderClassorg.hibernate.cache.HashtableCacheProvider/attribute
  | attribute name=Hbm2ddlAutoupdate/attribute
  | attribute name=ShowSqlEnabledtrue/attribute
  | /server
  | 

Thnx for the help
Jubs

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927379


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Portlet development, just getting startet!

2006-03-02 Thread sparrez
Hey, I'm just getting startet at developing portlets, but I was wondering, is 
there some way to automate the creation of all the different folders and xml 
files so I can be sure they follow specifications, the content I think I can 
handle :o). 

Been searching for plugins for eclipse, but haven't been able to find anything 
truely useful.

Also any links to tutorials and such you just might know of will be apriciated 
:)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927380


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: hibernate and jboss transactionmanager

2006-03-02 Thread JulesVerne
I picked this from the net...

However, in the context of a larger J2EE application, you'll likely want your 
Hibernate objects to take part in an existing JTA transaction. This would be 
the normal case if you wanted to access Hibernate objects in a session bean, 
for example.

anonymous wrote : JBoss provides the 
org.jboss.hibernate.session.HibernateContext class as the integration piece 
that does this. The getSession method returns a Hibernate session that is 
linked to the current JTA transaction. Naturally this requires that a JTA 
transaction exist prior to the call. The following code illustrates the use of 
getSession.
  | 
  | Session hsession = 
HibernateContext.getSession(java:/hibernate/ExampleEmptorSessionFactory);
  |   | 
  | When you get the Hibernate session in this manner, you don't need close the 
Hibernate session or manage a hibernate transaction. You can be sure that all 
access to the Hibernate session from the current transaction will see the same 
state, and you can know that your Hibernate access will be committed to the 
database or rolled back along with the larger JTA transaction.

is this the only way
thnx

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927381


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: validation problems

2006-03-02 Thread gnulp
any idea is welcome - currently i don't see a simpler solution, but I think 
functionality like that is needed as the example shows ...

consider we have 100 buttons in the frontend - do we really need 100 
Controllers in the serverside - just for validation ?

As I said - any better idea than this is welcome, because I need a solution. 
The only thing I don't like is that this influences both libraries ...

Maybe I can write a patch deriving from the original ClassValidator - I will 
have a look - any help is appriciated ...

thx

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927382


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - JBoss 4.0.3SP1 / Eclipse 3.1.2 / EJB 3.0

2006-03-02 Thread tdume
I want to use JBoss and EJB 3 to make a big application and i have first to 
validate these choices with a little application with an entity bean, a 
stateless session bean and a swing client. The problems began with this swing 
client because i have no problem when i use a servlet as client.

Here is my persistence.xml :

?xml version=1.0 encoding=UTF-8?
  | entity-manager
  |  nameauth/name
  |  jta-data-sourcejava:/AuthDS/jta-data-source
  |  properties
  |   property name=hibernate.hbm2ddl.auto
  |value=none / 
  |  /properties
  | /entity-manager

application.xml : 

?xml version=1.0 encoding=UTF-8?
  | application version=1.4
  | xmlns=http://java.sun.com/xml/ns/j2ee;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  | http://java.sun.com/xml/ns/j2ee/application_1_4.xsd;
  | display-nameValidJBoss/display-name
  | module
  | ejbentities.par/ejb
  | /module
  | module
  | ejbbusiness.ejb3/ejb
  | /module
  | /application
  | 

I have an entity bean put in a .par and a stateless session bean put in a 
.ejb3. I finally make a .ear which is deployed on jboss. The listing is here :
10:01:40,491 INFO  [EARDeployer] Init J2EE application: file:/C:/Program 
Files/jboss-4.0.3SP1/server/default/deploy/validjboss.ear
  | 10:01:41,102 INFO  [JaccHelper] Initialising JACC Context for deployment: 
business.ejb3
  | 10:01:41,733 INFO  [Ejb3AnnotationHandler] found EJB3: 
ejbName=test.auth.business.UtilisateurManagerBean, 
class=test.auth.business.UtilisateurManagerBean, type=STATELESS
  | 10:01:43,085 INFO  [JaccHelper] test.auth.business.UtilisateurManagerBean 
has no @SecurityDomain - skipping JACC configuration
  | 10:01:43,095 INFO  [JaccHelper] JACC Policy Configuration for deployment 
has been put in service
  | 10:01:43,095 INFO  [Ejb3Deployment] EJB3 deployment time took: 1993
  | 10:01:43,145 INFO  [JaccHelper] Initialising JACC Context for deployment: 
entities.par
  | 10:01:43,415 INFO  [Ejb3Deployment] Found persistence.xml file in EJB3 jar
  | 10:01:43,876 INFO  [Environment] Hibernate 3.1
  | 10:01:43,936 INFO  [Environment] hibernate.properties not found
  | 10:01:43,946 INFO  [Environment] using CGLIB reflection optimizer
  | 10:01:43,946 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
  | 10:01:44,647 INFO  [Ejb3Configuration] found EJB3 Entity bean: 
test.auth.entity.Utilisateur
  | 10:01:46,249 INFO  [Configuration] processing extends queue
  | 10:01:46,249 INFO  [Configuration] processing collection mappings
  | 10:01:46,249 INFO  [Configuration] processing association property 
references
  | 10:01:46,249 INFO  [Configuration] processing foreign key constraints
  | 10:01:46,470 INFO  [Configuration] processing extends queue
  | 10:01:46,470 INFO  [Configuration] processing collection mappings
  | 10:01:46,480 INFO  [Configuration] processing association property 
references
  | 10:01:46,480 INFO  [Configuration] processing foreign key constraints
  | 10:01:47,261 INFO  [ConnectionProviderFactory] Initializing connection 
provider: org.hibernate.ejb.InjectedDataSourceConnectionProvider
  | 10:01:47,311 INFO  [InjectedDataSourceConnectionProvider] Using provided 
datasource
  | 10:01:48,593 INFO  [SettingsFactory] RDBMS: PostgreSQL, version: 8.1.3
  | 10:01:48,603 INFO  [SettingsFactory] JDBC driver: PostgreSQL Native Driver, 
version: PostgreSQL 8.1 JDBC3 with SSL (build 404)
  | 10:01:48,953 INFO  [Dialect] Using dialect: 
org.hibernate.dialect.HSQLDialect
  | 10:01:49,083 INFO  [TransactionFactoryFactory] Using default transaction 
strategy (direct JDBC transactions)
  | 10:01:49,103 INFO  [TransactionManagerLookupFactory] instantiating 
TransactionManagerLookup: 
org.hibernate.transaction.JBossTransactionManagerLookup
  | 10:01:49,164 INFO  [TransactionManagerLookupFactory] instantiated 
TransactionManagerLookup
  | 10:01:49,164 INFO  [SettingsFactory] Automatic flush during 
beforeCompletion(): disabled
  | 10:01:49,164 INFO  [SettingsFactory] Automatic session close at end of 
transaction: disabled
  | 10:01:49,164 INFO  [SettingsFactory] JDBC batch size: 15
  | 10:01:49,164 INFO  [SettingsFactory] JDBC batch updates for versioned data: 
disabled
  | 10:01:49,174 INFO  [SettingsFactory] Scrollable result sets: enabled
  | 10:01:49,174 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
  | 10:01:49,174 INFO  [SettingsFactory] Connection release mode: 
after_statement
  | 10:01:49,184 INFO  [SettingsFactory] Default batch fetch size: 1
  | 10:01:49,184 INFO  [SettingsFactory] Generate SQL with comments: disabled
  | 10:01:49,184 INFO  [SettingsFactory] Order SQL updates by primary key: 
disabled
  | 10:01:49,184 INFO  [SettingsFactory] Query translator: 
org.hibernate.hql.ast.ASTQueryTranslatorFactory
  | 10:01:49,244 INFO  [ASTQueryTranslatorFactory] Using 
ASTQueryTranslatorFactory
  | 10:01:49,244 INFO  [SettingsFactory] Query language 

[JBoss-user] [Clustering/JBoss] - Re: MBean Clustering , JBoss 4.0.3

2006-03-02 Thread hannes.koller
[EMAIL PROTECTED] wrote : DistributedReplicantManager.remove does not remove 
all values for the given key. It just removes the value associated with the 
key. 
  | 

Yes you are correct. I tested the remove's behavior in the JMX console today 
and it does what it is supposed to do. My bad. Still the patch I posted 
yesterday solved my problem and I was curious why, so I played around some 
more... as soon as a   target.destroy() appears in the containerIsAboutToStop() 
 method, the behavior I described occurs... 

The problem with this is the following: the containerIsAboutToStop() method 
gets called from the StateChangeListener.  When one Replicant is undeployed 
(for whatever reason) this method is called. But not only for the Replicant 
which is going down, but for ALL the replicants (they all registered a listener 
after all). And consecutively every replicant thinks itself is about to stop 
and disables itself.  Now that was a tough one.  :-)

I guess thats the core reason for the behavior I have been noticing the last 
few days. Should not be so hard to fix, the ProxyFactoryHA just has to check if 
the ServiceMBean.STOPPING event was meant for itself or a different replica.  

[EMAIL PROTECTED] wrote : 
  | The behavior you describe does not occur when shutting down a node with 
clustered ejbs, so something does not seem correct with the usage.
  | 

This is just a guess, but I think this behavior does not occur with ejbs 
because they never recieve ServiceMBean.STOPPING events? 



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927385


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Warning WARN [ServiceController] Problem starting servi

2006-03-02 Thread Instinct
Your mapping is wrong.


  | [...]
  | private ListPropiedad propiedades;
  | [...]
  | 
  | @JoinColumn (name = idEmpleado)
  | @OneToMany (cascade = CascadeType.ALL, fetch = FetchType.EAGER, 
mappedBy = idEmpleado)
  | public ListPropiedad getPropiedades() {
  | return propiedades;
  | }
  | public void setPropiedades(ListPropiedad propiedades) {
  | this.propiedades = propiedades;
  | }
  | [...]
  | 

you say mappedBy = idEmpleado here but there is no such property in your 
Propiedad class (there is only empleado).

Please have a look at the examples in the ejb 3.0 persistence spec 
(http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22PartDetailId=ejb-3.0-pfd-JSpecSiteId=JCPTransactionId=noreg)
 : 2.1.8.2 Bidirectional ManyToOne / OneToMany Relationships
Those examples are quite good to understand the mappings.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927386


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Can't get the embedded-war example to work

2006-03-02 Thread cim96sj6
Hi,

I can't get the the embedded-war tutorial of the Embedded EJB3 Alpha 5 
release to work. I have just built the example as it is without changes and 
deployed the war file in a Tomcat 5.5 server. 

When the war file is deployed I get the following message:

WARN  02-03 09:56:36,904 (BeanSchemaBinding.java:init:227)  -You should use the 
2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
FATAL 02-03 09:56:39,408 (PersistenceXmlLoader.java:parsePersistenceUnit:101)  
-custdb JTA


and when I open the EmbeddedEJB3.jsp page, I get this error:

ERROR 02-03 10:01:00,021 (StandardWrapperValve.java:invoke:253)  
-Servlet.service() for servlet jsp threw exception
javax.naming.NameNotFoundException: 
org.jboss.tutorial.embeddedwar.CustomerDAOLocal not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at 
org.apache.jsp.EmbeddedEJB3_jsp._jspService(org.apache.jsp.EmbeddedEJB3_jsp:143)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


It seems like there is some problem with the deployment of the CustomerDAOBean. 
Is there anyone who knows how to fix this problem?

/Johan

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927387


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: How to inject resources from HA-JNDI?

2006-03-02 Thread metelka
The problem is that if I use 

@Resource(mappedName=queue/testQueue) javax.jms.Queue testQueue;

ejb container uses default InitialContext (running on port 1099) to lookup the 
queue and not ha-jndi context (running on port 1100). Because the queue is 
registered in global namespace, it is not found and the SLSB cannot be deployed.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927388


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problem with Hibernate Reverse Engineering tool..

2006-03-02 Thread gokcem19981
I added the hibernate jar to Eclipse - window -preferences -Java - Build 
path - class path variables. 
I have left the reveng.strategy field empty. Now I have no errors but I also 
don't have any code generated.


I didn't add the jar to the console conf claddpath. It was written there but 
when I read the post from hoist2k I thougth I should add them there.
anonymous wrote : Try using org.hibernate.cfg. reveng 
.DelegatingReverseEngineeringStrategy instead.
  | Also, make sure you have the jars in your Console Configuration classpath, 
as the other post mentioned. 


eclipse version :  3.1.2 
hibernate tools version : 3.1.0.beta4


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927389


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problem with Hibernate Reverse Engineering tool..

2006-03-02 Thread [EMAIL PROTECTED]
...and what is the error ?

And did you remove all the hibernate related jars from the console classpath ?

And did you try and create a new code generation launcher ?

...and are you sure you are using beta4?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927390


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: cvs, 2.4 clustering

2006-03-02 Thread [EMAIL PROTECTED]
Did you try running the CMS service as a HA singleton ?
core/src/resources/portal-cms-sar/META-INF/jboss-service.xml

It's commented out at the beginning of the file.

But please bare with us, this is something (CMS clustering) that we are 
currently intensively working on.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927391


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: @Role problem

2006-03-02 Thread blue_due
Sorry, should have included that in my last post.

It doesn't log the components.  Using the '@Name' name works fine.  It's as 
though the @Role annotation is being ignored.  I've checked out the latest cvs 
version of seam.

I've had a look through the seam code it looks as though the only class that 
knows about roles in components is: org.jboss.seam.init.Initialization.  It 
checks for the @Role/@Roles annotations in the compponents contained in the 
init context variable.  When I run my example the init.getComponentClasses 
returns zero components.

Later on in Initilization, there are another few lines that add components 
using a Scanner instance which does not appear to be aware of @Role/@Roles 
annotaions.  My components are picked up here.

Here is the block of code that contains the only references to the Role 
annotations that I could find.  The body of the for loop does not get run as no 
component classes are returned.  This is taken from 
org.jboss.seam.init.Initilization, line 165 onwards.


  |  //TODO: move all this stuff into Init component?
  |   for ( String className : init.getComponentClasses() )
  |   {
  |  try
  |  {
  | ClassObject componentClass = 
Reflections.classForName(className);
  | addComponent( componentClass, context );
  | if ( componentClass.isAnnotationPresent(Role.class) )
  | {
  |   
  |Role role = componentClass.getAnnotation(Role.class);
  |ScopeType scope = Seam.getComponentRoleScope(componentClass, 
role);
  |addComponent( role.name(), scope, componentClass, context );
  | }
  | if ( componentClass.isAnnotationPresent(Roles.class) )
  | {
  |Role[] roles 
=componentClass.getAnnotation(Roles.class).value();
  |for (Role role: roles)
  |{
  |   ScopeType scope = 
Seam.getComponentRoleScope(componentClass, role);
  |   addComponent( role.name(), scope, componentClass, context 
);
  |}
  | }
  |  }
  |  catch (ClassNotFoundException cnfe)
  |  {
  | throw new IllegalArgumentException(Component class not found: 
 + className, cnfe);
  |  }
  |   }
  | 

Here is the scanner bit which appears to register components using only the 
@Name annotation.  My component classes get picked up here, but their Role 
annotations are not looked at.  This is taken from 
org.jboss.seam.init.Initilization, line 220 onwards.


  | if (isScannerEnabled)
  |   {
  |  for ( Class clazz: new Scanner().getClasses() )
  |  {
  | if ( clazz.isAnnotationPresent(Name.class) )
  | {
  |addComponent(clazz, context);
  | }
  |  }
  |   }
  | 

I think I'm either doing something wrong which is stopping my components 
appearing in init.getComponentClasses() or I've found a bug.

Relavent startup output:


  | 09:04:38,193 INFO  [Scanner] scanning: /C:/Program 
Files/jboss-4.0.4RC1/server/default/tmp/deploy/tmp25621test.ear-contents/test.jar
  | 09:04:38,240 INFO  [Component] Component: fooaction, scope: SESSION, type: 
STATELESS_SESSION_BEAN, class: uk.foo.FooAction, JNDI: test/FooAction/local
  | 09:04:38,271 INFO  [Component] Component: test, scope: SESSION, type: 
JAVA_BEAN, class: uk.foo.TestBean
  | 09:04:38,286 INFO  [Initialization] done initializing Seam
  | 

The full log:


  | 09:04:35,802 INFO  [EARDeployer] Init J2EE application: file:/C:/Program 
Files/jboss-4.0.4RC1/server/default/deploy/test.ear
  | 09:04:36,755 INFO  [Ejb3AnnotationHandler] found EJB3: ejbName=FooAction, 
class=uk.foo.FooAction, type=STATELESS
  | 09:04:36,818 FATAL [PersistenceXmlLoader] userDatabase JTA
  | 09:04:36,833 INFO  [Ejb3Deployment] EJB3 deployment time took: 140
  | 09:04:36,849 INFO  [JmxKernelAbstraction] installing MBean: 
persistence.units:ear=test.ear.ear,jar=test.jar.jar,unitName=userDatabase with 
dependencies:
  | 09:04:36,849 INFO  [JmxKernelAbstraction]   
jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
  | 09:04:36,911 INFO  [ConnectionProviderFactory] Initializing connection 
provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
  | 09:04:36,927 INFO  [InjectedDataSourceConnectionProvider] Using provided 
datasource
  | 09:04:36,927 INFO  [SettingsFactory] RDBMS: HSQL Database Engine, version: 
1.8.0
  | 09:04:36,927 INFO  [SettingsFactory] JDBC driver: HSQL Database Engine 
Driver, version: 1.8.0
  | 09:04:36,927 INFO  [Dialect] Using dialect: 
org.hibernate.dialect.HSQLDialect
  | 09:04:36,943 INFO  [TransactionFactoryFactory] Using default transaction 
strategy (direct JDBC transactions)
  | 09:04:36,943 INFO  [TransactionManagerLookupFactory] instantiating 
TransactionManagerLookup: 
org.hibernate.transaction.JBossTransactionManagerLookup
  | 

[JBoss-user] [JBoss jBPM] - Re: Creating loops between nodes

2006-03-02 Thread enazareno
This sample is an excerpt from arbitrary cycle of the workflow patterns:


  | process-definition name=arbitrary-cycle
  | 
  | start-state name=A
  | transition to=B/
  | /start-state  
  | 
  | state name=B
  | timer duedate=20 seconds transition=C
  |scriptprint( Your 20 seconds is up. Just letting you know I will 
go to C now );/script 
  | /timer
  | transition name=C to=C
  | /state
  | 
  | state name=C
  | event type=node-enter
  |action class=DoAsyncStuff/ 
  | /event
  | transition name=fail to=B/
  | transition name=pass to=E/
  | /state
  | 
  | end-state name=E/   
  | 
  | /process-definition
  | 

This is the main execution part. Executed only once.

  | JbpmContext ctx = config.createJbpmContext();
  | try {
  |   ProcessInstance proc = ctx.newProcessInstance( arbitrary-cycle );
  |   proc.signal();
  |   ctx.save(proc);
  | }
  | catch(Exception ex) 
  | {
  |   ctx.setRollbackOnly();
  |   throw ex;
  | }
  | finally 
  | {
  |   ctx.close();
  | }  
  | 

In the EventListenerThread example from my previous code


  |public void run() {
  | //this class executes a long running process. It returns a status 
  | boolean pass = ALongRunningProcess.execute();
  | 
  | JbpmContext ctx = config.createJbpmContext();
  | try {
  | ProcessInstance proc = ctx.newProcessInstance( 
arbitrary-cycle );
  | if( !pass ) 
  | proc.signal(fail);
  | else
  | proc.signal(pass);
  | ctx.save(proc);
  | }
  | catch(Exception ex) 
  | {
  | ctx.setRollbackOnly();
  | throw ex;
  | }
  | finally 
  | {
  | ctx.close();
  | }  
  | }
  | 

Take note: Running threads has some issues in a J2ee environment, also this 
will not run if you restart the server. But thats another story. So this 
example is just used to illustrate a point. In fact you can accomplish 
something similar using timers instead. Hope this is clear.

Regards,

Elmo


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927393


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Injecting a String

2006-03-02 Thread fcorneli
In my MDB I have:

  | @Resource(mappedName = TheStringResource)
  | private String theStringResource;
  | 
I also have a resource-env-ref in both my ejb-jar.xml and jboss.xml. But when 
onMessage is invoked it gives me null for the value of the 'theStringResource' 
variable. And this while:

  | String value = new InitialContext().lookup(TheStringResource);
  | 
is retrieving the correct value. Isn't is possible to inject Strings via 
@Resource or am I doing something wrong here? Using 4.0.4RC1.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927394


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Problem with Hibernate Reverse Engineering tool..

2006-03-02 Thread gokcem19981
Thank you, thank you, THANK YOU. 

The last problem was that there was no code generated. But it was my fault. I 
have repeated the same thing so many times that I forgot some step.

The code is generated thank you and have a nice day

Gökcem

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927396


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Client hanging when making remote call to bean

2006-03-02 Thread surak
Hi everyone!

We are having problem getting the external clients of our application to 
communicate properly with the application-core (running jboss-4.0.3).

Depending on from which machine we're trying to make the call we get two 
different error-cases.

Case 1:
Lookup of bean works but then later when actually trying make the remote-call 
the client hangs. We don't get any exception, nothing. After ca 30 min we get a 
timeout. tcpdump shows that the method call is getting through and that the 
server is sending a response back to the client but after that it's totally 
silent between the two. 

Case 2:
When looking up the bean the client hangs. When doing a tcpdump at the same 
time as doing the lookup we don't even see that the client is trying to access 
the server.

We've with telnet verfied that a connection can be made from the machine where 
the client is running to the server where the bean is running.

Lookup code:

  | 
env.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory);
  | env.put(Context.URL_PKG_PREFIXES,org.jboss.naming:org.jnp.interfaces);
  | env.put(Context.PROVIDER_URL, jnp://+server+:+port);
  | 
  | InitialContext  ctx = new InitialContext(env);
  | RemoteReportController  rc = 
(RemoteReportController)ctx.lookup(RemoteReportController.class.getName());
  | 

Does anyone have any idea why this is? We find it quite weird that it's just 
getting stuck instead of throwing an exception.

Would appreciate any help!

Cheers
 Johan

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927395


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss/Spring Integration] - Locking Connection of ManagedConnectionPool with spring Appl

2006-03-02 Thread gemmeric
Hello 

We try to put several J2EE applications in a cluster of four Jboss4.0.3 sp1
Some in EJB2 Struts
Some in Hibernate Struts
And some in Spring Jsf Hibernate

All of these applications work in default deployement but when we deploy in all 
configuration for cluster we have problem with spring applications.
The EJB2 or Hibernate + struts work well
With the spring application we lock 2 connections on each transaction of all of 
these application and the available connectioncount drop to 0 very fast.

Anyone already meet this problem ?
Thank you


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927397


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - NoClassDefFoundError by ServiceController

2006-03-02 Thread fcorneli
When JBoss is loading my EJB it gives me a NoClassDefFoundError when he tries 
to start the service jboss.j2ee:service=EJB3,module=my-model.jar.
The funny thing is that the Class-Path inside the MANIFEST.MF of the EJB JAR is 
set correctly and the JAR containing the class lives inside my EAR.
It seems like the ServiceController is using some reflection to load method 
dependencies, but with a classpath that is incorrect. Or am I doing something 
wrong here?

  | 11:18:05,966 WARN  [ServiceController] Problem starting service 
jboss.j2ee:service=EJB3,module=my-model.jar
  | [exec] java.lang.NoClassDefFoundError: the.class.name
  | [exec]  at java.lang.Class.getDeclaredMethods0(Native Method)
  | [exec]  at 
java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
  | [exec]  at java.lang.Class.getDeclaredMethods(Class.java:1763)
  | [exec]  at 
org.jboss.ejb3.injection.PersistenceContextHandler.loadMethodDependencies(PersistenceContextHandler.java:244)
  | [exec]  at 
org.jboss.ejb3.injection.PersistenceContextHandler.loadDependencies(PersistenceContextHandler.java:348)
  | [exec]  at 
org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:239)
  | [exec]  at 
org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:406)
  | [exec]  at 
org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:457)
  | [exec]  at 
org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
  | ...
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927398


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Problems with JSP and Tag Libraries in JBoss using Tomcat 5.

2006-03-02 Thread HenkoMannen
Hi,

I am experiencing a really weird situation here. When running a deployed EJB3 
ear application in a JBoss 4.0.3sp1 application using Tomcat service 5.5.9, 
Jasper is unable to compile any JSP file using Tag Libraries. To be more 
precise, when generating the Java source file (looking in the 'work' directory) 
everything in the file after the first occurance of a Tag Library usage is 
commented out (with //), causing the Java source to be invalid and outputs an 
error when accessing the page via a browser saying:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
Syntax error, insert } to complete ClassBody

Generated servlet error:
Syntax error, insert } to complete Block

Generated servlet error:
Syntax error, insert finally to complete TryStatement

Generated servlet error:
Syntax error, insert } to complete MethodBody

etc... where every error row is a suggestion of steps to take to make the 
source file valid. (of course).

The Tag Library jar files are located in the web application WEB-INF/lib folder 
as they should be. The descriptive Tag Library Definition files (tld:s) are 
located in the WEB-INF folder and every JSP file references these tld files 
directly via this path (WEB-INF/).

Any hints are most appreciated!!

Cheers!
/Henrik

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927399


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - jbossws under jboss-4.0.x ?

2006-03-02 Thread fheldt
I'm sorry, but i don't get it. :-~

I wanted to try out the new jbossws stack (JSR-181 is nice :-), so i did 
everything decribed in http://wiki.jboss.org/wiki/Wiki.jsp?page=WSDeployJBossWS 
to setup the new jbossws stack. I'm using jboss-4.0.4RC1 and took the binaries 
from docs/examples/jbossws. No errors on startup, everything looks ok, but i 
couldn't see my WebService (SLSB with JSR-181 Annotations) under 
http://localhost:8080/jbossws after deployment. :-(

Next try: I looked at jboss-4.0.x from cvs, but the jbossws.sar seems to be the 
same as in RC1.

Is there any way to get this to work this under jboss-4.0.x ?



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927400


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - External JNDI yields

2006-03-02 Thread quaxi
Hi,

I tried to configure an external JNDI store (Tibco EMS to lookup the Queues 
stored there) as presented in the JBOSS documentation, where I found an example 
on how to attach an LDAP server to JBOSS.
I changed it to
mbean code=org.jboss.naming.ExternalContext 
  |name=jboss.jndi:service=ExternalContext,jndiName=external/tibco
  | attribute name=JndiNameexternal/tibco/attribute
  | attribute name=Properties
  | 
java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory
  | java.naming.provider.url=tibjmsnaming://localhost:7222
  | /attribute
  | attribute name=InitialContextjavax.naming.InitialContext/attribute
  | attribute name=RemoteAccesstrue/attribute
  | /mbean

(in the conf/jboss-service.xml file)

I got connection timeout exception which I resolved with the information found 
in previous post in ths forum by setting 
jnp.disableDiscovery=true
in conf/jndi.properties

But now I get this Error:
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.jndi:service=ExternalContext,jndiName=external/tibco
  |   State: FAILED
  |   Reason: javax.naming.ConfigurationException: No valid 
Context.PROVIDER_URL was
  |  found

The jar with the needed classes are in the server/lib directory.

I also found that this was a problem in the previously mentioned thread but 
unfortunatley no solution was posted there.

run.bat --version shows this:
===
  | .
  |   JBoss Bootstrap Environment
  | .
  |   JBOSS_HOME: C:\jboss-4.0.3SP1\bin\\..
  | .
  |   JAVA: c:\jdk1.5.0_03\bin\java
  | .
  |   JAVA_OPTS:  -Dprogram.name=run.bat -Xms128m -Xmx512m
  | .
  |   CLASSPATH: 
c:\jdk1.5.0_03\lib\tools.jar;D:\downloads\jboss-4.0.3SP1\jboss-4.0.
  | 3SP1\bin\\run.jar
  | .
  | 
===
  | .
  | JBoss 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)
  | 

I am sure this must be a very silly config error somewhere,
thanks in advance for any help!

Martin

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927402


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - jar-file dependencies in persistence.xml

2006-03-02 Thread Kato
We are converting a very large multi-module software package from EJB2.1 BMP to 
EJB3 CMP.  Accessing entities from another jar file requires that the 
persistence.xml file lists the jar file using the 
jar-file../One.jar/jar-file syntax.

Any jar dependencies from the persistence.xml file in One.jar also need to be 
listed in the persistence.xml file in Two.jar for the system to load without 
exceptions.

Can somebody explain why these dependencies cannot be resolved at run-time.  
Here's an example: -

One.jar
  | 
  | persistence
  | persistence-unit
  | jar-data-sourcejava:/db/jta-data-source
  | /persistence-unit
  | /persistence
  | 
  | 
  | Two.jar
  | 
  | persistence
  | persistence-unit
  | jar-data-sourcejava:/db/jta-data-source
  | jar-file../One.jar/jar-file
  | /persistence-unit
  | /persistence
  | 
  | Three.jar
  | 
  | persistence
  | persistence-unit
  | jar-data-sourcejava:/db/jta-data-source
  | jar-file../Two.jar/jar-file
  | jar-file../One.jar/jar-file
  | /persistence-unit
  | /persistence

In this example, why do I have to include One.jar in the last persistence.xml 
file, why can it not be resolved automatically.

I am using 4.0.3 with EJB3-RC5.

Cheers,
Kato.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927403


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Transient members

2006-03-02 Thread zauberlehrling
Hello,

I have a question concerning transient members. In the follwoing code there is 
an Entity Bean:

package entities;
  | 
  | import java.io.Serializable;
  | import java.util.*;
  | import javax.persistence.*;
  | 
  | @Entity
  | public class Node implements Serializable {
  | 
  | private int id;
  | private String  persistentText;
  | private String  transientText;
  | 
  | public Node(){} 
  | 
  | public Node(int id)
  | {
  | setId(id);
  | }
  | 
  | @Id
  | public int getId() {
  | return id;
  | }
  | 
  | public void setId(int id) {
  | this.id = id;
  | }
  | 
  | public String getPersistentText() {
  | return persistentText;
  | }
  | 
  | public void setPersistentText(String persistentText) {
  | this.persistentText = persistentText;
  | }
  | 
  | @Transient
  | public String getTransientText() {
  | return transientText;
  | }
  | 
  | public void setTransientText(String transientText) {
  | this.transientText = transientText;
  | }
  | }

a Session Bean:

package server.sessions;
  | 
  | import javax.ejb.*;
  | import javax.persistence.*;
  | import org.hibernate.*;
  | import entities.*;
  | 
  | import java.util.*;
  | 
  | @Stateful
  | public class ClientSessionBean implements ClientSessionLocal, 
ClientSessionRemote{
  | 
  | @PersistenceContext private EntityManager manager;
  | 
  | ListNode nodes;
  | Node   node;
  | 
  | public void createNode()
  | {
  | node = new Node(1);
  | node.setTransientText(transient);
  | node.setPersistentText(persistent);
  | manager.persist(node);
  | nodes = manager.createQuery(from Node where 
id=1).getResultList();
  | node = nodes.get(0);
  | System.out.println(createNode persistentText: 
+node.getPersistentText());
  | System.out.println(createNode transientText:  
+node.getTransientText());
  | }
  | 
  | public void showNode()
  | {
  | nodes = manager.createQuery(from Node where 
id=1).getResultList();
  | node = nodes.get(0);
  | System.out.println(showNode persistentText: 
+node.getPersistentText());
  | System.out.println(showNode transientText:  
+node.getTransientText());
  | }
  | 
  | }
  | 

and a client, which calls the two methods createNode() and showNode():

package client;
  | 
  | import javax.naming.InitialContext;
  | import java.util.*;
  | import entities.*;
  | import server.sessions.*;
  | 
  | public class Client {
  | 
  | static ClientSession  clientSession;
  | 
  | public static void main(String[] args) {
  | try {
  | HashtableString,String env = new 
HashtableString,String();
  | env.put(java.naming.factory.initial, 
org.jnp.interfaces.NamingContextFactory);
  | env.put(java.naming.factory.url.pkgs, 
org.jboss.naming:org.jnp.interfaces);
  | env.put(java.naming.provider.url, localhost);
  | InitialContext ctx = new InitialContext(env);
  | clientSession = 
(ClientSession)ctx.lookup(ClientSessionBean/remote);
  | clientSession.createNode();
  | clientSession.showNode();
  | } 
  | catch (Exception e) 
  | {
  | System.out.println(e);
  | }
  | }
  | }

I get the following answer:
..
10:59:02,531 INFO  [STDOUT] createNode persistentText: persistent
10:59:02,531 INFO  [STDOUT] createNode transientText:  transient
10:59:02,562 INFO  [STDOUT] showNode persistentText: persistent
10:59:02,562 INFO  [STDOUT] showNode transientText:  null
..
Is the last line correct? I've exptected the last line: 

10:59:02,562 INFO  [STDOUT] showNode transientText:  transient

Thanks for your efforts.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927404


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Problems in web-console

2006-03-02 Thread Linuso
ineverstop wrote : 
  | 1) creat a interface named IMarshalledValue.java then compile it, src like:
  |  public interface IMarshalledValue extends Serializable {}
  | 

I'm pretty new to this, just testing around.. but..
I created a file named IMarshalledValue.java containing:
public interface IMarshalledValue extends Serializable {}

When I tryed to compile it whit javac It says:
symbol: class Serializable
public interface IMarshalledValue extends Serializable {}
  ^
1 error

What am I doing wrong?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927405


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - ClassLoader issue with jBPM and EJB3+EAR deployment?

2006-03-02 Thread scotto
I am relatively to JBoss/jBPM but have been having good sucess with it so far. 
However I have just hit a problem that has had me stumped for the better part 
of a day now.

I am using:

 - jboss-EJB-3.0_RC5-PFD
 - jbpm-3.1
 - jboss-4.0.4RC1

Most of it works fine, except I am having trouble with the execution of a jBPM 
process invoked from a @Stateless session bean.

I have a process definition deployed into my database that I can successfully 
invoke from a method in the stateless session bean. However if I attempt to 
trigger a custom ActionHandler from the process, jBPM complains that it cannot 
find the action handler class.

Here is an extract of my processdefinition.xml file:

anonymous wrote : 
  |   |start-state name=start
  |   |   transition name= to=Invoke Call/transition
  |   |/start-state
  |   |state name=Invoke Call
  |   |   event type=node-enter
  |   |  action name=createCall config-type=field 
class=com.vieo.ccs.process.actions.CreateCallActionHandler /
  |   |   /event
  |   |   transition name=ACTIVE to=Setup Success/transition
  |   |/state
  |   | 

The exception I am getting is as follows:

anonymous wrote : 
  | 18:30:00,156 ERROR [GraphElement] action threw exception: couldn't get 
value for file 
'classes/com/vieo/ccs/process/actions/CreateCallActionHandler.class' 
org.jbpm.JbpmException: couldn't get value for file 
'classes/com/vieo/ccs/process/actions/CreateCallActionHandler.class'
  | at 
org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:186)
  | at 
org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:55)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at 
org.jbpm.instantiation.Delegation.instantiate(Delegation.java:140)
  | at 
org.jbpm.instantiation.Delegation.getInstance(Delegation.java:125)
  | at 
org.jbpm.instantiation.Delegation$$FastClassByCGLIB$$6bae1598.invoke()
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
  | at 
org.jbpm.instantiation.Delegation$$EnhancerByCGLIB$$1e6cb7ea.getInstance()
  | at org.jbpm.graph.def.Action.execute(Action.java:122)
  | at 
org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:235)
  | at 
org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:212)
  | ...
  | stuff cut
  | ...
  | Caused by: org.jbpm.JbpmException: file 
'classes/com/vieo/ccs/process/actions/CreateCallActionHandler.class' not found 
in db
  | ...
  | more stuff cut
  | ...
  | 18:30:00,156 ERROR [StartProcessActionHandlerBean] JBPMException: 
org.jbpm.graph.def.DelegationException
  | 


Now, to me this looks like jBPM cannot find my ActionHandler class 
(com.vieo.ccs.process.actions.CreateCallActionHandler) so I wrote a little bit 
of code in my stateless session bean to test it:

anonymous wrote : 
  |   | try {
  |   | ClassLoader classloader = 
this.getClass().getClassLoader();
  |   | Class systemC = 
classloader.loadClass(com.vieo.ccs.process.actions.CreateCallActionHandler);
  |   | logger.info(Loaded system class:  + systemC);
  |   | } catch (ClassNotFoundException e) {
  |   | logger.error(Error system class loader! :  + 
e);
  |   | }
  |   | try {
  |   | // Test org.jbpm.util.ClassLoaderUtil
  |   | Class jbpmC = 
ClassLoaderUtil.loadClass(com.vieo.ccs.process.actions.CreateCallActionHandler);
  |   | if( jbpmC != null ) {
  |   | logger.info(Loaded jbpm class:  + 
jbpmC);
  |   | } else {
  |   | logger.info(Loaded jbpm class: null);
  |   | }
  |   | } catch (JbpmException e) {
  |   | logger.error(Error jbpm class loader! :  + e);
  |   | }
  |   | 

And sure enough, I can successfully access this class from my code, but for 
some reason if I use the jBPM ClassLoader then it cannot be found! 

Here is the output:

anonymous wrote : 
  | 18:30:00,109 INFO  [StartProcessActionHandlerBean] Loaded system class: 
class com.vieo.ccs.process.actions.CreateCallActionHandler
  | 18:30:00,125 ERROR [StartProcessActionHandlerBean] Error jbpm class loader! 
: org.jbpm.JbpmException: class not found 
'com.vieo.ccs.process.actions.CreateCallActionHandler'
  | 

My understanding is that, for some reason, jBPM cannot access my classes (which 
are currently deployed as a .jar within my .ear package).

How do I make the classes in my .ear visible to the installed jBPM instance? 
(jBPM was 

[JBoss-user] [JBoss Seam] - Re: Steps to use SEAM in RCP (Eclipse Based) Application

2006-03-02 Thread [EMAIL PROTECTED]
I've taked a look in atual solutions proposed to eclipse rcp applications that 
intend to be a fremework to develop Aplicatinos like ERPs and ECMs.

There are some examples like:
* IBM WorkPlace Rich Client - They use syncml and have a local and a server 
database, so the aplication culd work offline or on-line, a ECMs that use an 
version of OpenOffice as viewer to office documents...

* The JFire that intend to be an Eclipse RCP framework but dont work offline 
and use JDO.
* The erpOS That has some good ideas but was aborted.
* The Xinity

* The proposed The ECM Rich Client Platform (Apogee) Project, the doneted code 
have some good stuffs like an xforms editor that is render swt forms use 
hibernate and the requiroments can be used for both ECMs an ERPs applications.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927408


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - jmx/invoker/RMIAdaptor - This is working with JBoss 4.x but

2006-03-02 Thread lbrd
Hi,

before i dive into problem rather i would like to give u small idea of the 
problem.

i can get the Instance of MBeanServer from Outside the JBoss in JBoss 4.x but i 
am not able to get Instance of MBeanServer in case of JBoss 3.x.

i found there are some differences for RMIAdaptor Implementation but i am not 
able get actual idea that how i can do this.

CAN ANYBODY HELP ME FOR RESOLVING THIS PROBLEM.!!

see the below code.

MBeanServerConnection server=null;

Properties.put(java.naming.factory.initial, 
org.jboss.naming.HttpNamingContextFactory);
Properties.put(java.naming.provider.url, 
http://localhost:8080/invoker/JNDIFactory;);

Properties.put(java.naming.factory.url.pkgs, org.jboss.naming.client);
 
InitialContext ctx = new InitialContext(Properties); // 
From jndi.properties

server = (MBeanServerConnection) 
ctx.lookup(jmx/invoker/RMIAdaptor);

it gives me the following error.

javax.naming.ServiceUnavailableException: Unexpected failure [Root exception is 
java.lang.IllegalStateException: Failed to find method for 
hash:-884175917852741154]
at 
org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:56)
at 
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at 
org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:59)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy0.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:529)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
at javax.naming.InitialContext.lookup(Unknown Source)
at JbossMonitor.JbossMonitorTest.(JbossMonitorTest.java:176)
at JbossMonitor.JbossMonitorTest.main(JbossMonitorTest.java:507)
Caused by: java.lang.IllegalStateException: Failed to find method for 
hash:-884175917852741154
at 
org.jboss.invocation.MarshalledInvocation.getMethod(MarshalledInvocation.java:367)
at org.jboss.naming.NamingService.invoke(NamingService.java:266)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at 
org.jboss.invocation.http.servlet.InvokerServlet.processRequest(InvokerServlet.java:147)
at 
org.jboss.invocation.http.servlet.InvokerServlet.doPost(InvokerServlet.java:209)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
   

[JBoss-user] [Management, JMX/JBoss] - jmx/rmi/RMIAdaptor - Working with JBoss 4.x but Not with 3.x

2006-03-02 Thread lbrd
Hi, 

before i dive into problem rather i would like to give u small idea of the 
problem. 

i can get the Instance of MBeanServer from Outside the JBoss in JBoss 4.x but i 
am not able to get Instance of MBeanServer in case of JBoss 3.x. 

i found there are some differences for RMIAdaptor Implementation but i am not 
able get actual idea that how i can do this. 

CAN ANYBODY HELP ME FOR RESOLVING THIS PROBLEM.!! 

see the below code. 

MBeanServerConnection server=null; 

Properties.put(java.naming.factory.initial, 
org.jboss.naming.HttpNamingContextFactory); 
Properties.put(java.naming.provider.url, 
http://localhost:8080/invoker/JNDIFactory;); 
Properties.put(java.naming.factory.url.pkgs, org.jboss.naming.client); 

InitialContext ctx = new InitialContext(Properties); // From jndi.properties 

server = (MBeanServerConnection) ctx.lookup(jmx/invoker/RMIAdaptor); 

it gives me the following error. 

javax.naming.ServiceUnavailableException: Unexpected failure [Root exception is 
java.lang.IllegalStateException: Failed to find method for 
hash:-884175917852741154] 
at 
org.jboss.naming.interceptors.ExceptionInterceptor.invoke(ExceptionInterceptor.java:56)
 
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55) 
at 
org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:59) 
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86) 
at $Proxy0.lookup(Unknown Source) 
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:529) 
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508) 
at javax.naming.InitialContext.lookup(Unknown Source) 
at JbossMonitor.JbossMonitorTest.(JbossMonitorTest.java:176) 
at JbossMonitor.JbossMonitorTest.main(JbossMonitorTest.java:507) 
Caused by: java.lang.IllegalStateException: Failed to find method for 
hash:-884175917852741154 
at 
org.jboss.invocation.MarshalledInvocation.getMethod(MarshalledInvocation.java:367)
 
at org.jboss.naming.NamingService.invoke(NamingService.java:266) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
at java.lang.reflect.Method.invoke(Method.java:324) 
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60) 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61) 
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53) 
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185) 
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473) 
at 
org.jboss.invocation.http.servlet.InvokerServlet.processRequest(InvokerServlet.java:147)
 
at 
org.jboss.invocation.http.servlet.InvokerServlet.doPost(InvokerServlet.java:209)
 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 
at 
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 
at 

[JBoss-user] [EJB 3.0] - Re: ManyToOne to a composite primary key

2006-03-02 Thread heinrich
Hi Emmanuel,

i think i have nearly the same problem.
I have a database table with a composite pk consisting of a auto-gen id and a 
fk.
As you mentioned before, auto-gen values are not allowed in composite pk.
But, is there a solution for this cases?
I think this is not a very exotic database architecture.

Greetings

 Martin

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927416


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - Re: HttpInvokers Data Compression using GZIP streams

2006-03-02 Thread boa_ig
Thanks, 
Compression is work (in testing)
JBoss plans this function to add in Released?

sory for my bad English 

Oleg.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927418


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JBoss 4.0.3SP1 / Eclipse 3.1.2 / EJB 3.0

2006-03-02 Thread tdume
I finally solved this problem by adding antlr.jar to the classpath. I changed 
also my persistence.xml (put the value of the property hibernate.hbm2ddl.auto 
to update) and i have errors when i try to deploy my ear file (here are the 
two errors): 
13:29:06,297 ERROR [SchemaUpdate] could not get database metadata
  | org.postgresql.util.PSQLException: ERROR: relation 
information_schema.system_sequences does not exist
  | at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1512)
  | at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1297)
  | at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
  | at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430)
  | at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:332)
  | at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:231)
  | at 
org.jboss.resource.adapter.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:145)
  | at 
org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMetadata.java:119)
  | at 
org.hibernate.tool.hbm2ddl.DatabaseMetadata.init(DatabaseMetadata.java:45)
  | at 
org.hibernate.tool.hbm2ddl.DatabaseMetadata.init(DatabaseMetadata.java:38)
  | at 
org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:133)
  | at 
org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:298)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1145)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:358)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:484)
  | at 
org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:202)
  | at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:78)
  | at 
org.jboss.ejb3.Ejb3Deployment.initializeManagedEntityManagerFactory(Ejb3Deployment.java:512)
  | at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:253)
  | at org.jboss.ejb3.Ejb3JmxDeployment.create(Ejb3JmxDeployment.java:230)
  | at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:34)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:228)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
  | at $Proxy0.create(Unknown Source)
  | at org.jboss.system.ServiceController.create(ServiceController.java:341)
  | at org.jboss.system.ServiceController.create(ServiceController.java:284)
  | at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy10.create(Unknown Source)
  | at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:208)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at 

[JBoss-user] [JBoss Portal] - Re: cvs, 2.4 clustering

2006-03-02 Thread noicangi
hi thomas, thanks for your reply, i will try building the source with the 
solution you plan.

maybe its the tutorial, but some days ago someone post that the 
repositories.xml was obsolete and now we have to use the 
jboss-portal.sar/portal-cms.sar/META-INF/jboss-service.xml, 
i was thinking if it is posible to make the cms repository use a zippped 
directory located in the farm folder?
actually i'm coping the all/data/portal folder from the server y create content 
to the other node.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927422


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - session.get(Token.class, tokenId) return null

2006-03-02 Thread RAlfoeldi
Hi all,

I know this is more of a Hibernate question, but maybe someone knows an answer.

Under what circumstances does Hibernate return null even though the Token 
definately exists. 

Session session = jbpmSession.getSession();
  | 
  | Token token = (Token) session.get(Token.class, tokenId);

The token itself exists, was commited / accessed before in two different 
transactions. This has occurred in 5 out of ca. 100 000 processInstances.

Any ideas? Hints? Inspiration? :-)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927423


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: cvs, 2.4 clustering

2006-03-02 Thread [EMAIL PROTECTED]
you should not have your content in all/data/portal, unless you are using the 
storage on file instead of Hibernate storage (the default is Hibernate)

(The zipped directory is only used to put initial content)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927424


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Warning WARN [ServiceController] Problem starting servi

2006-03-02 Thread djiska1
thank you for information. 

Now it doesn't have got those errors. Only a 

13:51:56,653 FATAL [PersistenceXmlLoader] test JTA

I've got to do more test. But I now have finished. 

Tomorrow i'll follow

thank you



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927425


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - how to adapt owr bussiness need to jbpm

2006-03-02 Thread nabilblk
jbpm propose a  generic database (defaut is hsqldb ) , where many table is 
created (TABLE JBPM_ACTION , JBPM_ID_USER... for exemple) , but in my 
conception we need other information ...
My question is how to correspond our bussiness conception ( class diagram for 
exemple ) to the generyc database of jbpm
  Thank you for 
your help

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927426


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Comparision matrix for jBPM

2006-03-02 Thread jbpmndc
To get started download the starter kit.  run ant.  Then run the Junit test for 
Websale.

1. create an ant task for websale.


!-- the dependency on compile.identity is necessary to make the identity 
mapping files available --




 

  

2. You need to comment out this line in WebSale
//assertEquals(0, taskInstance.getVariables().size());

3. set test.classpath like this:

 







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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927427


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Comparision matrix for jBPM

2006-03-02 Thread jbpmndc
To get started download the starter kit.  run ant.  Then run the Junit test for 
Websale.

1. create an ant task for websale.


!-- the dependency on compile.identity is necessary to make the identity 
mapping files available --




 

  

2. You need to comment out this line in WebSale
//assertEquals(0, taskInstance.getVariables().size());

3. set test.classpath like this:

 







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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927428


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: jboss gives NoClassDefError for jdom/Text when accessed

2006-03-02 Thread gmeroz
did you add jdom.jar to your war/ear which you deploy on jboss?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927429


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Comparision matrix for jBPM

2006-03-02 Thread jbpmndc
Try this one more time


  | 1. comment out a line in WebSale.java
  | //assertEquals(0, taskInstance.getVariables().size());
  | 
  | 2.
  | 
  | set property in build.xml
  | 
  |  path id=test.classpath
  | path refid=classpath/
  | pathelement path=src/resources /
  | pathelement path=build/classes.identity.test /
  | pathelement path=build/classes.jbpm.test /
  | pathelement path=build/classes.examples /
  |   /path
  | 
  | 
  | 3. add junit test
  | 
  |   target name=websale
  | !-- the dependency on compile.identity is necessary to make the 
identity mapping files available --
  | junit printsummary=yes haltonfailure=yes
  | test name=org.jbpm.websale.WebsaleTest 
haltonfailure=no outfile=result
  | formatter type=plain/
  |   /test   
  |  classpath refid=test.classpath /
  | /junit
  |   /target
  | 
  | 
  | 
  | 
  | 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927431


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: jmx/rmi/RMIAdaptor - Working with JBoss 4.x but Not with

2006-03-02 Thread [EMAIL PROTECTED]
You need to understand

a) how to properly ask for Help 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHelp
b) how to search JIRA: http://jira.jboss.com/jira/browse/JBAS-2803

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927432


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Session Listener: @Startup for session scoped component

2006-03-02 Thread liudan2005
At moment, if you have @Startup in your class, your component gets initialised 
no matter it's session scoped or application scoped. In some occasions, you 
might want to do some initialization and outject the component when session is 
created. For example, you might need to retrive the user info for personalized 
home page. In this case, it would be nice to have a session scoped component 
that gets trigger when session is created. i.e. a session scoped component with 
@Startup annotation should be triggered only when a new session is created.

Had a look at seam source code and I think it should be easy to implement this 
by adding some code to SeamListener and Lifecycle. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927433


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Comparision matrix for jBPM

2006-03-02 Thread nabilblk
for comparision you must look for the criteria of WARIA of comparing open 
source workflow engine ...

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927435


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: pbl fork: children still active after process end

2006-03-02 Thread mennen
here is my gpd.xml in case you want to visualize it ..

?xml version=1.0 encoding=UTF-8?
  | 
  | process-diagram name=fork_endTasks width=800 height=597
  |   node name=start fork test x=280 y=144 width=140 height=40
  | transition name=nameFork
  |   label x=5 y=-10/
  | /transition
  |   /node
  |   node name=fork1 x=248 y=219 width=200 height=25
  | transition name=tr2
  |   label x=5 y=-10/
  | /transition
  | transition name=tr1
  |   label x=5 y=-10/
  | /transition
  |   /node
  |   node name=task1 x=105 y=295 width=140 height=40
  | transition name=exceptionel
  |   label x=5 y=-10/
  | /transition
  | transition name=normal
  |   label x=5 y=-10/
  | /transition
  |   /node
  |   node name=task2 x=496 y=303 width=140 height=40
  | transition name=exceptionel
  |   label x=16 y=-17/
  |   bendpoint w1=-291 h1=5 w2=119 h2=-159/
  | /transition
  | transition name=normal
  |   label x=5 y=-10/
  | /transition
  |   /node
  |   node name=join1 x=255 y=397 width=200 height=25
  | transition name=
  |   label x=5 y=-10/
  | /transition
  |   /node
  |   node name=end1 x=91 y=544 width=140 height=40/
  |   node name=end2 x=281 y=491 width=140 height=40/
  |   node name=task4 x=86 y=467 width=140 height=40
  | transition name=tr2
  |   label x=5 y=-10/
  | /transition
  |   /node
  | /process-diagram
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927437


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: pbl fork: children still active after process end

2006-03-02 Thread mennen
Hi, 

Thank you for your reply.. I tried what you said and it didn't work out..
Does this cancel only the tasks inside of a task-node? (cuz what i need to do 
is cancel all the other task instances, so that my process can finally end)
I don't know if the fork is making a problem, but i can't figure out what i'm 
missing :(

Here is what i tried to make it work, but hopelessly..
?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition
  |   xmlns=  name=fork_endTasks
  |   
  |   swimlane name=tester /
  |   
  |start-state name=start fork test
  | task swimlane=tester
  | controller
  | variable name=comments/
  | /controller
  | /task
  |   transition name=nameFork to=fork1/transition
  |/start-state
  |fork name=fork1
  |   transition name=tr2 to=task2/transition
  |   transition name=tr1 to=task1/transition
  |/fork
  |
  |task-node name=task1
  |  task swimlane=tester
  | controller
  | variable name=comments/
  | /controller
  |   /task
  |   transition name=exceptionel to=task4/transition
  |   transition name=normal to=join1/transition
  |/task-node
  |
  |task-node name=task2
  |   task swimlane=tester
  |   controller
  | variable name=comments/
  |   /controller
  |   /task
  |   transition name=exceptionel to=task4/transition
  |   transition name=normal to=join1/transition
  |/task-node
  |join name=join1
  |   transition name= to=end2/transition
  |/join
  |
  |end-state name=end1/end-state
  |
  |end-state name=end2/end-state
  |
  |task-node name=task4
  |  task swimlane=tester
  |   controller
  | variable name=comments/
  |   /controller
  |   remove-taskstrue/remove-tasks
  |   /task
  |   transition name=tr2 to=end1/transition
  |/task-node
  |
  | /process-definition


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927436


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Warning WARN [ServiceController] Problem starting servi

2006-03-02 Thread Instinct
djiska1 wrote : thank you for information. 
  | 
  | Now it doesn't have got those errors. Only a 
  | 
  | 13:51:56,653 FATAL [PersistenceXmlLoader] test JTA
  | 
  | I've got to do more test. But I now have finished. 
  | 
  | Tomorrow i'll follow
  | 
  | thank you
  | 
  | 

Forget about that FATAL error, see 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3920642#3920642

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927438


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Error storing objects with ejb3 entity

2006-03-02 Thread Instinct
pulsycouac wrote : 
  | However when I deploy my ear I have the following errors:
  | 
  | FATAL [PersistenceXmlLoader] ejb3essaiPerst JTA
  | 

You can ignore this one, 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3920642#3920642

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927439


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Problems in web-console

2006-03-02 Thread ineverstop
try it again:

package org.jboss.util.stram;
  | 
  | import java.io.Serializable;
  | 
  | public interface IMarshalledValue extends Serializable {}



it's really a hard job for a new one to do it; if you can't finish it by you 
self, give me your email address, i could mail the applet.jar file to you. 
by the way, my english is pool, don't laugth at me ! :)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927440


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Remoting] - Re: EJB3 with plain RMI

2006-03-02 Thread gruenewa
Thanks for your response.

Best regards,
Alexander

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927441


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Microcontainer] - Re: How do I get the POJO ?

2006-03-02 Thread [EMAIL PROTECTED]
Use search.
There is already a long discussion on this.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927442


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - EJB3 compilation failure

2006-03-02 Thread Roberto72
Hi,

I have a small test bean:


package test.ejb.entity;

import java.util.*;
import javax.persistence.*;

@Entity
public class IdEntityBean {

  @Id(generate=javax.persistence.GeneratorType.AUTO)
  Integer id;
  public Integer getId() { return id;}
}
--

If I compile it I obtain this error:

symbol  : method generate()
location: @interface javax.persistence.Id
  @Id(generate=javax.persistence.GeneratorType.AUTO)
  ^
test/ejb/entity/IdEntityBean.java:9: cannot find symbol
symbol  : class GeneratorType
location: package javax.persistence
  @Id(generate=javax.persistence.GeneratorType.AUTO)
^
2 errors

Any idea?

TIA 
Roberto Colmegna

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927443


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EJB3 compilation failure

2006-03-02 Thread [EMAIL PROTECTED]
http://wiki.jboss.org/wiki/Wiki.jsp?page=FromJBossEJB3.0RC3ToRC4PFD

specifically the Hibernate Migration Guide link

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927444


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Microcontainer] - Re: demandType Schema wondering

2006-03-02 Thread [EMAIL PROTECTED]

  | e.g.:
  | ISupply must be installed before IDemand is constructed
  | bean name=IDemand ... 
  |demand whenRequired=InstantiatedtheSupply/demand
  | /bean
  | 

The xsd is wrong.


  |  public void attributes(Object o, QName elementName, ElementBinding 
element, Attributes attrs, NamespaceContext nsCtx)
  |  {
  | AbstractDemandMetaData demand = (AbstractDemandMetaData) o;
  | for (int i = 0; i  attrs.getLength(); ++i)
  | {
  |String localName = attrs.getLocalName(i);
  |if (state.equals(localName))
  |   demand.setWhenRequired(new 
ControllerState(attrs.getValue(i)));
  | }
  |  }
  | 

So it should be:


  | e.g.:
  | ISupply must be installed before IDemand is constructed
  | bean name=IDemand ... 
  |demand state=InstantiatedtheSupply/demand
  | /bean
  | 


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927445


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Need help understanding contexts

2006-03-02 Thread JamesWoodward
Hi Gavin,

Maybe you can give me an example of how I should be designing my webapps using 
Seam.

Lets take a simple CRUD application, The home page should be accessed by a GET 
request and accept a parameter that identified the current user. It should 
display a list of products in a table, selecting a product should display a 
page of the product details. There should also be a shopping basket that you 
can add products to and remove products from.

1) How many Seam components should I need to do this?

2) In what scope(s) should they exist?

3) Do I have to tag my Entity beans as Seam components?

I've checked the examples, and I know there are similarities, but what I'd like 
is a more in depth explanation of when and where to use things.

Thanks for your help!

PS: Gavin, I hear you're giving a talk in London on March 29th, as part of the 
JBoss ON the Road seminar. Can I ask whether the focus of the workshop is 
EJB3/Seam or JBoss ON?



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927446


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Session Listener: @Startup for session scoped component

2006-03-02 Thread JamesWoodward
To trigger a method to run when a session scoped component is created use the 
@Create annotation.

@Create
public void init() {
.
}



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927447


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Microcontainer] - Re: demandType Schema wondering

2006-03-02 Thread [EMAIL PROTECTED]
Bug report:
http://jira.jboss.com/jira/browse/JBMICROCONT-72

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927448


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Need help understanding contexts

2006-03-02 Thread JamesWoodward
Ignore question 3, I see you've already answered that one is another thread! :)

BTW, hope you had a nice holiday!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927449


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Hibernate failing to map collection

2006-03-02 Thread edwar64896
Hi. Just starting out on my first seam expedition and have run into a brick 
wall with hibernate. Was having some success up until yesterday when this error 
occurs...

anonymous wrote : 00:57:40,871 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.Account.payments - Payment
  | 00:57:40,873 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.Account.reservations - Reservation
  | 00:57:40,874 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.BookableAsset.rates - Rate
  | 00:57:40,875 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.BookableAsset.images - Image
  | 00:57:40,876 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.BookableAsset.reservations - Reservation
  | 00:57:40,877 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.Property.rooms - Room
  | 00:57:40,878 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.Reservation.payments - Payment
  | 00:57:40,909 WARN  [ServiceController] Problem starting service 
persistence.units:ear=centralbookings.ear.ear,jar=centralbookings.jar.jar,unitName=cbDatabase
  | java.lang.reflect.InvocationTargetException
  | ...
  | Caused by: org.hibernate.MappingException: Could not determine type for: 
java.util.Collection, for columns: [org.hibernate.mapping.Column(reservations)]

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927450


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Hibernate failing to map collection

2006-03-02 Thread edwar64896
Hi. Just starting out on my first seam expedition and have run into a brick 
wall with hibernate. Was having some success up until yesterday when this error 
occurs...

anonymous wrote : 00:57:40,871 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.Account.payments - Payment
  | 00:57:40,873 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.Account.reservations - Reservation
  | 00:57:40,874 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.BookableAsset.rates - Rate
  | 00:57:40,875 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.BookableAsset.images - Image
  | 00:57:40,876 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.BookableAsset.reservations - Reservation
  | 00:57:40,877 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.Property.rooms - Room
  | 00:57:40,878 INFO  [CollectionBinder] Mapping collection: 
com.snet.cb.ejb.Reservation.payments - Payment
  | 00:57:40,909 WARN  [ServiceController] Problem starting service 
persistence.units:ear=centralbookings.ear.ear,jar=centralbookings.jar.jar,unitName=cbDatabase
  | java.lang.reflect.InvocationTargetException
  | ...
  | Caused by: org.hibernate.MappingException: Could not determine type for: 
java.util.Collection, for columns: [org.hibernate.mapping.Column(reservations)]

I have a number of OneToMany relationships and am fairly confident that they 
are all configured similarly. 

Is there any way that I can debug the annotation parsing in a little more 
detail? The Annotations and EJB's compile a treat, but just go titzup when 
getting deployed. 

Am posting here due use of seam...

TIA for any help...

cheers,

Mark.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927451


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Message Driven Bean does not catch the message with onMe

2006-03-02 Thread esplinr
How was this resolved

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927452


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Granting Access

2006-03-02 Thread vlmcouto
Hi All,
How can i deny access to an application (user need put the credentials in a 
login form - it's working fine!), and grant access to some special page or 
servlet, like user registration form or something like that.
Thank you!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927453


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: IllegalStateException in BaseSessionContext.getCallerPri

2006-03-02 Thread asylumx
Ok, well, are there any examples of how to implement this for JBoss?   

I really appreciate the help!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927455


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Microcontainer] - Re: demandType Schema wondering

2006-03-02 Thread bkeh12
Thank you for telling me  :-)
So  do this:
 
  |TypeBinding beanType = schemaBinding.getType(beanTypeQName);
  | 
  |   /*
  |   ClassMetaData classMetaData = new ClassMetaData();
  |   classMetaData.setImpl(AbstractBeanMetaData.class.getName());
  |   beanType.setClassMetaData(classMetaData);
  |   
  |   QName CLASS = new QName(class);
  |   AttributeBinding attribute = beanType.getAttribute(CLASS);
  |   PropertyMetaData propertyMetaData = new PropertyMetaData();
  |   propertyMetaData.setName(bean);
  |   attribute.setPropertyMetaData(propertyMetaData);
  | 
  |   QName MODE = new QName(mode);
  |   attribute = beanType.getAttribute(MODE);
  |   ValueAdapter modeAdapter = new ValueAdapter()
  |   {
  |  public Object cast(Object o, Class c)
  |  {
  | String string = (String) o;
  | return new ControllerMode(string);
  |  }
  |   };
  |   attribute.setValueAdapter(modeAdapter);
  |   */
  |   beanType.setHandler(new DefaultElementHandler()
  |   {
  |  
  |  public Object startElement(Object parent, QName name, 
ElementBinding element)
  |  {
  | return new AbstractBeanMetaData();
  |  }
  | 
  |  public void attributes(Object o, QName elementName, ElementBinding 
element, Attributes attrs, NamespaceContext nsCtx)
  |  {
  | AbstractBeanMetaData bean = (AbstractBeanMetaData) o;
  | for (int i = 0; i  attrs.getLength(); ++i)
  | {
  |String localName = attrs.getLocalName(i);
  |if (name.equals(localName))
  |   bean.setName(attrs.getValue(i));
  |else if (class.equals(localName))
  |   bean.setBean(attrs.getValue(i));
  |else if (mode.equals(localName))
  |   bean.setMode(new ControllerMode(attrs.getValue(i)));
  |else if (whenRequired.equals(localName))
  |   bean.set
  | }
  |  }
  |   });
  | 
  |   xsd:complexType name=beanType
  |   xsd:annotation
  |  xsd:documentation
  |[CDATA[
  |The bean is an instance of a pojo.
  |
  |e.g.
  |bean name=MyName class=com.acme.POJO
  |   classloader .../
  |   constructor .../
  |   property .../
  |   property .../
  |   depends .../
  |/bean
  |]]
  |  /xsd:documentation
  |   /xsd:annotation
  |   xsd:sequence
  |  xsd:element name=annotation type=annotationType minOccurs=0 
maxOccurs=unbounded/
  |  xsd:element name=classloader type=classloaderType 
minOccurs=0/
  |  xsd:element name=constructor type=constructorType 
minOccurs=0/
  |  xsd:element name=property type=propertyType minOccurs=0 
maxOccurs=unbounded/
  |  xsd:element name=create type=lifecycleType minOccurs=0/
  |  xsd:element name=start type=lifecycleType minOccurs=0/
  |  xsd:element name=stop type=lifecycleType minOccurs=0/
  |  xsd:element name=destroy type=lifecycleType minOccurs=0/
  |  xsd:element name=depends type=dependsType minOccurs=0 
maxOccurs=unbounded/
  |  xsd:element name=demand type=demandType minOccurs=0 
maxOccurs=unbounded/
  |  xsd:element name=supply type=supplyType minOccurs=0 
maxOccurs=unbounded/
  |  xsd:element name=install type=installType minOccurs=0 
maxOccurs=unbounded/
  |  xsd:element name=uninstall type=installType minOccurs=0 
maxOccurs=unbounded/
  |   /xsd:sequence
  |   xsd:attribute name=name type=xsd:string use=optional/
  |   xsd:attribute name=class type=xsd:token use=required/
  |   xsd:attribute name=mode type=controllerModeType use=optional/
  |   xsd:attribute name=WhenRequired type=controllerStateType 
use=optional/
  |/xsd:complexType
  | 

Or do this

  |  public void attributes(Object o, QName elementName, ElementBinding 
element, Attributes attrs, NamespaceContext nsCtx)
  |  {
  | AbstractDemandMetaData demand = (AbstractDemandMetaData) o;
  | for (int i = 0; i  attrs.getLength(); ++i)
  | {
  |String localName = attrs.getLocalName(i);
  |if (whenRequired.equals(localName))
  |   demand.setWhenRequired(new 
ControllerState(attrs.getValue(i)));
  | }
  |  }
  | 


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927456


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the 

[JBoss-user] [Beginners Corner] - Re: Problems in web-console

2006-03-02 Thread Linuso
ineverstop wrote : try it again:
  | 
  | package org.jboss.util.stram;
  |   | 
  |   | import java.io.Serializable;
  |   | 
  |   | public interface IMarshalledValue extends Serializable {}
  | 
  | 
  | 
  | it's really a hard job for a new one to do it; if you can't finish it by 
you self, give me your email address, i could mail the applet.jar file to you. 
  | by the way, my english is pool, don't laugth at me ! :)

Thanks! now it  worked better.. and I added the folder and put the classfile in 
it.. When I running the web-console now I got another fault messeage and it 
want work anyway :(

now it says: java.lang.NullPointerException.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927457


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EJB3 compilation failure

2006-03-02 Thread Roberto72
Solved:


  @Id
  @GeneratedValue(strategy=GenerationType.AUTO)
...

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927458


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Eclipse IDE (users)] - DefaultReverseEngineeringStrategy

2006-03-02 Thread eracer
Hi, 


How to reverse engineer from the hbm to the java files ?


I am trying to produce java code from my database. Thanks for the post about 
the DefaultReverseEngineeringStrategy, because I had the same bug as explained 
here http://www.jboss.com/index.html?module=bbop=viewtopict=74849

Anyway, now I have the Java classes, but I need to change the 
generator class=assigned to generator class=increment within the hbm files.

Then I need to generate the Java again from the modified hbm files, without 
going back from the database anymore! How shall I do that ? Is there some 
undocumented feature to use instead of DefaultReverseEngineeringStrategy ?

Etienne

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927459


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Cannot get the embedded ejb source code with CVS

2006-03-02 Thread tim.cockle
Hi,

Have you had any luck building jboss and getting the embedded ejb3 source?

I have been having a similar problem in that I need the latest version to get 
my JUnit tests going.

Right now it is an up hill battle! 

If you have any additional hints it would be good.

Thanks

Tim

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927460


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Clearing the cache

2006-03-02 Thread drosenbaum
Thanks Ben for responding.  Unfortunatly it does not happen every time.  All I 
know is that I have had an application running with JBossCache for about 6 
months now and I get messages such as this about once a week or 2, sometimes 
more often and sometimes less.

I have a process that runs every morning at 4 am and clears the cache, as I 
would like to start fresh each day with new data.  There are times we need to 
clear the cache manually as well, such as if we modify the underlying data in 
the database and need our web app to use the new data.  This does not happen 
often but there are times when it is necessary.

I suspect (though I have no way to prove) that these messages appear when 
elements are put in the queue for eviction, but before the thread gets around 
to actually evicting the elements the remove(/) is called, so the elements 
are no longer in the cache when the EvictTimerTask tries to remove it.  Does 
this make any sense?  I have no idea how to write a unit test for this though 
and is probably difficult to reproduce.

I am now using version 1.2.4SP1 the last few weeks and 1.2.2 previously, and I 
am seeing these log messages in both versions.

Thank you,
Daniel

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927461


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Clearing the cache

2006-03-02 Thread drosenbaum
One other thought, you say that the remove method is supposed to remove it 
from the eviction queue.  When I call remove(/), are all child elements of 
that node also being removed from the eviction queue?  And the children's 
children at all levels of the subtree?  Maybe what is happening is that only 
the root element is being removed from the eviction queue but not the 
descendants?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927462


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Microcontainer] - Re: demandType Schema wondering

2006-03-02 Thread bkeh12
Hi,

I see Bug report

thank for your help:-)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927463


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Problems in web-console

2006-03-02 Thread Linuso
I dont know if it mathers.. but I'm running on 
fedora core 4
jdk 1.5.0_06
jboss-4.0.4 

also try jboss-4.0.3 sp1 whit same problem.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927464


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Session Listener: @Startup for session scoped component

2006-03-02 Thread liudan2005
@Create method only gets trigger when your component is referenced in a jsf 
page and the page is requested by the user. If your site has many entrances, 
this is gonna be a problem.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927465


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: A bug when using hibernate3 har deployment with jboss po

2006-03-02 Thread jsports
yesterday,I post a topic on hiberante.org  forum.
But No one give an answer or a solution.
It makes me puzzled.

Need your help.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927466


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Missing index on foreign keys in oracle

2006-03-02 Thread mwoelke
Hello,

I have a deadlock problem with oracle.

I have two entity beans, lets say Order and OrderPos. There is a 
bidirectional OneToMany relationship between Order and OrderPos.


  | @Entity
  | public class Order{
  | long id;
  | SetOrderPos positions;
  | @Id
  | @GeneratedValue(...)
  | public long getId(){...}
  | public void setId(long id){...}
  | 
  | @OneToMany(cascade=CascadeType.ALL, mappedBy=order)
  | public SetOrderPos getPositions(){...}
  | public void setPositions(SetOrderPos positions){...}
  | }
  | 

  | public class OrderPos{
  | long id;
  | Order order;
  | @Id
  | @GeneratedValue(...)
  | public long getId(){...}
  | public void setId(long id){...}
  | 
  | @ManyToOne
  | public Order getOrder(){...}
  | public void setOrder(Order order){...}
  | }
  | 

For these two classes hibernate generated two tables: Order and OrderPos.
For the Order table it generates a primary key constraint as well as an index 
on the primary key. For OrderPos it generates a primary key constraint, a 
foreign key constraint for the orderid, and an index on the primary key.

If I try to delete two Orders with all their Positions concurently, I get a 
deadlock. This is the sql generated by hibernate to do this.


  | session 1:
  |  delete from OrderPos where order_id = 4711;
  | session 2:
  |  delete from OrderPos where order_id = 4712;
  | session 1:
  |  delete from Order where id = 4711;
  | session 2:
  |  delete from Order where id = 4712;
  | 

With this scenario session 1 receives a deadlock.
Investigating this problem I found, that oracle is expecting  an index on all 
foreign keys of a table to prevent this situation.

Is there a way to have hibernate generate these indexes? Or is there another 
way to accomplish this kind of concurrent deletes?

Please help.

Thanx in advance.

PS: Im using default JBoss 4.0.4 RC1; Oracle 9i

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927467


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Passing parameters in a friendly URL

2006-03-02 Thread [EMAIL PROTECTED]
Look at the PortalObjectCommandFactory in 2.4, I think it does what you want.

I think it does that in 2.4, but is not in 2.2 (for exception logging), you can 
provide a patch for 2.2 if you want.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927469


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Problems in web-console

2006-03-02 Thread ineverstop
i confirm my new applet.jar package file again, in the end, i found my new 
folder i added is stream instead of stram  in my folder tree; 

my folder looks like:

org/jboss/util/stream/IMarshalledValue.class

if it is the reason of the problem, you nedd to modify IMarshalledValue.java 
file like:

  | package org.jboss.util.stream;
  | 
  | import java.io.Serializable;
  | 
  | public interface IMarshalledValue extends Serializable {}
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927471


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Eclipse IDE (users)] - Re: DefaultReverseEngineeringStrategy

2006-03-02 Thread [EMAIL PROTECTED]
beta4 does not have the need for you to specify the reverse engineerings 
strategy.

if you want to change the generator strategy for *all* table/classes then the 
simplest thing is to implement a custom strategy that return increment in the 
getTableIdentifierStrategyName.

Your last question is a bit ambigious ? Are you asking how to generate code 
from existing mapping files ? Simply *don't* select to reverse engineer then it 
will take the current mappings and use for its code generation.

/max

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927472


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: @Role problem

2006-03-02 Thread [EMAIL PROTECTED]
Are you trying to use a class with a @Role annotation, but no @Name annotation?

(That is not what your original code example showed.)

Currently, Seam does not support components with no default role.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927473


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Steps to use SEAM in RCP (Eclipse Based) Application

2006-03-02 Thread [EMAIL PROTECTED]
What we would do is adopt some existing rich client platform such as Eclipse 
RCP or something and figure out how to use Seam as a server-side component 
model.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927474


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Session Listener: @Startup for session scoped component

2006-03-02 Thread [EMAIL PROTECTED]
liudan2005 wrote : At moment, if you have @Startup in your class, your 
component gets initialised no matter it's session scoped or application scoped. 
In some occasions, you might want to do some initialization and outject the 
component when session is created. For example, you might need to retrive the 
user info for personalized home page. In this case, it would be nice to have a 
session scoped component that gets trigger when session is created. i.e. a 
session scoped component with @Startup annotation should be triggered only when 
a new session is created.
  | 
  | Had a look at seam source code and I think it should be easy to implement 
this by adding some code to SeamListener and Lifecycle. 

I would be happy to accept a patch that implemented this.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927475


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - missing javax.ejb.Stateless?

2006-03-02 Thread Roberto72
Hi,

with jboss-4.0.4RC1 I obtain a  cannot find symbol on 
import javax.ejb.Stateless; code  (required for 
@Stateless annotation).

Any idea?

TIA
Roberto Colmegna

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927477


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Need help understanding contexts

2006-03-02 Thread [EMAIL PROTECTED]
(1) Depends upon what is the scope of the product list, and what is the scope 
of the shopping cart. Session? Conversation? Application? 

Very loosely, a good first cut is to use one Seam component per conversation, 
and another Seam component each time you have some set of data that is not 
conversation-scoped. Have you looked at the DVD Store and booking demos, which 
implement workflows much like you describe?

(2) This is for you to define! A shopping cart is often session scoped, but 
might be conversation scoped. A product list is often session scoped, but may 
be conversation scoped or even application scoped. It completely depends upon 
how you want your application to work when the user opens up multiple windows.

My talk in London is 1.5 hours about Seam. The rest of the day focuses mainly 
on JBoss ON.

I had a great holiday, thanks ;)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927478


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Transient members

2006-03-02 Thread mwoelke
of course its correct. 
The spec says:
anonymous wrote : 9.1.14 Transient Annotation
  | The Transient annotation is used to annotate a property or field of the 
entity class. It specifies that
  | the property or field is not persistent.
  | @Target({METHOD, FIELD}) @Retention(RUNTIME)
  | public @interface Transient {}
  | Example:
  | @Entity
  | public class Employee {
  | @Id int id;
  | @Transient User currentUser;
  | ...
  | }
which means, that if u fetch a entity bean from the database, its transient 
members can not be initialized since they are not stored.

regards, milan wölke

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927480


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Hibernate failing to map collection

2006-03-02 Thread [EMAIL PROTECTED]
Better to ask in the question here:

http://forum.hibernate.org/viewforum.php?f=9


Emmanuel does not monitor this forum very closely.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927481


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Cannot get the embedded ejb source code with CVS

2006-03-02 Thread tim.cockle
I am getting the following problem when I try to build from JBoss-Head (as 
explained in the wiki:

compile-rmi:
 [rmic] RMI Compiling 1 class to 
/home/tim/testJB/jboss-head/naming/output/classes
java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/Utility


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927479


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Eclipse IDE (users)] - Re: DefaultReverseEngineeringStrategy

2006-03-02 Thread eracer
Hi Max,

Thanks for your prompt reply. 

I have changed the generators type in the mapping files by hand, then run the 
code generation again, but with reverse engineering from JDBC connection 
unchecked. I thought this as what you meant.
I get an error saying that it does find the xx.hbm.xml files, and they are 
there.
Also, the package name does not look to be taken into account when producing 
the Java files.

Etienne

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927482


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Eclipse IDE (users)] - Re: DefaultReverseEngineeringStrategy

2006-03-02 Thread eracer
I expect the id to be removed from the full and minimal constructors.
I can remove them by hand as well.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927483


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JBoss 4.0.3SP1 / Eclipse 3.1.2 / EJB 3.0

2006-03-02 Thread Instinct
anonymous wrote : relation information_schema.system_sequences does not exist

Possibly something might be broken with your database?
Did you specify information_schema.system_sequences somewhere in your jboss 
configuration or entities?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927484


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: missing javax.ejb.Stateless?

2006-03-02 Thread Instinct
javax.ejb.Stateless
is part of jboss-ejb3x.jar

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927485


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: Could not instantiate bean under Linux (only?)

2006-03-02 Thread kismorc
Could anyone give me some pointers what can be wrong?

Thanks for your help in advance!

Regards,

Peter

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927488


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Could not instantiate bean under Linux (only?)

2006-03-02 Thread kismorc
Hi Guys,

I've got a CMP entity bean and when our bean package is depoyed, JBoss throws 
this:

2006-03-02 13:23:42,674 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
EJBException in method: public abstract java.util.Collection Br
  | okerageInPriceHome.findAll() throws 
java.rmi.RemoteException,javax.ejb.FinderException:
  | javax.ejb.EJBException: Could not instantiate bean
  | at 
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:180)
  | at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:96)
  | at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61)
  | at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
  | at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
  | at 
org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:508)
  | at org.jboss.ejb.Container.invoke(Container.java:894)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
  | at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
  | at sun.rmi.transport.Transport$1.run(Unknown Source)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at sun.rmi.transport.Transport.serviceCall(Unknown Source)
  | at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
  | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown 
Source)
  | at java.lang.Thread.run(Unknown Source)
  | 

The funny thing is that I can use that bean in our client program, even  
findAll() works OK and retrieves the bean references, but that exception at 
startup is a bit annoying.

We use jboss4.0.2 server with 1.4.2 JRE under Linux and Windows XP and the 
error seems to happen only under Linux (RedHat).

The deployment descriptors are the followings:

META-INF\ejb-jar.xml:


ejb-jar
  |   display-nameEJBModule1/display-name
  |   enterprise-beans
  | entity
  |   display-nameBrokerageInPriceBean/display-name
  |   ejb-nameBrokerageInPriceBean/ejb-name
  |   homeBrokerageInPriceHome/home
  |   remoteBrokerageInPriceRemote/remote
  |   local-homeBrokerageInPriceLocalHome/local-home
  |   localBrokerageInPriceLocal/local
  |   ejb-classBrokerageInPriceBean/ejb-class
  |   persistence-typeContainer/persistence-type
  |   prim-key-classBrokerageInPriceBeanPK/prim-key-class
  |   reentrantTrue/reentrant
  |   cmp-version2.x/cmp-version
  |   abstract-schema-nameBrokerageInPriceBean/abstract-schema-name
  |   cmp-field
  | field-nameuserId/field-name
  |   /cmp-field
  |   cmp-field
  | field-namegroupUserId/field-name
  |   /cmp-field
  |   cmp-field
  | field-namereutersCode/field-name
  |   /cmp-field
  |   cmp-field
  | field-namebrokerage/field-name
  |   /cmp-field
  |   cmp-field
  | field-namebrokerageCalculationMode/field-name
  |   /cmp-field
  |   query
  | query-method
  |   method-namefindAll/method-name
  |   method-params /
 

  1   2   3   >